Skip to content

Commit fe4869a

Browse files
committed
fix: resolve tsconfig from cwd
1 parent 06491e3 commit fe4869a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

factory/program.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ function loadTsConfigFile(configFile: string) {
1919
throw new LogicError(`Invalid parsed config file "${configFile}"`);
2020
}
2121

22-
const parseResult = ts.parseJsonConfigFileContent(
23-
config.config,
24-
ts.sys,
25-
path.dirname(configFile),
26-
{},
27-
configFile
28-
);
22+
const parseResult = ts.parseJsonConfigFileContent(config.config, ts.sys, process.cwd(), {}, configFile);
2923
parseResult.options.noEmit = true;
3024
delete parseResult.options.out;
3125
delete parseResult.options.outDir;

0 commit comments

Comments
 (0)