Update build for node 6 to allow private package

This commit is contained in:
Ron Buckton
2017-12-20 12:05:54 -08:00
parent 17281d0200
commit fb469e70cb
10 changed files with 1669 additions and 1664 deletions

View File

@@ -779,21 +779,18 @@ task("LKG", ["clean", "release", "local"].concat(libraryTargets), function () {
// Test directory
directory(builtLocalDirectory);
// NOTE: This build task is currently commented out as the approach to including typemock as a private
// package does not seem to work in Node 6. If this issue cannot be resolved, this will be removed.
//// task("typemock", function () {
//// var startCompileTime = mark();
//// execCompiler(/*useBuiltCompiler*/ true, ["-p", "scripts/typemock/tsconfig.json"], function (error) {
//// if (error) {
//// fail("Compilation unsuccessful.");
//// }
//// else {
//// complete();
//// }
//// measure(startCompileTime);
//// });
//// }, { async: true });
task("typemock");
task("typemock", function () {
var startCompileTime = mark();
execCompiler(/*useBuiltCompiler*/ false, ["-p", "scripts/typemock/tsconfig.json"], function (error) {
if (error) {
fail("Compilation unsuccessful.");
}
else {
complete();
}
measure(startCompileTime);
});
}, { async: true });
// Task to build the tests infrastructure using the built compiler
var run = path.join(builtLocalDirectory, "run.js");