npm / statusboard

Public monitor/status/health board for @npm/cli-team's maintained projects
https://npm.github.io/statusboard
Other
156 stars 58 forks source link

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

Open darcyclarke opened 2 years ago

darcyclarke commented 2 years ago

Summary

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

Exit Criteria

darcyclarke commented 2 years ago

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 commented 2 years ago

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.