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" ] } }