Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/builder/src/export/PackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,13 +527,15 @@ export class PackageManager {
updatedDependencies[pkgName] = 'workspace:*';
} else if (env === 'staging') {
// Staging: Use RC versions for testing latest features
// If managedVersion is already an RC version (e.g., 0.0.0-rc-20250915124300), use it
// Otherwise, fall back to using the 'rc' dist-tag so consumers pull the latest RC snapshot
// If managedVersion is an RC version (e.g., 0.0.0-rc-20250915124300), use it directly.
// Otherwise, use the managed stable version — the 'rc' dist-tag can be stale and
// resolve to a build that predates features shipped in stable releases.
if (managedVersion.includes('-rc')) {
updatedDependencies[pkgName] = managedVersion;
} else {
// Using the dist-tag ensures alignment with snapshot format 0.0.0-rc-YYYYMMDDHHMMSS
updatedDependencies[pkgName] = 'rc';
updatedDependencies[pkgName] = managedVersion.startsWith('^')
? managedVersion
: `^${managedVersion}`;
}
} else {
// Production: Use stable published versions
Expand Down