safe-version

2.0.3 • Public • Published

safe-version

npm package

Safe version allows you to run the npm version command with out affecting your repo. It will:

  • Check a version was provided
  • Check for local changes that have not been committed
  • Check that the branch is in sync with origin

Then version your project.

Add the script to your npm process or run as a global script.

In your npm config add this script

npm bump: "safe-version"

Then run the following:

npm run bump -- --patch

Global

safe-version patch

/safe-version/

    Package Sidebar

    Install

    npm i safe-version

    Weekly Downloads

    7

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    3.47 kB

    Total Files

    3

    Last publish

    Collaborators

    • chrislaughlin