chore: add check script & use in precommit

This commit is contained in:
Ayo Ayco 2024-12-27 16:54:43 +01:00
parent 628243214a
commit 7a61d3e7c8
2 changed files with 3 additions and 2 deletions

View file

@ -1,2 +1,2 @@
npm run test:cli run
npm run lint
npm run check

View file

@ -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"
},