feat: prune support for lockfiles containing patches (#2151)
* keep additional package.json fields
* add package.json marshalling support
* Add support to prune berry patches
* Fixup prune support for pnpm lockfiles with patches
* Fix empty slice check
* use switch for type checks
* fix bad type assertion