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
Can no longer use lerna publish, fails with error #2315
Comments
This is definitely a bug, thanks for the report. I believe I have a workaround. |
Also, note that arguments after |
@evocateur thanks! btw, where can I find documentation on the subprocess executions? (passing args after |
https://github.com/lerna/lerna/tree/master/commands/exec#usage and https://github.com/lerna/lerna/tree/master/commands/run#usage are the places that document when/if a |
I ran into this error due to an empty string at the end of the publish command:
The above publish command was generated inside a bash function that sometimes took a parameter: lerna_publish_to () {
lerna publish --yes --npm-tag latest --repo-version 1.0.0 "$1"
} When the parameter was not included in the function call, we get the above command and lerna throws the error. lerna_publish_to --skip-git # works
lerna_publish_to # fails The fix is some arcane bash: lerna_publish_to () {
lerna publish --yes --npm-tag latest --repo-version 1.0.0 ${1:+"$1"}
} |
We can no longer publish packages when using
lerna publish
, it fails with error:It seems I'm suddenly hitting this:
lerna/commands/version/command.js
Line 254 in ac8385d
For no apparent reason..
Expected Behavior
Using this unchanged command:
I expect that packages are published
Current Behavior
I'm getting the formentioned error.
Possible Solution
This worked 7+ days ago, did something break? A breaking change?
Steps to Reproduce (for bugs)
Run above command
lerna.json
Context
Cant publish packages
Your Environment
lerna --version
npm --version
node --version
The text was updated successfully, but these errors were encountered: