Add automatic type regeneration

This commit is contained in:
2022-07-22 04:58:08 +01:00
parent e47626cfea
commit 5e651f1ca3
4 changed files with 56 additions and 2 deletions

View File

@@ -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"
]
}
}