From a736c507d1ffebe2dbbcb7e787354006cc40f81b Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 22 Apr 2022 11:37:55 +0100 Subject: [PATCH] Update release script --- package.json | 2 +- scripts/pro/release.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e1f1752864..3e6290e40b 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,6 @@ "mode:account": "yarn mode:cloud && yarn env:account:enable", "security:audit": "node scripts/audit.js", "postinstall": "husky install", - "install:pro": "sh ./scripts/pro/install.sh" + "install:pro": "bash scripts/pro/install.sh" } } diff --git a/scripts/pro/release.sh b/scripts/pro/release.sh index 885f45a665..d4a471727b 100755 --- a/scripts/pro/release.sh +++ b/scripts/pro/release.sh @@ -30,8 +30,10 @@ echo "Releasing tag $TAG" lerna publish $VERSION --yes --force-publish --dist-tag $TAG # reset main and types to point to src for dev +cd packages/pro jq '.main = "src/index.ts" | .types = "src/index.ts"' package.json > package.json.tmp && mv package.json.tmp package.json -git add package.json +cd ../../ +git add packages/pro/package.json git commit -m 'Prep dev' git push