Nx
Enterprise
Nx
fix(core): trust workspace addDev in installPackageToTmp so pnpm `-w` is preserved The hardcoded `addCommand = 'pnpm add -D'` override stripped `-w` from `pmCommands.addDev`. That was correct when the temp dir had no `pnpm-workspace.yaml`, but the recent fix to copy a sanitized `pnpm-workspace.yaml` into the temp dir promotes it to a workspace root and pnpm rejects `pnpm add -D` (no `-w`) there. Use `pmCommands.addDev` verbatim and thread the resolved package manager through `installPackageToTmp` / `installPackageToTmpAsync` / `preparePackageInstallation` so callers (init-v2, configure-ai-agents, latest-nx, set-up-ai-agents, devkit's ensurePackage) pass the right detection root rather than the function re-detecting from `workspaceRoot` by default.
nx-cloud record -- nx format:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx-cloud record -- nx format:check
Click to copy
Linux
4 CPU cores
e1b5bda6
35866