Skip to content

Commit 63ecb15

Browse files
committed
feat: reset upto 3 levels deep for Unix-like systems
1 parent 9df2294 commit 63ecb15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.suite-cli/cli/scripts/scripts.module.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -726,10 +726,10 @@ const resetRepo = ({ targetDir }) => {
726726
} else {
727727
// Unix-like commands
728728
commands = [
729-
`find ${targetDir} -type d -name 'node_modules' -exec rm -rf {} +`,
730-
`find ${targetDir} -type f -name 'package-lock.json' -delete`,
731-
`find ${targetDir} -type f -name 'yarn.lock' -delete`,
732-
`find ${targetDir} -type d -name 'yarn-*' -exec rm -rf {} +`
729+
`find ${targetDir} -maxdepth 3 -type d -name 'node_modules' -exec rm -rf {} +`,
730+
`find ${targetDir} -maxdepth 3 -type f -name 'package-lock.json' -delete`,
731+
`find ${targetDir} -maxdepth 3 -type f -name 'yarn.lock' -delete`,
732+
`find ${targetDir} -maxdepth 3 -type d -name 'yarn-*' -exec rm -rf {} +`
733733
];
734734
}
735735

0 commit comments

Comments
 (0)