read-package-json icon indicating copy to clipboard operation
read-package-json copied to clipboard

make name / version optional

Open cowboy opened this issue 13 years ago • 1 comments

For projects that won't be published as npm modules, but that instead use npm only as a means for installing local dependencies (think of the package.json in this case like a Gemfile) the currently required name and version fields are unnecessary. It would be great if they were optional.

cowboy avatar Jun 29 '12 16:06 cowboy

same goes for the readme field. Idk why it is passing the content of a hole markdown file into a string.

muuvmuuv avatar May 23 '19 14:05 muuvmuuv

The name and version field really do need to be required at this time because otherwise npm has no way to know what's already in the tree when it comes time to update/install new deps.

wraithgar avatar May 03 '23 14:05 wraithgar