lerna-changelog icon indicating copy to clipboard operation
lerna-changelog copied to clipboard

how to ignore private packages?

Open priley86 opened this issue 5 years ago • 7 comments

building off of #15

can you provide an arg or some sort of publish config option to ignore private packages in the changelog? The suggest fix here will not work for our repo.

I'd like some sort of option or config to do this and ignore our private root packages from our CHANGELOG. It does not seem that command.bootstrap.ignore from lerna.json is an option either.

priley86 avatar Jan 15 '19 16:01 priley86

I don't think there is currently an option to ignore packages like that, but feel free to come up with a PR :)

Turbo87 avatar Jan 16 '19 11:01 Turbo87

@Turbo87 is there any other way to ignore packages from versioning?

pladaria avatar Mar 11 '20 15:03 pladaria

as I said, not until someone builds one 😅

Turbo87 avatar Mar 11 '20 15:03 Turbo87

Opened a PR for ignoring packages from versioning and publishing here https://github.com/lerna/lerna/pull/2507

Marcosld avatar Mar 22 '20 17:03 Marcosld

Lerna(v3.21.0) does not publishes the private packages if we use --no-private flag in publish command.

Reference: https://github.com/lerna/lerna/tree/master/commands/version#--no-private

m-mayank avatar Oct 11 '20 18:10 m-mayank

Lerna(v3.21.0) does not publishes the private packages if we use --no-private flag in publish command.

Reference: https://github.com/lerna/lerna/tree/master/commands/version#--no-private

However that also makes it not bump the package versions of published packages in the private packages, which will remove semlinks and thus break the entire repo if the version no longer matches.

i.e., in private package A, referencing ^5.0.0, with a public package bump of B to 6.0.0 - this will BREAK the monorepo. There is no scenario where this is not a bug since lerna is managing the packages of both private and public packages.

ntucker avatar Jan 12 '22 20:01 ntucker

The previous comment is also a problem for us.

For context, we use "private: true" in some packages which are "coming soon": they aren't ready to be published yet, but they will be soon. In the meantime, we still want them to be updated whenever their dependencies change -- just don't bump their version number. Otherwise when we do eventually publish them, rather than starting at v1.0.0, they are first published at 1.0.32 or some other arbitrary number representing how many times we published its dependencies before the new package was ready. Or, if we use the --no-private flag, we risk using out-of-date dependencies in the new package, potentially even missing major updates.

maribethb avatar Feb 24 '23 01:02 maribethb