Skip to content

Commit

Permalink
chore: add openapi-generator-cli (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinebayar-g authored Nov 30, 2024
1 parent 3079e34 commit 67d7bef
Show file tree
Hide file tree
Showing 3 changed files with 1,169 additions and 3 deletions.
19 changes: 19 additions & 0 deletions packages/core/openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.10.0",
"generators": {
"v3.0": {
"generatorName": "typescript",
"glob": "**/v3/*.json",
"output": "./src/gen",
"additionalProperties": {
"supportsES6": true,
"importFileExtension": ".js"
},
"globalProperty": "models,supportingFiles"
}
}
}
}
9 changes: 7 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@
},
"scripts": {
"build": "rm -rf dist && tsc",
"prepack": "pnpm run build"
"prepack": "pnpm run build",
"gen": "openapi-generator-cli generate"
},
"files": [
"dist"
]
],
"devDependencies": {
"@openapitools/openapi-generator-cli": "2.15.3",
"typescript": "5.7.2"
}
}
Loading

0 comments on commit 67d7bef

Please sign in to comment.