Skip to content

Commit

Permalink
fix: 🐞 added binary
Browse files Browse the repository at this point in the history
added binary
  • Loading branch information
Tal Rofe committed Apr 22, 2022
1 parent e329af6 commit 04934a1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ jest.config.js
czvinyl.config.js
webpack.config.js
dist
scripts
scripts
bin
6 changes: 6 additions & 0 deletions bin/inflint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node

// to use V8's code cache to speed up instantiation time
require('v8-compile-cache');

require('../dist/index');
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
},
"main": "dist/index.js",
"files": [
"dist/index.js"
"dist/index.js",
"bin"
],
"bin": {
"inflint": "./bin/inflint.js"
},
"scripts": {
"preinstall": "is-ci || npx only-allow yarn",
"husky:install": "husky install",
Expand All @@ -52,6 +56,7 @@
"inquirer": "8.2.2",
"micromatch": "4.0.5",
"minimist": "1.2.6",
"v8-compile-cache": "2.3.0",
"yaml": "2.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4113,7 +4113,7 @@ v8-compile-cache-lib@^3.0.0:
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz#0582bcb1c74f3a2ee46487ceecf372e46bce53e8"
integrity sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==

v8-compile-cache@^2.0.3:
v8-compile-cache@2.3.0, v8-compile-cache@^2.0.3:
version "2.3.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
Expand Down

0 comments on commit 04934a1

Please sign in to comment.