@@ -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,26 @@ async function copyLocalizedDiagnostics() {
29
29
const dir = await fs . readdir ( source ) ;
30
30
const ignoredFolders = [ "enu" ] ;
31
31
32
+ // TODO(jakebailey): Can we emit these files somewhere else so they are more easily skippable?
33
+ ignoredFolders . push (
34
+ "compiler" ,
35
+ "deprecatedCompat" ,
36
+ "executeCommandLine" ,
37
+ "harness" ,
38
+ "jsTyping" ,
39
+ "loggedIO" ,
40
+ "server" ,
41
+ "services" ,
42
+ "testRunner" ,
43
+ "tsc" ,
44
+ "tsserver" ,
45
+ "tsserverlibrary" ,
46
+ "typescript" ,
47
+ "typingsInstaller" ,
48
+ "typingsInstallerCore" ,
49
+ "webServer" ,
50
+ ) ;
51
+
32
52
for ( const d of dir ) {
33
53
const fileName = path . join ( source , d ) ;
34
54
if (
@@ -44,6 +64,7 @@ async function copyTypesMap() {
44
64
await copyFromBuiltLocal ( "typesMap.json" ) ; // Cannot accommodate copyright header
45
65
}
46
66
67
+ // TODO(jakebailey): Remove?
47
68
async function buildProtocol ( ) {
48
69
const protocolScript = path . join ( __dirname , "buildProtocol.js" ) ;
49
70
if ( ! fs . existsSync ( protocolScript ) ) {
@@ -59,20 +80,20 @@ async function buildProtocol() {
59
80
}
60
81
61
82
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" ) ;
83
+ // TODO(jakebailey): This does not work when unbundled.
84
+ // TODO(jakebailey): Copyright is added by esbuild; maybe we should do it here?
85
+ await copyFromBuiltLocal ( "cancellationToken.js" ) ;
86
+ await copyFromBuiltLocal ( "tsc.js" ) ;
87
+ await copyFromBuiltLocal ( "tsserver.js" ) ;
88
+ await copyFromBuiltLocal ( "tsserverlibrary.js" ) ;
89
+ await copyFromBuiltLocal ( "typescript.js" ) ;
90
+ await copyFromBuiltLocal ( "typingsInstaller.js" ) ;
91
+ await copyFromBuiltLocal ( "watchGuard.js" ) ;
70
92
}
71
93
72
94
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
95
+ await copyWithCopyright ( "tsserverlibrary.d.ts" ) ;
96
+ await copyWithCopyright ( "typescript.d.ts" ) ;
76
97
}
77
98
78
99
async function writeGitAttributes ( ) {
0 commit comments