Skip to content

Commit

Permalink
refactor: add .js extension to bin file
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Jan 28, 2020
1 parent 6803f6a commit eb69c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/lint-staged → bin/lint-staged.js
Expand Up @@ -35,7 +35,7 @@ cmdline
'-p, --concurrent <parallel tasks>',
'the number of tasks to run concurrently, or false to run tasks serially',
true
)
)
.option('-q, --quiet', 'disable lint-staged’s own console output', false)
.option('-r, --relative', 'pass relative filepaths to tasks', false)
.option('-x, --shell', 'skip parsing of tasks for better shell support', false)
Expand Down Expand Up @@ -73,7 +73,7 @@ const options = {
maxArgLength: getMaxArgLength() / 2,
quiet: !!cmdline.quiet,
relative: !!cmdline.relative,
shell: !!cmdline.shell,
shell: !!cmdline.shell
}

debug('Options parsed from command-line:', options)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -13,7 +13,7 @@
"funding": {
"url": "https://opencollective.com/lint-staged"
},
"bin": "./bin/lint-staged",
"bin": "./bin/lint-staged.js",
"main": "./lib/index.js",
"files": [
"bin",
Expand All @@ -30,7 +30,7 @@
},
"husky": {
"hooks": {
"pre-commit": "./bin/lint-staged"
"pre-commit": "./bin/lint-staged.js"
}
},
"dependencies": {
Expand Down

0 comments on commit eb69c52

Please sign in to comment.