Is there an existing issue for this?
This issue exists in the latest npm version
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"
https://github.com/JoshuaKGoldberg/emojipedia/blob/7b67fe1986852fb271c2eab59fe536ee3476322f/package.json#L5
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 = true
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
My repo's
package.jsonfile has a"repository"field set to"JoshuaKGoldberg/emojipedia"as a shorthand.npm publishstill works, but gives this complaint:https://github.com/JoshuaKGoldberg/emojipedia/blob/7b67fe1986852fb271c2eab59fe536ee3476322f/package.json#L5
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
package.json's"repository"value is a GitHub string shorthandnpm publishEnvironment