Determines if the current Node.js process is using a TypeScript runner.
Checks npm_lifecycle_script (via getNodeRuntime), process.argv for tsx/ts-node/jiti, and Node.js --import/--loader flags pointing to TS loaders.
true if a TypeScript runner is detected, otherwise false.
true
false
Determines if the current Node.js process is using a TypeScript runner.
Checks npm_lifecycle_script (via getNodeRuntime), process.argv for tsx/ts-node/jiti, and Node.js --import/--loader flags pointing to TS loaders.