Skip to content

Commit f3bd118

Browse files
committed
Pull LKG script change from other branch
1 parent 48673d2 commit f3bd118

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/produceLKG.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
import * as fs from "fs-extra";
44
import * as path from "path";
55
import * as glob from "glob";
6+
import * as del from "del";
67

78
const root = path.join(__dirname, "..");
89
const source = path.join(root, "built/local");
910
const dest = path.join(root, "lib");
1011

1112
async function produceLKG() {
1213
console.log(`Building LKG from ${source} to ${dest}`);
14+
await del(`${dest.replace(/\\/g, "/")}/**`, { ignore: ["**/README.md"] });
15+
await fs.mkdirp(dest);
1316
await copyLibFiles();
1417
await copyLocalizedDiagnostics();
1518
await copyTypesMap();

0 commit comments

Comments
 (0)