Ref: pnpm/pnpm#4475
Note: git-branch-lockfile is the config, not use-git-branch-lockfile 😅
Imagine this scenario:
masterbranch haspkg-athat depends on react 17 & react-dom 17- on
feature-1branch, developer upgradespkg-a's dependencies: react 18 & react-dom 18 this createspnpm-lock.feature-1.yaml feature-1is merged tomasterbranch- on
masterbranch, runpnpm install --merge-git-branch-lockfiles
- Clone this repo
- Run
pnpm install --merge-git-branch-lockfiles
pnpm-lock.feature-1.yamlis deletedpnpm-lock.yamlis updated
pnpm-lock.feature-1.yamlis deletedpnpm-lock.yamlis not updated
- Node 14.19.3 (npm 6.14.17)
- pnpm 7.9.0
- MacOS 11.6.7