Skip to content

Commit e509e1f

Browse files
committed
fix(plugin-web-service-consortium): no longer puts spec.json file inside folder
This is necessary to keep it simple and not having to depend on a folder being created on the fly on the file system at build time which sounds simple enough but can be a lot of pain when it comes to being cross platform supportive. Signed-off-by: Peter Somogyvari <[email protected]>
1 parent f63f5a5 commit e509e1f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cactus-openapi-spec-plugin-web-service-consortium.json

packages/bif-plugin-web-service-consortium/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"export-open-api-spec": "ts-node -e 'import(\"./src/main/typescript/openapi-spec\").then((x) => x.exportToFileSystemAsJson());'",
1616
"pregenerate-sdk": "npm-run-all export-open-api-spec",
17-
"generate-sdk": "openapi-generator generate --input-spec generated-sources/cactus-openapi-spec-plugin-web-service-consortium.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/",
17+
"generate-sdk": "openapi-generator generate --input-spec cactus-openapi-spec-plugin-web-service-consortium.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/",
1818
"tsc": "tsc --project ./tsconfig.json",
1919
"posttsc": "npm run generate-sdk"
2020
},

packages/bif-plugin-web-service-consortium/src/main/typescript/openapi-spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export async function exportToFileSystemAsJson(): Promise<void> {
124124
const fs = await import("fs");
125125
const destination =
126126
process.argv[2] ||
127-
"./generated-sources/cactus-openapi-spec-plugin-web-service-consortium.json";
127+
"./cactus-openapi-spec-plugin-web-service-consortium.json";
128128

129129
// tslint:disable-next-line: no-console
130130
console.log(

0 commit comments

Comments
 (0)