Skip to content

Commit 98f72f0

Browse files
committed
Enhance package command options by adding platform parameter to getPlatform function call for improved appId retrieval.
1 parent e4b50b5 commit 98f72f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ export const packageCommands = {
224224
options,
225225
}: {
226226
args: string[];
227-
options: { appId?: string; packageId?: string; packageVersion?: string };
227+
options: { appId?: string; packageId?: string; packageVersion?: string; platform?: Platform };
228228
}) => {
229229
let { appId, packageId, packageVersion } = options;
230230

231231
if (!appId) {
232-
const platform = await getPlatform();
232+
const platform = await getPlatform(options.platform);
233233
appId = (await getSelectedApp(platform)).appId as string;
234234
}
235235

0 commit comments

Comments
 (0)