workshopper / how-to-npm

A module to teach you how to module.
https://www.npmjs.com/package/how-to-npm
ISC License
1.11k stars 219 forks source link

Update 08-publish.js to ensure publish modules are public. #63

Closed jthoms1 closed 7 years ago

jthoms1 commented 8 years ago

This pull request is to update the documentation on item 8. Currently it references using 'npm publish'. Early in the exercise we create a scoped package. By default when a scoped package is published it is private. This requires a paid account. I assume it is best the ensure a person's first publish be public because it is unlikely they have a paid account. I think we could just inform the user of the '--access=public' flag and avoid the situation. Below is the npm documentation on this subject.

https://docs.npmjs.com/getting-started/scoped-packages#publishing-a-scoped-package

ashleygwilliams commented 8 years ago

related: https://github.com/npm/how-to-npm/pull/51