aboutsummaryrefslogtreecommitdiffstats
path: root/development/version-bump.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 06:49:33 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 06:49:33 +0800
commita8f745f9fe74751b87f500af3857b66d4c80f45e (patch)
treef4f09d2b4227b35a6d2fd996113d36a8aa658ddd /development/version-bump.js
parentcc11a623972acf707291d7b42d9dc2f8d7006e20 (diff)
downloadtangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.gz
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.bz2
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.lz
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.xz
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.zst
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.zip
eslint --fix .
Diffstat (limited to 'development/version-bump.js')
-rw-r--r--development/version-bump.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/development/version-bump.js b/development/version-bump.js
index bedf87c01..31d778b34 100644
--- a/development/version-bump.js
+++ b/development/version-bump.js
@@ -1,6 +1,6 @@
const clone = require('clone')
-async function versionBump(bumpType, changelog, oldManifest) {
+async function versionBump (bumpType, changelog, oldManifest) {
const manifest = clone(oldManifest)
const newVersion = newVersionFrom(manifest, bumpType)
@@ -19,13 +19,13 @@ async function versionBump(bumpType, changelog, oldManifest) {
return {
version: newVersion,
manifest: manifest,
- changelog: logLines.join('\n')
+ changelog: logLines.join('\n'),
}
}
function newVersionFrom (manifest, bumpType) {
const string = manifest.version
- let segments = string.split('.').map((str) => parseInt(str))
+ const segments = string.split('.').map((str) => parseInt(str))
switch (bumpType) {
case 'major':