New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use local lerna if global lerna used as entry point #735
Comments
I'm a little confused why you would need this, if you already have |
Different projects, different lerna versions. Iirc some lerna versions make sure that the running version matches that listed in the lerna.json. peace of mind that the version that is running is always what is declared regardless of what shenanigans I'm doing globally. I've always loved that feature of webpack |
I've found calling lerna from root package.json scripts to be more than sufficient for isolating a particular version. #694 makes the version check only complain about insufficient semver (usually major version mismatch or older lerna attempting to work on "newer" repo). For example, run "name": "my-lerna-monorepo",
"private": true,
"scripts": {
"postinstall": "lerna bootstrap",
"test": "lerna run test"
},
devDependencies: {
"lerna": "^2.0.0-rc.0"
}
} |
yeah same request was made to Babel babel/babel#5091 |
Closing this as a duplicate of #138 |
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. |
hi all,
would you accept a PR that uses the local version of lerna (if found) when the global
lerna
is the cmd entry point?Expected Behavior
lerna
to use locallerna
if it existslerna <cmd>
to work vs./node_modules/.bin/lerna <cmd>
examples:
Current Behavior
no such functionality exists, ref
The text was updated successfully, but these errors were encountered: