@@ -43,7 +43,7 @@ const constEnumCaptureRegexp = /^(\s*)(export )?const enum (\S+) {(\s*)$/gm;
4343const constEnumReplacement = "$1$2enum $3 {$4" ;
4444
4545const cmdLineOptions = minimist ( process . argv . slice ( 2 ) , {
46- boolean : [ "debug" , "inspect" , "light" , "colors" , "lint" , "soft" , "bail" ] ,
46+ boolean : [ "debug" , "inspect" , "light" , "colors" , "lint" , "soft" ] ,
4747 string : [ "browser" , "tests" , "host" , "reporter" , "stackTraceLimit" , "timeout" ] ,
4848 alias : {
4949 "b" : "browser" ,
@@ -67,7 +67,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
6767 runners : process . env . runners || process . env . runner || process . env . ru ,
6868 light : process . env . light === undefined || process . env . light !== "false" ,
6969 reporter : process . env . reporter || process . env . r ,
70- bail : false ,
7170 lint : process . env . lint || true ,
7271 workers : process . env . workerCount || os . cpus ( ) . length ,
7372 }
@@ -577,7 +576,7 @@ gulp.task(specMd, /*help*/ false, [word2mdJs], (done) => {
577576
578577gulp . task ( "generate-spec" , "Generates a Markdown version of the Language Specification" , [ specMd ] ) ;
579578
580- gulp . task ( "clean" , "Cleans the compiler output, declare files, and tests" , [ "clean:private-packages" ] , ( ) => {
579+ gulp . task ( "clean" , "Cleans the compiler output, declare files, and tests" , [ ] , ( ) => {
581580 return del ( [ builtDirectory ] ) ;
582581} ) ;
583582
@@ -603,37 +602,10 @@ gulp.task("LKG", "Makes a new LKG out of the built js files", ["clean", "dontUse
603602 return runSequence ( "LKGInternal" , "VerifyLKG" ) ;
604603} ) ;
605604
606- function compilePrivatePackage ( packageName : string ) {
607- const project = tsc . createProject ( `scripts/${ packageName } /tsconfig.json` , getCompilerSettings ( { } , /*useBuiltCompiler*/ false ) ) ;
608- return project . src ( )
609- . pipe ( sourcemaps . init ( ) )
610- . pipe ( newer ( `scripts/${ packageName } /dist/index.js` ) )
611- . pipe ( project ( ) )
612- . pipe ( sourcemaps . write ( "." , < any > { sourceRoot : "../src" , includeContent : false , destPath : `scripts/${ packageName } /dist` } ) )
613- . pipe ( gulp . dest ( `scripts/${ packageName } /dist` ) ) ;
614- }
615-
616- function cleanPrivatePackage ( packageName : string ) {
617- return del ( [ `scripts/${ packageName } /dist` ] ) ;
618- }
619-
620- gulp . task ( "vfs-core" , ( ) => compilePrivatePackage ( "vfs-core" ) ) ;
621- gulp . task ( "vfs-errors" , ( ) => compilePrivatePackage ( "vfs-errors" ) ) ;
622- gulp . task ( "vfs-path" , [ "vfs-core" , "vfs-errors" ] , ( ) => compilePrivatePackage ( "vfs-path" ) ) ;
623- gulp . task ( "vfs" , [ "vfs-core" , "vfs-errors" , "vfs-path" ] , ( ) => compilePrivatePackage ( "vfs" ) ) ;
624- gulp . task ( "harness-core" , [ "vfs-core" ] , ( ) => compilePrivatePackage ( "harness-core" ) ) ;
625- gulp . task ( "private-packages" , [ "vfs" , "harness-core" ] ) ;
626-
627- gulp . task ( "clean:vfs-core" , ( ) => cleanPrivatePackage ( "vfs-core" ) ) ;
628- gulp . task ( "clean:vfs-errors" , ( ) => cleanPrivatePackage ( "vfs-errors" ) ) ;
629- gulp . task ( "clean:vfs-path" , [ "clean:vfs-core" , "clean:vfs-errors" ] , ( ) => cleanPrivatePackage ( "vfs-path" ) ) ;
630- gulp . task ( "clean:vfs" , [ "clean:vfs-core" , "clean:vfs-errors" , "clean:vfs-path" ] , ( ) => cleanPrivatePackage ( "vfs" ) ) ;
631- gulp . task ( "clean:harness-core" , [ "clean:vfs-core" ] , ( ) => cleanPrivatePackage ( "harness-core" ) ) ;
632- gulp . task ( "clean:private-packages" , [ "clean:vfs" , "clean:harness-core" ] ) ;
633605
634606// Task to build the tests infrastructure using the built compiler
635607const run = path . join ( builtLocalDirectory , "run.js" ) ;
636- gulp . task ( run , /*help*/ false , [ servicesFile , tsserverLibraryFile , "private-packages" ] , ( ) => {
608+ gulp . task ( run , /*help*/ false , [ servicesFile , tsserverLibraryFile ] , ( ) => {
637609 const testProject = tsc . createProject ( "src/harness/tsconfig.json" , getCompilerSettings ( { } , /*useBuiltCompiler*/ true ) ) ;
638610 return testProject . src ( )
639611 . pipe ( newer ( run ) )
@@ -672,7 +644,7 @@ function restoreSavedNodeEnv() {
672644 process . env . NODE_ENV = savedNodeEnv ;
673645}
674646
675- function runConsoleTests ( defaultReporter : string , runInParallel : boolean , done : ( e ?: any ) => void , noExit ?: boolean ) {
647+ function runConsoleTests ( defaultReporter : string , runInParallel : boolean , done : ( e ?: any ) => void ) {
676648 const lintFlag = cmdLineOptions . lint ;
677649 cleanTestDirs ( ( err ) => {
678650 if ( err ) { console . error ( err ) ; failWithStatus ( err , 1 ) ; }
@@ -683,7 +655,6 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
683655 const runners = cmdLineOptions . runners ;
684656 const light = cmdLineOptions . light ;
685657 const stackTraceLimit = cmdLineOptions . stackTraceLimit ;
686- const bail = cmdLineOptions . bail ;
687658 const testConfigFile = "test.config" ;
688659 if ( fs . existsSync ( testConfigFile ) ) {
689660 fs . unlinkSync ( testConfigFile ) ;
@@ -736,9 +707,6 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
736707 else {
737708 args . push ( "-t" , testTimeout ) ;
738709 }
739- if ( bail ) {
740- args . push ( "--bail" ) ;
741- }
742710 args . push ( run ) ;
743711 setNodeEnvToDevelopment ( ) ;
744712 exec ( mocha , args , lintThenFinish , finish ) ;
@@ -752,10 +720,8 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
752720 } ) ;
753721
754722 function failWithStatus ( err ?: any , status ?: number ) {
755- if ( ! noExit ) {
756- if ( err || status ) {
757- process . exit ( typeof status === "number" ? status : 2 ) ;
758- }
723+ if ( err || status ) {
724+ process . exit ( typeof status === "number" ? status : 2 ) ;
759725 }
760726 done ( ) ;
761727 }
@@ -1149,5 +1115,5 @@ gulp.task("lint", "Runs tslint on the compiler sources. Optional arguments are:
11491115gulp . task ( "default" , "Runs 'local'" , [ "local" ] ) ;
11501116
11511117gulp . task ( "watch" , "Watches the src/ directory for changes and executes runtests-parallel." , [ ] , ( ) => {
1152- gulp . watch ( [ "src/**/*.*" ] , [ "runtests-parallel" ] ) ;
1153- } ) ;
1118+ gulp . watch ( "src/**/*.*" , [ "runtests-parallel" ] ) ;
1119+ } ) ;
0 commit comments