aboutsummaryrefslogtreecommitdiffstats
path: root/development/run-version-bump.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-03-03 05:59:08 +0800
committerDan Finlay <dan@danfinlay.com>2018-03-03 06:01:53 +0800
commit3a9b3794ebccbe3369a67e797186141dc011dd9d (patch)
tree1247dd81d0dd0ada5386b086990743ba714f7ae3 /development/run-version-bump.js
parentbf17d7e1153180fe68cc568a6f4ffa8db66010dc (diff)
downloadtangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.tar
tangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.tar.gz
tangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.tar.bz2
tangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.tar.lz
tangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.tar.xz
tangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.tar.zst
tangerine-wallet-browser-3a9b3794ebccbe3369a67e797186141dc011dd9d.zip
Remove logs
Diffstat (limited to 'development/run-version-bump.js')
-rw-r--r--development/run-version-bump.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/development/run-version-bump.js b/development/run-version-bump.js
index 3b26b00db..e06c00db3 100644
--- a/development/run-version-bump.js
+++ b/development/run-version-bump.js
@@ -8,7 +8,6 @@ const manifestPath = path.join(__dirname, '..', 'app', 'manifest.json')
const manifest = require('../app/manifest.json')
const versionBump = require('./version-bump')
-console.dir(process.argv)
const bumpType = normalizeType(process.argv[2])
@@ -17,12 +16,9 @@ readFile(changelogPath)
const changelog = changeBuffer.toString()
const newData = await versionBump(bumpType, changelog, manifest)
- console.dir(newData)
const manifestString = JSON.stringify(newData.manifest, null, 2)
- console.log('now writing files to ', changelogPath, manifestPath)
- console.log(typeof newData.manifest)
await writeFile(changelogPath, newData.changelog)
await writeFile(manifestPath, manifestString)
@@ -33,17 +29,14 @@ readFile(changelogPath)
function normalizeType (userInput) {
- console.log(`user inputted ${userInput}`)
const err = new Error('First option must be a type (major, minor, or patch)')
if (!userInput || typeof userInput !== 'string') {
- console.log('first no')
throw err
}
const lower = userInput.toLowerCase()
if (lower !== 'major' && lower !== 'minor' && lower !== 'patch') {
- console.log('second no')
throw err
}