Skip to content

Commit

Permalink
chore: update package-lock.json after version bump (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
platosha authored Mar 31, 2022
1 parent bd2c541 commit 3602e4c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/bump/exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ 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

# Updating the peer dependencies in packages
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

Expand Down

0 comments on commit 3602e4c

Please sign in to comment.