Skip to content

Commit

Permalink
fix: postinstall file check
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Nov 12, 2020
1 parent e894f62 commit 39777b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

if [ -f "./dist/bin/check.js" ]; then
node "./dist/bin/check.js"
fi
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"lint": "eslint . --ext .ts",
"test": "mocha",
"coverage": "nyc mocha",
"postinstall": "node ./dist/bin/check.js"
"check": "./check.sh",
"postinstall": "./check.sh"
},
"preferGlobal": false,
"main": "./dist/lib/instance.js",
Expand Down

0 comments on commit 39777b3

Please sign in to comment.