helios1138 / graphql-typed-client

A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)
MIT License
212 stars 18 forks source link

Cli process always is finished with 0 code #16

Closed p-fedyukovich closed 5 years ago

p-fedyukovich commented 5 years ago

Hi! I faced with CI problem when error is occurred program exits with 0 code, which means that everything is okay. So that afterwards processes proceeds. I think that is wrong behavior, better close application with 1 code https://github.com/helios1138/graphql-typed-client/blob/ee79c4a006ae390b15539afc4897edd846984f23/src/cli.ts#L40

helios1138 commented 5 years ago

fixed in https://github.com/helios1138/graphql-typed-client/commit/e2811c46bf5777004da64f031ab351e16412bde4