Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yarn-update-lock

update yarn.lock and deduplicate

readme

yarn-update-lock

update yarn.lock and deduplicate

Install

yarn add --dev yarn-update-lock

What does this do ?

  • runs yarn install --prefer-offline
  • runs yarn deduplicate
  • runs again yarn install --prefer-offline

Usage

package.json

{
  "lint-staged": {
    "yarn.lock": [
      "yarn-update-lock",
      "git add"
    ]
  }
}

changelog

1.0.0 (2019-05-02)