@bravemobile/react-native-code-push 9.0.0-alpha.1 → 9.0.0-alpha.3
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.
|
@@ -5,6 +5,7 @@ const { release } = require("./release");
|
|
|
5
5
|
|
|
6
6
|
program.command('release')
|
|
7
7
|
.description('Deploys a new CodePush update for a target binary app.\nAfter creating the CodePush bundle, it uploads the file and updates the ReleaseHistory information.\n`bundleUploader`, `getReleaseHistory`, and `setReleaseHistory` functions should be implemented in the config file.')
|
|
8
|
+
.requiredOption('-b, --binary-version <string>', '(Required) The target binary version')
|
|
8
9
|
.requiredOption('-v, --app-version <string>', '(Required) The app version to be released. It must be greater than the binary version.')
|
|
9
10
|
.addOption(new Option('-p, --platform <type>', 'platform').choices(['ios', 'android']).default('ios'))
|
|
10
11
|
.option('-i, --identifier <string>', 'reserved characters to distinguish the release.')
|
|
@@ -29,11 +30,6 @@ program.command('release')
|
|
|
29
30
|
* @return {void}
|
|
30
31
|
*/
|
|
31
32
|
.action(async (options) => {
|
|
32
|
-
if (SemVer.lte(options.appVersion, options.binaryVersion)) {
|
|
33
|
-
console.error('The app version must be greater than the binary version.');
|
|
34
|
-
process.exit(1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
33
|
const config = findAndReadConfigFile(process.cwd(), options.config);
|
|
38
34
|
|
|
39
35
|
await release(
|
package/package.json
CHANGED