-
Notifications
You must be signed in to change notification settings - Fork 3
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
Is name
actually optional?
#9
Comments
In particular, I suspect workspaces, |
FYI, I have seen Node's docs seem to suggest this usage is kosher: If you have a |
At a project root, name and version are required; since all commands are meant to run in a project root, this works out fine. Indeed nested package.json files with only “type” or “main” are fine and expected. |
name is mostly required, but I use |
I think for the sake of these docs we should elaborate on when it is required and when it is not. The goal is to educate and document, not to propose making it required when it is not actually required in all situations. |
Agreed - keep in mind that this documentation is not a specification. It may eventually lead to one someday, but for now we are solely focussed on documenting how things currently work across (the ever growing) JavaScript ecosystem. |
Yeah, I think any sort of description of For instance, |
Ideally we could make a compelling case for all of those projects to come together here to build our the right links or docs for folks doing cross ecosystem work. |
As mentioned here, there is reason to believe that the
name
property is not actually optional in practice.More research should be done regarding
npm
cli's usage of the property in various commands. If the lack of thename
property causes anything but publishing to fail we must document that behavior.The text was updated successfully, but these errors were encountered: