react-native-update-cli 2.3.0 → 2.3.1

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 CHANGED
@@ -244,6 +244,18 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
244
244
  if (hermesEnabled) {
245
245
  await compileHermesByteCode(bundleName, outputFolder, sourcemapOutput, !isSentry);
246
246
  }
247
+ if (platform === 'harmony') {
248
+ const harmonyRawAssetsPath = 'harmony/entry/src/main/resources/rawfile/assets';
249
+ // copy all files in outputFolder to harmonyRawPath
250
+ // assets should be in rawfile/assets
251
+ _fsextra.ensureDirSync(harmonyRawAssetsPath);
252
+ _fsextra.copySync(outputFolder, harmonyRawAssetsPath, {
253
+ overwrite: true
254
+ });
255
+ _fsextra.moveSync(`${harmonyRawAssetsPath}/bundle.harmony.js`, `${harmonyRawAssetsPath}/../bundle.harmony.js`, {
256
+ overwrite: true
257
+ });
258
+ }
247
259
  resolve(null);
248
260
  }
249
261
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/bundle.ts CHANGED
@@ -256,6 +256,19 @@ async function runReactNativeBundleCommand({
256
256
  !isSentry,
257
257
  );
258
258
  }
259
+ if (platform === 'harmony') {
260
+ const harmonyRawAssetsPath =
261
+ 'harmony/entry/src/main/resources/rawfile/assets';
262
+ // copy all files in outputFolder to harmonyRawPath
263
+ // assets should be in rawfile/assets
264
+ fs.ensureDirSync(harmonyRawAssetsPath);
265
+ fs.copySync(outputFolder, harmonyRawAssetsPath, { overwrite: true });
266
+ fs.moveSync(
267
+ `${harmonyRawAssetsPath}/bundle.harmony.js`,
268
+ `${harmonyRawAssetsPath}/../bundle.harmony.js`,
269
+ { overwrite: true },
270
+ );
271
+ }
259
272
  resolve(null);
260
273
  }
261
274
  });