Skip to content

Commit 78159f3

Browse files
committed
Update version to 2.2.2 in package.json and refactor argument handling in runReactNativeBundleCommand for better clarity and efficiency.
1 parent b76440d commit 78159f3

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "command line tool for react-native-update (remote updates for react native)",
55
"main": "index.js",
66
"bin": {

src/bundle.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,18 @@ async function runReactNativeBundleCommand({
163163
bundleCommand = 'build';
164164
}
165165

166-
reactNativeBundleArgs.push(
167-
cliPath,
168-
bundleCommand,
169-
'--assets-dest',
170-
outputFolder,
171-
'--bundle-output',
172-
path.join(
173-
outputFolder,
174-
platform === 'harmony' ? 'bundle.harmony.js' : bundleName,
175-
),
176-
);
166+
reactNativeBundleArgs.push(cliPath, bundleCommand);
177167

178168
if (platform !== 'harmony') {
179-
reactNativeBundleArgs.push('--platform', platform, '--reset-cache');
169+
reactNativeBundleArgs.push(
170+
'--platform',
171+
platform,
172+
'--assets-dest',
173+
outputFolder,
174+
'--bundle-output',
175+
path.join(outputFolder, bundleName),
176+
'--reset-cache',
177+
);
180178
}
181179

182180
if (cli.taro) {

0 commit comments

Comments
 (0)