Skip to content

fix(make): run frontend pnpm targets from their package directories - #9871

Merged
joshistoast merged 2 commits into
mainfrom
fix/issue-9870-makefile-pnpm-cwd
Oct 15, 2026
Merged

joshistoast merged 2 commits into
mainfrom
fix/issue-9870-makefile-pnpm-cwd

Conversation

@joshistoast

@joshistoast joshistoast commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

make frontend-api-install and make frontend-lint called pnpm -C <package> from the repo root. Tools that resolve pnpm per directory (corepack, version managers) read packageManager from the current directory, and the root has no package.json, so these targets ran the wrong pnpm or failed outright. Both targets now cd into their package first, matching the other frontend targets. The typegen snippet in the Front End docs does the same.

Related Issues / Discussions

Closes #9870

QA Instructions

With a corepack pnpm shim first on PATH (corepack enable --install-directory <dir> pnpm) and Node 22.14:

  • Before: make frontend-api-install fails with Cannot find module .../corepack/v1/pnpm/12.9.1/bin/pnpm.cjs.
  • After: make frontend-api-install completes using pnpm v10.12.4, and make frontend-lint passes.

Review

No material findings.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Meaningful regression coverage added / updated where needed; obsolete tests/code removed
  • Persisted-state and API changes include required migrations / compatibility validation
  • Relevant performance/efficiency opportunities considered; material claims have evidence
  • Material review findings resolved and relevant checks rerun
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

frontend-api-install and frontend-lint now cd into their package before calling
pnpm, so per-directory pnpm resolution (corepack, version managers) picks up
each package's pinned packageManager. The typegen docs snippet does the same.
@github-actions github-actions Bot added Root docs PRs that change docs labels Oct 15, 2026

@JPPhoto JPPhoto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great!

@joshistoast
joshistoast enabled auto-merge October 15, 2026 21:04
@joshistoast
joshistoast merged commit 451b15c into main Oct 15, 2026
15 checks passed
@joshistoast
joshistoast deleted the fix/issue-9870-makefile-pnpm-cwd branch October 15, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs PRs that change docs Root

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Makefile not entering correct directory for various operations

2 participants