Repository navigation
chore: sync package-lock with the 0.20.0 release bump - #1094
Merged
Merged
Conversation
`just release` bumps every package.json but never regenerates the lockfile, so main's lockfile still recorded 0.19.1 for all 12 workspace packages after chant-v0.20.0. Surfaced during #1049 verification.
lex00
added a commit
that referenced
this pull request
Jul 27, 2026
just release bumps every workspace package.json but left package-lock.json recording the previous versions; #1094 cleaned up the 0.20.0 drift, this stops it recurring.
This was referenced Jul 27, 2026
lex00
added a commit
that referenced
this pull request
Jul 31, 2026
…rified commit (#1281) Closes the two in-repo halves of #1255. The third (a trusted-publisher record for @intentius/chant-k8s-client) is done on npmjs.com — the package published 0.33.1 over OIDC with provenance in #1278. ## Peer ranges (#1255.2) `just release` rewrites the `@intentius/*` peer ranges alongside `.version`, added in #411 because ranges frozen at an old version break clean installs. `release-lexicon` only ever set `.version`, so a single-lexicon patch that needed a newer core silently shipped a stale range. The two recipes cannot share a literal. A whole-repo release moves everything together, so `^$next` is correct there; a single-lexicon patch leaves core where it is, so its ranges must track the CURRENT core and github-lexicon versions. Pinning them to `$next` would demand a core that does not exist. The test asserts that mechanism rather than a shared value. `release-lexicon` also now runs `npm install --package-lock-only` and commits the result, for the same reason `just release` has since #1094 — a bump that leaves the lockfile recording the old version is the same defect. ## Preflight (#1255.3) Both recipes pushed the bump commit straight to main, bypassing branch protection, so the commit a release tag pointed at was one CI never ran — and nothing checked that the code being released was green either. scripts/release-preflight.sh, shared by both recipes rather than copied into each, refuses to tag unless the tree is clean, HEAD matches its pushed branch, and the `chant` run for that commit concluded success. `release` additionally requires main, since it pushes main explicitly. `CHANT_RELEASE_SKIP_PREFLIGHT=1` is the emergency opt-out. Exercised every path: dirty tree, wrong branch, unpushed HEAD, CI still running (caught main mid-run and printed the run URL), and the opt-out. The guards live in release-wiring.test.ts, where #1255 said they belong, and each was verified to fail by reverting the fix it covers. Claude-Session: https://claude.ai/code/session_01JTHr67zuAjGHJAX6gF5tYA Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
just releaseedits every workspace package.json (version + peerDependency ranges) but never runsnpm install, so the committed lockfile keeps the previous versions — after chant-v0.20.0, all 12 workspace entries still said 0.19.1. This PR is the regenerated lockfile only (25 lines, version fields).Worth considering separately: adding
npm install --package-lock-only && git add package-lock.jsonto thereleaserecipe so this can't drift again.🤖 Generated with Claude Code