Skip to content

Commit 955ed48

Browse files
committed
Revert update-deps script logic
1 parent 611ebeb commit 955ed48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/platform-rig/bin/update-deps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ async function updatePackageDependencies(project, latestVersions, dryRun = false
160160
}
161161

162162
if (isNewerVersion(currentVersion, latestVersion)) {
163-
// Use fixed version without ^ prefix for hcengineering packages
164-
const newVersion = latestVersion
163+
const prefix = currentVersion.match(/^[\^~]/)?.[0] || '^'
164+
const newVersion = `${prefix}${latestVersion}`
165165

166166
changes.push({
167167
depType,

0 commit comments

Comments
 (0)