@@ -384,7 +384,7 @@ function prependCopyright(outputCopyright: boolean = !useDebugMode) {
384384}
385385
386386gulp . task ( builtLocalCompiler , /*help*/ false , [ servicesFile ] , ( ) => {
387- const localCompilerProject = tsc . createProject ( "src/compiler/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
387+ const localCompilerProject = tsc . createProject ( "src/compiler/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
388388 return localCompilerProject . src ( )
389389 . pipe ( newer ( builtLocalCompiler ) )
390390 . pipe ( sourcemaps . init ( ) )
@@ -395,14 +395,14 @@ gulp.task(builtLocalCompiler, /*help*/ false, [servicesFile], () => {
395395} ) ;
396396
397397gulp . task ( servicesFile , /*help*/ false , [ "lib" , "generate-diagnostics" ] , ( ) => {
398- const servicesProject = tsc . createProject ( "src/services/tsconfig.json" , getCompilerSettings ( { removeComments : false } , /*useBuiltCompiler*/ false ) ) ;
398+ const servicesProject = tsc . createProject ( "src/services/tsconfig.json" , getCompilerSettings ( { removeComments : false } , /*useBuiltCompiler*/ false ) ) ;
399399 const { js, dts} = servicesProject . src ( )
400400 . pipe ( newer ( servicesFile ) )
401401 . pipe ( sourcemaps . init ( ) )
402402 . pipe ( servicesProject ( ) ) ;
403403 const completedJs = js . pipe ( prependCopyright ( ) )
404404 . pipe ( sourcemaps . write ( "." ) ) ;
405- const completedDts = dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
405+ const completedDts = dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
406406 . pipe ( insert . transform ( ( contents , file ) => {
407407 file . path = standaloneDefinitionsFile ;
408408 return contents . replace ( / ^ ( \s * ) ( e x p o r t ) ? c o n s t e n u m ( \S + ) { ( \s * ) $ / gm, "$1$2enum $3 {$4" ) ;
@@ -429,7 +429,7 @@ gulp.task(servicesFile, /*help*/ false, ["lib", "generate-diagnostics"], () => {
429429// cancellationToken.js
430430const cancellationTokenJs = path . join ( builtLocalDirectory , "cancellationToken.js" ) ;
431431gulp . task ( cancellationTokenJs , /*help*/ false , [ servicesFile ] , ( ) => {
432- const cancellationTokenProject = tsc . createProject ( "src/server/cancellationToken/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
432+ const cancellationTokenProject = tsc . createProject ( "src/server/cancellationToken/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
433433 return cancellationTokenProject . src ( )
434434 . pipe ( newer ( cancellationTokenJs ) )
435435 . pipe ( sourcemaps . init ( ) )
@@ -442,7 +442,7 @@ gulp.task(cancellationTokenJs, /*help*/ false, [servicesFile], () => {
442442// typingsInstallerFile.js
443443const typingsInstallerJs = path . join ( builtLocalDirectory , "typingsInstaller.js" ) ;
444444gulp . task ( typingsInstallerJs , /*help*/ false , [ servicesFile ] , ( ) => {
445- const cancellationTokenProject = tsc . createProject ( "src/server/typingsInstaller/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
445+ const cancellationTokenProject = tsc . createProject ( "src/server/typingsInstaller/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
446446 return cancellationTokenProject . src ( )
447447 . pipe ( newer ( typingsInstallerJs ) )
448448 . pipe ( sourcemaps . init ( ) )
@@ -455,7 +455,7 @@ gulp.task(typingsInstallerJs, /*help*/ false, [servicesFile], () => {
455455const serverFile = path . join ( builtLocalDirectory , "tsserver.js" ) ;
456456
457457gulp . task ( serverFile , /*help*/ false , [ servicesFile , typingsInstallerJs , cancellationTokenJs ] , ( ) => {
458- const serverProject = tsc . createProject ( "src/server/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
458+ const serverProject = tsc . createProject ( "src/server/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
459459 return serverProject . src ( )
460460 . pipe ( newer ( serverFile ) )
461461 . pipe ( sourcemaps . init ( ) )
@@ -479,7 +479,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile], (done) => {
479479 js . pipe ( prependCopyright ( ) )
480480 . pipe ( sourcemaps . write ( "." ) )
481481 . pipe ( gulp . dest ( "src/server" ) ) ,
482- dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
482+ dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
483483 . pipe ( insert . transform ( ( content ) => {
484484 return content + "\r\nexport = ts;\r\nexport as namespace ts;" ;
485485 } ) )
@@ -551,7 +551,7 @@ gulp.task("LKG", "Makes a new LKG out of the built js files", ["clean", "dontUse
551551// Task to build the tests infrastructure using the built compiler
552552const run = path . join ( builtLocalDirectory , "run.js" ) ;
553553gulp . task ( run , /*help*/ false , [ servicesFile ] , ( ) => {
554- const testProject = tsc . createProject ( "src/harness/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
554+ const testProject = tsc . createProject ( "src/harness/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
555555 return testProject . src ( )
556556 . pipe ( newer ( run ) )
557557 . pipe ( sourcemaps . init ( ) )
@@ -757,7 +757,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
757757 browserify ( intoStream ( file . contents ) , { debug : true } )
758758 . bundle ( ( err , res ) => {
759759 // assumes file.contents is a Buffer
760- const maps = JSON . parse ( convertMap . fromSource ( res . toString ( ) , /*largeSource*/ true ) . toJSON ( ) ) ;
760+ const maps = JSON . parse ( convertMap . fromSource ( res . toString ( ) , /*largeSource*/ true ) . toJSON ( ) ) ;
761761 delete maps . sourceRoot ;
762762 maps . sources = maps . sources . map ( s => path . resolve ( s === "_stream_0.js" ? "built/local/_stream_0.js" : s ) ) ;
763763 // Strip browserify's inline comments away (could probably just let sorcery do this, but then we couldn't fix the paths)
@@ -775,7 +775,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
775775 } ) ;
776776 const finalMap = chain . apply ( ) ;
777777 file . sourceMap = finalMap ;
778- next ( undefined , file ) ;
778+ next ( /*err*/ undefined , file ) ;
779779 } ) ;
780780 } ) )
781781 . pipe ( sourcemaps . write ( "." , { includeContent : false } ) )
0 commit comments