We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf59b1 commit 738976aCopy full SHA for 738976a
1 file changed
scripts/clean.ts
@@ -1,11 +1,12 @@
1
#!/usr/bin/env -S node --import tsx
2
-
3
import { rmSync } from "fs";
+import { resolve } from "path";
4
5
/*
6
Some operating systems do not have the ability to perform
7
-rm -rf ... (example: Windows)
+rm -rf ... (example: Windows) if this is not the case, use the
8
+rm command.
9
*/
10
-rmSync('lib', {'force':true, 'recursive':true})
11
-rmSync('test/tmp', {'force':true, 'recursive':true})
+rmSync(resolve(__dirname, '../lib'), {'force':true, 'recursive':true});
12
+rmSync(resolve(__dirname, '../test/tmp'), {'force':true, 'recursive':true});
0 commit comments