Skip to content

Commit

Permalink
[7.x] Fix babel initialization for graphql type generation (elastic#3…
Browse files Browse the repository at this point in the history
…3962) (elastic#34008)

Backports the following commits to 7.x:
 - Fix babel initialization for graphql type generation  (elastic#33962)
  • Loading branch information
weltenwort authored Mar 27, 2019
1 parent f8db3a7 commit 79ad3a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/infra/scripts/generate_types_from_graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/

require('../../../../src/setup_node_env');

const { join, resolve } = require('path');
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unresolved
const { generate } = require('graphql-code-generator');
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/uptime/scripts/infer_graphql_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/

require('../../../../src/setup_node_env');

const { resolve } = require('path');
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unresolved
const { generate } = require('graphql-code-generator');
Expand Down

0 comments on commit 79ad3a1

Please sign in to comment.