From 1141fdd483dd09ebe129329d104ba2b6ad45071a Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 22 Apr 2022 11:01:27 +0100 Subject: [PATCH] Release script updates --- package.json | 4 ++-- scripts/pro/release.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b605c419ff..e1f1752864 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "build": "lerna run build", "release": "lerna publish patch --yes --force-publish && yarn release:pro", "release:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop && yarn release:pro:develop", - "release:pro": "sh scripts/pro/release.sh", - "release:pro:develop": "sh scripts/pro/release.sh develop", + "release:pro": "bash scripts/pro/release.sh", + "release:pro:develop": "bash scripts/pro/release.sh develop", "restore": "yarn run clean && yarn run bootstrap && yarn run build", "nuke": "yarn run nuke:packages && yarn run nuke:docker", "nuke:packages": "yarn run restore", diff --git a/scripts/pro/release.sh b/scripts/pro/release.sh index 6023de7f16..885f45a665 100755 --- a/scripts/pro/release.sh +++ b/scripts/pro/release.sh @@ -29,6 +29,12 @@ echo "Releasing version $VERSION" echo "Releasing tag $TAG" lerna publish $VERSION --yes --force-publish --dist-tag $TAG +# reset main and types to point to src for dev +jq '.main = "src/index.ts" | .types = "src/index.ts"' package.json > package.json.tmp && mv package.json.tmp package.json +git add package.json +git commit -m 'Prep dev' +git push + cd - if [[ $COMMAND == "develop" ]]; then