You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
If the package is not locally installed, npx writes to stdout to confirm if user wants the package to be installed or not.
In the README, tql recommends invoking the code generator as npx @timkendall/tql-gen <schema> > sdk.ts
This leaves npx waiting for user input with no output (because stdout was redirected to file) giving the impression that the generator has hung. After enter is pressed we end up with an invalid file looking like this:
Need to install the following packages:
@timkendall/tql-gen
Ok to proceed? (y) import { buildASTSchema, Kind, OperationTypeNode } from "graphql";
...
I propose that the generator accepts a --output/-o file as the recommended means to specify a file to be written to (similar to many other such tools). This can be backward compatible.
The text was updated successfully, but these errors were encountered:
If the package is not locally installed, npx writes to stdout to confirm if user wants the package to be installed or not.
In the README, tql recommends invoking the code generator as
npx @timkendall/tql-gen <schema> > sdk.ts
This leaves npx waiting for user input with no output (because stdout was redirected to file) giving the impression that the generator has hung. After enter is pressed we end up with an invalid file looking like this:
I propose that the generator accepts a
--output/-o
file as the recommended means to specify a file to be written to (similar to many other such tools). This can be backward compatible.The text was updated successfully, but these errors were encountered: