@@ -53,7 +53,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
5353 "ru" : "runners" , "runner" : "runners" ,
5454 "r" : "reporter" ,
5555 "c" : "colors" , "color" : "colors" ,
56- "f" : "files" , "file" : "files" ,
5756 "w" : "workers" ,
5857 } ,
5958 default : {
@@ -69,7 +68,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
6968 light : process . env . light === undefined || process . env . light !== "false" ,
7069 reporter : process . env . reporter || process . env . r ,
7170 lint : process . env . lint || true ,
72- files : process . env . f || process . env . file || process . env . files || "" ,
7371 workers : process . env . workerCount || os . cpus ( ) . length ,
7472 }
7573} ) ;
@@ -528,7 +526,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile, typesMapJson], (do
528526 const serverLibraryProject = tsc . createProject ( "src/server/tsconfig.library.json" , getCompilerSettings ( { removeComments : false } , /*useBuiltCompiler*/ true ) ) ;
529527 const { js, dts} : { js : NodeJS . ReadableStream , dts : NodeJS . ReadableStream } = serverLibraryProject . src ( )
530528 . pipe ( sourcemaps . init ( ) )
531- . pipe ( newer ( tsserverLibraryFile ) )
529+ . pipe ( newer ( < any > { dest : tsserverLibraryFile , extra : [ "src/compiler/**/*.ts" , "src/services/**/*.ts" ] } ) )
532530 . pipe ( serverLibraryProject ( ) ) ;
533531
534532 return merge2 ( [
@@ -1112,13 +1110,11 @@ function spawnLintWorker(files: {path: string}[], callback: (failures: number) =
11121110
11131111gulp . task ( "lint" , "Runs tslint on the compiler sources. Optional arguments are: --f[iles]=regex" , [ "build-rules" ] , ( ) => {
11141112 if ( fold . isTravis ( ) ) console . log ( fold . start ( "lint" ) ) ;
1115- const fileMatcher = cmdLineOptions . files ;
1116- const files = fileMatcher
1117- ? `src/**/${ fileMatcher } `
1118- : "Gulpfile.ts 'scripts/generateLocalizedDiagnosticMessages.ts' 'scripts/tslint/**/*.ts' 'src/**/*.ts' --exclude 'src/lib/*.d.ts'" ;
1119- const cmd = `node node_modules/tslint/bin/tslint ${ files } --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish` ;
1120- console . log ( "Linting: " + cmd ) ;
1121- child_process . execSync ( cmd , { stdio : [ 0 , 1 , 2 ] } ) ;
1113+ for ( const project of [ "scripts/tslint/tsconfig.json" , "src/tsconfig-base.json" ] ) {
1114+ const cmd = `node node_modules/tslint/bin/tslint --project ${ project } --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish` ;
1115+ console . log ( "Linting: " + cmd ) ;
1116+ child_process . execSync ( cmd , { stdio : [ 0 , 1 , 2 ] } ) ;
1117+ }
11221118 if ( fold . isTravis ( ) ) console . log ( fold . end ( "lint" ) ) ;
11231119} ) ;
11241120
0 commit comments