mirror of https://github.com/grpc/grpc-node.git
Try to improve a couple of cleanup scripts
This commit is contained in:
parent
da03fc5db8
commit
27d2f1e8cb
|
|
@ -28,8 +28,8 @@ const del = require('del');
|
||||||
const jsDir = __dirname;
|
const jsDir = __dirname;
|
||||||
|
|
||||||
gulp.task('js.clean.links', 'Delete npm links', () => {
|
gulp.task('js.clean.links', 'Delete npm links', () => {
|
||||||
del(path.resolve(jsDir, 'node_modules/@grpc/js-core'));
|
return del([path.resolve(jsDir, 'node_modules/@grpc/js-core'),
|
||||||
del(path.resolve(jsDir, 'node_modules/@grpc/surface'));
|
path.resolve(jsDir, 'node_modules/@grpc/surface')]);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('js.clean.all', 'Delete all files created by tasks',
|
gulp.task('js.clean.all', 'Delete all files created by tasks',
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ const del = require('del');
|
||||||
const nativeDir = __dirname;
|
const nativeDir = __dirname;
|
||||||
|
|
||||||
gulp.task('native.clean.links', 'Delete npm links', () => {
|
gulp.task('native.clean.links', 'Delete npm links', () => {
|
||||||
del(path.resolve(nativeDir, 'node_modules/@grpc/native-core'));
|
return del([path.resolve(nativeDir, 'node_modules/@grpc/native-core'),
|
||||||
del(path.resolve(nativeDir, 'node_modules/@grpc/surface'));
|
path.resolve(nativeDir, 'node_modules/@grpc/surface')]);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('native.clean.all', 'Delete all files created by tasks',
|
gulp.task('native.clean.all', 'Delete all files created by tasks',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue