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 48673d2 commit f3bd118Copy full SHA for f3bd118
scripts/produceLKG.ts
@@ -3,13 +3,16 @@
3
import * as fs from "fs-extra";
4
import * as path from "path";
5
import * as glob from "glob";
6
+import * as del from "del";
7
8
const root = path.join(__dirname, "..");
9
const source = path.join(root, "built/local");
10
const dest = path.join(root, "lib");
11
12
async function produceLKG() {
13
console.log(`Building LKG from ${source} to ${dest}`);
14
+ await del(`${dest.replace(/\\/g, "/")}/**`, { ignore: ["**/README.md"] });
15
+ await fs.mkdirp(dest);
16
await copyLibFiles();
17
await copyLocalizedDiagnostics();
18
await copyTypesMap();
0 commit comments