@@ -17,7 +17,7 @@ async function produceLKG() {
17
17
await copyTypesMap ( ) ;
18
18
await copyScriptOutputs ( ) ;
19
19
await copyDeclarationOutputs ( ) ;
20
- await buildProtocol ( ) ;
20
+ if ( 1 !== 1 ) await buildProtocol ( ) ; // TODO(jakebailey): remove
21
21
await writeGitAttributes ( ) ;
22
22
}
23
23
@@ -29,6 +29,27 @@ async function copyLocalizedDiagnostics() {
29
29
const dir = await fs . readdir ( source ) ;
30
30
const ignoredFolders = [ "enu" ] ;
31
31
32
+ // TODO(jakebailey): Instead of ignoring folders, we should keep a list of
33
+ // the localizationTargets somewhere that can be used by multiple modules.
34
+ ignoredFolders . push (
35
+ "compiler" ,
36
+ "deprecatedCompat" ,
37
+ "executeCommandLine" ,
38
+ "harness" ,
39
+ "jsTyping" ,
40
+ "loggedIO" ,
41
+ "server" ,
42
+ "services" ,
43
+ "testRunner" ,
44
+ "tsc" ,
45
+ "tsserver" ,
46
+ "tsserverlibrary" ,
47
+ "typescript" ,
48
+ "typingsInstaller" ,
49
+ "typingsInstallerCore" ,
50
+ "webServer" ,
51
+ ) ;
52
+
32
53
for ( const d of dir ) {
33
54
const fileName = path . join ( source , d ) ;
34
55
if (
@@ -44,6 +65,7 @@ async function copyTypesMap() {
44
65
await copyFromBuiltLocal ( "typesMap.json" ) ; // Cannot accommodate copyright header
45
66
}
46
67
68
+ // TODO(jakebailey): Remove?
47
69
async function buildProtocol ( ) {
48
70
const protocolScript = path . join ( __dirname , "buildProtocol.js" ) ;
49
71
if ( ! fs . existsSync ( protocolScript ) ) {
@@ -59,20 +81,20 @@ async function buildProtocol() {
59
81
}
60
82
61
83
async function copyScriptOutputs ( ) {
62
- await copyWithCopyright ( "cancellationToken.js" ) ;
63
- await copyWithCopyright ( "tsc.release.js" , "tsc.js" ) ;
64
- await copyWithCopyright ( "tsserver.js" ) ;
65
- await copyFromBuiltLocal ( "tsserverlibrary.js" ) ; // copyright added by build
66
- await copyFromBuiltLocal ( "typescript.js" ) ; // copyright added by build
67
- await copyFromBuiltLocal ( "typescriptServices.js" ) ; // copyright added by build
68
- await copyWithCopyright ( "typingsInstaller.js" ) ;
69
- await copyWithCopyright ( "watchGuard.js" ) ;
84
+ // TODO(jakebailey): This does not work when unbundled.
85
+ // TODO(jakebailey): Copyright is added by esbuild; maybe we should do it here?
86
+ await copyFromBuiltLocal ( "cancellationToken.js" ) ;
87
+ await copyFromBuiltLocal ( "tsc.js" ) ;
88
+ await copyFromBuiltLocal ( "tsserver.js" ) ;
89
+ await copyFromBuiltLocal ( "tsserverlibrary.js" ) ;
90
+ await copyFromBuiltLocal ( "typescript.js" ) ;
91
+ await copyFromBuiltLocal ( "typingsInstaller.js" ) ;
92
+ await copyFromBuiltLocal ( "watchGuard.js" ) ;
70
93
}
71
94
72
95
async function copyDeclarationOutputs ( ) {
73
- await copyFromBuiltLocal ( "tsserverlibrary.d.ts" ) ; // copyright added by build
74
- await copyFromBuiltLocal ( "typescript.d.ts" ) ; // copyright added by build
75
- await copyFromBuiltLocal ( "typescriptServices.d.ts" ) ; // copyright added by build
96
+ await copyWithCopyright ( "tsserverlibrary.d.ts" ) ;
97
+ await copyWithCopyright ( "typescript.d.ts" ) ;
76
98
}
77
99
78
100
async function writeGitAttributes ( ) {
0 commit comments