From 1452610cc089934aca8619ea4306b2e6977dc50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 21 Jan 2020 23:05:46 +0100 Subject: [PATCH] Delete duplicated file in `@babel/compat-data` This file is the same as `native-modules.json`, which is exported in package.json --- lerna.json | 4 ++-- .../babel-compat-data/data/built-in-modules.json | 12 ------------ .../scripts/build-modules-support.js | 2 +- 3 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 packages/babel-compat-data/data/built-in-modules.json diff --git a/lerna.json b/lerna.json index b4692f70a257..918ba9fea141 100644 --- a/lerna.json +++ b/lerna.json @@ -23,8 +23,8 @@ "test/**", "**/test/**", "codemods/**", - "# We ignore every JSON file, except for built-in-modules, built-ins and plugins defined in babel-preset-env/data.", - "@(!(built-in-modules|built-ins|plugins|package)).json", + "# We ignore every JSON file, except for native-modules, built-ins and plugins defined in babel-preset-env/data.", + "@(!(native-modules|built-ins|plugins|package)).json", "# Until the ESLint packages version are aligned with Babel's, we ignore them", "eslint/**" ] diff --git a/packages/babel-compat-data/data/built-in-modules.json b/packages/babel-compat-data/data/built-in-modules.json deleted file mode 100644 index 5bada5f51b38..000000000000 --- a/packages/babel-compat-data/data/built-in-modules.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "es6.module": { - "edge": "16", - "firefox": "60", - "chrome": "61", - "safari": "10.1", - "opera": "48", - "ios_saf": "10.3", - "and_chr": "71", - "and_ff": "64" - } -} diff --git a/packages/babel-compat-data/scripts/build-modules-support.js b/packages/babel-compat-data/scripts/build-modules-support.js index 40add39e0cb0..c242cf3fe1cc 100644 --- a/packages/babel-compat-data/scripts/build-modules-support.js +++ b/packages/babel-compat-data/scripts/build-modules-support.js @@ -29,7 +29,7 @@ Object.keys(stats).forEach(browser => { } }); -const dataPath = path.join(__dirname, "../data/built-in-modules.json"); +const dataPath = path.join(__dirname, "../data/native-modules.json"); const data = { "es6.module": allowedBrowsers, };