unjs / get-port-please

๐Ÿ”Œ Get an available open port
MIT License
255 stars 13 forks source link

chore: run npm fix on `package.json` #94

Closed danielroe closed 6 months ago

danielroe commented 6 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

Publishing a package with the latest version of npm gives rise to the following warning:

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/<repo>.git"

This PR (it isn't much, I know!) runs the command ...

See https://docs.npmjs.com/cli/v10/configuring-npm/package-json and specifically https://github.com/npm/cli/issues/7299#issuecomment-2010009355.

๐Ÿ“ Checklist

pi0 commented 6 months ago

(closing since planning to handle normalize on publish using an upcoming tool)