Skip to content

Commit

Permalink
mics: fix prebuild script - fs breaking change in node 14
Browse files Browse the repository at this point in the history
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
  • Loading branch information
kiprasmel committed May 8, 2022
1 parent 2ee425f commit db70f6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
const fs = require("fs");
const path = require("path");

fs.rmdirSync(path.join(__dirname, "..", "dist"), { recursive: true });
const dir = path.join(__dirname, "..", "dist");
if (fs.existsSync(dir)) {
fs.rmdirSync(dir, { recursive: true, force: true });
}

0 comments on commit db70f6d

Please sign in to comment.