Skip to content

Commit

Permalink
fix(plugin-web-service-consortium): no longer puts spec.json file ins…
Browse files Browse the repository at this point in the history
…ide 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 <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed May 19, 2020
1 parent f63f5a5 commit e509e1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/bif-plugin-web-service-consortium/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cactus-openapi-spec-plugin-web-service-consortium.json
2 changes: 1 addition & 1 deletion packages/bif-plugin-web-service-consortium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"export-open-api-spec": "ts-node -e 'import(\"./src/main/typescript/openapi-spec\").then((x) => x.exportToFileSystemAsJson());'",
"pregenerate-sdk": "npm-run-all export-open-api-spec",
"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/",
"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/",
"tsc": "tsc --project ./tsconfig.json",
"posttsc": "npm run generate-sdk"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function exportToFileSystemAsJson(): Promise<void> {
const fs = await import("fs");
const destination =
process.argv[2] ||
"./generated-sources/cactus-openapi-spec-plugin-web-service-consortium.json";
"./cactus-openapi-spec-plugin-web-service-consortium.json";

// tslint:disable-next-line: no-console
console.log(
Expand Down

0 comments on commit e509e1f

Please sign in to comment.