-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Ability to opt of of using npm ci
#1449
Comments
|
I tried it and it didn't seem to work 🤷♀️ Financial-Times/x-dash@8a18f7e |
Hrm, okay, that wasn’t intended. A CLI flag should always override file- or env-based configuration.
… On Jun 5, 2018, at 03:09, matt brennan ***@***.***> wrote:
I tried it and it didn't seem to work 🤷♀️ ***@***.***
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
did a bit of digging into yargs' parsing and it looks like |
Good catch!
… On Jun 5, 2018, at 09:10, matt brennan ***@***.***> wrote:
did a bit of digging into yargs' parsing and it looks like .config() takes precedence over command line args
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
What is the verdict on this? Can we |
I plan on releasing the next version of lerna 3 sometime this week. |
@evocateur We cannot set the |
Not intentional, no, but the result of a feature I personally haven't used in over a year. I'm not sure why you wouldn't want a faster install during a CI build. You should still be able to pass |
@evocateur We don't check in package-lock.json files and
|
Yeah, that's an unfortunate side-effect from how the options are configured. I should probably move this block into the base command constructor, where the options are merged with the config file... |
`--ci`, `--progress`, and `--loglevel` are now fully-configurable from `lerna.json`, instead of silently ignored. refs #1449
@raymondfeng Next release should fix this for you properly. |
@evocateur Great! We appreciate your prompt response. |
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. |
Expected Behavior
Being able to tell
lerna bootstrap
to explicitly usenpm install
instead ofnpm ci
Current Behavior
Since 3.0.0-beta.15,
lerna bootstrap
usesnpm ci
if it's a version ofnpm
that supports it and you pass the--ci
flag. However, on CI environments the--ci
flag is always true, and there's no way to turn it off without messing around with environment variables, which would have other side effects.Context
Since we're not committing package-lock.json files (our current tooling doesn't play nicely with them at present)
npm ci
errors, and we can't currently uselerna
on CI with[email protected]
.The text was updated successfully, but these errors were encountered: