Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: fixed skipping of ts-node
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent abbda09 commit 62658b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ function registerTSNode(root: string) {
if (tsconfigs[root]) return
const tsconfig = loadTSConfig(root)
if (!tsconfig) return
tsconfigs[root] = tsconfig
debug('registering ts-node at', root)
const tsNode: typeof TSNode = require('ts-node')
tsconfigs[root] = tsconfig
typeRoots.push(`${root}/../node_modules/@types`)
if (tsconfig.compilerOptions.rootDirs) {
rootDirs.push(...tsconfig.compilerOptions.rootDirs.map(r => path.join(root, r)))
Expand Down

0 comments on commit 62658b3

Please sign in to comment.