Skip to content

Commit 38f6f80

Browse files
committed
Fix build tasks for iocapture
1 parent 9812ab5 commit 38f6f80

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Gulpfile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ gulp.task(loggedIOJsPath, false, [], (done) => {
890890
const temp = path.join(builtLocalDirectory, "temp");
891891
mkdirP(temp, (err) => {
892892
if (err) { console.error(err); done(err); process.exit(1); };
893-
exec(host, [LKGCompiler, "--outdir", temp, loggedIOpath], () => {
893+
exec(host, [LKGCompiler, "--types --outdir", temp, loggedIOpath], () => {
894894
fs.renameSync(path.join(temp, "/harness/loggedIO.js"), loggedIOJsPath);
895895
del(temp).then(() => done(), done);
896896
}, done);
@@ -911,8 +911,8 @@ gulp.task(instrumenterJsPath, false, [servicesFile], () => {
911911
.pipe(gulp.dest("."));
912912
});
913913

914-
gulp.task("tsc-instrumented", "Builds an instrumented tsc.js", [loggedIOJsPath, instrumenterJsPath, servicesFile], (done) => {
915-
exec(host, [instrumenterJsPath, "record", "iocapture", builtLocalDirectory, compilerFilename], done, done);
914+
gulp.task("tsc-instrumented", "Builds an instrumented tsc.js", ["local", loggedIOJsPath, instrumenterJsPath, servicesFile], (done) => {
915+
exec(host, [instrumenterJsPath, "record", "iocapture", builtLocalCompiler], done, done);
916916
});
917917

918918
gulp.task("update-sublime", "Updates the sublime plugin's tsserver", ["local", serverFile], () => {

Jakefile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ var loggedIOJsPath = builtLocalDirectory + 'loggedIO.js';
10541054
file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function () {
10551055
var temp = builtLocalDirectory + 'temp';
10561056
jake.mkdirP(temp);
1057-
var options = "--outdir " + temp + ' ' + loggedIOpath;
1057+
var options = "--types --outdir " + temp + ' ' + loggedIOpath;
10581058
var cmd = host + " " + LKGDirectory + compilerFilename + " " + options + " ";
10591059
console.log(cmd + "\n");
10601060
var ex = jake.createExec([cmd]);

src/harness/loggedIO.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/// <reference path="..\..\src\compiler\sys.ts" />
22
/// <reference path="..\..\src\harness\harness.ts" />
3+
/// <reference path="..\..\src\harness\harnessLanguageService.ts" />
34
/// <reference path="..\..\src\harness\runnerbase.ts" />
5+
/// <reference path="..\..\src\harness\typeWriter.ts" />
46

57
interface FileInformation {
68
contents: string;

0 commit comments

Comments
 (0)