diff --git a/sync-version.sh b/sync-version.sh index af24704..93e0273 100644 --- a/sync-version.sh +++ b/sync-version.sh @@ -1,2 +1,2 @@ -VERSION=$(grep '"version"' package.json | sed -E 's/.*"version": "([0-9]+\.[0-9]+\.[0-9]+)".*/\1/') +VERSION=$(jq -r '.version' package.json) jq --arg version "$VERSION" '.packageVersion = $version' config.json > temp.json && mv temp.json config.json