Skip to content

Commit

Permalink
fix(js): use workspace rootDir while compiling TS files
Browse files Browse the repository at this point in the history
fix: #11583
  • Loading branch information
kopach committed Oct 19, 2023
1 parent b9e671c commit f3fcfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workspace/src/utilities/typescript/compilation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function getNormalizedTsConfig(options: TypeScriptCompilationOptions) {
const tsConfig = readTsConfig(options.tsConfig);
tsConfig.options.outDir = options.outputPath;
tsConfig.options.noEmitOnError = true;
tsConfig.options.rootDir = options.rootDir;
tsConfig.options.rootDir = '.';
if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
tsConfig.options.tsBuildInfoFile = joinPathFragments(
options.outputPath,
Expand Down

0 comments on commit f3fcfbb

Please sign in to comment.