diff --git a/package.json b/package.json index c3346f1..52187bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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)", "main": "index.js", "bin": { diff --git a/src/bundle.ts b/src/bundle.ts index 67fa91f..a442c93 100644 --- a/src/bundle.ts +++ b/src/bundle.ts @@ -163,20 +163,18 @@ async function runReactNativeBundleCommand({ bundleCommand = 'build'; } - reactNativeBundleArgs.push( - cliPath, - bundleCommand, - '--assets-dest', - outputFolder, - '--bundle-output', - path.join( - outputFolder, - platform === 'harmony' ? 'bundle.harmony.js' : bundleName, - ), - ); + reactNativeBundleArgs.push(cliPath, bundleCommand); 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) {