Skip to content

Commit

Permalink
Fix stale project
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Sep 25, 2022
1 parent fb4583c commit 005db39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/models/blueprint.js
Expand Up @@ -1331,7 +1331,11 @@ let Blueprint = CoreObject.extend({
// things happen.
this.project.packageInfoCache._clear();
const Project = require('../../lib/models/project');
this.project = Project.closestSync(this.project.root, this.project.ui, this.project.cli);
this.project = taskOptions.blueprintOptions.project = Project.closestSync(
this.project.root,
this.project.ui,
this.project.cli
);
}

return this.taskFor('addon-install').run(taskOptions);
Expand Down

0 comments on commit 005db39

Please sign in to comment.