question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Private packages should not be listed in publish success messages

See original GitHub issue

Running lerna publish prompts for individual package versions for packages marked with private: true.

lerna publish
? Select a new version for @org/package-a
? Enter a custom version 1.0.0-alpha.1 # Forced to manually enter a dummy version

Changes:
 - @org/package-a: 1.0.0-alpha.1 => 1.0.0-alpha.1 (private) # This is confusing
 - @org/package-b: 1.0.0-alpha.1 => 1.0.0-alpha.1
 - ...

? Are you sure you want to publish the above changes? Yes
lerna info publish Publishing packages to npm...
lerna info published @package-b
lerna info git Pushing tags...
Successfully published:
 - @org/package-a: 1.0.0-alpha.1 => 1.0.0-alpha.1 # This is confusing
 - @org/package-b: 1.0.0-alpha.1 => 1.0.0-alpha.1
lerna success publish finished

While it doesn’t actually publish the private packages to NPM, the console output still shows it as published successfully.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
donaldpipowitchcommented, Nov 21, 2017

Well it “is” versioned in the sense of “it has a version”. But I don’t ever want or need to update the version, because they are never consumed by anyone.

3reactions
superkhaucommented, May 9, 2017

If we don’t prompt for them, what version are we supposed to use? Private packages are intended to still be versioned, just never published.

You’re right. Maybe we should add an option to skip versioning instead?

Package X@1.0.0-alpha is marked as private, skip versioning?

That way, the CLI tool can skip the other weird prompts below too.

As for sending a PR, my schedule is pretty full and won’t be available again till beginning of June. I’ll try to send then if someone doesn’t get around to it before me. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Step-by-Step Guide to Publishing Private npm Package on ...
In this blog, I will discuss how you can do it but first, let us understand why you need GitHub repositories and not...
Read more >
Private npm packages in Github package registry | by Jacob Do
Publish a version of your package. This step is extremely short, just run npm publish and the tsdx will take care of the...
Read more >
Publish private npm package with github actions and packages
If the repository is public, the package will be public. And if the repository is private, the package will be private too.
Read more >
Publish Private NPM Packages with Proxy Registry Verdaccio
In the event a scoped package is not available in our registry, the request is proxied to npmjs . The same settings are...
Read more >
How to publish NuGet packages | Microsoft Learn
You can also make private packages available to only a team or organization by hosting them on a file share, a private NuGet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found