Skip to content

Commit 68f6a30

Browse files
committed
mics: fix prebuild script - fs breaking change in node 14
Signed-off-by: Kipras Melnikovas <[email protected]>
1 parent 6956c06 commit 68f6a30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/prebuild.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
const fs = require("fs");
44
const path = require("path");
55

6-
fs.rmdirSync(path.join(__dirname, "..", "dist"), { recursive: true });
6+
const dir = path.join(__dirname, "..", "dist");
7+
if (fs.existsSync(dir)) {
8+
fs.rmdirSync(dir, { recursive: true, force: true });
9+
}

0 commit comments

Comments
 (0)