0x80 / isolate-package

Isolate a monorepo package with its internal dependencies to form a self-contained directory with a pruned lockfile
MIT License
121 stars 13 forks source link

Remove excess packages from the list in pnpm lockfile #63

Closed 0x80 closed 6 months ago

0x80 commented 6 months ago

The list of packages from the root lockfile remains untouched. This does not have have an effect on the number of installed dependencies, but for large projects this can be quite a bit of unnecessary data.

We could run pnpm dedupe to slim it down, or find another way to remove the unwanted packages from the list.

If choosing dedupe it would probably be wise to make it a configurable option, as dedupe does more than just removing the excess packages from the list.

See mono-ts#9