@@ -935,7 +935,7 @@ gulp.task(loggedIOJsPath, /*help*/ false, [], (done) => {
935
935
const temp = path . join ( builtLocalDirectory , "temp" ) ;
936
936
mkdirP ( temp , ( err ) => {
937
937
if ( err ) { console . error ( err ) ; done ( err ) ; process . exit ( 1 ) ; }
938
- exec ( host , [ LKGCompiler , "--types --outdir" , temp , loggedIOpath ] , ( ) => {
938
+ exec ( host , [ LKGCompiler , "--types" , "--target es5" , "--lib es5" , " --outdir", temp , loggedIOpath ] , ( ) => {
939
939
fs . renameSync ( path . join ( temp , "/harness/loggedIO.js" ) , loggedIOJsPath ) ;
940
940
del ( temp ) . then ( ( ) => done ( ) , done ) ;
941
941
} , done ) ;
@@ -946,7 +946,13 @@ const instrumenterPath = path.join(harnessDirectory, "instrumenter.ts");
946
946
const instrumenterJsPath = path . join ( builtLocalDirectory , "instrumenter.js" ) ;
947
947
gulp . task ( instrumenterJsPath , /*help*/ false , [ servicesFile ] , ( ) => {
948
948
const settings : tsc . Settings = getCompilerSettings ( {
949
- outFile : instrumenterJsPath
949
+ outFile : instrumenterJsPath ,
950
+ target : "es5" ,
951
+ lib : [
952
+ "es6" ,
953
+ "dom" ,
954
+ "scripthost"
955
+ ]
950
956
} , /*useBuiltCompiler*/ true ) ;
951
957
return gulp . src ( instrumenterPath )
952
958
. pipe ( newer ( instrumenterJsPath ) )
0 commit comments