Skip to content

Commit 7bbd1c6

Browse files
authored
Merge pull request #1 from PostHog/generated-api
feat: generated api client for tasks
2 parents 33ea685 + 90a2824 commit 7bbd1c6

File tree

7 files changed

+10616
-68
lines changed

7 files changed

+10616
-68
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
'plugin:@typescript-eslint/recommended',
1313
],
1414
parser: '@typescript-eslint/parser',
15+
ignorePatterns: ['src/api/generated.ts'],
1516
parserOptions: {
1617
ecmaFeatures: {
1718
jsx: true,

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"build:electron": "electron-builder",
2020
"preview": "vite preview",
2121
"typecheck": "tsc --noEmit",
22-
"lint": "eslint src --ext .ts,.tsx"
22+
"lint": "eslint src --ext .ts,.tsx",
23+
"generate-client": "tsx scripts/update-openapi-client.ts"
2324
},
2425
"keywords": [
2526
"posthog",
@@ -46,9 +47,12 @@
4647
"mprocs": "^0.7.3",
4748
"postcss": "^8.4.33",
4849
"tailwindcss": "^3.4.1",
50+
"tsx": "^4.20.6",
51+
"typed-openapi": "^2.2.2",
4952
"typescript": "^5.3.3",
5053
"vite": "^5.0.12",
51-
"wait-on": "^7.2.0"
54+
"wait-on": "^7.2.0",
55+
"yaml": "^2.8.1"
5256
},
5357
"dependencies": {
5458
"@posthog/code-agent": "^0.2.0",

0 commit comments

Comments
 (0)