Skip to content

Commit

Permalink
Use root node_modules for executing apollo command
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomanke authored and jesse-savary committed Mar 13, 2021
1 parent 883422d commit eb47119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/mst-gql-scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function main() {
let json
if (input.startsWith("http:") || input.startsWith("https:")) {
const tmpFile = "tmp_schema.json"
const command = `${__dirname}/../node_modules/.bin/apollo client:download-schema --endpoint=${input} ${tmpFile} ${
const command = `${__dirname}/../../.bin/apollo client:download-schema --endpoint=${input} ${tmpFile} ${
header ? `--header=${header}` : "" // the header options MUST be after the output 0_o
}`
child_process.execSync(command)
Expand Down

0 comments on commit eb47119

Please sign in to comment.