expo-version-cli
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
const assertValidCommand = command => { | ||
if (!['patch', 'minor', 'major'].includes(command)) { | ||
if (!['patch', 'minor', 'major', 'build'].includes(command)) { | ||
help(); | ||
@@ -14,0 +14,0 @@ exit(); |
{ | ||
"name": "expo-version-cli", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "A simple expo version updater cli", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -50,3 +50,2 @@ const Utils = require('./utils.js'); | ||
this.setExpoVersion(split.join('.')); | ||
this.increaseBuild(); | ||
} | ||
@@ -58,3 +57,2 @@ | ||
this.setExpoVersion(split.join('.')); | ||
this.increaseBuild(); | ||
} | ||
@@ -66,3 +64,2 @@ | ||
this.setExpoVersion(split[0] + '.0.0'); | ||
this.increaseBuild(); | ||
} | ||
@@ -69,0 +66,0 @@ |
@@ -21,6 +21,13 @@ const AppFile = require('./AppFile'); | ||
function increaseBuildNumber() { | ||
const appFile = new AppFile(); | ||
appFile.increaseBuild(); | ||
appFile.save() | ||
} | ||
const actions = { | ||
minor: increaseMinor, | ||
major: increaseMajor, | ||
patch: increasePatch | ||
patch: increasePatch, | ||
build: increaseBuildNumber | ||
}; | ||
@@ -34,2 +41,3 @@ | ||
major Increase a major number | ||
build Increase the build number | ||
Examples | ||
@@ -39,2 +47,3 @@ $ expo-version-cli patch | ||
$ expo-version-cli major | ||
$ expo-version-cli build | ||
`); | ||
@@ -41,0 +50,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18873
373