Skip to content

Commit 91c1468

Browse files
sorccuclaude
andcommitted
chore: install deps before surveying in dependency update command [RED-709]
Phase 1 of the dependency-update command sent the operator straight to `pnpm outdated -r`. That command compares the installed tree against the registry, so in a tree without node_modules it reports every direct dependency as `missing (wanted ...)` — including ones already up to date — instead of only what is outdated, making the survey useless. A fresh git worktree never has node_modules, since gitignored artifacts are not shared between worktrees, so the survey fails there by default. Add the install step and a tripwire describing the all-`missing` output, so the next operator recognises the failure instead of re-deriving it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5d7d519 commit 91c1468

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.claude/commands/checkly-cli-update-dependencies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ All paths below are relative to the repo root unless noted otherwise.
2121

2222
## Phase 1: Survey what is outdated
2323

24-
- [ ] Run `pnpm outdated -r` to list outdated direct dependencies across all workspace packages.
24+
- [ ] Run `pnpm install` first. `pnpm outdated` compares the **installed** tree against the registry, so without `node_modules` it reports every package as `missing (wanted …)` and the survey is worthless — it lists every direct dependency, including ones already up to date, rather than only what is actually outdated. A fresh git worktree never has `node_modules` (gitignored artifacts are not shared between worktrees), so this step is essential there; elsewhere it is idempotent and safe to repeat.
25+
- [ ] Run `pnpm outdated -r` to list outdated direct dependencies across all workspace packages. If the `Current` column reads `missing` for everything, the install above did not happen — stop and install before going further.
2526

2627
## Phase 2: Choose target versions (compatibility- and embargo-aware)
2728

0 commit comments

Comments
 (0)