Replies: 1 comment
-
I'm using NX and couldn't, for the life of me, figure out how to get their lockfile generation to work for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current lockfile pruning implementation in isolate-package is not great. Depending on the package manager different strategies are used:
Especially the NPM approach feels dodgy. It will only work with one isolation process at a time, and it could interfere with other processes that are reading from the node_modules directory.
The Turbo
prune
method seems fast no matter what package manager. I had a look at the code, but I couldn't figure out how it does the actual pruning. I suspect Turbo constructs a complete tree of dependencies and outputs a lockfile from a manipulated tree structure, but I could not find any code that is responsible for converting a tree to specific lockfile formats.I'm not a Rust programmer (yet) but this could be a good excuse to learn it 😄 Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions