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

This commit is contained in:
Gleb Bahmutov
2017-09-26 16:41:19 -04:00
committed by GitHub
parent d8ddaed65c
commit 7ca2c2e5ab
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -86,6 +86,7 @@ jobs:
## now install all of the sub packages node_modules
- run: npm run all install -- --serial
- run: npm run all prune
# save each node_modules folder per package
- save_cache:
+2 -1
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: