@@ -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 ;
@@ -589,27 +591,20 @@ const importDefinitelyTypedTests = () => exec(process.execPath, ["scripts/import
589
591
task ( "importDefinitelyTypedTests" , series ( buildImportDefinitelyTypedTests , importDefinitelyTypedTests ) ) ;
590
592
task ( "importDefinitelyTypedTests" ) . description = "Runs the importDefinitelyTypedTests script to copy DT's tests to the TS-internal RWC tests" ;
591
593
592
- // TODO(jakebailey): There isn't a release build anymore; figure out what to do here.
593
- // Probably just use tsc.js.
594
-
595
- const buildReleaseTsc = ( ) => buildProject ( "src/tsc/tsconfig.release.json" ) ;
596
- const cleanReleaseTsc = ( ) => cleanProject ( "src/tsc/tsconfig.release.json" ) ;
597
- cleanTasks . push ( cleanReleaseTsc ) ;
598
-
599
594
const cleanBuilt = ( ) => del ( "built" ) ;
600
595
601
596
const produceLKG = async ( ) => {
597
+ // TODO(jakebailey): there are probably more files here that are needed.
602
598
const expectedFiles = [
603
- "built/local/tsc.release.js" ,
604
- "built/local/typescriptServices.js" ,
605
- "built/local/typescriptServices.d.ts" ,
599
+ "built/local/tsc.js" ,
606
600
"built/local/tsserver.js" ,
607
601
"built/local/typescript.js" ,
608
602
"built/local/typescript.d.ts" ,
609
603
"built/local/tsserverlibrary.js" ,
610
604
"built/local/tsserverlibrary.d.ts" ,
611
605
"built/local/typingsInstaller.js" ,
612
- "built/local/cancellationToken.js"
606
+ "built/local/cancellationToken.js" ,
607
+ "built/local/watchGuard.js" ,
613
608
] . concat ( libs . map ( lib => lib . target ) ) ;
614
609
const missingFiles = expectedFiles
615
610
. concat ( localizationTargets )
@@ -625,7 +620,8 @@ const produceLKG = async () => {
625
620
}
626
621
} ;
627
622
628
- task ( "LKG" , series ( lkgPreBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildOtherOutputs , buildReleaseTsc ) , produceLKG ) ) ;
623
+ // TODO(jakebailey): dependencies on apiExtractor a
624
+ task ( "LKG" , series ( lkgPreBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildOtherOutputs , apiExtractor ) , produceLKG ) ) ;
629
625
task ( "LKG" ) . description = "Makes a new LKG out of the built js files" ;
630
626
task ( "LKG" ) . flags = {
631
627
" --built" : "Compile using the built version of the compiler." ,
0 commit comments