File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/server/lib/plugins/child Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ const semver = require('semver')
88const debug = debugLib ( 'cypress:server:ts-node' )
99
1010const getTsNodeOptions = ( tsPath , registeredFile ) => {
11- const compiler = process . env . TS_NODE_COMPILER || tsPath
12-
13- const version = require ( compiler ) . version
11+ const version = require ( tsPath ) . version || '0.0.0'
1412
1513 /**
1614 * NOTE: This circumvents a limitation of ts-node
@@ -36,7 +34,7 @@ const getTsNodeOptions = (tsPath, registeredFile) => {
3634 * @type {import('ts-node').RegisterOptions }
3735 */
3836 const opts = {
39- compiler, // use the user's installed typescript
37+ compiler : process . env . TS_NODE_COMPILER || tsPath , // use the user's installed typescript
4038 compilerOptions,
4139 // resolves tsconfig.json starting from the plugins directory
4240 // instead of the cwd (the project root)
You can’t perform that action at this time.
0 commit comments