Skip to content

Commit f1f2820

Browse files
committed
Always remove and recreate lib
1 parent 3af97fe commit f1f2820

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/produceLKG.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import del from "del";
21
import fs from "fs-extra";
32
import glob from "glob";
43
import path from "path";
@@ -15,8 +14,8 @@ const dest = path.join(root, "lib");
1514

1615
async function produceLKG() {
1716
console.log(`Building LKG from ${source} to ${dest}`);
17+
await (fs.rm ?? fs.rmdir)(dest, { recursive: true });
1818
await fs.mkdirp(dest);
19-
await del(`${dest.replace(/\\/g, "/")}/**`, { ignore: ["**/README.md"] });
2019
await copyLibFiles();
2120
await copyLocalizedDiagnostics();
2221
await copyTypesMap();

0 commit comments

Comments
 (0)