@@ -78,9 +78,9 @@ Paths.library = "src/lib";
7878Paths . srcServer = "src/server" ;
7979Paths . scripts = { } ;
8080Paths . scripts . generateLocalizedDiagnosticMessages = "scripts/generateLocalizedDiagnosticMessages.js" ;
81- Paths . scripts . processDiagnosticMessagesJs = "scripts/processDiagnosticMessages.js" ;
81+ Paths . scripts . processDiagnosticMessages = "scripts/processDiagnosticMessages.js" ;
8282Paths . scripts . produceLKG = "scripts/produceLKG.js" ;
83- Paths . scripts . configurePrereleaseJs = "scripts/configurePrelease .js" ;
83+ Paths . scripts . configurePrerelease = "scripts/configurePrerelease .js" ;
8484Paths . packageJson = "package.json" ;
8585Paths . versionFile = "src/compiler/core.ts" ;
8686
@@ -140,7 +140,7 @@ desc("Builds the library targets");
140140task ( TaskNames . lib , libraryTargets ) ;
141141
142142desc ( "Builds internal scripts" ) ;
143- task ( TaskNames . scripts , [ ] , function ( ) {
143+ task ( TaskNames . scripts , [ TaskNames . coreBuild ] , function ( ) {
144144 tsbuild ( [ ConfigFileFor . scripts ] , false , ( ) => {
145145 complete ( ) ;
146146 } ) ;
@@ -149,7 +149,7 @@ task(TaskNames.scripts, [], function() {
149149// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
150150desc ( "Makes a new LKG out of the built js files" ) ;
151151task ( TaskNames . lkg , [
152- // TaskNames.clean,
152+ TaskNames . clean ,
153153 TaskNames . scripts ,
154154 TaskNames . release ,
155155 TaskNames . local ,
@@ -158,7 +158,6 @@ task(TaskNames.lkg, [
158158 ...libraryTargets
159159] , ( ) => {
160160 const sizeBefore = getDirSize ( Paths . lkg ) ;
161- const localizationTargets = locales . map ( f => path . join ( Paths . builtLocal , f ) ) . concat ( path . dirname ( Paths . locLcg ) ) ;
162161
163162 exec ( `${ host } ${ Paths . scripts . produceLKG } ` , ( ) => {
164163 const sizeAfter = getDirSize ( Paths . lkg ) ;
@@ -213,29 +212,28 @@ task('diff-rwc', function () {
213212} , { async : true } ) ;
214213
215214task ( TaskNames . configureNightly , [ TaskNames . scripts ] , function ( ) {
216- const cmd = `${ host } ${ Paths . scripts . configurePrelease } dev ${ Paths . packageJson } ${ Paths . versionFile } ` ;
215+ const cmd = `${ host } ${ Paths . scripts . configurePrerelease } dev ${ Paths . packageJson } ${ Paths . versionFile } ` ;
217216 exec ( cmd , ( ) => complete ( ) ) ;
218217} , { async : true } ) ;
219218
220219desc ( "Configure, build, test, and publish the nightly release." ) ;
221- task ( TaskNames . publishNightly , [ TaskNames . configureNightly , TaskNames . lkg , TaskNames . clean , "setDebugMode" , "runtests-parallel" ] , function ( ) {
220+ task ( TaskNames . publishNightly , [ TaskNames . configureNightly , TaskNames . lkg , "setDebugMode" , "runtests-parallel" ] , function ( ) {
222221 var cmd = "npm publish --tag next" ;
223222 console . log ( cmd ) ;
224- exec ( cmd ) ;
225- } ) ;
223+ exec ( cmd , ( ) => complete ( ) ) ;
224+ } , { async : true } ) ;
226225
227226task ( TaskNames . configureInsiders , [ TaskNames . scripts ] , function ( ) {
228- const cmd = `${ host } ${ Paths . scripts . configurePrelease } insiders ${ Paths . packageJson } ${ Paths . versionFile } ` ;
227+ const cmd = `${ host } ${ Paths . scripts . configurePrerelease } insiders ${ Paths . packageJson } ${ Paths . versionFile } ` ;
229228 exec ( cmd , ( ) => complete ( ) ) ;
230229} , { async : true } ) ;
231230
232231desc ( "Configure, build, test, and publish the insiders release." ) ;
233- task ( TaskNames . publishInsiders , [ TaskNames . configureInsiders , TaskNames . lkg , TaskNames . clean , "setDebugMode" , "runtests-parallel" ] , function ( ) {
232+ task ( TaskNames . publishInsiders , [ TaskNames . configureInsiders , TaskNames . lkg , "setDebugMode" , "runtests-parallel" ] , function ( ) {
234233 var cmd = "npm publish --tag insiders" ;
235234 console . log ( cmd ) ;
236- exec ( cmd ) ;
237- } ) ;
238-
235+ exec ( cmd , ( ) => complete ( ) ) ;
236+ } , { async : true } ) ;
239237
240238desc ( "Sets the release mode flag" ) ;
241239task ( "release" , function ( ) {
@@ -308,7 +306,7 @@ file(Paths.generatedLCGFile, [TaskNames.scripts, Paths.diagnosticInformationMap,
308306// The generated diagnostics map; built for the compiler and for the 'generate-diagnostics' task
309307file ( Paths . diagnosticInformationMap , [ Paths . diagnosticMessagesJson ] , function ( ) {
310308 tsbuild ( ConfigFileFor . scripts , false , ( ) => {
311- const cmd = `${ host } ${ Paths . scripts . processDiagnosticMessagesJs } ${ Paths . diagnosticMessagesJson } ` ;
309+ const cmd = `${ host } ${ Paths . scripts . processDiagnosticMessages } ${ Paths . diagnosticMessagesJson } ` ;
312310 exec ( cmd , complete ) ;
313311 } ) ;
314312} , { async : true } ) ;
0 commit comments