From 50fe2f7eab6e682cd6c8401ff4527aff83457000 Mon Sep 17 00:00:00 2001 From: Matteo Padovano Date: Mon, 2 Oct 2017 12:02:09 +0200 Subject: [PATCH] fix gulp task babel --- gulpfile.babel.js | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index de0dbb0..b9906e5 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -1,7 +1,6 @@ import del from 'del'; import path from 'path'; import * as isparta from 'isparta'; -import babel from 'babel-core'; import gulp from 'gulp'; import plugins from 'gulp-load-plugins'; const $ = plugins(); @@ -51,7 +50,7 @@ gulp.task('clean', () => { gulp.task('babel', gulp.series(['clean'], () => { return gulp.src('lib/**/*.js') - .pipe(babel()) + .pipe($.babel()) .pipe(gulp.dest('dist')); })); diff --git a/package.json b/package.json index 6b2f376..1ccf565 100644 --- a/package.json +++ b/package.json @@ -16,10 +16,9 @@ "paypal-rest-sdk": "^1.6.8" }, "devDependencies": { - "babel-core": "^5.8.35", + "babel-core": "^6.26.0", "babel-eslint": "^4.1.8", "babel-preset-env": "^1.6.0", - "babel-register": "^6.26.0", "chai": "^3.5.0", "coveralls": "^2.11.1", "del": "^2.0.2", @@ -27,6 +26,7 @@ "eslint": "^4.7.2", "eslint-config-loopback": "^8.0.0", "gulp": "github:gulpjs/gulp#4.0", + "gulp-babel": "^7.0.0", "gulp-coveralls": "^0.1.4", "gulp-eslint": "^4.0.0", "gulp-istanbul": "^1.1.1",