From 7f99437e9c5be97d8d24e85e130efb71b5d21561 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 17 Apr 2023 11:55:44 -0700 Subject: [PATCH] Revert "[Refactor] deprecated `lib/core.js` now uses data from `is-core-module` also" This reverts commit 122bb64be2f4fcf927fd264d4b2c9ea622611c58. Fixes #297. --- lib/core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/core.js b/lib/core.js index 671c310..57b048f 100644 --- a/lib/core.js +++ b/lib/core.js @@ -1,9 +1,7 @@ 'use strict'; var isCoreModule = require('is-core-module'); -var path = require('path'); -var fs = require('fs'); -var data = JSON.parse(String(fs.readFileSync(path.join(path.dirname(require.resolve('is-core-module/package.json')), 'core.json')))); +var data = require('./core.json'); var core = {}; for (var mod in data) { // eslint-disable-line no-restricted-syntax