Improve versioning script

This commit is contained in:
Andras Schmelczer 2025-10-27 07:02:50 +00:00
commit 9e8c5ef524
2 changed files with 4 additions and 1 deletions

View file

@ -24,7 +24,7 @@
}, },
"../pkg": { "../pkg": {
"name": "reconcile-text", "name": "reconcile-text",
"version": "0.5.0", "version": "0.6.0",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },

View file

@ -2,6 +2,8 @@
set -e set -e
git pull --rebase
if [[ -z $1 ]]; then if [[ -z $1 ]]; then
echo "Usage: $0 {patch|minor|major}" echo "Usage: $0 {patch|minor|major}"
exit 1 exit 1
@ -29,6 +31,7 @@ wasm-pack build --target web --features wasm
cd reconcile-js cd reconcile-js
npm version $1 npm version $1
npm install
cd - cd -