Modifies the jakefile to use the LKG by default unless USE_BUILT=true is set
This commit is contained in:
parent
33af4ea250
commit
056028b4c6
10
Jakefile.js
10
Jakefile.js
|
@ -23,6 +23,10 @@ else if (process.env.PATH !== undefined) {
|
|||
const host = process.env.TYPESCRIPT_HOST || process.env.host || "node";
|
||||
|
||||
const defaultTestTimeout = 40000;
|
||||
const useBuilt =
|
||||
process.env.USE_BUILT === "true" ? true :
|
||||
process.env.LKG === "true" ? false :
|
||||
false;
|
||||
|
||||
let useDebugMode = true;
|
||||
|
||||
|
@ -296,7 +300,7 @@ task(TaskNames.buildFoldEnd, [], function () {
|
|||
|
||||
desc("Compiles tslint rules to js");
|
||||
task(TaskNames.buildRules, [], function () {
|
||||
tsbuild(ConfigFileFor.lint, false, () => complete());
|
||||
tsbuild(ConfigFileFor.lint, !useBuilt, () => complete());
|
||||
}, { async: true });
|
||||
|
||||
desc("Cleans the compiler output, declare files, and tests");
|
||||
|
@ -368,7 +372,7 @@ file(ConfigFileFor.tsserverLibrary, [], function () {
|
|||
// tsserverlibrary.js
|
||||
// tsserverlibrary.d.ts
|
||||
file(Paths.tsserverLibraryFile, [TaskNames.coreBuild, ConfigFileFor.tsserverLibrary], function() {
|
||||
tsbuild(ConfigFileFor.tsserverLibrary, false, () => {
|
||||
tsbuild(ConfigFileFor.tsserverLibrary, !useBuilt, () => {
|
||||
if (needsUpdate([Paths.tsserverLibraryOutFile, Paths.tsserverLibraryDefinitionOutFile], [Paths.tsserverLibraryFile, Paths.tsserverLibraryDefinitionFile])) {
|
||||
const copyright = readFileSync(Paths.copyright);
|
||||
|
||||
|
@ -427,7 +431,7 @@ file(ConfigFileFor.typescriptServices, [], function () {
|
|||
// typescriptServices.js
|
||||
// typescriptServices.d.ts
|
||||
file(Paths.servicesFile, [TaskNames.coreBuild, ConfigFileFor.typescriptServices], function() {
|
||||
tsbuild(ConfigFileFor.typescriptServices, false, () => {
|
||||
tsbuild(ConfigFileFor.typescriptServices, !useBuilt, () => {
|
||||
if (needsUpdate([Paths.servicesOutFile, Paths.servicesDefinitionOutFile], [Paths.servicesFile, Paths.servicesDefinitionFile])) {
|
||||
const copyright = readFileSync(Paths.copyright);
|
||||
|
||||
|
|
Loading…
Reference in a new issue