You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@thomasklein i believe this is working as intended. however, if all dependencies are hoisted, that's a different story. can you post your dependencies for each of those packages, and what kind of bootstrap you are running?
@thomasklein i think what you're experiencing is the correct behavior. the original issue filed had to do with package binaries (not dependency binaries) being symlink'd. since each of your packages can operate independent of each other, they should all declare eslint as a dependency, if they rely on it.
E.g. esparseis only a transitive dependency but nevertheless I have now it's executable available.
In that sense my example is similar, where eslintis a transitive dependency and it's exported bin should therefore also be available in the node_module/.bin folder.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Activity
rygine commentedon Jul 12, 2016
@tjbenton this is fixed via PR #192
jamiebuilds commentedon Jul 13, 2016
There's a bunch of issues about linking already, closing this
thomasklein commentedon Jan 6, 2017
Hi guys! First of all, thanks for lerna!
@rygine I'm using node 6.6.0, npm 3.10.3 and lerna 2.0.0-beta.31 and the issue is happening to me when another level of nesting is added.
My setup:
In
package-2nonode_modules/.bindirectory is created and thereforeeslintis not found. I only getpackage-1symlinked inpackage-2/node_modules.Why do I even have this setup?
package-1should group dependencies - kinda preset style.rygine commentedon Jan 6, 2017
@thomasklein i believe this is working as intended. however, if all dependencies are hoisted, that's a different story. can you post your dependencies for each of those packages, and what kind of bootstrap you are running?
thomasklein commentedon Jan 7, 2017
Sure! I forgot to mention that in my case the packages are scoped; although my understanding is that it shouldn't make a difference...
(basically what I had posted before)
From within
rootI run./node/modules/.bin/lerna bootstrap.Meanwhile I wrote myself shell scripts that create the symlinks to the "binary" executables on
scripts.postinstall.System: Mac
node: 6.6.0
npm: 3.10.3
rygine commentedon Jan 9, 2017
@thomasklein i think what you're experiencing is the correct behavior. the original issue filed had to do with package binaries (not dependency binaries) being symlink'd. since each of your packages can operate independent of each other, they should all declare
eslintas a dependency, if they rely on it.does that make sense?
thomasklein commentedon Jan 10, 2017
Hi Ry! Thanks for taking your time on this, much appreciated!
A pity that the npm docs are not really verbose about it...
Setup for a package.json
Now if you run
npm install && ls node_modules/.binyou should getE.g.
esparseis only a transitive dependency but nevertheless I have now it's executable available.In that sense my example is similar, where
eslintis a transitive dependency and it's exported bin should therefore also be available in the node_module/.bin folder.lock commentedon Dec 28, 2018
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.