UNPKG

crx-bump

Version:

Automatically (or with prompts) bump your version number(for Chrome Extension), commit changes, tag, and push to Git

12 lines (8 loc) 466 B
// @ts-check const argv = require('minimist')(process.argv.slice(2), { string: ['_'] }) const isNotUndefined = require('./is-not-undefined') module.exports = async function main() { const help = isNotUndefined(argv.h) || isNotUndefined(argv.help) const version = isNotUndefined(argv.v) || isNotUndefined(argv.version) help || version ? require('./help')() : require('./exec-command')(require('./get-commander-by-argv')(await require('./select-level')())) }