Skip to content

Commit

Permalink
Auto merge of #6911 - clekstro:fix-dirty-git-state, r=Turbo87
Browse files Browse the repository at this point in the history
Fix dirty git state

This fixes #6909. Inside of the `afterInstall` hook, we were using the async methods of fs-extra (`.remove()`) but not actually waiting for them to resolve. Instead, we use the sync variant to resolve the issue, as this ensures the file has been removed before we proceed.
  • Loading branch information
homu committed Mar 28, 2017
2 parents 84401eb + 2ac2ce0 commit 3cd7674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueprints/addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {
let bowerPath = path.join(this.path, 'files', 'bower.json');

[packagePath, bowerPath].forEach(filePath => {
fs.remove(filePath);
fs.removeSync(filePath);
});
},

Expand Down

0 comments on commit 3cd7674

Please sign in to comment.