Skip to content

Commit 43dd4c4

Browse files
committed
fixed bug with config path
1 parent cf28eea commit 43dd4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function executeCommandLine(args: ReadonlyArray<string>) {
167167
configPath = path.join(configPath, 'tsconfig.json');
168168
} else if (fs.statSync(configPath).isFile() && path.extname(configPath) === ".ts") {
169169
// if supplied project points to a .ts fiel we try to find the config
170-
configPath = ts.findConfigFile(configPath, ts.sys.fileExists);
170+
configPath = ts.findConfigFile(path.dirname(configPath), ts.sys.fileExists);
171171
}
172172
commandLine.options.project = configPath;
173173
let configContents = fs.readFileSync(configPath).toString();

0 commit comments

Comments
 (0)