Execute openapi-generator-cli from @backstage/repo-tools directory

Signed-off-by: Taras Mankovski <taras@frontside.com>
This commit is contained in:
Taras Mankovski
2023-12-04 19:54:50 -05:00
parent 45bfb20423
commit d2ce05b772
3 changed files with 5 additions and 6 deletions
+2 -1
View File
@@ -87,7 +87,8 @@
"files": [
"bin",
"dist/**/*.js",
"templates"
"templates",
"openapitools.json"
],
"nodemonConfig": {
"watch": "./src",
@@ -51,16 +51,12 @@ async function generate(spec: string, outputDirectory: string) {
'@backstage/repo-tools',
'templates/typescript-backstage.yaml',
),
'-t',
resolvePackagePath(
'@backstage/repo-tools',
'templates/typescript-backstage',
),
'--generator-key',
'v3.0',
],
{
maxBuffer: Number.MAX_VALUE,
cwd: resolvePackagePath('@backstage/repo-tools'),
env: {
...process.env,
},
@@ -1,3 +1,5 @@
templateDir: templates/typescript-backstage
files:
api.mustache:
templateType: API