🐛 Bug: prefer-repository-shorthand in conflict with npm publish requirements #223
Closed
3 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: bug
Something isn't working :(
Bug Report Checklist
main
branch of the repository.Expected
As of #71 -> #70, the
package-json/prefer-repository-shorthand
rule is enforcing the"repository"
field inpackage.json
files is a shorthand string like"JoshuaKGoldberg/eslint-plugin-package-json"
if possible. Since that was mentioned as supported in npm/npm#3783 and is still documented in https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository. And it seems to have worked till now.Actual
I'm seeing a warning in release jobs asking to switch it to an object. Example from https://github.com/JoshuaKGoldberg/emojipedia/actions/runs/8346102080/job/22842590478:
What gives, npm? Should this rule be removed?
My hunch is that this is a bug in npm publishing, but filing here for visibility.
Additional Info
cc @azat-io - have you seen this too?
Also filed:
The text was updated successfully, but these errors were encountered: