Yarn Plug'n'Play and direnv/packaging

Right, so my PR:

  • reads the v3 package.lock format and gets all the peerDeps, optionals etc
  • changes the cyclic dep calculation so it groups cycles instead of the current snipping cycles (which is incorrect). This could be made to happen only for npm
  • changes the module build so each cycle group is copied together, their deps are symlinked and then the deps’ build scripts are run
  • makes it easy to generate a node_modules with or without devDeps

This way there’s lots of reuse, and devShells are trivial.

I got stuck on Node package-lock v2 by wmertens · Pull Request #246 · nix-community/dream2nix · GitHub

1 Like