unjs / destr

๐Ÿš€ Faster, secure and convenient alternative for JSON.parse for arbitrary inputs
MIT License
1.11k stars 16 forks source link

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

Closed danielroe closed 5 months ago

danielroe commented 5 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 5 months ago

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