We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 741f71c commit 08afa79Copy full SHA for 08afa79
package.json
@@ -52,8 +52,9 @@
52
}
53
},
54
"scripts": {
55
+ "clean": "node ./scripts/clean.cjs",
56
"build:dev": "tsc -w --target ESNext",
- "build": "rm -rf dist && tsc && rollup -c",
57
+ "build": "npm run clean && tsc && rollup -c",
58
"prepublishOnly": "npm run build",
59
"lint": "eslint --ext .ts src --fix",
60
"lint:report": "eslint --output-file eslint_report.json --format json --ext .ts src",
scripts/clean.cjs
@@ -0,0 +1,9 @@
1
+const path = require('path')
2
+const fs = require('fs')
3
+
4
+const run = () => {
5
+ const distPath = path.join(__dirname, '../dist')
6
+ fs.rmSync(distPath, { recursive: true, force: true })
7
+}
8
9
+run()
0 commit comments