Execute openapi-generator-cli from @backstage/repo-tools directory
Signed-off-by: Taras Mankovski <taras@frontside.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user