We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af97fe commit f1f2820Copy full SHA for f1f2820
scripts/produceLKG.mjs
@@ -1,4 +1,3 @@
1
-import del from "del";
2
import fs from "fs-extra";
3
import glob from "glob";
4
import path from "path";
@@ -15,8 +14,8 @@ const dest = path.join(root, "lib");
15
14
16
async function produceLKG() {
17
console.log(`Building LKG from ${source} to ${dest}`);
+ await (fs.rm ?? fs.rmdir)(dest, { recursive: true });
18
await fs.mkdirp(dest);
19
- await del(`${dest.replace(/\\/g, "/")}/**`, { ignore: ["**/README.md"] });
20
await copyLibFiles();
21
await copyLocalizedDiagnostics();
22
await copyTypesMap();
0 commit comments