diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..8056443 --- /dev/null +++ b/.babelrc @@ -0,0 +1,4 @@ +{ + "plugins": [ "add-module-exports" ], + "presets": [ "es2015" ] +} diff --git a/package.json b/package.json index cb588e6..93b2546 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "compile": "rm -rf lib/ && babel -d lib/ src/", "watch": "babel --watch -d lib/ src/", "jshint": "jshint src/. test/. --config", - "mocha": "mocha test/ --compilers js:babel/register", + "mocha": "mocha test/ --compilers js:babel-core/register", "test": "npm run jshint && npm run mocha" }, "directories": { @@ -50,7 +50,10 @@ "request-promise": "^2.0.0" }, "devDependencies": { - "babel": "^5.8.29", + "babel-cli": "^6.6.5", + "babel-core": "^6.7.4", + "babel-plugin-add-module-exports": "^0.1.2", + "babel-preset-es2015": "^6.6.0", "jshint": "^2.8.0", "mocha": "^2.3.3" }