Skip to content

Commit d22c047

Browse files
committed
Upgrade babel and ava, drop babel-runtime transform
Fixes alexkuz#2
1 parent 861798f commit d22c047

File tree

3 files changed

+3536
-2338
lines changed

3 files changed

+3536
-2338
lines changed

.babelrc

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"presets": ["env"],
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-flow"
5+
],
36
"plugins": [
4-
"transform-object-rest-spread",
5-
"transform-runtime",
6-
"transform-flow-strip-types"
7+
"@babel/plugin-proposal-object-rest-spread",
8+
"@babel/plugin-transform-flow-strip-types"
79
]
810
}

package.json

+13-11
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@
3232
},
3333
"homepage": "https://github.com/alexkuz/react-base16-styling#readme",
3434
"devDependencies": {
35-
"ava": "^0.24.0",
36-
"babel-cli": "^6.6.5",
37-
"babel-core": "^6.7.4",
38-
"babel-eslint": "^8.0.3",
39-
"babel-plugin-transform-flow-strip-types": "^6.22.0",
40-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
41-
"babel-plugin-transform-runtime": "^6.6.0",
42-
"babel-preset-env": "^1.6.1",
35+
"@ava/babel": "^1.0.1",
36+
"@babel/cli": "^7.0.0",
37+
"@babel/core": "^7.0.0",
38+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
39+
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
40+
"@babel/preset-env": "^7.0.0",
41+
"@babel/preset-flow": "^7.0.0",
42+
"@babel/register": "^7.10.5",
43+
"ava": "^3.11.1",
44+
"babel-eslint": "^9.0.0",
4345
"eslint": "^4.13.1",
4446
"eslint-plugin-babel": "^4.1.0",
4547
"eslint-plugin-flowtype": "^2.30.0",
@@ -57,9 +59,9 @@
5759
"test"
5860
],
5961
"ava": {
62+
"babel": true,
6063
"require": [
61-
"babel-register"
62-
],
63-
"babel": "inherit"
64+
"@babel/register"
65+
]
6466
}
6567
}

0 commit comments

Comments
 (0)