Skip to content

Commit

Permalink
chore: standard --fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 13, 2020
1 parent 01758f2 commit bd1ea87
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bin/lib/get-defaults.js
Expand Up @@ -8,7 +8,7 @@ function getDefaults (workPath, isEnterprise, callback) {
var pkg = require(path.resolve(workPath, 'package.json'))
var lernaPath = path.resolve(workPath, 'lerna.json')

if (!pkg.hasOwnProperty('repository')) {
if (!Object.hasOwnProperty.call(pkg, 'repository')) {
return callback(new Error('You must define a repository for your module => https://docs.npmjs.com/files/package.json#repository'))
}

Expand Down
2 changes: 1 addition & 1 deletion bin/lib/preview.js
Expand Up @@ -38,7 +38,7 @@ function formatOptions (options) {
var body = formatBody(copy.body)
formatted.push.apply(formatted, body)
} else {
formatted.push({column1: justify(key), column2: copy[key]})
formatted.push({ column1: justify(key), column2: copy[key] })
}
})

Expand Down
24 changes: 12 additions & 12 deletions bin/lib/yargs.js
Expand Up @@ -8,59 +8,59 @@ try {
module.exports = require('yargs')
.usage('Usage: $0 [options]')
.options({
't': {
t: {
alias: 'tag_name',
type: 'string',
describe: 'tag for this release'
},
'c': {
c: {
alias: 'target_commitish',
type: 'string',
describe: 'commitish value for tag'
},
'n': {
n: {
alias: 'name',
type: 'string',
describe: 'text of release title'
},
'b': {
b: {
alias: 'body',
type: 'string',
describe: 'text of release body'
},
'o': {
o: {
alias: 'owner',
describe: 'repo owner'
},
'r': {
r: {
alias: 'repo',
describe: 'repo name'
},
'd': {
d: {
alias: 'draft',
type: 'boolean',
default: false,
describe: 'publish as draft'
},
'p': {
p: {
alias: 'prerelease',
type: 'boolean',
default: false,
describe: 'publish as prerelease'
},
'w': {
w: {
alias: 'workpath',
type: 'string',
default: process.cwd(),
describe: 'path to working directory'
},
'e': {
e: {
alias: 'endpoint',
type: 'string',
default: 'https://api.github.com',
describe: 'GitHub API endpoint URL'
},
'a': {
a: {
alias: 'assets',
type: 'string',
default: false,
Expand All @@ -71,7 +71,7 @@ module.exports = require('yargs')
default: false,
describe: 'dry run (stops before release step)'
},
'y': {
y: {
alias: 'yes',
type: 'boolean',
default: false,
Expand Down
12 changes: 6 additions & 6 deletions index.js
Expand Up @@ -18,12 +18,12 @@ var OPTIONS = {
],
valid: [],
defaults: {
'dryRun': false,
'yes': false,
'draft': false,
'endpoint': 'https://api.github.com',
'prerelease': false,
'workpath': process.cwd()
dryRun: false,
yes: false,
draft: false,
endpoint: 'https://api.github.com',
prerelease: false,
workpath: process.cwd()
},
whitelist: [
'auth',
Expand Down

0 comments on commit bd1ea87

Please sign in to comment.