From b28f70fe1ef9464e178df8af886e708092687267 Mon Sep 17 00:00:00 2001 From: Ihor Date: Wed, 18 Oct 2023 20:59:39 +0200 Subject: [PATCH] fix(js): use workspace rootDir while compiling TS files fix: #11583 --- packages/workspace/src/utilities/typescript/compilation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/workspace/src/utilities/typescript/compilation.ts b/packages/workspace/src/utilities/typescript/compilation.ts index 2bdd92d0ba4da..ecd48458c0e94 100644 --- a/packages/workspace/src/utilities/typescript/compilation.ts +++ b/packages/workspace/src/utilities/typescript/compilation.ts @@ -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,