Skip to content

Commit

Permalink
Update bump script
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed May 9, 2024
1 parent 5821630 commit ec84d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ for (let dir of readdirSync(PACKAGES)) {
pkgPath,
pkg
.replace(
/("@size-limit\/[^"]+": )"((workspace:)?\d+.\d+.\d+"|workspace:\*")/g,
/("@size-limit\/[^"]+": )"((workspace:)?\d+.\d+.\d+"|workspace:\^")/g,
`$1"${version}"`
)
.replace(
/("size-limit": )"((workspace:)?\d+.\d+.\d+"|workspace:\*")/g,
/("size-limit": )"((workspace:)?\d+.\d+.\d+"|workspace:\^")/g,
`$1"${version}"`
)
.replace(/("version": )"\d+.\d+.\d+"/g, `$1"${version}"`)
Expand Down

0 comments on commit ec84d65

Please sign in to comment.