Skip to content

fix: keep the server frontend install out of a parent pnpm workspace - #2056

Merged
leejet merged 1 commit into
leejet:masterfrom
Yi-111-a:fix-frontend-pnpm-workspace
Sep 25, 2026
Merged

leejet merged 1 commit into
leejet:masterfrom
Yi-111-a:fix-frontend-pnpm-workspace

Conversation

@Yi-111-a

Copy link
Copy Markdown
Contributor

Fixes #2053

What changed and why

The server frontend target already runs pnpm -C <frontend>. -C selects the package directory, but pnpm still walks parent directories for pnpm-workspace.yaml. When that file lives above the checkout (a home directory workspace is enough), pnpm install joins that workspace. That is the path that reinstalls the parent node_modules instead of examples/server/frontend/node_modules.

sdcpp-webui is a single package: it has package.json and pnpm-lock.yaml, and no pnpm-workspace.yaml. --ignore-workspace keeps the install, run build, and run build:header on that package.

Verification

pnpm 11.21.0, with a parent pnpm-workspace.yaml that lists frontend:

  • pnpm -C frontend install reported Scope: all 2 workspace projects.
  • pnpm --ignore-workspace -C frontend install installed only the frontend package, and node_modules was created under frontend/, not next to the parent workspace file.

pnpm walks upward from the frontend directory and joins a workspace whose
root is outside this repo, so the CMake install can target that workspace's
node_modules. Pass --ignore-workspace so the frontend package stays local.
@leejet
leejet merged commit 5e7b291 into leejet:master Sep 25, 2026
1 check passed
@leejet

leejet commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Thanks.

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.

[Bug] The modules directory at home will be removed and reinstalled from scratch

2 participants