This gist contains a setup script because GitHub Gist does not preserve multiple files with the same basename such as package.json in different directories.
bash repro.sh
cd turbo-prune-bun-reprobun install
bun x turbo prune @repro/backend --docker --out-dir=out
cd out/json
bun install --frozen-lockfile --ignore-scriptsExpected:
bun install --frozen-lockfilesucceeds inout/json
Actual:
- Bun fails with
error: lockfile had changes, but lockfile is frozen
The pruned out/json/bun.lock keeps newer top-level entries from the removed frontend graph, including:
@reown/appkit-common@1.8.19@reown/appkit-controllers@1.8.19@reown/appkit-ui@1.8.19@reown/appkit-utils@1.8.19@reown/appkit-wallet@1.8.19@walletconnect/universal-provider@2.23.7
But the surviving backend graph in the same pruned lockfile still points to:
@reown/appkit@1.7.8@walletconnect/ethereum-provider@2.21.1- nested
@walletconnect/universal-provider@2.21.0