From cda09b5b0042db3adab1165c3741d0cf7a5da934 Mon Sep 17 00:00:00 2001 From: Robert Sese Date: Fri, 2 Jul 2021 12:45:20 -0500 Subject: [PATCH] Use path from repo root for Actions (#20262) --- script/graphql/utils/process-schemas.js | 2 +- script/graphql/utils/schema-helpers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/graphql/utils/process-schemas.js b/script/graphql/utils/process-schemas.js index ad55211c6a..c47c4a9aed 100755 --- a/script/graphql/utils/process-schemas.js +++ b/script/graphql/utils/process-schemas.js @@ -3,7 +3,7 @@ const { parse, buildASTSchema } = require('graphql') const helpers = require('./schema-helpers') const fs = require('fs') -const externalScalars = JSON.parse(fs.readFileSync('../../../lib/graphql/non-schema-scalars.json')) +const externalScalars = JSON.parse(fs.readFileSync('./lib/graphql/non-schema-scalars.json')) .map(scalar => { scalar.id = helpers.getId(scalar.name) scalar.href = helpers.getFullLink('scalars', scalar.id) diff --git a/script/graphql/utils/schema-helpers.js b/script/graphql/utils/schema-helpers.js index 21958e3601..a19e774430 100644 --- a/script/graphql/utils/schema-helpers.js +++ b/script/graphql/utils/schema-helpers.js @@ -1,6 +1,6 @@ const renderContent = require('../../../lib/render-content') const fs = require('fs') -const graphqlTypes = JSON.parse(fs.readFileSync('../../../lib/graphql/types.json')) +const graphqlTypes = JSON.parse(fs.readFileSync('./lib/graphql/types.json')) const { isScalarType, isObjectType,