@@ -127,7 +127,7 @@ const buildSrc = () => buildProject("src");
127
127
// But, if we are bundling, we are running only d.ts emit, so maybe this is fast?
128
128
task ( "buildSrc" , series ( preSrc , buildSrc ) ) ;
129
129
130
- const apiExtractor = async ( ) => {
130
+ const runApiExtractor = async ( ) => {
131
131
/**
132
132
* @param {string } configPath
133
133
*/
@@ -147,7 +147,9 @@ const apiExtractor = async () => {
147
147
} ;
148
148
149
149
// TODO(jakebailey): Some tests depend on the extracted output.
150
- task ( "api-extractor" , series ( preSrc , buildSrc , apiExtractor ) ) ;
150
+ const apiExtractor = series ( preSrc , buildSrc , runApiExtractor ) ;
151
+ apiExtractor . displayName = "api-extractor" ;
152
+ task ( "api-extractor" , apiExtractor ) ;
151
153
152
154
/** @type {string | undefined } */
153
155
let copyrightHeader ;
@@ -567,27 +569,20 @@ const importDefinitelyTypedTests = () => exec(process.execPath, ["scripts/import
567
569
task ( "importDefinitelyTypedTests" , series ( buildImportDefinitelyTypedTests , importDefinitelyTypedTests ) ) ;
568
570
task ( "importDefinitelyTypedTests" ) . description = "Runs the importDefinitelyTypedTests script to copy DT's tests to the TS-internal RWC tests" ;
569
571
570
- // TODO(jakebailey): There isn't a release build anymore; figure out what to do here.
571
- // Probably just use tsc.js.
572
-
573
- const buildReleaseTsc = ( ) => buildProject ( "src/tsc/tsconfig.release.json" ) ;
574
- const cleanReleaseTsc = ( ) => cleanProject ( "src/tsc/tsconfig.release.json" ) ;
575
- cleanTasks . push ( cleanReleaseTsc ) ;
576
-
577
572
const cleanBuilt = ( ) => del ( "built" ) ;
578
573
579
574
const produceLKG = async ( ) => {
575
+ // TODO(jakebailey): there are probably more files here that are needed.
580
576
const expectedFiles = [
581
- "built/local/tsc.release.js" ,
582
- "built/local/typescriptServices.js" ,
583
- "built/local/typescriptServices.d.ts" ,
577
+ "built/local/tsc.js" ,
584
578
"built/local/tsserver.js" ,
585
579
"built/local/typescript.js" ,
586
580
"built/local/typescript.d.ts" ,
587
581
"built/local/tsserverlibrary.js" ,
588
582
"built/local/tsserverlibrary.d.ts" ,
589
583
"built/local/typingsInstaller.js" ,
590
- "built/local/cancellationToken.js"
584
+ "built/local/cancellationToken.js" ,
585
+ "built/local/watchGuard.js" ,
591
586
] . concat ( libs . map ( lib => lib . target ) ) ;
592
587
const missingFiles = expectedFiles
593
588
. concat ( localizationTargets )
@@ -603,7 +598,8 @@ const produceLKG = async () => {
603
598
}
604
599
} ;
605
600
606
- task ( "LKG" , series ( lkgPreBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildOtherOutputs , buildReleaseTsc ) , produceLKG ) ) ;
601
+ // TODO(jakebailey): dependencies on apiExtractor a
602
+ task ( "LKG" , series ( lkgPreBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildOtherOutputs , apiExtractor ) , produceLKG ) ) ;
607
603
task ( "LKG" ) . description = "Makes a new LKG out of the built js files" ;
608
604
task ( "LKG" ) . flags = {
609
605
" --built" : "Compile using the built version of the compiler." ,
0 commit comments