Skip to content

Commit 5f55c16

Browse files
committed
fix: hard link is removed when patching
1 parent 179989e commit 5f55c16

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

js/bump.bash

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ if ! [[ $REPLY =~ ^[Yy]$ ]]; then
3131
exit 1
3232
fi
3333

34-
# package.json is symlinked to jsr.json
34+
# package.json is hard linked to jsr.json
3535
# jq ".version = \"${version}\"" package.json >${tmp}
3636
# mv ${tmp} package.json
37-
jq ".version = \"${version}\"" jsr.json >${tmp}
38-
mv ${tmp} jsr.json
37+
yq -i e ".version |= \"${version}\"" jsr.json
3938

4039
git add .
4140
git commit -m "bump to ${version}"

js/package.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jsr.json

0 commit comments

Comments
 (0)