1
0
mirror of synced 2025-12-22 03:16:52 -05:00

Remove remaining JSON requires (#20110)

* Remove remaining JSON requires

* Lint

* Update feature-flags.js
This commit is contained in:
Kevin Heis
2021-06-23 14:57:50 -07:00
committed by GitHub
parent 6f4439a631
commit a92d820888
21 changed files with 63 additions and 34 deletions

View File

@@ -1,8 +1,9 @@
const { sortBy } = require('lodash')
const { parse, buildASTSchema } = require('graphql')
const helpers = require('./schema-helpers')
const fs = require('fs')
const externalScalars = require('../../../lib/graphql/non-schema-scalars')
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)