@@ -92,18 +92,12 @@ const localize = async () => {
92
92
}
93
93
} ;
94
94
95
- const buildShims = ( ) => buildProject ( "src/shims" ) ;
96
- const cleanShims = ( ) => cleanProject ( "src/shims" ) ;
97
- cleanTasks . push ( cleanShims ) ;
98
-
99
95
const buildDebugTools = ( ) => buildProject ( "src/debug" ) ;
100
96
const cleanDebugTools = ( ) => cleanProject ( "src/debug" ) ;
101
97
cleanTasks . push ( cleanDebugTools ) ;
102
98
103
- const buildShimsAndTools = parallel ( buildShims , buildDebugTools ) ;
104
-
105
99
// Pre-build steps when targeting the LKG compiler
106
- const lkgPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildShimsAndTools ) ) ;
100
+ const lkgPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildDebugTools ) ) ;
107
101
108
102
const buildTsc = ( ) => buildProject ( "src/tsc" ) ;
109
103
task ( "tsc" , series ( lkgPreBuild , buildTsc ) ) ;
@@ -119,7 +113,7 @@ task("watch-tsc", series(lkgPreBuild, parallel(watchLib, watchDiagnostics, watch
119
113
task ( "watch-tsc" ) . description = "Watch for changes and rebuild the command-line compiler only." ;
120
114
121
115
// Pre-build steps when targeting the built/local compiler.
122
- const localPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildShimsAndTools , buildTsc ) ) ;
116
+ const localPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildDebugTools , buildTsc ) ) ;
123
117
124
118
// Pre-build steps to use based on supplied options.
125
119
const preBuild = cmdLineOptions . lkg ? lkgPreBuild : localPreBuild ;
@@ -356,15 +350,13 @@ task("run-eslint-rules-tests").description = "Runs the eslint rule tests";
356
350
357
351
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
358
352
const eslint = ( folder ) => async ( ) => {
359
-
360
353
const formatter = cmdLineOptions . ci ? "stylish" : "autolinkable-stylish" ;
361
354
const args = [
362
355
"node_modules/eslint/bin/eslint" ,
363
356
"--cache" ,
364
357
"--cache-location" , `${ folder } /.eslintcache` ,
365
358
"--format" , formatter ,
366
359
"--rulesdir" , "scripts/eslint/built/rules" ,
367
- "--ext" , ".ts" ,
368
360
] ;
369
361
370
362
if ( cmdLineOptions . fix ) {
@@ -377,22 +369,12 @@ const eslint = (folder) => async () => {
377
369
return exec ( process . execPath , args ) ;
378
370
} ;
379
371
380
- const lintScripts = eslint ( "scripts" ) ;
381
- lintScripts . displayName = "lint-scripts" ;
382
- task ( "lint-scripts" , series ( [ buildEslintRules , lintScripts ] ) ) ;
383
- task ( "lint-scripts" ) . description = "Runs eslint on the scripts sources." ;
384
-
385
- const lintCompiler = eslint ( "src" ) ;
386
- lintCompiler . displayName = "lint-compiler" ;
387
- task ( "lint-compiler" , series ( [ buildEslintRules , lintCompiler ] ) ) ;
388
- task ( "lint-compiler" ) . description = "Runs eslint on the compiler sources." ;
389
- task ( "lint-compiler" ) . flags = {
390
- " --ci" : "Runs eslint additional rules" ,
391
- } ;
372
+ const lintRoot = eslint ( "." ) ;
373
+ lintRoot . displayName = "lint" ;
392
374
393
- const lint = series ( [ buildEslintRules , lintScripts , lintCompiler ] ) ;
375
+ const lint = series ( [ buildEslintRules , lintRoot ] ) ;
394
376
lint . displayName = "lint" ;
395
- task ( "lint" , series ( [ buildEslintRules , lint ] ) ) ;
377
+ task ( "lint" , lint ) ;
396
378
task ( "lint" ) . description = "Runs eslint on the compiler and scripts sources." ;
397
379
task ( "lint" ) . flags = {
398
380
" --ci" : "Runs eslint additional rules" ,
0 commit comments