Skip to content

Commit a8c9d22

Browse files
committed
fix: handle no return from versioner
1 parent 3a5801c commit a8c9d22

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

react-native.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ module.exports = {
55
commands: [{
66
name: "bump-version",
77
func: (_, config, args) => {
8-
versioner(config, args).run();
8+
const result = versioner(config, args);
9+
10+
if(result) {
11+
result.run();
12+
}
913
},
1014
options: [
1115
{
1216
name: "--type [major|minor|patch]",
13-
description: "SemVer release type, optional if --skip-semver-for all is passed",
17+
description: "SemVer release type, optional if --skip-semver-for all is passed, ignored (and optional) when --semver is passed",
1418
},
1519
{
1620
name: "--semver [String]",

0 commit comments

Comments
 (0)