Skip to content

Commit 4b193a2

Browse files
MarcoDanielsAlan-Cha
authored andcommitted
Make sure openapi-to-graphql can run as cli script
In version 2.5.1 the build options [was removed](2.5.0...v2.5.1#diff-5e6764278ef49355318470b7be148c7f6ca6e4bba7826bccdc3e282f5530ae5dL83). This made it impossible for the cli tool to work properly as described in #418 Signed-off-by: Marco Martins <[email protected]>
1 parent afc7e9a commit 4b193a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/openapi-to-graphql-cli/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,12 @@
8383
"scripts": {
8484
"dev": "tsc -w",
8585
"build": "tsc --project ../../tsconfig.build.json"
86+
},
87+
"buildOptions": {
88+
"bin": {
89+
"openapi-to-graphql": {
90+
"input": "src/index.ts"
91+
}
92+
}
8693
}
8794
}

0 commit comments

Comments
 (0)