Add automatic type regeneration
This commit is contained in:
@@ -37,6 +37,10 @@
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.ts": "eslint --cache --fix"
|
||||
"*.ts": [
|
||||
"eslint --cache --fix",
|
||||
"yarn generate:types",
|
||||
"git add src/payload-types.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user