🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

check-yarn-lock

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-yarn-lock

A check that any commit that stages package.json dependency changes also changes yarn.lock

0.2.1
latest
Source
npm
Version published
Weekly downloads
5.3K
29.3%
Maintainers
1
Weekly downloads
 
Created
Source

Enforce committing yarn.lock when changing dependencies

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.

Usage

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.

FAQs

Package last updated on 15 Aug 2017

Did you know?

Socket

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.

Install

Related posts