From 9c0d37ce4cdf3d2e244fac6d0c56b06c61e7abda Mon Sep 17 00:00:00 2001 From: Patrick Fisher Date: Tue, 18 Oct 2016 16:29:06 -0700 Subject: [PATCH] Write package.json when unchanged but file was deleted. Fixes #247 --- lib/broccoli/fastboot-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/broccoli/fastboot-config.js b/lib/broccoli/fastboot-config.js index e42055a08..3555edd75 100644 --- a/lib/broccoli/fastboot-config.js +++ b/lib/broccoli/fastboot-config.js @@ -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 }