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 66b05c1 commit 3c9b1eaCopy full SHA for 3c9b1ea
2 files changed
bin/clean.ts
@@ -0,0 +1,12 @@
1
+#!/usr/bin/env -S node --import tsx
2
+
3
+import { rmSync } from "fs";
4
+/*
5
+Some operating systems do not have the ability to perform
6
+rm -rf ... (example: Windows)
7
+*/
8
9
+rmSync('lib', {'force':true, 'recursive':true})
10
+rmSync('test/tmp', {'force':true, 'recursive':true})
11
12
package.json
@@ -15,7 +15,7 @@
15
"prebuild-wasm": "npm run wasm -- --prebuild && npm run wasm -- --setup",
16
"build-wasm": "npm run wasm -- --docker",
17
"wasm": "node --import tsx bin/build_wasm.ts",
18
- "clean": "rm -rf lib && rm -rf test/tmp",
+ "clean": "node --import tsx bin/clean.ts",
19
"prepare": "npm run clean && npm run build-ts",
20
"test": "node --import tsx ./test/md-test.ts",
21
"lint": "eslint",
0 commit comments