From 27d2f1e8cb6ed77f6e93d1baafbf6f3a02cf8739 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Thu, 12 Oct 2017 15:54:30 -0700 Subject: [PATCH] Try to improve a couple of cleanup scripts --- packages/grpc-js/gulpfile.js | 4 ++-- packages/grpc-native/gulpfile.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/grpc-js/gulpfile.js b/packages/grpc-js/gulpfile.js index 14774729..9f30ae10 100644 --- a/packages/grpc-js/gulpfile.js +++ b/packages/grpc-js/gulpfile.js @@ -28,8 +28,8 @@ const del = require('del'); const jsDir = __dirname; gulp.task('js.clean.links', 'Delete npm links', () => { - del(path.resolve(jsDir, 'node_modules/@grpc/js-core')); - del(path.resolve(jsDir, 'node_modules/@grpc/surface')); + return del([path.resolve(jsDir, 'node_modules/@grpc/js-core'), + path.resolve(jsDir, 'node_modules/@grpc/surface')]); }); gulp.task('js.clean.all', 'Delete all files created by tasks', diff --git a/packages/grpc-native/gulpfile.js b/packages/grpc-native/gulpfile.js index c770a78f..dcbea445 100644 --- a/packages/grpc-native/gulpfile.js +++ b/packages/grpc-native/gulpfile.js @@ -28,8 +28,8 @@ const del = require('del'); const nativeDir = __dirname; gulp.task('native.clean.links', 'Delete npm links', () => { - del(path.resolve(nativeDir, 'node_modules/@grpc/native-core')); - del(path.resolve(nativeDir, 'node_modules/@grpc/surface')); + return del([path.resolve(nativeDir, 'node_modules/@grpc/native-core'), + path.resolve(nativeDir, 'node_modules/@grpc/surface')]); }); gulp.task('native.clean.all', 'Delete all files created by tasks',