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

Commit b65f99c

Browse files
forward prerelease flag to subcommand
1 parent ecad7be commit b65f99c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/src/commands/new/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,11 @@ export default class NewCommand extends BaseCommand {
305305
}
306306
}
307307
if (updateSDK) {
308-
await SDKInstallCommand.run([sdk, latestVersion!, "--no-logo"]);
308+
const sdkInstallArgs = [sdk, latestVersion!, "--no-logo"];
309+
if (prerelease) {
310+
sdkInstallArgs.push("--prerelease");
311+
}
312+
await SDKInstallCommand.run(sdkInstallArgs);
309313
installedSdkVersion = latestVersion;
310314
}
311315
}

0 commit comments

Comments
 (0)