-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Options getting forwarded to graphql-cli cmd #169
Comments
Huh... No idea why an Let us know what you come up with. |
Ok so the magically appearing In my package.json: {
"scripts": {
"start": "nps",
"introspection": "graphql get-schema"
}
} My package-scripts.js {
scripts: {
introspection: 'graphql get-schema',
npmIntrospection: 'yarn run introspection'
}
}
I'm curious as to why running it through nps in any fashion fails, but directly running the npm script works. |
I have no idea why this is happening though:
and
I'm also curious. I'm really sorry @donovanhiland, I just have very limited time to dedicate to this package so I can't be a lot of help to you here :-/ |
I totally understand! I'll document any other findings here in case someone else runs into the same issue. |
Workaround: Urigo/graphql-cli#228 (comment) |
nps
version: 5.8.0node
version: 9.4.0npm
version: 5.6.0Scripts file (or at least the relevant bits):
The command executed:
yarn start introspection
The output:
Problem description:
When running
graphql get-schema
withnps
, anendpointName
options gets passed through which fails validation ingraphql-cli
. Running the same command frompackage.json
scripts works as expected. I'm not sure where the issue can be resolved from, if either, so I think I'm going to open an issue in both and see if something can be resolved. Happy to help how I can.The text was updated successfully, but these errors were encountered: