dacioromero / yarn-lock-manipulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yarn Lock Manipulation

Various commands for messing around with Yarn v1 lockfiles.

Commands

merge

Combines lockfiles into one, this could be useful for converting to Yarn workspaces.

yarn-lock-manipulation merge paths to yarn locks

remove-transitive

Naive approach originally posted in a yarn issue for "unlocking" indirect/transitive dependencies. Sometimes transitive dependencies need to be updated but Yarn v1 won't upgrade them with yarn upgrade.

yarn-lock-manipulation remove-transitive path/to/yarn.lock paths to package jsons

pick

Generates a new yarn.lock with only entries releveant to a particular package.json. Potentially useful in CI/Docker where you don't want to install unneeded packages.

yarn-lock-manipulation pick path/to/yarn.lock path/to/package.json

Other works

About

License:MIT License


Languages

Language:JavaScript 100.0%