From bab54b7a1a031c47e404748d9661b3e44307f4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kooi?= Date: Thu, 25 Feb 2016 00:39:01 +0100 Subject: [PATCH] deps: upgrade babel --- .babelrc | 5 ++++- package.json | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.babelrc b/.babelrc index ddc68f7..831f20a 100644 --- a/.babelrc +++ b/.babelrc @@ -1 +1,4 @@ -{ "stage": 1 } \ No newline at end of file +{ + "presets": ["es2015"], + "plugins": ["transform-object-rest-spread"] +} diff --git a/package.json b/package.json index 708ab12..39198ab 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,12 @@ , "dependencies": { "request": "2.x" } , "devDependencies": - { "babel": "5.x" + { "babel-cli": "^6.5.0" + , "babel-preset-es2015": "^6.5.0" + , "babel-plugin-transform-object-rest-spread": "^6.5.0" + , "babel-register": "^6.5.0" , "mocha": "2.x" } , "scripts": { "prepublish": "npm run babel" , "babel": "./node_modules/.bin/babel --out-dir lib src" - , "test": "./node_modules/.bin/mocha --compilers js:babel/register" } } + , "test": "./node_modules/.bin/mocha --compilers js:babel-register" } }