1
0
mirror of synced 2025-12-20 02:19:14 -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

14
lib/read-json-file.js Normal file
View File

@@ -0,0 +1,14 @@
const fs = require('fs')
const path = require('path')
module.exports = function readJsonFile (xpath) {
return JSON.parse(
fs.readFileSync(
path.join(
process.cwd(),
xpath
),
'utf8'
)
)
}