mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-10-28 21:33:10 +08:00
Update version to 2.2.2 in package.json and refactor argument handling in runReactNativeBundleCommand for better clarity and efficiency.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update-cli",
|
"name": "react-native-update-cli",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"description": "command line tool for react-native-update (remote updates for react native)",
|
"description": "command line tool for react-native-update (remote updates for react native)",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
@@ -163,20 +163,18 @@ async function runReactNativeBundleCommand({
|
|||||||
bundleCommand = 'build';
|
bundleCommand = 'build';
|
||||||
}
|
}
|
||||||
|
|
||||||
reactNativeBundleArgs.push(
|
reactNativeBundleArgs.push(cliPath, bundleCommand);
|
||||||
cliPath,
|
|
||||||
bundleCommand,
|
|
||||||
'--assets-dest',
|
|
||||||
outputFolder,
|
|
||||||
'--bundle-output',
|
|
||||||
path.join(
|
|
||||||
outputFolder,
|
|
||||||
platform === 'harmony' ? 'bundle.harmony.js' : bundleName,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
if (platform !== 'harmony') {
|
if (platform !== 'harmony') {
|
||||||
reactNativeBundleArgs.push('--platform', platform, '--reset-cache');
|
reactNativeBundleArgs.push(
|
||||||
|
'--platform',
|
||||||
|
platform,
|
||||||
|
'--assets-dest',
|
||||||
|
outputFolder,
|
||||||
|
'--bundle-output',
|
||||||
|
path.join(outputFolder, bundleName),
|
||||||
|
'--reset-cache',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cli.taro) {
|
if (cli.taro) {
|
||||||
|
|||||||
Reference in New Issue
Block a user