Skip to content

Commit e24f311

Browse files
authored
Add babel.config.js to .npmignore (#1031)
1 parent 3d5940e commit e24f311

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

Diff for: .eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module.exports = {
5757
'./lib/**/*.js',
5858
'./tests/dummy/config/**/*.js',
5959
'./tests-node/**/*.js',
60+
'babel.config.js',
6061
],
6162
parserOptions: {
6263
sourceType: 'script',

Diff for: .npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@
3737
/bower.json.ember-try
3838
/package.json.ember-try
3939
/test-apps
40+
41+
# TODO: should be removed (so that it is included!) once
42+
# https://github.com/ember-modifier/ember-modifier/issues/102 is resolved
43+
/babel.config.js

Diff for: babel.config.js

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
/* eslint-env node */
1+
// TODO: this is currently only being used by ESLint via @babel/eslint-parser.
2+
// When https://github.com/babel/ember-cli-babel/issues/418 gets resolved,
3+
// we can switch to using it throughout properly.
4+
5+
const { buildEmberPlugins } = require('ember-cli-babel');
26

37
module.exports = {
4-
plugins: [
5-
[
6-
require('@babel/plugin-proposal-decorators').default,
7-
{
8-
legacy: true,
9-
},
10-
],
11-
],
8+
plugins: [...buildEmberPlugins(__dirname)],
129
};

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
"yuidocjs": "^0.10.2"
103103
},
104104
"devDependencies": {
105-
"@babel/eslint-parser": "^7.16.0",
106-
"@babel/plugin-proposal-decorators": "^7.16.0",
105+
"@babel/eslint-parser": "^7.16.3",
106+
"@babel/preset-env": "^7.16.4",
107107
"@ember/optional-features": "^2.0.0",
108108
"@ember/test-helpers": "^2.4.2",
109109
"@embroider/test-setup": "^0.47.2",

Diff for: yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
semver "^6.3.0"
3636
source-map "^0.5.0"
3737

38-
"@babel/eslint-parser@^7.16.0":
38+
"@babel/eslint-parser@^7.16.3":
3939
version "7.16.3"
4040
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz#2a6b1702f3f5aea48e00cea5a5bcc241c437e459"
4141
integrity sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==
@@ -307,7 +307,7 @@
307307
"@babel/helper-plugin-utils" "^7.14.5"
308308
"@babel/plugin-syntax-class-static-block" "^7.14.5"
309309

310-
"@babel/plugin-proposal-decorators@^7.13.5", "@babel/plugin-proposal-decorators@^7.16.0":
310+
"@babel/plugin-proposal-decorators@^7.13.5":
311311
version "7.16.4"
312312
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.16.4.tgz#9b35ce0716425a93b978e79099e5f7ba217c1364"
313313
integrity sha512-RESBNX16eNqnBeEVR5sCJpnW0mHiNLNNvGA8PrRuK/4ZJ4TO+6bHleRUuGQYDERVySOKtOhSya/C4MIhwAMAgg==
@@ -840,7 +840,7 @@
840840
core-js "^2.6.5"
841841
regenerator-runtime "^0.13.4"
842842

843-
"@babel/preset-env@^7.10.2", "@babel/preset-env@^7.12.0":
843+
"@babel/preset-env@^7.10.2", "@babel/preset-env@^7.12.0", "@babel/preset-env@^7.16.4":
844844
version "7.16.4"
845845
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.16.4.tgz#4f6ec33b2a3fe72d6bfdcdf3859500232563a2e3"
846846
integrity sha512-v0QtNd81v/xKj4gNKeuAerQ/azeNn/G1B1qMLeXOcV8+4TWlD2j3NV1u8q29SDFBXx/NBq5kyEAO+0mpRgacjA==

0 commit comments

Comments
 (0)