mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Update build for node 6 to allow private package
This commit is contained in:
27
Jakefile.js
27
Jakefile.js
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user