Description
Is your feature request related to a problem? Please describe.
I'd like to use PNPM rather than NPM for managing packages in Language Forge. I often want to have two copies of the LF source code on my hard disk, one pristine copy of the develop
or master
branch and another one with a branch checked out that I'm currently working on. With NPM, that means two copies of the nearly 300-megabyte node_modules
folder. With PNPM, those copies would be linked and I'd have only one copy of each NPM package, saving me at least 300 megabytes. (And probably more, because any packages that are also used by LexBox or other projects would have only one copy on my hard disk). As the hard disk in my dev machine is a little tight for space, that extra 300 megabytes would help quite a bit.
Describe the solution you'd like
Run pnpm import
to convert package-lock.json
to pnpm-lock.yaml
, then find and fix any problems. (Which are rare, but at least once I've run into a package that assumed that node_modules
had a specific layout, whereas pnpm uses a different layout in node_modules
. 99% of the time it Just Works™.)
Describe alternatives you've considered
Leaving things as-is with the extra space used up by those redundant node_modules
directories.
Additional context
PNPM used to be an obscure package manager, but it's very well-known by now. (See usage graph below. Source: https://npm-compare.com/pnpm/#timeRange=THREE_YEARS accessed 2024-05-10). The Svelte team uses it, as do many others, because reusing NPM packages usually means much faster runs of pnpm install
. (Assuming your CI infrastructure has a PNPM cache set up, which isn't that hard to do if GitHub Actions doesn't have it by default).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status