Repository navigation
Add lerna clean command - #196
Conversation
Removes the `node_modules` directory from all packages. Closes lerna#195.
|
Do you think its necessary to add a confirmation dialog before doing it? |
|
Maybe not. But it is |
|
Added support for $ lerna clean --yes
Lerna v2.0.0-beta.16
All clean!Happy to remove the prompt altogether if you prefer, too. |
|
Why not a script in package.json that uses |
Well everyone ends up doing exactly that, so why not just have it included for them? |
|
Sure, but then maybe it would be better to make this platform-independent with |
| this.packages.forEach(pkg => { | ||
| progressBar.tick(pkg.name); | ||
|
|
||
| ChildProcessUtilities.execSync("rm -rf " + pkg.nodeModulesLocation); |
There was a problem hiding this comment.
FileSystemUtilities.rimraf can be used here.
There was a problem hiding this comment.
🤘 Thanks, didn't see that.
|
Nice work (8470e3d)! |
|
👍 |
This picks up some patches that will help us out: - lerna/lerna#181 - lerna/lerna#196 - lerna/lerna#198 - lerna/lerna#199
* Upgrade lerna-2.0.0-beta.18 This picks up some patches that will help us out: - lerna/lerna#181 - lerna/lerna#196 - lerna/lerna#198 - lerna/lerna#199 * Use `lerna clean` for `npm run nuke`
* Upgrade lerna-2.0.0-beta.18 This picks up some patches that will help us out: - lerna/lerna#181 - lerna/lerna#196 - lerna/lerna#198 - lerna/lerna#199 * Use `lerna clean` for `npm run nuke`
|
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

Removes the
node_modulesdirectory from all packages.Closes #195.
Or would
lerna nukebe better? 👹