Skip to content

Commit bad2e8d

Browse files
committed
fix(release): restore only tracked package.json after bump
Feed git's own tracked file list into the post-bump checkout instead of a shell glob. `git ls-files '*package.json'` enumerates only version-managed package.json files, so node_modules copies can never be matched, and the shell no longer decides what the glob expands to.
1 parent 133f465 commit bad2e8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎justfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ schema:
4848
# Bump every package version (Rust included via bump.config.ts), then commit, tag, push
4949
release: ccusage::typecheck ccusage::build
5050
pnpm bumpp -r
51-
git checkout ./**/package.json package.json
51+
git checkout -- $(git ls-files '*package.json')

0 commit comments

Comments
 (0)