Skip to content

Commit

Permalink
fix(js): use normalized tsConfig path for generating tmpTscConfig
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JacobLey authored and mandarini committed Oct 19, 2023
1 parent b773744 commit 34ccc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/executors/tsc/tsc.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function* tscExecutor(

const { projectRoot, tmpTsConfig, target, dependencies } = checkDependencies(
context,
_options.tsConfig
options.tsConfig
);

if (tmpTsConfig) {
Expand Down

0 comments on commit 34ccc99

Please sign in to comment.