Commit ce02306
authored
[rush] Route lockfile-changed warning to stderr (#5804)
`rush list --json` writes `Lockfile was created or deleted. Assuming
all projects are affected.` to stdout when the lockfile was added or
removed in the diff range, which corrupts the JSON output and breaks
pipes such as `rush list --json --impacted-by git:<sha> | jq .`.
The information is useful diagnostic context, so rather than suppress
it, route it through `terminal.writeWarningLine` (which writes to
stderr) -- the standard CLI convention for warnings that should not
pollute machine-readable stdout. Matches how the rest of this file
already emits non-fatal diagnostics (see lines 418, 446, 458).
Fixes #54061 parent 83bdc16 commit ce02306
2 files changed
Lines changed: 15 additions & 2 deletions
File tree
- common/changes/@microsoft/rush
- libraries/rush-lib/src/logic
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| |||
0 commit comments