-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathreact-native.config.js
34 lines (32 loc) · 1.08 KB
/
react-native.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const { versioner } = require("./lib/index");
const path = require("path");
module.exports = {
commands: [{
name: "bump-version",
func: (_, config, args) => {
const result = versioner(config, args);
if (result) {
result.run();
}
},
options: [
{
name: "--type [major|minor|patch]",
description:
"SemVer release type, optional if --skip-semver-for all is passed, ignored (and optional) when --semver is passed",
},
{
name: "--semver [String]",
description: "Pass release version if known. Overwrites calculated SemVer. Optional.",
},
{
name: "--skip-semver-for [android|ios|all]",
description: "Skips bump SemVer for specified platform",
},
{
name: "--skip-code-for [android|ios|all]",
description: "Skips bump version codes for specified platform",
},
],
}],
};