From 98f72f01d2a7f6b37cbe9164177fe33532a3adeb Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Mon, 8 Dec 2025 20:56:18 +0800 Subject: [PATCH] Enhance package command options by adding platform parameter to getPlatform function call for improved appId retrieval. --- src/package.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.ts b/src/package.ts index 657a773..02001f8 100644 --- a/src/package.ts +++ b/src/package.ts @@ -224,12 +224,12 @@ export const packageCommands = { options, }: { args: string[]; - options: { appId?: string; packageId?: string; packageVersion?: string }; + options: { appId?: string; packageId?: string; packageVersion?: string; platform?: Platform }; }) => { let { appId, packageId, packageVersion } = options; if (!appId) { - const platform = await getPlatform(); + const platform = await getPlatform(options.platform); appId = (await getSelectedApp(platform)).appId as string; }