Comparing version 4.0.1 to 4.0.2
@@ -319,2 +319,4 @@ 'use strict'; | ||
this._snapshots = Object.create(null); | ||
this._filesInProject = new Set(_cmdLine.fileNames); | ||
this._filesAdded = new Set(); | ||
this._dependencies = new utils.graph.Graph(s => s); | ||
@@ -341,4 +343,3 @@ this._dependenciesRecomputeList = []; | ||
getScriptFileNames() { | ||
const set = new Set(this._cmdLine.fileNames); | ||
const res = Object.keys(this._snapshots).filter(path => set.has(path)); | ||
const res = Object.keys(this._snapshots).filter(path => this._filesInProject.has(path) || this._filesAdded.has(path)); | ||
return res; | ||
@@ -372,3 +373,8 @@ } | ||
filename = normalize(filename); | ||
var old = this._snapshots[filename]; | ||
const old = this._snapshots[filename]; | ||
if (!old && !this._filesInProject.has(filename) && !filename.endsWith('.d.ts')) { | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// not very proper! | ||
this._filesAdded.add(filename); | ||
} | ||
if (!old || old.getVersion() !== snapshot.getVersion()) { | ||
@@ -375,0 +381,0 @@ this._dependenciesRecomputeList.push(filename); |
@@ -319,2 +319,4 @@ 'use strict'; | ||
this._snapshots = Object.create(null); | ||
this._filesInProject = new Set(_cmdLine.fileNames); | ||
this._filesAdded = new Set(); | ||
this._dependencies = new utils.graph.Graph(s => s); | ||
@@ -341,4 +343,3 @@ this._dependenciesRecomputeList = []; | ||
getScriptFileNames() { | ||
const set = new Set(this._cmdLine.fileNames); | ||
const res = Object.keys(this._snapshots).filter(path => set.has(path)); | ||
const res = Object.keys(this._snapshots).filter(path => this._filesInProject.has(path) || this._filesAdded.has(path)); | ||
return res; | ||
@@ -372,3 +373,8 @@ } | ||
filename = normalize(filename); | ||
var old = this._snapshots[filename]; | ||
const old = this._snapshots[filename]; | ||
if (!old && !this._filesInProject.has(filename) && !filename.endsWith('.d.ts')) { | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// not very proper! | ||
this._filesAdded.add(filename); | ||
} | ||
if (!old || old.getVersion() !== snapshot.getVersion()) { | ||
@@ -375,0 +381,0 @@ this._dependenciesRecomputeList.push(filename); |
@@ -319,2 +319,4 @@ 'use strict'; | ||
this._snapshots = Object.create(null); | ||
this._filesInProject = new Set(_cmdLine.fileNames); | ||
this._filesAdded = new Set(); | ||
this._dependencies = new utils.graph.Graph(s => s); | ||
@@ -341,4 +343,3 @@ this._dependenciesRecomputeList = []; | ||
getScriptFileNames() { | ||
const set = new Set(this._cmdLine.fileNames); | ||
const res = Object.keys(this._snapshots).filter(path => set.has(path)); | ||
const res = Object.keys(this._snapshots).filter(path => this._filesInProject.has(path) || this._filesAdded.has(path)); | ||
return res; | ||
@@ -372,3 +373,8 @@ } | ||
filename = normalize(filename); | ||
var old = this._snapshots[filename]; | ||
const old = this._snapshots[filename]; | ||
if (!old && !this._filesInProject.has(filename) && !filename.endsWith('.d.ts')) { | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// not very proper! | ||
this._filesAdded.add(filename); | ||
} | ||
if (!old || old.getVersion() !== snapshot.getVersion()) { | ||
@@ -375,0 +381,0 @@ this._dependenciesRecomputeList.push(filename); |
{ | ||
"name": "gulp-tsb", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"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
100559
2403