Skip to content

Commit ec158f8

Browse files
authored
chore: add (#1029)
1 parent d243a64 commit ec158f8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pnpm lint-staged --concurrent false
2+
git add packages/*/types/*

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"release": "pnpm changeset publish",
2020
"prepare": "husky",
2121
"playwright": "playwright-core",
22-
"generate:types": "pnpm --filter \"./packages/*\" --parallel generate:types"
22+
"generate:types": "pnpm --filter \"./packages/*\" --parallel generate:types",
23+
"generate:types-staged": "pnpm generate:types && :"
2324
},
2425
"devDependencies": {
2526
"@changesets/cli": "^2.27.10",
@@ -58,9 +59,8 @@
5859
},
5960
"lint-staged": {
6061
"*.{js,ts,svelte,html,md,svx}": "eslint --cache --fix",
61-
"*": [
62-
"prettier --cache --ignore-path .gitignore --ignore-unknown --write"
63-
]
62+
"*": "prettier --cache --ignore-path .gitignore --ignore-unknown --write",
63+
"packages/*/src/**/*": "pnpm generate:types-staged"
6464
},
6565
"packageManager": "[email protected]",
6666
"engines": {

0 commit comments

Comments
 (0)