Skip to content

Commit

Permalink
fix(js): use uuid when generating tmp tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Feb 20, 2025
1 parent 320536b commit 6141b58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/js/src/utils/buildable-libs-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { output } from 'nx/src/utils/output';
import { dirname, join, relative, extname, resolve } from 'path';
import type * as ts from 'typescript';
import { readTsConfigPaths } from './typescript/ts-config';
import { randomUUID } from 'crypto';

function isBuildable(target: string, node: ProjectGraphProjectNode): boolean {
return (
Expand Down Expand Up @@ -443,7 +444,7 @@ export function createTmpTsConfig(
'tmp',
projectRoot,
process.env.NX_TASK_TARGET_TARGET ?? 'build',
'tsconfig.generated.json'
`tsconfig.generated.${randomUUID()}.json`
);
if (tsconfigPath === tmpTsConfigPath) {
return tsconfigPath;
Expand Down

0 comments on commit 6141b58

Please sign in to comment.