1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-12-15 01:42:35 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Enhance package command options by adding platform parameter to getPlatform function call for improved appId retrieval.

This commit is contained in:
sunnylqm
2025-12-08 20:56:18 +08:00
parent e4b50b5e46
commit 98f72f01d2

View File

@@ -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;
}