@bravemobile/react-native-code-push 9.0.0-beta.0 → 9.0.0-beta.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.
@@ -16,6 +16,7 @@ program.command('release')
16
16
  .option('-m, --mandatory <bool>', 'make the release to be mandatory', parseBoolean, false)
17
17
  .option('--enable <bool>', 'make the release to be enabled', parseBoolean, true)
18
18
  .option('--skip-bundle <bool>', 'skip bundle process', parseBoolean, false)
19
+ .option('--skip-cleanup <bool>', 'skip cleanup process', parseBoolean, false)
19
20
  .option('--output-bundle-dir <string>', 'name of directory containing the bundle file created by the "bundle" command', OUTPUT_BUNDLE_DIR)
20
21
  /**
21
22
  * @param {Object} options
@@ -30,6 +31,7 @@ program.command('release')
30
31
  * @param {string} options.mandatory
31
32
  * @param {string} options.enable
32
33
  * @param {string} options.skipBundle
34
+ * @param {string} options.skipCleanup
33
35
  * @param {string} options.outputBundleDir
34
36
  * @return {void}
35
37
  */
@@ -50,6 +52,7 @@ program.command('release')
50
52
  options.mandatory,
51
53
  options.enable,
52
54
  options.skipBundle,
55
+ options.skipCleanup,
53
56
  `${options.outputPath}/${options.outputBundleDir}`,
54
57
  )
55
58
 
@@ -33,6 +33,7 @@ const { addToReleaseHistory } = require("./addToReleaseHistory");
33
33
  * @param mandatory {boolean}
34
34
  * @param enable {boolean}
35
35
  * @param skipBundle {boolean}
36
+ * @param skipCleanup {boolean}
36
37
  * @param bundleDirectory {string}
37
38
  * @return {Promise<void>}
38
39
  */
@@ -50,6 +51,7 @@ async function release(
50
51
  mandatory,
51
52
  enable,
52
53
  skipBundle,
54
+ skipCleanup,
53
55
  bundleDirectory,
54
56
  ) {
55
57
  const bundleFileName = skipBundle
@@ -80,7 +82,9 @@ async function release(
80
82
  enable,
81
83
  )
82
84
 
83
- cleanUpOutputs(outputPath);
85
+ if (!skipCleanup) {
86
+ cleanUpOutputs(outputPath);
87
+ }
84
88
  }
85
89
 
86
90
  function cleanUpOutputs(dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bravemobile/react-native-code-push",
3
- "version": "9.0.0-beta.0",
3
+ "version": "9.0.0-beta.1",
4
4
  "description": "React Native plugin for the CodePush service",
5
5
  "main": "CodePush.js",
6
6
  "typings": "typings/react-native-code-push.d.ts",