Nx
Enterprise
Nx
fix(core): route legacy record-shape targetDefaults warning to stderr The deprecation warning for record-shape `targetDefaults` in nx.json went through `output.warn`, which writes to stdout. That corrupted structured stdout — `nx show project --json` emitted the ` NX nx.json uses the legacy record-shape…` header before the JSON payload, so JSON.parse on the result failed with `Unexpected token 'N'`, breaking the spread E2E suite. Write the warning directly to `process.stderr` so it stays visible in a TTY but never contaminates `--json` / machine-readable stdout. Add a unit assertion that the warning never hits stdout so a future regression fails at unit-test speed rather than only in e2e.
nx-cloud record -- pnpm nx-cloud conformance:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx-cloud record -- pnpm nx-cloud conformance:check
Click to copy
Linux
4 CPU cores
1c5b781e
35340