Skip to content

Thomasevano/yarn-bump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YARN-BUMP

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.

Installation

On Mas OS, you can install yarn-bump via Homebrew:

brew tap thomasevano/yarn-bump
brew install yarn-bump

With make

make install

Classic method

  1. Clone repository
git clone https://github.com/Thomasevano/yarn-bump.git
  1. Go in directory
cd yarn-bump
  1. Add permission
chmod 777 yarn-bump
  1. Create symlink
ln -sf ${PWD}/yarn-bump /usr/local/bin

Usage

On directory where you have package.json and yarn.lock Run :

yarn-bump

⚠️ If you use Jest put --watchAll=false a the end of test script line in package.json, so it doesn't enter in interactive mode

And wait ⌛ with ☕

Optional arguments

  -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