diff --git a/scripts/bump.js b/scripts/bump.js index 04f34a6c..e525540b 100755 --- a/scripts/bump.js +++ b/scripts/bump.js @@ -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}"`)