Skip to content

chore: add package support metadata#63

Merged
chenjiahan merged 1 commit into
rstackjs:mainfrom
YfengJ:codex/package-support-metadata
Jun 18, 2026
Merged

chore: add package support metadata#63
chenjiahan merged 1 commit into
rstackjs:mainfrom
YfengJ:codex/package-support-metadata

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the npm homepage field pointing to the repository README
  • add the npm bugs.url field pointing to the GitHub issues page

Validation

  • node -e "const pkg=require('./package.json'); if(pkg.homepage!=='https://github.com/rstackjs/rsbuild-plugin-google-analytics#readme') throw new Error('bad homepage'); if(pkg.bugs?.url!=='https://github.com/rstackjs/rsbuild-plugin-google-analytics/issues') throw new Error('bad bugs url'); console.log(JSON.stringify({name:pkg.name,homepage:pkg.homepage,bugs:pkg.bugs}, null, 2));"
  • npm view rsbuild-plugin-google-analytics@latest name version repository homepage bugs license --json
  • pnpm install --frozen-lockfile --ignore-scripts
  • pnpm run lint
  • pnpm run build
  • npm pack --dry-run --ignore-scripts --json .
  • git diff --check

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2508db9b-368b-4d16-aac8-52749d543004

📥 Commits

Reviewing files that changed from the base of the PR and between b2673ea and 27fd2aa.

📒 Files selected for processing (1)
  • package.json

📝 Walkthrough

Walkthrough

The package.json manifest is updated to include two new metadata fields: a homepage URL and a bugs object containing the GitHub issues URL. No functional code, dependencies, or other manifest fields are modified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: add package support metadata' clearly and concisely describes the main change: adding package metadata fields (homepage and bugs.url) to package.json.
Description check ✅ Passed The description is directly related to the changeset, providing clear details about what metadata fields are being added and comprehensive validation steps performed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@chenjiahan chenjiahan merged commit fc4aff6 into rstackjs:main Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants