Point the npm homepage at the package catalog and link the author

Merged
UN
1mo ago
+81-2

Fixes #181

Set the npm homepage to https://pm-cli.unbrained.dev/packages/pm-github and author to unbrained with https://unbrained.dev/about. Preserve repository and bugs metadata. The GitHub repository website matches the package homepage.

Add test/package-metadata.test.ts to guard the exact homepage, author object, repository, and bugs values. The existing test/coverage globs include all four assertions, so the full npm and Bun release gates execute them.

Validation: node --test test/package-metadata.test.ts passes 4/4. Reverting only homepage fails exactly one assertion; independently reverting only author fails exactly one assertion. Restoring metadata returns 4/4 passing. Test compilation and available lint passed; CHANGELOG.md was regenerated and checked after tracker writes. CI and CodeQL passed on 28aadbd950141463dca5927f7cdd8c39368b41c6. CI run: https://github.com/unbraind/pm-github/actions/runs/40292161329. npm metadata takes effect on the next release.

PM item: https://github.com/unbraind/pm-github/blob/main/.agents/pm/chores/pm-github-o846.toon

Summary by Sourcery

Update npm package metadata to expose the package catalog and maintainer links while preserving repository and issue tracker information.

New Features:

  • Point the npm package homepage to the PM CLI package catalog and link the author to the maintainer’s about page.

Enhancements:

  • Add regression coverage for the package homepage, author, repository, and issue tracker metadata.

Tests:

  • Add exact-value tests for the package metadata published in package.json.