From 3602e4c80b4ca052f5f4743cfbaf8c2e9204021b Mon Sep 17 00:00:00 2001 From: Anton Platonov Date: Thu, 31 Mar 2022 10:08:52 +0300 Subject: [PATCH] chore: update package-lock.json after version bump (#365) --- scripts/bump/exec.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/bump/exec.sh b/scripts/bump/exec.sh index 3728e26619..774163bc3d 100644 --- a/scripts/bump/exec.sh +++ b/scripts/bump/exec.sh @@ -14,7 +14,7 @@ alias ghr="curl https://api.github.com/repos/$REPO/branches/$branch/protection \ -s" # Updating the registration version for all packages -find "$packages_dir"/*/src/index.ts -exec sed -i'' -e "s/version:.\+\,/version: \/* updated-by-script *\/ \'$VERSION_TAG\',/" {} + +find "$packages_dir"/*/src/index.ts -exec sed -i "" -e "s/version:.\+\,/version: \/* updated-by-script *\/ \'$VERSION_TAG\',/" {} + npx lerna version "$VERSION_TAG" --no-git-tag-version --no-push --yes @@ -22,8 +22,7 @@ npx lerna version "$VERSION_TAG" --no-git-tag-version --no-push --yes find "$packages_dir"/*/package.json -exec node "$bump_scripts_dir"/package-update.js -v "$VERSION_TAG" {} + # Updating package-lock.json to reflect results of the previous command -npx lerna clean --yes -npm run bootstrap +npm install --package-lock-only --ignore-scripts git add --all