-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Bugthing that needs fixingthing that needs fixingDocumentationdocumentation related issuedocumentation related issuePriority 2secondary priority issuesecondary priority issue
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
My repo's package.json file has a "repository" field set to "JoshuaKGoldberg/emojipedia" as a shorthand. npm publish still works, but gives this complaint:
ERROR npm WARN publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
npm WARN publish errors corrected:
npm WARN publish "repository" was changed from a string to an object
npm WARN publish "repository.url" was normalized to "git+https://github.com/JoshuaKGoldberg/emojipedia.git"
Expected Behavior
Per npm/npm#3783 -> https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository, using a repository shorthand like "JoshuaKGoldberg/emojipedia" should be allowed.
Steps To Reproduce
- Create a project whose
package.json's"repository"value is a GitHub string shorthand npm publish
Environment
- npm: 10.2.4 and 10.5.0
- Node.js: v20.11.0
- OS Name: macOS
- System Model Name: Mac Studio
- npm config:
//registry.npmjs.org/:_authToken = (protected)
provenance = trueKristjanESPERANTOyvele and Tyoneb
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingDocumentationdocumentation related issuedocumentation related issuePriority 2secondary priority issuesecondary priority issue