Skip to content

Commit fc4d109

Browse files
committed
Fix build breaks with the instrumenter
1 parent 196aba6 commit fc4d109

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Jakefile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ var loggedIOJsPath = builtLocalDirectory + 'loggedIO.js';
10781078
file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function () {
10791079
var temp = builtLocalDirectory + 'temp';
10801080
jake.mkdirP(temp);
1081-
var options = "--types --outdir " + temp + ' ' + loggedIOpath;
1081+
var options = "--target es5 --lib es6 --types --outdir " + temp + ' ' + loggedIOpath;
10821082
var cmd = host + " " + LKGDirectory + compilerFilename + " " + options + " ";
10831083
console.log(cmd + "\n");
10841084
var ex = jake.createExec([cmd]);
@@ -1092,7 +1092,7 @@ file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function () {
10921092

10931093
var instrumenterPath = harnessDirectory + 'instrumenter.ts';
10941094
var instrumenterJsPath = builtLocalDirectory + 'instrumenter.js';
1095-
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true);
1095+
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true, { lib: "es6", types: ["node"] });
10961096

10971097
desc("Builds an instrumented tsc.js");
10981098
task('tsc-instrumented', [loggedIOJsPath, instrumenterJsPath, tscFile], function () {

src/harness/instrumenter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
declare const require: any, process: any;
21
const fs: any = require("fs");
32
const path: any = require("path");
43

0 commit comments

Comments
 (0)