Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit dc4c7cd

Browse files
Switch to Babel7 (#520)
1 parent 2ca3d51 commit dc4c7cd

File tree

4 files changed

+281
-576
lines changed

4 files changed

+281
-576
lines changed

.babelrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: [
3+
'@babel/plugin-transform-flow-strip-types',
4+
'@babel/plugin-transform-modules-commonjs',
5+
],
6+
};

.mocharc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# TODO: throw-deprecation: true
22
check-leaks: true
33
require:
4-
- 'babel-register'
4+
- '@babel/register'

package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@
3232
"LICENSE",
3333
"PATENTS"
3434
],
35-
"babel": {
36-
"plugins": [
37-
"transform-es2015-modules-commonjs",
38-
"transform-flow-strip-types"
39-
]
40-
},
4135
"scripts": {
4236
"prepublish": ". ./resources/prepublish.sh",
4337
"test": "npm run lint && npm run check && npm run testonly",
@@ -50,7 +44,7 @@
5044
"watch": "node resources/watch.js",
5145
"cover": "nyc npm run testonly",
5246
"preversion": "npm test",
53-
"start": "node -r babel-register examples/index.js"
47+
"start": "node -r @babel/register examples/index.js"
5448
},
5549
"dependencies": {
5650
"accepts": "^1.3.7",
@@ -59,11 +53,12 @@
5953
"raw-body": "^2.4.0"
6054
},
6155
"devDependencies": {
62-
"babel-cli": "6.26.0",
56+
"@babel/cli": "^7.4.4",
57+
"@babel/core": "7.4.5",
58+
"@babel/plugin-transform-flow-strip-types": "7.4.4",
59+
"@babel/plugin-transform-modules-commonjs": "7.4.4",
60+
"@babel/register": "7.4.4",
6361
"babel-eslint": "10.0.1",
64-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
65-
"babel-plugin-transform-flow-strip-types": "6.22.0",
66-
"babel-register": "6.26.0",
6762
"body-parser": "1.19.0",
6863
"chai": "4.2.0",
6964
"connect": "3.6.6",

0 commit comments

Comments
 (0)