Skip to content

Commit

Permalink
lint and pretty bin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jul 2, 2017
1 parent 2082513 commit 2a62f8c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
26 changes: 17 additions & 9 deletions bin/next-update.js
Expand Up @@ -14,17 +14,21 @@ var report = require('../src/report').report
var revert = require('../src/revert')

if (program.available) {
nextUpdate.available(program.module, {
color: program.color
}).done()
nextUpdate
.available(program.module, {
color: program.color
})
.done()
} else if (program.revert) {
debug('reverting %s', program.module ? program.module : 'all modules')
revert(program.module)
.then(function () {
revert(program.module).then(
function () {
console.log('done reverting')
}, function (error) {
},
function (error) {
console.error('error while reverting\n', error)
})
}
)
} else {
if (!program.tldr) {
console.log(info)
Expand All @@ -39,8 +43,12 @@ if (program.available) {

const allow = program.allowed || program.allow
const latest = program.allowWasSpecified ? false : program.latest
debug('allow was specified %j option "%s" latest %j',
program.allowWasSpecified, allow, latest)
debug(
'allow was specified %j option "%s" latest %j',
program.allowWasSpecified,
allow,
latest
)

var opts = {
names: program.module,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -128,7 +128,7 @@
"prebuild": "npm run lint",
"prelint": "npm run pretty",
"pretest": "npm run build",
"pretty": "prettier-standard '*.js' 'test/*.js'",
"pretty": "prettier-standard 'bin/*.js' '*.js' 'test/*.js'",
"self-update": "node bin/next-update.js -k true",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
Expand Down

0 comments on commit 2a62f8c

Please sign in to comment.