fix double compilation when snapshotting managedPaths

This commit is contained in:
Tobias Koppers 2021-11-19 17:24:10 +01:00
parent 64f2bdb7a9
commit 00109744f7
1 changed files with 6 additions and 2 deletions

View File

@ -2256,7 +2256,9 @@ class FileSystemInfo {
for (const path of managedItems) {
const cache = this._managedItems.get(path);
if (cache !== undefined) {
managedFiles.add(join(this.fs, path, "package.json"));
if (cache !== "missing") {
managedFiles.add(join(this.fs, path, "package.json"));
}
managedItemInfo.set(path, cache);
} else {
jobs++;
@ -2269,7 +2271,9 @@ class FileSystemInfo {
}
jobError();
} else if (entry) {
managedFiles.add(join(this.fs, path, "package.json"));
if (entry !== "missing") {
managedFiles.add(join(this.fs, path, "package.json"));
}
managedItemInfo.set(path, entry);
jobDone();
} else {