react-native-update-cli 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundle.js +2 -2
- package/package.json +1 -1
- package/src/bundle.ts +10 -12
package/lib/bundle.js
CHANGED
|
@@ -183,9 +183,9 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
|
|
|
183
183
|
} else if (cli.taro) {
|
|
184
184
|
bundleCommand = 'build';
|
|
185
185
|
}
|
|
186
|
-
reactNativeBundleArgs.push(cliPath, bundleCommand
|
|
186
|
+
reactNativeBundleArgs.push(cliPath, bundleCommand);
|
|
187
187
|
if (platform !== 'harmony') {
|
|
188
|
-
reactNativeBundleArgs.push('--platform', platform, '--reset-cache');
|
|
188
|
+
reactNativeBundleArgs.push('--platform', platform, '--assets-dest', outputFolder, '--bundle-output', _path.default.join(outputFolder, bundleName), '--reset-cache');
|
|
189
189
|
}
|
|
190
190
|
if (cli.taro) {
|
|
191
191
|
reactNativeBundleArgs.push('--type', 'rn');
|
package/package.json
CHANGED
package/src/bundle.ts
CHANGED
|
@@ -163,20 +163,18 @@ async function runReactNativeBundleCommand({
|
|
|
163
163
|
bundleCommand = 'build';
|
|
164
164
|
}
|
|
165
165
|
|
|
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);
|
|
177
167
|
|
|
178
168
|
if (platform !== 'harmony') {
|
|
179
|
-
reactNativeBundleArgs.push(
|
|
169
|
+
reactNativeBundleArgs.push(
|
|
170
|
+
'--platform',
|
|
171
|
+
platform,
|
|
172
|
+
'--assets-dest',
|
|
173
|
+
outputFolder,
|
|
174
|
+
'--bundle-output',
|
|
175
|
+
path.join(outputFolder, bundleName),
|
|
176
|
+
'--reset-cache',
|
|
177
|
+
);
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
if (cli.taro) {
|