From b515d968e281ba5d6aff70edab2e18258f711b04 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Tue, 12 Nov 2024 12:06:04 +0000 Subject: [PATCH] fix(js): return to original state --- packages/js/src/utils/buildable-libs-utils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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;