Skip to content

chore: move pnpm overrides to pnpm-workspace.yaml - #9391

Open
shentry wants to merge 1 commit into
AstrBotDevs:masterfrom
shentry:fix/8601-pnpm-overrides
Open

chore: move pnpm overrides to pnpm-workspace.yaml#9391
shentry wants to merge 1 commit into
AstrBotDevs:masterfrom
shentry:fix/8601-pnpm-overrides

Conversation

@shentry

@shentry shentry commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Closes #8601

Change

Move the immutable and lodash-es pins from the deprecated pnpm.overrides field in dashboard/package.json into dashboard/pnpm-workspace.yaml, alongside the allowBuilds settings that already live there.

A note on the issue's premise

The issue's first acceptance criterion says pnpm prints a warning that package.json's pnpm.overrides is ignored. I was not able to reproduce that. With both the CI-pinned pnpm 10.28.2 and pnpm 10.33.2, no such warning is printed and the overrides are currently fully effective: removing the pnpm block without adding it to pnpm-workspace.yaml makes the lockfile drop its overrides: section and lodash-es fall back from 4.17.23 to 4.17.21.

So this PR is not repairing broken pins. It is a forward-looking migration to the location pnpm 10+ expects, so the pins keep applying on future pnpm releases. Happy to close it if you would rather leave the pins where they are for now.

Verification

All with the CI-pinned pnpm 10.28.2:

  • pnpm install --frozen-lockfile succeeds
  • pnpm-lock.yaml is byte-identical to before the move and its overrides: block is preserved, so the lockfile is untouched in this PR
  • pnpm run build passes
  • The installed tree still resolves immutable@4.3.8 and lodash-es@4.17.23

Summary by Sourcery

Move pnpm dependency override configuration from the dashboard package.json into the pnpm-workspace.yaml to align with current pnpm expectations while preserving existing pins.

Build:

  • Relocate immutable and lodash-es version overrides from package.json pnpm.overrides into pnpm-workspace.yaml for workspace-level configuration.

Chores:

  • Clean up deprecated pnpm.overrides usage in dashboard package.json.

The `immutable` and `lodash-es` dependency pins lived in the deprecated
`pnpm.overrides` field of dashboard/package.json. pnpm 10 reads project
settings from pnpm-workspace.yaml, so keep the pins alongside the existing
`allowBuilds` settings to make sure they keep applying on future pnpm
releases.

Verified with the CI-pinned pnpm 10.28.2: `pnpm install --frozen-lockfile`
succeeds, pnpm-lock.yaml is byte-identical to before the move (its
`overrides` block is preserved), `pnpm run build` passes, and the installed
tree still resolves immutable@4.3.8 and lodash-es@4.17.23.

Closes AstrBotDevs#8601
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. area:webui The bug / feature is about webui(dashboard) of astrbot. labels Jul 26, 2026

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webui The bug / feature is about webui(dashboard) of astrbot. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: move pnpm overrides to pnpm-workspace.yaml

1 participant