Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit d240bd6

Browse files
allow prerelease if using a prerelease sdk
1 parent b65f99c commit d240bd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/src/commands/dev/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)