package-lock-version
v1.0.3
Published
Check and assert the package-lock.json version
Downloads
4
Maintainers
Readme
package-lock-version
Simple package to help enforce a lock file version on your CI pipeline.
When multiple devs work on a project, they may have different versions of node or npm which means the package-lock version can change between devs. This enforces a version, ensuring devs on the wrong version of npm for your project have to change to the correct version.
Usage
Via npx:
npx package-lock-version --lock=2
Or install locally:
npm i --save-dev package-lock-version
package-lock-version --lock=2
The --lock
argument is required, it defines which package-lock version to restrict to. It will check the package-lock in the current working directory.