From 8cf88080bda2445eaacd9058fb5b2f08992b8b96 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 3 Feb 2018 07:21:05 -0800 Subject: [PATCH] fix: fixed tsPath when no tsconfig --- src/ts_node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts_node.ts b/src/ts_node.ts index 2ca84164..f2f5207f 100644 --- a/src/ts_node.ts +++ b/src/ts_node.ts @@ -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