Skip to content

Commit 3dc8c38

Browse files
committed
Exclude node_modules from package.json search in npm-publish script
1 parent 42b73f6 commit 3dc8c38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/npm-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636
while IFS= read -r f; do
3737
tmp="$(mktemp)"
3838
jq --arg v "$VERSION" '.version = $v' "$f" > "$tmp" && mv "$tmp" "$f" || { rm -f "$tmp"; exit 1; }
39-
done < <(find npm -name package.json)
39+
done < <(find npm -name package.json ! -path '*/node_modules/*')
4040

4141
# Also update the optionalDependencies version references in the wrapper
4242
tmp="$(mktemp)"

0 commit comments

Comments
 (0)