Skip to content

Commit

Permalink
miore fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Nov 10, 2023
1 parent 214213f commit 565298e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/common/scripts/my-ts-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ function createTempDirectory(baseDir) {

// Function to clean up the temporary directory
function cleanupTempDirectory(tempDir) {
rmdirSync(tempDir, { recursive: true, force: true });
if (fs.existsSync(tempDir)) {
fs.rmdirSync(tempDir, { recursive: true });
}
}

// Main function to execute the script
Expand Down

0 comments on commit 565298e

Please sign in to comment.