1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-17 18:06:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

semver range

This commit is contained in:
sunnylqm
2025-05-15 22:13:42 +08:00
parent 002e8662d6
commit 8c31ee5762
10 changed files with 181 additions and 203 deletions

View File

@@ -8,7 +8,7 @@ import {
type ZipFile as YauzlZipFile,
} from 'yauzl';
import { question, checkPlugins } from './utils';
import { checkPlatform } from './app';
import { checkPlatform, getPlatform } from './app';
import { spawn, spawnSync } from 'child_process';
import semverSatisfies from 'semver/functions/satisfies';
const g2js = require('gradle-to-js/lib/parser');
@@ -902,9 +902,7 @@ function diffArgsCheck(args: string[], options: any, diffFn: string) {
export const commands = {
bundle: async ({ options }) => {
const platform = checkPlatform(
options.platform || (await question(t('platformPrompt'))),
);
const platform = await getPlatform(options.platform);
const {
bundleName,