mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-12-15 01:42:35 +08:00
Enhance package command options by adding platform parameter to getPlatform function call for improved appId retrieval.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user