@@ -411,7 +411,7 @@ compileFile(buildProtocolJs,
411
411
[ buildProtocolTs ] ,
412
412
[ ] ,
413
413
/*useBuiltCompiler*/ false ,
414
- { noOutFile : true } ) ;
414
+ { noOutFile : true , lib : "es6" } ) ;
415
415
416
416
file ( buildProtocolDts , [ buildProtocolTs , buildProtocolJs , typescriptServicesDts ] , function ( ) {
417
417
@@ -573,16 +573,16 @@ compileFile(
573
573
file ( typescriptServicesDts , [ servicesFile ] ) ;
574
574
575
575
var cancellationTokenFile = path . join ( builtLocalDirectory , "cancellationToken.js" ) ;
576
- compileFile ( cancellationTokenFile , cancellationTokenSources , [ builtLocalDirectory ] . concat ( cancellationTokenSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { outDir : builtLocalDirectory , noOutFile : true } ) ;
576
+ compileFile ( cancellationTokenFile , cancellationTokenSources , [ builtLocalDirectory ] . concat ( cancellationTokenSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] , outDir : builtLocalDirectory , noOutFile : true , lib : "es6" } ) ;
577
577
578
578
var typingsInstallerFile = path . join ( builtLocalDirectory , "typingsInstaller.js" ) ;
579
- compileFile ( typingsInstallerFile , typingsInstallerSources , [ builtLocalDirectory ] . concat ( typingsInstallerSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { outDir : builtLocalDirectory , noOutFile : false } ) ;
579
+ compileFile ( typingsInstallerFile , typingsInstallerSources , [ builtLocalDirectory ] . concat ( typingsInstallerSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] , outDir : builtLocalDirectory , noOutFile : false , lib : "es6,scripthost" } ) ;
580
580
581
581
var watchGuardFile = path . join ( builtLocalDirectory , "watchGuard.js" ) ;
582
- compileFile ( watchGuardFile , watchGuardSources , [ builtLocalDirectory ] . concat ( watchGuardSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { outDir : builtLocalDirectory , noOutFile : false } ) ;
582
+ compileFile ( watchGuardFile , watchGuardSources , [ builtLocalDirectory ] . concat ( watchGuardSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] , outDir : builtLocalDirectory , noOutFile : false , lib : "es6" } ) ;
583
583
584
584
var serverFile = path . join ( builtLocalDirectory , "tsserver.js" ) ;
585
- compileFile ( serverFile , serverSources , [ builtLocalDirectory , copyright , cancellationTokenFile , typingsInstallerFile , watchGuardFile ] . concat ( serverSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] , preserveConstEnums : true } ) ;
585
+ compileFile ( serverFile , serverSources , [ builtLocalDirectory , copyright , cancellationTokenFile , typingsInstallerFile , watchGuardFile ] . concat ( serverSources ) . concat ( servicesSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] , preserveConstEnums : true , lib : "es6,scripthost" } ) ;
586
586
var tsserverLibraryFile = path . join ( builtLocalDirectory , "tsserverlibrary.js" ) ;
587
587
var tsserverLibraryDefinitionFile = path . join ( builtLocalDirectory , "tsserverlibrary.d.ts" ) ;
588
588
compileFile (
@@ -706,7 +706,7 @@ compileFile(
706
706
/*prereqs*/ [ builtLocalDirectory , tscFile ] . concat ( libraryTargets ) . concat ( servicesSources ) . concat ( harnessSources ) ,
707
707
/*prefixes*/ [ ] ,
708
708
/*useBuiltCompiler:*/ true ,
709
- /*opts*/ { inlineSourceMap : true , types : [ "node" , "mocha" , "chai" ] } ) ;
709
+ /*opts*/ { inlineSourceMap : true , types : [ "node" , "mocha" , "chai" ] , lib : "es6,scripthost" } ) ;
710
710
711
711
var internalTests = "internal/" ;
712
712
0 commit comments