diff --git a/packages/js/src/utils/buildable-libs-utils.ts b/packages/js/src/utils/buildable-libs-utils.ts index b8c032663c2bd6..f00fa72861816f 100644 --- a/packages/js/src/utils/buildable-libs-utils.ts +++ b/packages/js/src/utils/buildable-libs-utils.ts @@ -431,8 +431,7 @@ export function createTmpTsConfig( workspaceRoot: string, projectRoot: string, dependencies: DependentBuildableProjectNode[], - useWorkspaceAsBaseUrl: boolean = false, - doNotCleanOnExit: boolean = false + useWorkspaceAsBaseUrl: boolean = false ) { const tmpTsConfigPath = join( workspaceRoot, @@ -446,9 +445,7 @@ export function createTmpTsConfig( tmpTsConfigPath, dependencies ); - if (!doNotCleanOnExit) { - process.on('exit', () => cleanupTmpTsConfigFile(tmpTsConfigPath)); - } + process.on('exit', () => cleanupTmpTsConfigFile(tmpTsConfigPath)); if (useWorkspaceAsBaseUrl) { parsedTSConfig.compilerOptions ??= {}; parsedTSConfig.compilerOptions.baseUrl = workspaceRoot;