Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add babel.config.js to .npmignore #1031

Merged
merged 1 commit into from
Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = {
'./lib/**/*.js',
'./tests/dummy/config/**/*.js',
'./tests-node/**/*.js',
'babel.config.js',
],
parserOptions: {
sourceType: 'script',
Expand Down
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
/bower.json.ember-try
/package.json.ember-try
/test-apps

# TODO: should be removed (so that it is included!) once
# https://github.com/ember-modifier/ember-modifier/issues/102 is resolved
/babel.config.js
15 changes: 6 additions & 9 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/* eslint-env node */
// TODO: this is currently only being used by ESLint via @babel/eslint-parser.
// When https://github.com/babel/ember-cli-babel/issues/418 gets resolved,
// we can switch to using it throughout properly.

const { buildEmberPlugins } = require('ember-cli-babel');

module.exports = {
plugins: [
[
require('@babel/plugin-proposal-decorators').default,
{
legacy: true,
},
],
],
plugins: [...buildEmberPlugins(__dirname)],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
"yuidocjs": "^0.10.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-proposal-decorators": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/preset-env": "^7.16.4",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.4.2",
"@embroider/test-setup": "^0.47.2",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
semver "^6.3.0"
source-map "^0.5.0"

"@babel/eslint-parser@^7.16.0":
"@babel/eslint-parser@^7.16.3":
version "7.16.3"
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz#2a6b1702f3f5aea48e00cea5a5bcc241c437e459"
integrity sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==
Expand Down Expand Up @@ -307,7 +307,7 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-class-static-block" "^7.14.5"

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

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