From fadc7c5bec7b0bcf0a218251bc69aa629cf5d6df Mon Sep 17 00:00:00 2001 From: Jacob Ley Date: Thu, 19 Oct 2023 16:14:32 +0300 Subject: [PATCH] fix(js): use normalized tsConfig path for generating tmpTscConfig Using the normalized (full) tsConfig path means there is no implicit usage of cwd when generating the temp tsconfig file. So a the @nx/js:tsc executor can be triggered from a different project/directory than the one being built. --- packages/js/src/executors/tsc/tsc.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/js/src/executors/tsc/tsc.impl.ts b/packages/js/src/executors/tsc/tsc.impl.ts index 5da8e71ecc56c..fdf69d1c72dc8 100644 --- a/packages/js/src/executors/tsc/tsc.impl.ts +++ b/packages/js/src/executors/tsc/tsc.impl.ts @@ -64,7 +64,7 @@ export async function* tscExecutor( const { projectRoot, tmpTsConfig, target, dependencies } = checkDependencies( context, - _options.tsConfig + options.tsConfig ); if (tmpTsConfig) {