Skip to content

Commit b560c76

Browse files
jbrejnerclaude[bot]
andcommitted
Update scripts/npm-publish.sh
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
1 parent d58b6dd commit b560c76

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/npm-publish.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ fi
3636
while IFS= read -r f; do
3737
tmp="$(mktemp)"
3838
jq --arg v "$VERSION" '.version = $v' "$f" > "$tmp" && mv "$tmp" "$f"
39+
while IFS= read -r f; do
40+
tmp="$(mktemp)"
41+
jq --arg v "$VERSION" '.version = $v' "$f" > "$tmp" && mv "$tmp" "$f" || { rm -f "$tmp"; exit 1; }
3942
done < <(find npm -name package.json)
4043

4144
# Also update the optionalDependencies version references in the wrapper

0 commit comments

Comments
 (0)