lerna: lerna publish --independent triggering publish also for packages that haven't changed

When I run lerna publish --independent, lerna is asking me to publish also the packages that I haven’t touched, and there is no way for me to skip the publishing of those.

From the readme:

Each time you publish, you will get a prompt for each package that has changed to specify if it’s a patch, minor, major or custom change.

Expected Behavior

It should prompt me to publish only the packages that have changed.

Current Behavior

It prompts the publish for every package.

Steps to Reproduce (for bugs)

This is the repo where this happens

lerna.json

{
  "lerna": "2.1.2",
  "version": "independent",
  "npmClient": "yarn",
  "useWorkspaces": true
}

Your Environment

Executable Version
lerna --version 2.1.2
npm --version 6.0.1
yarn --version 1.6.0
node --version 10.1.0
OS Version
macOS High Sierra 10.13.4

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Except they don’t, take for example the package eslint-config-accurapp, these are its dependencies:

screen shot 2018-05-25 at 10 38 22

None of its dependencies is another package.

And this is lerna asking me to publish it, even if it isn’t in the lerna diff:

screen shot 2018-05-25 at 10 36 35