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

Commit

Permalink
fix: fixed tsPath when no tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 3, 2018
1 parent 198e7e0 commit 8cf8808
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 @@ -70,7 +70,7 @@ export function tsPath(root: string, orig: string | undefined): string | undefin
try {
registerTSNode(root)
const tsconfig = tsconfigs[root]
if (!tsconfig) return
if (!tsconfig) return orig
const {rootDirs, outDir} = tsconfig.compilerOptions
const rootDir = (rootDirs || [])[0]
if (!rootDir || !outDir) return orig
Expand Down

0 comments on commit 8cf8808

Please sign in to comment.