Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nrigaudiere/yarn-recursive
Recursively run yarn in a folder
https://github.com/nrigaudiere/yarn-recursive
installer recursive yarn
Last synced: 3 months ago
JSON representation
Recursively run yarn in a folder
- Host: GitHub
- URL: https://github.com/nrigaudiere/yarn-recursive
- Owner: nrigaudiere
- License: mit
- Created: 2017-10-09T12:49:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T21:06:55.000Z (11 months ago)
- Last Synced: 2024-09-26T15:09:22.730Z (4 months ago)
- Topics: installer, recursive, yarn
- Language: JavaScript
- Size: 52.7 KB
- Stars: 7
- Watchers: 4
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# yarn-recursive
##### Recursively run yarn in a folder
Takes your tree and checks for package.json in every folder and runs `yarn` in every folder.
### Arguments
You can add arguments when running the command
```
$ yarn-recursive --cmd upgrade
yarn upgrade v1.1.0
success All of your dependencies are up to date.
Done in 0.22s.Current yarn path: YOUR_PATH/yarn-recursive/package.json...
End of yarns```
```
$ yarn-recursive --cmd upgrade --opt
```### Skip root
If you want to skip the root directory of your project, add the `--skipRoot` option:
```
$ yarn-recursive --skipRoot --cmd test
```This is useful if, for example, you want to run yarn-recursive from a script in your root
package.json, which would otherwise cause infinite recursion.