Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yarn-lock-fix

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-lock-fix

Update yarn.lock whenever package.json changes

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Yarn lock fix


Update yarn.lock whenever package.json changes

npm GitHub Workflow Status

🚩 Table of Contents

🚀 Introduction

When you want to lock your deps, you may want to run yarn install with --frozen-lockfile.

This package is used to keep yarn.lock up-to-date and prevent the command above to fail.

The command should run on the pre-commit hook, it will update and stage the yarn.lock file if package.json is staged.

🔧 Installation

There's no need to install yarn-lock-fix, you can use it with npx.

📖 Usage

Yarn-lock-fix is designed to work with npx and husky.

Use husky to the add the command to your pre-commit hook:

yarn husky add .husky/pre-commit "npx yarn-lock-fix"

💬 Contributing

Would like to help make this package better? Please take a look at the contributing guidelines for a detailed explanation on how you can contribute.

❤️ Acknowledgments

I'd like thank my daily coffee!

FAQs

Package last updated on 22 Sep 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc