Skip to content

Commit c901ce9

Browse files
committed
fix(npm): not use babel 6..
1 parent e2da97d commit c901ce9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015"],
3+
"plugins": ["transform-es2015-modules-commonjs"]
4+
}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"test": "test"
2323
},
2424
"scripts": {
25-
"build": "babel src --out-dir lib --source-maps --presets es2015",
26-
"watch": "babel src --out-dir lib --watch --source-maps --presets es2015",
25+
"build": "babel src --out-dir lib --source-maps",
26+
"watch": "babel src --out-dir lib --watch --source-maps",
2727
"prepublish": "npm run --if-present build",
2828
"test": "mocha"
2929
},
@@ -37,8 +37,7 @@
3737
"textlint-rule-helper": "^1.1.3"
3838
},
3939
"devDependencies": {
40-
"babel-cli": "^6.0.14",
41-
"babel-preset-es2015": "^6.0.15",
40+
"babel": "^5.0.0",
4241
"espower-babel": "^3.3.0",
4342
"mocha": "^2.3.2",
4443
"power-assert": "^1.0.0",

0 commit comments

Comments
 (0)