Skip to content

chore: add package support metadata#84

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

chore: add package support metadata#84
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 npm homepage metadata pointing to the repository README
  • add bugs.url metadata pointing to the GitHub issue tracker
  • keep runtime code, dependencies, exports, package contents, and version unchanged

Validation

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

Note: npm pack --dry-run --ignore-scripts --json . still ran the repository's existing prepare hook and configured simple-git-hooks locally, but it did not create any tracked file changes.

@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: 520a053a-edc6-4e00-b3aa-1104f613c192

📥 Commits

Reviewing files that changed from the base of the PR and between a1456f1 and 75a14d9.

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

📝 Walkthrough

Walkthrough

Two npm metadata fields are added to package.json: a homepage field pointing to the repository's README (https://github.com/rstackjs/rsbuild-plugin-eslint#readme) and a bugs block containing an issues URL (https://github.com/rstackjs/rsbuild-plugin-eslint/issues). No other files are changed.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: add package support metadata' accurately summarizes the main change of adding homepage and bugs metadata to package.json.
Description check ✅ Passed The description is directly related to the changeset, clearly explaining the metadata additions with validation steps and confirming no runtime code changes.
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 b5df986 into rstackjs:main Jun 18, 2026
2 checks 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