Skip to content

ref(deps): move to proper pnpm monorepo#120117

Merged
natemoo-re merged 5 commits into
masterfrom
nm/meta/workspace
Jul 20, 2026
Merged

ref(deps): move to proper pnpm monorepo#120117
natemoo-re merged 5 commits into
masterfrom
nm/meta/workspace

Conversation

@natemoo-re

@natemoo-re natemoo-re commented Jul 20, 2026

Copy link
Copy Markdown
Member
  • Adds pnpm-workspace.yaml declaring three workspace packages: api-docs, eslintPluginScraps, eslintPluginSentry
  • Converts api-docs from an independent project (own lockfile) to a workspace member managed by the root lockfile
  • Extracts static/eslint/eslintPluginScraps and static/eslint/eslintPluginSentry as @sentry-internal/eslint-plugin-scraps and @sentry-internal/eslint-plugin-sentry
  • Replaces inline setup-node/pnpm steps in openapi, openapi-diff, and backend workflows with the setup-node-pnpm composite action
  • Removes api-docs/pnpm-lock.yaml, api-docs/pnpm-workspace.yaml, api-docs/.npmrc
  • Drops api-docs pnpm overrides, now covered by latest lockfile updates
  • Moves @typescript-eslint/utils from root devDeps into the eslint plugin packages that use it
  • Migrates knip config to workspace-aware structure, removes dead barrel re-exports and unused scanner module from eslintPluginScraps

@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jul 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@socket-security

This comment was marked as outdated.

@natemoo-re
natemoo-re force-pushed the nm/meta/workspace branch 3 times, most recently from 745dc2a to 1e726a4 Compare July 20, 2026 19:24
@natemoo-re natemoo-re changed the title ref: Add pnpm-workspace monorepo for api-docs and eslint plugins ref(deps): move to proper pnpm monorepo Jul 20, 2026
@natemoo-re
natemoo-re requested a review from scttcper July 20, 2026 19:38
@natemoo-re
natemoo-re marked this pull request as ready for review July 20, 2026 19:38
@natemoo-re
natemoo-re requested review from a team as code owners July 20, 2026 19:38
Comment thread .github/workflows/backend.yml Outdated
Comment thread pnpm-lock.yaml Outdated
Convert api-docs from an independent project with its own lockfile
to a workspace package managed by the root lockfile.

- Delete api-docs/pnpm-lock.yaml, pnpm-workspace.yaml, .npmrc
- Remove install-api-docs script; pnpm install handles workspace deps
- Merge api-docs overrides into root (drop glob>minimatch which
  conflicts with root's glob@10)
- Add pnpm install step to openapi, openapi-diff, backend CI workflows
- Remove api-docs/pnpm-lock.yaml from CI cache keys
- Update validate-api-examples to use pnpm --filter
Add package.json for eslintPluginScraps and eslintPluginSentry as
@sentry-internal/eslint-plugin-scraps and @sentry-internal/eslint-plugin-sentry.
Update eslint.config.ts to import by package name.
Comment thread package.json
@natemoo-re
natemoo-re enabled auto-merge (squash) July 20, 2026 20:42
@natemoo-re
natemoo-re merged commit 61b9b65 into master Jul 20, 2026
75 checks passed
@natemoo-re
natemoo-re deleted the nm/meta/workspace branch July 20, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants