@@ -338,7 +338,7 @@ function entrypointBuildTask(options) {
338
338
}
339
339
340
340
341
- const { main : tsc , watch : watchTsc } = entrypointBuildTask ( {
341
+ const { main : tsc , build : buildTsc , watch : watchTsc } = entrypointBuildTask ( {
342
342
name : "tsc" ,
343
343
description : "Builds the command-line compiler" ,
344
344
buildDeps : [ generateDiagnostics ] ,
@@ -428,9 +428,20 @@ export const dtsLssl = task({
428
428
}
429
429
} ) ;
430
430
431
+ export const dtsTsc = task ( {
432
+ name : "dts-tsc" ,
433
+ description : "Bundles tsclibrary.d.ts" ,
434
+ dependencies : [ buildTsc ] ,
435
+ run : async ( ) => {
436
+ if ( needsUpdate ( "./built/local/tsc/tsconfig.tsbuildinfo" , [ "./built/local/tsclibrary.d.ts" , "./built/local/tsclibrary.internal.d.ts" ] ) ) {
437
+ await runDtsBundler ( "./built/local/tsc/_namespaces/ts.d.ts" , "./built/local/tsclibrary.d.ts" ) ;
438
+ }
439
+ }
440
+ } ) ;
441
+
431
442
export const dts = task ( {
432
443
name : "dts" ,
433
- dependencies : [ dtsServices , dtsLssl ] ,
444
+ dependencies : [ dtsServices , dtsLssl , dtsTsc ] ,
434
445
} ) ;
435
446
436
447
@@ -820,6 +831,7 @@ export const produceLKG = task({
820
831
"built/local/tsserver.js" ,
821
832
"built/local/tsserverlibrary.js" ,
822
833
"built/local/tsserverlibrary.d.ts" ,
834
+ "built/local/tsclibrary.d.ts" ,
823
835
"built/local/typescript.js" ,
824
836
"built/local/typescript.d.ts" ,
825
837
"built/local/typingsInstaller.js" ,
0 commit comments