Skip to content

Commit c048617

Browse files
committed
make ninja.js not cached in memory by using require
1 parent 5e0b05a commit c048617

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/tasks.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ process.env["BS_VSCODE"] = "1";
55
var fs = require("fs");
66
var path = require("path");
77
var cp = require("child_process");
8+
var child_process = require("child_process");
89
var sourceDirs = [
910
"ext",
1011
"common",
@@ -58,7 +59,9 @@ function buildFinished(code, signal) {
5859
// TODO: check ninja exit error code
5960
if (code === 0) {
6061
// This is not always correct
61-
ninjaFile.updateDev();
62+
// ninjaFile.updateDev();
63+
// This file is cached
64+
child_process.fork(path.join(__dirname, "ninja.js"), ["-dev"]);
6265
}
6366
}
6467
}
@@ -79,7 +82,6 @@ sourceDirs.forEach(x => {
7982
});
8083
rebuild();
8184

82-
var child_process = require("child_process");
8385
var readline = require("readline");
8486
readline
8587
.createInterface({

0 commit comments

Comments
 (0)