nicojs / node-install-local

Installs npm/yarn packages locally without symlink. Exactly the same as your production installation, no compromises.
106 stars 9 forks source link

Does not recurse? #21

Closed leaanthony closed 5 years ago

leaanthony commented 5 years ago

Thanks for this cool utility!

I have a dependency graph as so: Package A -> Package B -> Package C All packages define their localDependencies. Installing local Package A installs local Package B but Package B pulls Package C from npm.

I confirmed this by logging the npm commands. Is there an easy way to make this work? Thanks.

nicojs commented 5 years ago

Recursive trees is not what it is designed for. You could try the following:

You could solve this by adding a install-local step in the postinstall script for Package B, however then it will ALWAYS do this, also if someone installs Package B from NPM.

leaanthony commented 5 years ago

Thanks for replying @nicojs. Honestly I think pnpm solves a lot of what i want to do. Good luck 👍