@@ -384,7 +384,7 @@ function prependCopyright(outputCopyright: boolean = !useDebugMode) {
384
384
}
385
385
386
386
gulp . 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 ) ) ;
388
388
return localCompilerProject . src ( )
389
389
. pipe ( newer ( builtLocalCompiler ) )
390
390
. pipe ( sourcemaps . init ( ) )
@@ -395,14 +395,14 @@ gulp.task(builtLocalCompiler, /*help*/ false, [servicesFile], () => {
395
395
} ) ;
396
396
397
397
gulp . 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 ) ) ;
399
399
const { js, dts} = servicesProject . src ( )
400
400
. pipe ( newer ( servicesFile ) )
401
401
. pipe ( sourcemaps . init ( ) )
402
402
. pipe ( servicesProject ( ) ) ;
403
403
const completedJs = js . pipe ( prependCopyright ( ) )
404
404
. pipe ( sourcemaps . write ( "." ) ) ;
405
- const completedDts = dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
405
+ const completedDts = dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
406
406
. pipe ( insert . transform ( ( contents , file ) => {
407
407
file . path = standaloneDefinitionsFile ;
408
408
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"], () => {
429
429
// cancellationToken.js
430
430
const cancellationTokenJs = path . join ( builtLocalDirectory , "cancellationToken.js" ) ;
431
431
gulp . 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 ) ) ;
433
433
return cancellationTokenProject . src ( )
434
434
. pipe ( newer ( cancellationTokenJs ) )
435
435
. pipe ( sourcemaps . init ( ) )
@@ -442,7 +442,7 @@ gulp.task(cancellationTokenJs, /*help*/ false, [servicesFile], () => {
442
442
// typingsInstallerFile.js
443
443
const typingsInstallerJs = path . join ( builtLocalDirectory , "typingsInstaller.js" ) ;
444
444
gulp . 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 ) ) ;
446
446
return cancellationTokenProject . src ( )
447
447
. pipe ( newer ( typingsInstallerJs ) )
448
448
. pipe ( sourcemaps . init ( ) )
@@ -455,7 +455,7 @@ gulp.task(typingsInstallerJs, /*help*/ false, [servicesFile], () => {
455
455
const serverFile = path . join ( builtLocalDirectory , "tsserver.js" ) ;
456
456
457
457
gulp . 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 ) ) ;
459
459
return serverProject . src ( )
460
460
. pipe ( newer ( serverFile ) )
461
461
. pipe ( sourcemaps . init ( ) )
@@ -479,7 +479,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile], (done) => {
479
479
js . pipe ( prependCopyright ( ) )
480
480
. pipe ( sourcemaps . write ( "." ) )
481
481
. pipe ( gulp . dest ( "src/server" ) ) ,
482
- dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
482
+ dts . pipe ( prependCopyright ( /*outputCopyright*/ true ) )
483
483
. pipe ( insert . transform ( ( content ) => {
484
484
return content + "\r\nexport = ts;\r\nexport as namespace ts;" ;
485
485
} ) )
@@ -551,7 +551,7 @@ gulp.task("LKG", "Makes a new LKG out of the built js files", ["clean", "dontUse
551
551
// Task to build the tests infrastructure using the built compiler
552
552
const run = path . join ( builtLocalDirectory , "run.js" ) ;
553
553
gulp . 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 ) ) ;
555
555
return testProject . src ( )
556
556
. pipe ( newer ( run ) )
557
557
. pipe ( sourcemaps . init ( ) )
@@ -757,7 +757,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
757
757
browserify ( intoStream ( file . contents ) , { debug : true } )
758
758
. bundle ( ( err , res ) => {
759
759
// 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 ( ) ) ;
761
761
delete maps . sourceRoot ;
762
762
maps . sources = maps . sources . map ( s => path . resolve ( s === "_stream_0.js" ? "built/local/_stream_0.js" : s ) ) ;
763
763
// Strip browserify's inline comments away (could probably just let sorcery do this, but then we couldn't fix the paths)
0 commit comments