-
Notifications
You must be signed in to change notification settings - Fork 238
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
[RRFC] remove --access public
for initial publish of scoped modules
#572
Comments
One consequence/benefit of this change might be that organization members would presumably be able to publish a scoped package for the first time - currently, it requires an org admin (or owner) to publish the first one. |
Closing as we discuss in the npm RFC calls that we'll get a new flag added to |
(in parallel with changing the default so that scoped packages are assumed to be public) |
Motivation ("The Why")
Currently, to publish a scoped module for the first time you need to include
--access public
unless the organization you're publishing it to is on a paid plan, in which case it will be published privately. My guess is that the majority of npm users who are publishing are not, in fact, publishing to paid organizations and having that path be the default makes... little sense at this point in time.Especially with the intersection of
npm workspaces
providing a good interface for scoped modules from a single source and the recent malicious usage the registry has seen, I think it would be nice to reduce the barrier to entry to publishing into scopes by normalizing the publishing experience across scoped namespace and global namespace packages and dropping--access private
as the default for publishing a scoped module.There's some compounding reasons why I don't feel like this is a particularly big deal:
restricted
laterHow
Current Behaviour
--access public
is required to publish a scoped module on initial publishDesired Behaviour
--access public
is not required to publish a scoped module on initial publishThe text was updated successfully, but these errors were encountered: