
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
check-yarn-lock
Advanced tools
This executable is meant to be executed as a git pre-commit hook for [npm](https://www.npmjs.com/) projects using [yarn](https://yarnpkg.com/en/).
This executable is meant to be executed as a git pre-commit hook for npm projects using yarn.
Whenever changes are made to one of package.json
's dependency
properties, if no change is staged in yarn.lock
as well, this program emits an error message.
To use a commit hook, add an execution check-yarn-lock
to your repository's pre-commit hook.
This can be made easier using husky
.
The current implementation of this module is meant to cover all common cases, but it is not 100% fool-proof as it does not check internal yarn.lock
structure:
package.json
, the check might pass when it should fail.package.json
was changed and did not trigger changes to yarn.lock
(e.g. removing a caret from the latest available version of a dependency), this check might fail when it should pass.
git commit --no-verify
to commit anyway.FAQs
A check that any commit that stages package.json dependency changes also changes yarn.lock
The npm package check-yarn-lock receives a total of 3,496 weekly downloads. As such, check-yarn-lock popularity was classified as popular.
We found that check-yarn-lock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.