chore: add commit hooks (#56)

This commit is contained in:
hiroki osame
2023-02-16 18:39:03 -05:00
committed by GitHub
parent 23b580edac
commit 9ec7aee3a9
2 changed files with 323 additions and 8 deletions

View File

@@ -16,10 +16,17 @@
],
"bin": "dist/cli.mjs",
"scripts": {
"prepare": "simple-git-hooks",
"build": "pkgroll --minify",
"lint": "eslint --cache .",
"type-check": "tsc"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*.ts": "eslint --cache"
},
"devDependencies": {
"@clack/prompts": "^0.2.2",
"@pvtnbr/eslint-config": "^0.33.0",
@@ -30,8 +37,10 @@
"execa": "^7.0.0",
"ini": "^3.0.1",
"kolorist": "^1.7.0",
"lint-staged": "^13.1.2",
"openai": "^3.1.0",
"pkgroll": "^1.9.0",
"simple-git-hooks": "^2.8.1",
"typescript": "^4.9.5"
},
"eslintConfig": {