Skip to content

Commit 0e3f25d

Browse files
authored
Copy typesMap.json in produceLKG.ts (microsoft#39329)
* Copy typesMap.json in produceLKG.ts It doesn't change very often and there's a hardcoded backup, but this seems like a booby trap. * Remove unused import
1 parent f27ff08 commit 0e3f25d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/produceLKG.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import childProcess = require("child_process");
44
import fs = require("fs-extra");
55
import path = require("path");
6-
import removeInternal = require("remove-internal");
76
import glob = require("glob");
87

98
const root = path.join(__dirname, "..");
@@ -15,6 +14,7 @@ async function produceLKG() {
1514
console.log(`Building LKG from ${source} to ${dest}`);
1615
await copyLibFiles();
1716
await copyLocalizedDiagnostics();
17+
await copyTypesMap();
1818
await buildProtocol();
1919
await copyScriptOutputs();
2020
await copyDeclarationOutputs();
@@ -40,6 +40,10 @@ async function copyLocalizedDiagnostics() {
4040
}
4141
}
4242

43+
async function copyTypesMap() {
44+
await copyFromBuiltLocal("typesMap.json"); // Cannot accommodate copyright header
45+
}
46+
4347
async function buildProtocol() {
4448
const protocolScript = path.join(__dirname, "buildProtocol.js");
4549
if (!fs.existsSync(protocolScript)) {

0 commit comments

Comments
 (0)