Skip to content

Commit

Permalink
fix(js): return to original state
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 12, 2024
1 parent bd2fcc0 commit b515d96
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/js/src/utils/buildable-libs-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit b515d96

Please sign in to comment.