Skip to content

Commit fd570a4

Browse files
committed
Bugfix: Do not write manifest, when nothing changed
This leads to a loop of death, because every time the pipeline writes the manifest again, the watcher picks it up. Then, the manifest file is written again. Guess what? The watcher picks that up again...
1 parent f34cf40 commit fd570a4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/build-manifest-writer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ module.exports = manifestConfig => {
1212
let manifest = {};
1313
return results => {
1414
let filteredResults = results.filter(result => result.changed);
15-
manifest = updateManifest(filteredResults, manifest, manifestConfig);
16-
return writeManifest(filteredResults, manifest, manifestConfig);
15+
if(filteredResults.length > 0) {
16+
manifest = updateManifest(filteredResults, manifest, manifestConfig);
17+
return writeManifest(filteredResults, manifest, manifestConfig);
18+
} else {
19+
return [];
20+
}
1721
};
1822
};
1923

0 commit comments

Comments
 (0)