Skip to content

Commit aabda0d

Browse files
committed
chore: change pre-commit hooking way
1 parent 6ffa767 commit aabda0d

File tree

3 files changed

+3
-80
lines changed

3 files changed

+3
-80
lines changed

.githooks/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"lint:docs": "textlint --config .textlintrc.js docs/*.md docs/advanced/**/*.md docs/essentials/**/*.md docs/migration/**/*.md docs/api/injection.md packages/**/*.md",
5555
"lint:fix": "run-p \"lint:codes --fix\" \"lint:docs --fix\"",
5656
"lint:secret": "npx secretlint \"**/*\"",
57+
"prepare": "git config --local core.hooksPath .githooks",
5758
"prebuild": "test \"$CI\" = true && npx pnpm install -r --store=node_modules/.pnpm-store || echo skipping pnpm install",
5859
"preinstall": "node ./scripts/preinstall.js",
5960
"preview:explorer": "pnpm --filter @intlify/message-format-explorer preview",
@@ -71,7 +72,6 @@
7172
"@intlify/core-base": "workspace:*",
7273
"@intlify/message-compiler": "workspace:*",
7374
"@microsoft/api-extractor": "7.15.2",
74-
"@nexhome/yorkie": "^2.0.8",
7575
"@rollup/plugin-commonjs": "^25.0.0",
7676
"@rollup/plugin-json": "^6.0.0",
7777
"@rollup/plugin-node-resolve": "^15.0.2",
@@ -152,9 +152,6 @@
152152
"node": ">= 16"
153153
},
154154
"private": true,
155-
"gitHooks": {
156-
"pre-commit": "lint-staged"
157-
},
158155
"lint-staged": {
159156
"*.{json,md,yml}": [
160157
"prettier --write"

pnpm-lock.yaml

-76
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)