This website requires JavaScript.
About
Status
₊˚⊹Discord
Explore
Register
Sign in
Reference in a new issue
Blame
Copy permalink
Reference in a new issue
Copy permalink
DKB
/
mastra
Star
0
Fork
You've already forked mastra
0
mirror of
https://github.com/mastra-ai/mastra.git
synced
2026-11-17 08:44:46 +00:00
Code
Issues
Releases
Packages
Activity
security/agent-browser-cli
mastra
/
patches
/
@changesets__get-dependents-graph@2.1.4.patch
12 lines
486 B
Raw
Permalink
Normal View
History
chore: migrate workspace to pnpm v11 (#17038) Migrates the workspace to pnpm 11.3.0 and moves pnpm config out of package.json into pnpm-workspace.yaml, which is where pnpm v11 reads these settings. It also enables the global virtual store for faster git worktree installs: ```yaml # Share pnpm's virtual store across git worktrees: https://pnpm.io/git-worktrees enableGlobalVirtualStore: true ``` I also moved the standalone e2e fixture pnpm settings into local pnpm-workspace.yaml files so their overrides and build approvals still apply under pnpm v11. Verified with pnpm 11.3.0 install --frozen-lockfile and git diff --check. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## ELI5 This PR upgrades the repository to pnpm v11 (11.3.0), moves workspace pnpm settings out of package.json into pnpm-workspace.yaml so pnpm v11 reads them, and enables a shared global virtual store to speed up installs (useful for git worktrees). It also updates tests, fixtures, and CI to use pnpm-specific env vars and workspace-aware installs. ## Changes Overview ### Core changes - Bumped required pnpm in root package.json: engines.pnpm → >=11.0.0 and updated packageManager to pnpm@11.3.0 (with new integrity). - Added/expanded top-level pnpm-workspace.yaml: - enableGlobalVirtualStore: true to share pnpm’s virtual store across git worktrees. - Reworked patchedDependencies to versioned patch entries (e.g., `@changesets/get-dependents-graph`@2.1.3/2.1.4, tsup@8.5.1). - Added packageExtensions (e.g., `@uiw/codemirror-theme-dracula`@*). - Extended trustPolicyExclude and expanded overrides to constrain many deps (ssri, qs, zod variants, etc.). - Broadened allowBuilds to explicitly disable builds for many packages. ### E2E & fixture workspace changes - Removed pnpm/resolutions and top-level pnpm blocks from many package.json files and introduced local pnpm-workspace.yaml files in fixture/e2e directories (commonjs, create-mastra, deployers, monorepo, no-bundling, type-check, memory, agent-builder, mcp, playground kitchen-sink, pkg-outputs, etc.). - Those local pnpm-workspace.yaml files reintroduce necessary overrides (e.g., ssri >=6.0.2, qs ^6.15.1) and allowBuilds settings so fixture-specific build allowances and overrides continue to apply under pnpm v11. ### Tests & tooling updates - Updated many e2e tests and setup scripts to export pnpm-specific env vars (pnpm_config_registry, pnpm_config_minimum_release_age, etc.) instead of npm_config_* so pnpm receives registry/minimum-release-age configs. - Extended pnpm-specific env var allowlist (packages/_types-builder) with additional pnpm_config_* keys. - Small TypeScript typings and build tweaks (tsup externals, various Droppable typing updates). - Patch update: changesets-get-dependents-graph patch updated to construct Range with includePrerelease: true. ### CI & GitHub Actions - Composite action explicitly sets up Node 22 via actions/setup-node@v6 and continues to install pnpm via pnpm/action-setup@v4. - Turbo action now runs turborepo via pnpm dlx (pnpm dlx turbo ...) and disables telemetry. - Multiple CI steps and workflows changed pnpm install --ignore-workspace → pnpm install to be workspace-aware where appropriate. ### Commit / migration notes - Added commit(s) to preserve nested pnpm workspace configs for fixtures, add missing packageExtensions, and make other adjustments required by pnpm v11 (including explicit allowBuilds in nested workspaces so frozen installs pass). - Author verified migration with pnpm 11.3.0 using install --frozen-lockfile and git diff --check, but noted further testing/investigation will follow (primary motivation: enable worktree/global virtual store behavior). ## Impact & reviewer notes - Requires pnpm >=11.0.0 locally and in CI (declared 11.3.0). Update local tooling if needed. - Workspace overrides, patched deps, and build allowances were relocated to pnpm-workspace.yaml — reviewers should confirm fixture behavior, package linking, and build approvals still match expectations. - enableGlobalVirtualStore changes dependency layout/hoisting for worktree installs; test git worktree installs and CI runs. - Verify e2e fixtures, CI jobs, and any environment-specific registry/settings propagate correctly via pnpm_config_* env vars. <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/mastra-ai/mastra/pull/17038?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-05-28 09:45:07 -07:00