Add `pocketbase-typegen`

This commit is contained in:
Piotr Rogowski 2022-10-18 00:14:44 +02:00
parent 1712e5c8bd
commit f39e98f1c3
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
2 changed files with 1896 additions and 1 deletions

1893
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,8 @@
"serve": "vite preview",
"lint": "tsc && eslint --max-warnings=0 src",
"lint:fix": "eslint --fix src",
"stats:bundle": "npm run build && open stats.html"
"stats:bundle": "npm run build && open stats.html",
"typegen": "pocketbase-typegen --db ../pocketbase/pb_data/data.db -o src/@types/pocketbase-types.ts"
},
"dependencies": {
"@hyper-tuner/ini": "^0.4.0",
@ -63,6 +64,7 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"less": "^4.1.3",
"pocketbase-typegen": "^1.0.5",
"prettier": "^2.7.1",
"rollup-plugin-visualizer": "^5.8.3",
"typescript": "^4.8.4"