Skip to content

Commit

Permalink
Use to be capitable with yarn/npm
Browse files Browse the repository at this point in the history
  • Loading branch information
patw0929 committed Dec 7, 2018
1 parent c3a6979 commit f90ecee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@
"deploy": "gh-pages -d example",
"lint-staged": "lint-staged",
"lint-pass": "echo '\\033[4;32m♡' No any errors! Go go go! ♡' \\033[0m'",
"lint": "yarn run eslint",
"lint": "\"$npm_execpath\" run eslint",
"eslint": "eslint src",
"test": "TZ=Asia/Taipei node scripts/test.js --env=jsdom",
"coverage": "yarn run test -- --coverage",
"coverage": "\"$npm_execpath\" run test -- --coverage",
"coveralls": "NODE_ENV=development cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"prettier:all": "prettier --write 'src/example.js' 'src/components/**/*.js' 'config/**/*.js'"
},
"lint-staged": {
"linters": {
"*.js": [
"yarn prettier --write",
"\"$npm_execpath\" prettier --write",
"git add",
"yarn eslint"
"\"$npm_execpath\" eslint"
],
"src/**/*.js": [
"yarn jest --bail --findRelatedTests"
"\"$npm_execpath\" jest --bail --findRelatedTests"
]
}
},
Expand Down

0 comments on commit f90ecee

Please sign in to comment.