Comparing version 1.5.0 to 1.5.1
@@ -125,2 +125,3 @@ 'use strict'; | ||
var dependentFiles = []; | ||
var newLastBuildVersion = new Map(); | ||
for (var _i = 0, _a = host.getScriptFileNames(); _i < _a.length; _i++) { | ||
@@ -136,2 +137,3 @@ var fileName = _a[_i]; | ||
var semanticCheckInfo = new Map(); | ||
var seenAsDependentFile = new Set(); | ||
function workOnNext() { | ||
@@ -142,2 +144,4 @@ var promise; | ||
if (token.isCancellationRequested()) { | ||
_log('[CANCEL]', '>>This compile run was cancelled<<'); | ||
newLastBuildVersion.clear(); | ||
resolve(); | ||
@@ -154,4 +158,4 @@ return; | ||
} | ||
// remeber when this was build | ||
lastBuildVersion[fileName] = host.getScriptVersion(fileName); | ||
// remember when this was build | ||
newLastBuildVersion.set(fileName, host.getScriptVersion(fileName)); | ||
// remeber the signature | ||
@@ -211,11 +215,17 @@ if (value.signature && lastDtsHash[fileName] !== value.signature) { | ||
fileName = dependentFiles.pop(); | ||
var value = semanticCheckInfo.get(fileName); | ||
if (value === 0) { | ||
// already validated successfully -> look at dependents next | ||
host.collectDependents(fileName, dependentFiles); | ||
while (fileName && seenAsDependentFile.has(fileName)) { | ||
fileName = dependentFiles.pop(); | ||
} | ||
else if (typeof value === 'undefined') { | ||
// first validate -> look at dependents next | ||
dependentFiles.push(fileName); | ||
toBeCheckedSemantically.push(fileName); | ||
if (fileName) { | ||
seenAsDependentFile.add(fileName); | ||
var value = semanticCheckInfo.get(fileName); | ||
if (value === 0) { | ||
// already validated successfully -> look at dependents next | ||
host.collectDependents(fileName, dependentFiles); | ||
} | ||
else if (typeof value === 'undefined') { | ||
// first validate -> look at dependents next | ||
dependentFiles.push(fileName); | ||
toBeCheckedSemantically.push(fileName); | ||
} | ||
} | ||
@@ -239,2 +249,6 @@ } | ||
}).then(function () { | ||
// store the build versions to not rebuilt the next time | ||
newLastBuildVersion.forEach(function (value, key) { | ||
lastBuildVersion[key] = value; | ||
}); | ||
// print old errors and keep them | ||
@@ -241,0 +255,0 @@ utils.collections.forEach(oldErrors, function (entry) { |
{ | ||
"name": "gulp-tsb", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"author": "Johannes Rieken <johannes.rieken@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "A gulp plugin for very fast TypeScript compilation.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4005485
77370