Skip to content

Commit

Permalink
Merge pull request #282 from pwfisher/missing-package-json
Browse files Browse the repository at this point in the history
Write package.json when unchanged but file was deleted. Fixes #247
  • Loading branch information
danmcclain committed Oct 19, 2016
2 parents c56a4aa + 9c0d37c commit 85dce69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/broccoli/fastboot-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ FastBootConfig.prototype.writeFileIfContentChanged = function(outputPath, conten
var previous = this._fileToChecksumMap[outputPath];
var next = md5Hex(content);

if (previous !== next) {
if (previous !== next || !fs.existsSync(outputPath)) {
fs.writeFileSync(outputPath, content);
this._fileToChecksumMap[outputPath] = next; // update map
}
Expand Down

0 comments on commit 85dce69

Please sign in to comment.