Skip to content

Commit

Permalink
chore(package.json): add scripts for yarn check
Browse files Browse the repository at this point in the history
  • Loading branch information
emjimadhu committed Apr 14, 2020
1 parent aa45ece commit 9ad6144
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "1.0.0",
"description": "A Custom beautiful eslint formatter.",
"main": "dist/index.js",
"scripts": {
"preinstall": "$npm_execpath --silent run checkYarn",
"checkYarn": "echo \"$npm_execpath\" | grep -q \"yarn\\.js$\" || (echo '⚠️ Use YARN not NPM! ⚠️ ' && echo && exit 1)"
},
"license": "MIT",
"keywords": [
"eslint",
Expand Down Expand Up @@ -31,4 +35,3 @@
"dist/**/*"
]
}

0 comments on commit 9ad6144

Please sign in to comment.