diff --git a/bin/lint-staged b/bin/lint-staged.js similarity index 98% rename from bin/lint-staged rename to bin/lint-staged.js index ee642b279..aadfe16f8 100755 --- a/bin/lint-staged +++ b/bin/lint-staged.js @@ -35,7 +35,7 @@ cmdline '-p, --concurrent ', '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) @@ -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) diff --git a/package.json b/package.json index f5c669df0..1e7806d68 100644 --- a/package.json +++ b/package.json @@ -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", @@ -30,7 +30,7 @@ }, "husky": { "hooks": { - "pre-commit": "./bin/lint-staged" + "pre-commit": "./bin/lint-staged.js" } }, "dependencies": {