root: add npm run all prune command (#513)

This commit is contained in:
Gleb Bahmutov
2017-09-26 16:41:19 -04:00
parent 2b6609299d
commit 93aa274bea
2 changed files with 3 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ const rejectDirsByPackage = (dirs, rejected) => {
const filterDirsByCmd = (dirs, cmd) => {
switch (cmd) {
case 'install': case 'i':
case 'install': case 'i': case 'prune':
return dirs
default:
return dirs.filter((dir) => {
@@ -86,6 +86,7 @@ const mapTasks = (cmd, packages) => {
case 'i':
case 'test':
case 't':
case 'prune':
runCommand = cmd
break
default: