Skip to content

Commit

Permalink
fix: resolve tsconfig from cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Oct 7, 2021
1 parent 6e5bd67 commit 51a876b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions factory/program.ts
Expand Up @@ -19,13 +19,7 @@ function loadTsConfigFile(configFile: string) {
throw new LogicError(`Invalid parsed config file "${configFile}"`);
}

const parseResult = ts.parseJsonConfigFileContent(
config.config,
ts.sys,
path.dirname(configFile),
{},
configFile
);
const parseResult = ts.parseJsonConfigFileContent(config.config, ts.sys, process.cwd(), {}, configFile);
parseResult.options.noEmit = true;
delete parseResult.options.out;
delete parseResult.options.outDir;
Expand Down

0 comments on commit 51a876b

Please sign in to comment.