This is a fork of npm-bump. I find it very useful so as a yarn user on some project i wanted to have the same tool.
yarn-bump is a Bash Script to bump package version with yarn version 1.
It exists because task of update packages are frequent and boring. This script bump versions of packages that have no tests issues.
With Homebrew
On Mas OS, you can install yarn-bump via Homebrew:
brew tap thomasevano/yarn-bump
brew install yarn-bump
make install
- Clone repository
git clone https://github.com/Thomasevano/yarn-bump.git
- Go in directory
cd yarn-bump
- Add permission
chmod 777 yarn-bump
- Create symlink
ln -sf ${PWD}/yarn-bump /usr/local/bin
On directory where you have package.json
and yarn.lock
Run :
yarn-bump
--watchAll=false
a the end of test script line in package.json
, so it doesn't enter in interactive mode
And wait ⌛ with ☕
-h, --help show this help message and exit
-m, --markdown display updated packages in markdown table
-e, --exclude exclude package name seprated by a comma (e.g -e lodash,mocha)
-nt, --no-test does not run test command when update package
## Features
- Script available globally
- Verify outdated package
- Use `yarn add` instead of `yarn upgrade`
- Try to install latest version of each package
- Run `yarn test` after each `yarn add` to verify exit code
- Create bump commit for each package
- Show updated packages and packages not updated at the end