Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bin/clean.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env -S node --import tsx

import { rmSync } from "fs";
/*
Some operating systems do not have the ability to perform
rm -rf ... (example: Windows)
*/

rmSync('lib', {'force':true, 'recursive':true})
rmSync('test/tmp', {'force':true, 'recursive':true})


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prebuild-wasm": "npm run wasm -- --prebuild && npm run wasm -- --setup",
"build-wasm": "npm run wasm -- --docker",
"wasm": "node --import tsx bin/build_wasm.ts",
"clean": "rm -rf lib && rm -rf test/tmp",
"clean": "node --import tsx bin/clean.ts",
"prepare": "npm run clean && npm run build-ts",
"test": "node --import tsx ./test/md-test.ts",
"lint": "eslint",
Expand Down