add script to generate typescript from schema

This commit is contained in:
Jacob Overgaard
2022-05-18 12:39:26 +02:00
parent 9eabf9de1a
commit fce51ace13

View File

@@ -6,7 +6,8 @@
"dev": "vite",
"build": "tsc && vite build",
"test": "echo 'TODO: Implement test'",
"lint": "eslint . --ext .ts --ignore-path .gitignore --cache "
"lint": "eslint . --ext .ts --ignore-path .gitignore --cache",
"generate:api": "npx openapi-typescript schemas/**/*.yml --output schemas/schema.ts"
},
"engines": {
"node": ">=16.0.0 <17",
@@ -33,4 +34,4 @@
"msw": {
"workerDirectory": "public"
}
}
}