From 7a7989aa7efee72a2f7018bd2cbb4922f46edf40 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 10 Jun 2019 16:36:38 -0400 Subject: [PATCH 1/5] update babel-core and babel-preset-env --- lib/babel-module-template.js | 2 +- package.json | 4 ++-- test/fixtures/webpack.concat.config.js | 2 +- test/fixtures/webpack.config.js | 2 +- test/fixtures/webpack.verbose.config.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/babel-module-template.js b/lib/babel-module-template.js index 8a5cde1..e7502ca 100644 --- a/lib/babel-module-template.js +++ b/lib/babel-module-template.js @@ -1,6 +1,6 @@ 'use strict'; const path = require('path'); -const babel = require('babel-core'); +const babel = require('@babel/core'); const sources = require('webpack-sources'); const readPkgUp = require('read-pkg-up'); const semver = require('semver'); diff --git a/package.json b/package.json index e3c7644..2216459 100644 --- a/package.json +++ b/package.json @@ -28,14 +28,14 @@ "engine" ], "dependencies": { - "babel-core": "^6.24.0", + "@babel/core": "^7.4.5", "read-pkg-up": "^2.0.0", "semver": "^5.3.0", "webpack-sources": "^0.2.3" }, "devDependencies": { + "@babel/preset-env": "^7.4.5", "ava": "*", - "babel-preset-env": "^1.3.2", "get-urls": "^7.0.0", "pify": "^2.3.0", "uglifyjs-webpack-plugin": "^0.4.0", diff --git a/test/fixtures/webpack.concat.config.js b/test/fixtures/webpack.concat.config.js index d6502cc..3c429d1 100644 --- a/test/fixtures/webpack.concat.config.js +++ b/test/fixtures/webpack.concat.config.js @@ -12,7 +12,7 @@ module.exports = { }, plugins: [ new BabelEnginePlugin({ - presets: ['env'] + presets: ['@babel/preset-env'] }), new webpack.optimize.ModuleConcatenationPlugin(), new UglifyJSPlugin() diff --git a/test/fixtures/webpack.config.js b/test/fixtures/webpack.config.js index fccef47..ca2e02f 100644 --- a/test/fixtures/webpack.config.js +++ b/test/fixtures/webpack.config.js @@ -11,7 +11,7 @@ module.exports = { }, plugins: [ new BabelEnginePlugin({ - presets: ['env'] + presets: ['@babel/preset-env'] }), new UglifyJSPlugin() ] diff --git a/test/fixtures/webpack.verbose.config.js b/test/fixtures/webpack.verbose.config.js index 2d7897c..ec92a28 100644 --- a/test/fixtures/webpack.verbose.config.js +++ b/test/fixtures/webpack.verbose.config.js @@ -11,7 +11,7 @@ module.exports = { }, plugins: [ new BabelEnginePlugin({ - presets: ['env'] + presets: ['@babel/preset-env'] }, { verbose: false }), From 5a8758fd8b334d2bd1705d5259dfd6c1cf1ab8b9 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 10 Jun 2019 16:36:53 -0400 Subject: [PATCH 2/5] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2216459..574447e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "babel-engine-plugin", - "version": "0.3.0", + "version": "0.4.0", "description": "Webpack plugin that transpiles dependencies targeting Node.js versions newer than Node.js 0.10", "license": "MIT", "repository": "SamVerschueren/babel-engine-plugin", From a1370f886dd1716885ae1ebe7766eb57a503697e Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 10 Jun 2019 16:37:05 -0400 Subject: [PATCH 3/5] add ava config --- ava.config.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ava.config.js diff --git a/ava.config.js b/ava.config.js new file mode 100644 index 0000000..8f3c373 --- /dev/null +++ b/ava.config.js @@ -0,0 +1,6 @@ +export default { + files: [ + 'test/**/*', + '!test/fixtures' + ] +}; From 5493b4a862f9cf37de943e195bd83e0d26fca945 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 10 Jun 2019 22:56:27 -0400 Subject: [PATCH 4/5] disable broken ava/no-import-test-files --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 574447e..8e957e0 100644 --- a/package.json +++ b/package.json @@ -41,5 +41,10 @@ "uglifyjs-webpack-plugin": "^0.4.0", "webpack": "^3.1.0", "xo": "*" + }, + "xo": { + "rules": [ + ["ava/no-import-test-files", false] + ] } } From a40a7d50977b083d37474ffd670c6b56ff823916 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 10 Jun 2019 23:11:20 -0400 Subject: [PATCH 5/5] pin ava to ^1 --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8e957e0..812bce4 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@babel/preset-env": "^7.4.5", - "ava": "*", + "ava": "^1", "get-urls": "^7.0.0", "pify": "^2.3.0", "uglifyjs-webpack-plugin": "^0.4.0", @@ -44,7 +44,10 @@ }, "xo": { "rules": [ - ["ava/no-import-test-files", false] + [ + "ava/no-import-test-files", + false + ] ] } }