Skip to content

Commit 83dcbc3

Browse files
committed
Pull LKG script change from other branch
1 parent 57fb540 commit 83dcbc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/produceLKG.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import fs from "fs-extra";
33
import path from "path";
44
import glob from "glob";
55
import url from "url";
6+
import * as del from "del";
67

78
const __filename = url.fileURLToPath(new URL(import.meta.url));
89
const __dirname = path.dirname(__filename);
@@ -13,6 +14,8 @@ const dest = path.join(root, "lib");
1314

1415
async function produceLKG() {
1516
console.log(`Building LKG from ${source} to ${dest}`);
17+
await del(`${dest.replace(/\\/g, "/")}/**`, { ignore: ["**/README.md"] });
18+
await fs.mkdirp(dest);
1619
await copyLibFiles();
1720
await copyLocalizedDiagnostics();
1821
await copyTypesMap();

0 commit comments

Comments
 (0)