chore: add check script & use in precommit
This commit is contained in:
parent
628243214a
commit
7a61d3e7c8
2 changed files with 3 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
|||
npm run test:cli run
|
||||
npm run lint
|
||||
npm run check
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
"create": "node ./packages/create-mcfly",
|
||||
"cli": "node ./packages/cli",
|
||||
"test:cli": "cd packages/cli && pnpm run test",
|
||||
"lint": "eslint . --config eslint.config.mjs",
|
||||
"lint": "eslint . --config eslint.config.mjs --cache",
|
||||
"check": "npm run format && npm run lint",
|
||||
"format": "prettier . --write",
|
||||
"prepare": "husky"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue