Current Behavior:
If a non-namespaced package is published with
npm publish --access restricted
npm ignored the user directive that access should be restricted and publishes the package.
Expected Behavior:
Attempting to publish a package which isn't namespaced with npm publish --access restricted should
- warn the user that packages without namespaces cannot be given restricted access
- exit with an error
Steps To Reproduce:
- Create a non-namespaces NPM package
- Publish is using
npm publish --access restricted