Skip to content

Commit

Permalink
Don't prune the repo root when hoisting (#67)
Browse files Browse the repository at this point in the history
Who would put a package at the repo root.  That's madness.

This eliminates a race condition that causes sporadic failure to bootstrap
_this repository specifically_ with hoisting.

Will follow up with a PR to actually enable said hoisting.
  • Loading branch information
gigabo committed Jan 30, 2017
1 parent 4eaf88e commit 3a61c69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/BootstrapCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export default class BootstrapCommand extends Command {
actions.push((cb) => {
async.series(root.map(({name, dependents}) => (cb) => {
async.series(dependents.map(({nodeModulesLocation: dir}) => (cb) => {
if (dir === this.repository.nodeModulesLocation) return cb();
FileSystemUtilities.rimraf(path.join(dir, name), cb);
}), cb);
}), (err) => {
Expand Down

0 comments on commit 3a61c69

Please sign in to comment.