This repository was archived by the owner on Sep 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export default class DevCommand extends BaseCommand {
8080
8181 const app = await getAppInfo ( appPath ) ;
8282 const { sdk, sdkVersion } = app ;
83+ const prerelease = vi . isPrerelease ( sdkVersion ) || flags . prerelease ;
8384
8485 if ( ! flags [ "no-logo" ] ) {
8586 this . log ( getHeader ( this . config . version ) ) ;
@@ -109,7 +110,7 @@ export default class DevCommand extends BaseCommand {
109110 }
110111 }
111112 } else if ( await isOnline ( ) ) {
112- const version = await vi . findLatestCompatibleRuntimeVersion ( sdk , sdkVersion , flags . prerelease ) ;
113+ const version = await vi . findLatestCompatibleRuntimeVersion ( sdk , sdkVersion , prerelease ) ;
113114 if ( version && ! ( await vi . runtimeVersionIsInstalled ( version ) ) ) {
114115 const runtimeText = `Modus Runtime ${ version } ` ;
115116 await withSpinner ( chalk . dim ( "Downloading and installing " + runtimeText ) , async ( spinner ) => {
@@ -128,7 +129,7 @@ export default class DevCommand extends BaseCommand {
128129 }
129130 runtimeVersion = version ;
130131 } else {
131- const version = await vi . findCompatibleInstalledRuntimeVersion ( sdk , sdkVersion , flags . prerelease ) ;
132+ const version = await vi . findCompatibleInstalledRuntimeVersion ( sdk , sdkVersion , prerelease ) ;
132133 if ( ! version ) {
133134 this . logError ( "Could not find a compatible Modus runtime version. Please try again when you have an internet connection." ) ;
134135 return ;
You can’t perform that action at this time.
0 commit comments