@@ -53,7 +53,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
53
53
"ru" : "runners" , "runner" : "runners" ,
54
54
"r" : "reporter" ,
55
55
"c" : "colors" , "color" : "colors" ,
56
- "f" : "files" , "file" : "files" ,
57
56
"w" : "workers" ,
58
57
} ,
59
58
default : {
@@ -69,7 +68,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
69
68
light : process . env . light === undefined || process . env . light !== "false" ,
70
69
reporter : process . env . reporter || process . env . r ,
71
70
lint : process . env . lint || true ,
72
- files : process . env . f || process . env . file || process . env . files || "" ,
73
71
workers : process . env . workerCount || os . cpus ( ) . length ,
74
72
}
75
73
} ) ;
@@ -528,7 +526,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile, typesMapJson], (do
528
526
const serverLibraryProject = tsc . createProject ( "src/server/tsconfig.library.json" , getCompilerSettings ( { removeComments : false } , /*useBuiltCompiler*/ true ) ) ;
529
527
const { js, dts} : { js : NodeJS . ReadableStream , dts : NodeJS . ReadableStream } = serverLibraryProject . src ( )
530
528
. pipe ( sourcemaps . init ( ) )
531
- . pipe ( newer ( tsserverLibraryFile ) )
529
+ . pipe ( newer ( < any > { dest : tsserverLibraryFile , extra : [ "src/compiler/**/*.ts" , "src/services/**/*.ts" ] } ) )
532
530
. pipe ( serverLibraryProject ( ) ) ;
533
531
534
532
return merge2 ( [
@@ -1112,13 +1110,11 @@ function spawnLintWorker(files: {path: string}[], callback: (failures: number) =
1112
1110
1113
1111
gulp . task ( "lint" , "Runs tslint on the compiler sources. Optional arguments are: --f[iles]=regex" , [ "build-rules" ] , ( ) => {
1114
1112
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
+ }
1122
1118
if ( fold . isTravis ( ) ) console . log ( fold . end ( "lint" ) ) ;
1123
1119
} ) ;
1124
1120
0 commit comments