Skip to content

refactor: update build config for @primer/mcp to rolldown#8042

Draft
joshblack wants to merge 6 commits into
copilot/rolldown/doc-genfrom
copilot/rolldown/mcp
Draft

refactor: update build config for @primer/mcp to rolldown#8042
joshblack wants to merge 6 commits into
copilot/rolldown/doc-genfrom
copilot/rolldown/mcp

Conversation

@joshblack

@joshblack joshblack commented Jun 23, 2026

Copy link
Copy Markdown
Member

Closes #

N/A

Changelog

New

N/A

Changed

  • Updated @primer/mcp to build JavaScript and declarations with Rolldown.

Removed

  • Removed the package Rollup build config and Rollup build dependencies.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; build tooling-only change with no public runtime API change

Testing & Reviewing

Validated as part of the stack with npm run build, npm run type-check, npm run lint, npm run lint:css, npm run format:diff, and npm test -- --run.

Merge checklist

@github-actions github-actions Bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. If this doesn't work, you can also use the original workflow here. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

To publish a canary release for integration testing, apply the Canary Release label to this PR.

@joshblack joshblack added the skip changeset This change does not need a changelog label Jun 23, 2026
@joshblack joshblack changed the title copilot/rolldown/mcp refactor: update build config for @primer/mcp to rolldown Jun 23, 2026
@joshblack joshblack force-pushed the copilot/rolldown/doc-gen branch from 4851756 to 7553cf9 Compare June 23, 2026 21:03
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from 2598b0d to a5e067c Compare June 23, 2026 21:03
@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d0d3e65

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@joshblack joshblack force-pushed the copilot/rolldown/doc-gen branch from 7553cf9 to f41afb4 Compare June 23, 2026 21:05
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from a5e067c to fa4e757 Compare June 23, 2026 21:05
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:07 Abandoned
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:09 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/doc-gen branch from f41afb4 to aede53d Compare June 23, 2026 21:09
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from fa4e757 to 2b55b7e Compare June 23, 2026 21:09
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:11 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/doc-gen branch from aede53d to f4cf5de Compare June 23, 2026 21:15
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from 2b55b7e to d34560d Compare June 23, 2026 21:15
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:18 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/doc-gen branch from f4cf5de to 82804ca Compare June 23, 2026 21:19
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from d34560d to 3c87865 Compare June 23, 2026 21:19
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:20 Abandoned
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:23 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/doc-gen branch from 82804ca to 52d7193 Compare June 23, 2026 21:42
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from 3c87865 to 263a167 Compare June 23, 2026 21:42
@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 21:49 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/mcp branch from 263a167 to 52051d7 Compare June 23, 2026 21:56
@joshblack joshblack marked this pull request as ready for review June 23, 2026 21:58
@joshblack joshblack requested a review from a team as a code owner June 23, 2026 21:58
@joshblack joshblack requested review from Copilot and jonrohan June 23, 2026 21:58
@primer

primer Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

@github-actions github-actions Bot requested a deployment to storybook-preview-8042 June 23, 2026 22:01 Abandoned

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the @primer/mcp package build tooling from Rollup to Rolldown, aiming to keep the same published JS + type declaration outputs while removing Rollup-specific config and dependencies.

Changes:

  • Removed the Rollup build configuration (rollup.config.js).
  • Added a Rolldown multi-step build configuration to emit JS and .d.ts outputs (rolldown.config.js).
  • Updated packages/mcp/package.json scripts and devDependencies to use Rolldown instead of Rollup.
Show a summary per file
File Description
packages/mcp/rollup.config.js Removes the old Rollup-based build pipeline configuration.
packages/mcp/rolldown.config.js Introduces Rolldown config for JS bundling + separate declaration generation.
packages/mcp/package.json Switches build/watch scripts to Rolldown and replaces Rollup/Babel build deps with Rolldown deps.

Copilot's findings

  • Files reviewed: 3/4 changed files
  • Comments generated: 3

Comment thread packages/mcp/rolldown.config.js
Comment thread packages/mcp/rolldown.config.js
Comment thread packages/mcp/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants