Skip to content

Commit

Permalink
Run function instead of exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Oct 17, 2018
1 parent 09f2909 commit 5ab0679
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion checkContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ function checkContract() {
process.exit(0);
}

module.exports = checkContract;
checkContract();
2 changes: 1 addition & 1 deletion checkToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ function checkToken() {
process.exit(0);
}

module.exports = checkToken;
checkToken();
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"scripts": {
"lint": "prettier --config ./.prettierrc --ignore-path ./.prettierignore --write '{src,dist}/**/*.json' '!{dist}/**/**/*.min.json' './{js,json}' '!./node_modules'",
"test:checkToken": "node -e 'require(\"./checkToken.js\")()'",
"test:checkContract": "node -e 'require(\"./checkContract.js\")()'",
"test:checkToken": "node checkToken.js",
"test:checkContract": "node checkContract.js",
"compile": "node compile.js",
"precommit": "pretty-quick --staged"
},
Expand Down

0 comments on commit 5ab0679

Please sign in to comment.