mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-12-16 18:32:34 +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,
|
options,
|
||||||
}: {
|
}: {
|
||||||
args: string[];
|
args: string[];
|
||||||
options: { appId?: string; packageId?: string; packageVersion?: string };
|
options: { appId?: string; packageId?: string; packageVersion?: string; platform?: Platform };
|
||||||
}) => {
|
}) => {
|
||||||
let { appId, packageId, packageVersion } = options;
|
let { appId, packageId, packageVersion } = options;
|
||||||
|
|
||||||
if (!appId) {
|
if (!appId) {
|
||||||
const platform = await getPlatform();
|
const platform = await getPlatform(options.platform);
|
||||||
appId = (await getSelectedApp(platform)).appId as string;
|
appId = (await getSelectedApp(platform)).appId as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user