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
lerna ERR! Error: Command failed: git checkout -- packages/!(__template__)/package.json
lerna ERR! error: pathspec 'packages/!(__template__)/package.json' did not match any file(s) known to git.
Possible Solution
Use lerna's glob expansions to generate a list of package.json files, then pass them to git checkout
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.
lockbot
locked as resolved and limited conversation to collaborators
Feb 26, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
lerna publish
works correctly when using this package glob:packages/!(__template__)
Current Behavior
Lerna tries to run
git checkout -- packages/!(__template__)/package.json
which fails because git doesn't understand the glob pattern.https://github.com/lerna/lerna/blob/master/commands/publish/index.js#L411
Possible Solution
Use lerna's glob expansions to generate a list of package.json files, then pass them to
git checkout
Steps to Reproduce (for bugs)
lerna.json
Context
Your Environment
lerna --version
yarn --version
node --version
OS is Debian Stretch, via CircleCI's nodejs docker image: circleci/node:8.11.3-stretch
The text was updated successfully, but these errors were encountered: