We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6956c06 commit 68f6a30Copy full SHA for 68f6a30
script/prebuild.js
@@ -3,4 +3,7 @@
3
const fs = require("fs");
4
const path = require("path");
5
6
-fs.rmdirSync(path.join(__dirname, "..", "dist"), { recursive: true });
+const dir = path.join(__dirname, "..", "dist");
7
+if (fs.existsSync(dir)) {
8
+ fs.rmdirSync(dir, { recursive: true, force: true });
9
+}
0 commit comments