Skip to content
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

feat(init): add --init-private config #507

Open
Tracked by #536
darcyclarke opened this issue May 16, 2022 · 2 comments
Open
Tracked by #536

feat(init): add --init-private config #507

darcyclarke opened this issue May 16, 2022 · 2 comments
Labels

Comments

@darcyclarke
Copy link
Contributor

darcyclarke commented May 16, 2022

Summary

Add config for npm init that makes private configurable (defaults to --init-private=false)

Exit Criteria

  • fully implemented
  • tests are written for the config
  • documentation is updated to specify functionality
@darcyclarke darcyclarke mentioned this issue May 16, 2022
13 tasks
@darcyclarke darcyclarke changed the title feat(init): add <code class="notranslate">--init-private` config feat(init): add --init-private config May 16, 2022
@darcyclarke
Copy link
Contributor Author

Example / Reference

Current

npm init 

package.json

{
  "private": "true"
}
# only applies to scoped packages today
npm publish --access=public

Expected

# --init-private=false
npm init

package.json

{}
# should be able to publish scoped packages publicly without --access=public
npm publish

@ljharb
Copy link

ljharb commented May 16, 2022

What's the opposite config? There should be a way to set it to either private or public, so that folks can insulate themselves fro a breaking change when the default changes.

@darcyclarke darcyclarke mentioned this issue Aug 22, 2022
46 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants