Workaround fix for tsx issue (#380)

This commit is contained in:
Louis Lam
2024-01-19 02:13:43 +08:00
committed by GitHub
parent 051cc11eaa
commit 66747b7a73
2 changed files with 14 additions and 1 deletions

13
extra/clean-tsx-tmp.js Normal file
View File

@@ -0,0 +1,13 @@
/*
* This script is used to clean up the tmp directory.
* A workaround for https://github.com/louislam/dockge/issues/353
*/
import * as fs from "fs";
try {
fs.rmSync("/tmp/tsx-0", {
recursive: true,
});
} catch (e) {
}