mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-21 22:49:16 -05:00
root: add npm run all prune command (#513)
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user