Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 'postinstall' to enable hooks after install #32

Merged
merged 4 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/pre-push → .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
. "$(dirname -- "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn format
yarn lint-staged
yarn lint

13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"docker:test:e2e": "chmod +x ./bin/docker_test.sh && ./bin/docker_test.sh -e",
"docker:test:all": "chmod +x ./bin/docker_test.sh && ./bin/docker_test.sh",
"migrate": "dotenv -e ./.env.dev -- npx prisma migrate dev",
"postinstall": "husky install",
"studio": "dotenv -e ./.env.dev -- prisma studio",
"seed": "dotenv -e ./.env.dev prisma db seed",
"lint": "eslint \"{prisma/*seed,src,test}/**/*.ts\" --fix",
Expand Down Expand Up @@ -71,6 +72,7 @@
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^15.1.0",
"prettier": "^3.0.0",
"prisma": "^5.3.1",
"source-map-support": "^0.5.21",
Expand Down Expand Up @@ -100,5 +102,16 @@
},
"prisma": {
"seed": "ts-node prisma/seed/index.ts"
},
"lint-staged": {
"src/**/*.ts": [
"prettier --write"
],
"test/**/*.ts": [
"prettier --write"
],
"prisma/*seed/**/*.ts": [
"prettier --write"
]
}
}