Skip to content

Commit

Permalink
define updatePeerPackages on all js scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman committed Dec 18, 2023
1 parent d567303 commit 5b896e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/update-javascript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -euo pipefail

tagPrefix=''
updatePeerPackages=0
repo="https://github.com/getsentry/sentry-javascript.git"
packages=('@sentry/browser' '@sentry/core' '@sentry/integrations' '@sentry/types' '@sentry/utils')
#TODO: remove @sentry/hub and @sentry/tracing on next major release.
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-package-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set-version)
done
(
cd "$(dirname "$file")"
if [ -n "$updatePeerPackages" ] && [ "$updatePeerPackages" -eq 1 ]; then
if [ "$updatePeerPackages" -eq 1 ]; then
#upgrade doesn't support peerDependencies so we'll use the yarn option.
yarn add --peer $list --update-sentry-capacitor
else
Expand Down
1 change: 1 addition & 0 deletions scripts/update-wizard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -euo pipefail

tagPrefix='v' # wizard has a prefix in the repo, but the package.json doesn't have that - we must align
updatePeerPackages=0
repo="https://github.com/getsentry/sentry-wizard.git"
packages=('@sentry/wizard')

Expand Down

0 comments on commit 5b896e2

Please sign in to comment.