check-lock-change

0.2.4 • Public • Published

check-lock-change

NPM Version NPM Downloads License

Reminds you to rerun npm ci locally by checking whether the npm lockfile has changed.

  1. Install the package to your project.
npm install -D check-lock-change
  1. Config scripts in package.json. Note that LOCK_FILE can be either package-lock.json, npm-shrinkwrap.json, or yarn.lock.
{
  "scripts": {
    "dev": "check-lock-change [LOCK_FILE] && [OTHER DEV COMMANDS]",
    "prepare": "[OTHER PREPARE COMMANDS] && cp -rf [LOCK_FILE] lockfile.copy"
  }
}
  1. Add lockfile.copy to your .gitignore file.

Readme

Keywords

none

Package Sidebar

Install

npm i check-lock-change

Weekly Downloads

0

Version

0.2.4

License

MIT

Unpacked Size

3.64 kB

Total Files

4

Last publish

Collaborators

  • myst729