Skip to content

Commit 10ecb08

Browse files
committed
chore: improve release-it config
1 parent fe5333e commit 10ecb08

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@
8989
},
9090
"plugins": {
9191
"@release-it/bumper": {
92+
"in": {
93+
"file": "package/package.json",
94+
"path": "version"
95+
},
9296
"out": [
9397
{
9498
"file": "package.json",
9599
"path": "version"
96100
},
97-
{
98-
"file": "package/package.json",
99-
"path": "version"
100-
},
101101
{
102102
"file": "example/package.json",
103103
"path": "version"

package/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@
9393
},
9494
"release-it": {
9595
"npm": {
96-
"publish": true
96+
"publish": true,
97+
"versionArgs": [
98+
"--allow-same-version"
99+
]
97100
},
98101
"git": false,
99102
"github": {

scripts/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd package
66
bun release $@
77

88
echo "Creating a Git bump commit and GitHub release"
9+
910
cd ..
10-
bun run release-it $@
1111

12+
bun run release-it $@ && \
1213
echo "Successfully released react-native-nitro-sqlite!"

0 commit comments

Comments
 (0)