@@ -23,6 +23,10 @@ else if (process.env.PATH !== undefined) {
23
23
const host = process . env . TYPESCRIPT_HOST || process . env . host || "node" ;
24
24
25
25
const defaultTestTimeout = 40000 ;
26
+ const useBuilt =
27
+ process . env . USE_BUILT === "true" ? true :
28
+ process . env . LKG === "true" ? false :
29
+ false ;
26
30
27
31
let useDebugMode = true ;
28
32
@@ -296,7 +300,7 @@ task(TaskNames.buildFoldEnd, [], function () {
296
300
297
301
desc ( "Compiles tslint rules to js" ) ;
298
302
task ( TaskNames . buildRules , [ ] , function ( ) {
299
- tsbuild ( ConfigFileFor . lint , false , ( ) => complete ( ) ) ;
303
+ tsbuild ( ConfigFileFor . lint , ! useBuilt , ( ) => complete ( ) ) ;
300
304
} , { async : true } ) ;
301
305
302
306
desc ( "Cleans the compiler output, declare files, and tests" ) ;
@@ -368,7 +372,7 @@ file(ConfigFileFor.tsserverLibrary, [], function () {
368
372
// tsserverlibrary.js
369
373
// tsserverlibrary.d.ts
370
374
file ( Paths . tsserverLibraryFile , [ TaskNames . coreBuild , ConfigFileFor . tsserverLibrary ] , function ( ) {
371
- tsbuild ( ConfigFileFor . tsserverLibrary , false , ( ) => {
375
+ tsbuild ( ConfigFileFor . tsserverLibrary , ! useBuilt , ( ) => {
372
376
if ( needsUpdate ( [ Paths . tsserverLibraryOutFile , Paths . tsserverLibraryDefinitionOutFile ] , [ Paths . tsserverLibraryFile , Paths . tsserverLibraryDefinitionFile ] ) ) {
373
377
const copyright = readFileSync ( Paths . copyright ) ;
374
378
@@ -427,7 +431,7 @@ file(ConfigFileFor.typescriptServices, [], function () {
427
431
// typescriptServices.js
428
432
// typescriptServices.d.ts
429
433
file ( Paths . servicesFile , [ TaskNames . coreBuild , ConfigFileFor . typescriptServices ] , function ( ) {
430
- tsbuild ( ConfigFileFor . typescriptServices , false , ( ) => {
434
+ tsbuild ( ConfigFileFor . typescriptServices , ! useBuilt , ( ) => {
431
435
if ( needsUpdate ( [ Paths . servicesOutFile , Paths . servicesDefinitionOutFile ] , [ Paths . servicesFile , Paths . servicesDefinitionFile ] ) ) {
432
436
const copyright = readFileSync ( Paths . copyright ) ;
433
437
0 commit comments