We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf28eea commit 43dd4c4Copy full SHA for 43dd4c4
src/Compiler.ts
@@ -167,7 +167,7 @@ function executeCommandLine(args: ReadonlyArray<string>) {
167
configPath = path.join(configPath, 'tsconfig.json');
168
} else if (fs.statSync(configPath).isFile() && path.extname(configPath) === ".ts") {
169
// if supplied project points to a .ts fiel we try to find the config
170
- configPath = ts.findConfigFile(configPath, ts.sys.fileExists);
+ configPath = ts.findConfigFile(path.dirname(configPath), ts.sys.fileExists);
171
}
172
commandLine.options.project = configPath;
173
let configContents = fs.readFileSync(configPath).toString();
0 commit comments