replace del with rimraf (#7024)
This commit is contained in:
parent
c945f08a5d
commit
4ff5f38e89
|
@ -1,7 +1,7 @@
|
|||
const child = require("child_process");
|
||||
const fs = require("fs");
|
||||
|
||||
const del = require("del");
|
||||
const { rimraf } = require("rimraf");
|
||||
const gulp = require("gulp");
|
||||
const gulpif = require("gulp-if");
|
||||
const jeditor = require("gulp-json-editor");
|
||||
|
@ -131,7 +131,7 @@ function distSafariApp(cb, subBuildPath) {
|
|||
];
|
||||
}
|
||||
|
||||
return del([buildPath + "**/*"])
|
||||
return rimraf([buildPath + "**/*"], { glob: true })
|
||||
.then(() => safariCopyAssets(paths.safari + "**/*", buildPath))
|
||||
.then(() => safariCopyBuild(paths.build + "**/*", buildPath + "safari/app"))
|
||||
.then(() => {
|
||||
|
|
|
@ -124,7 +124,6 @@
|
|||
"copy-webpack-plugin": "11.0.0",
|
||||
"cross-env": "7.0.3",
|
||||
"css-loader": "6.8.1",
|
||||
"del": "6.1.1",
|
||||
"electron": "25.9.1",
|
||||
"electron-builder": "23.6.0",
|
||||
"electron-log": "5.0.1",
|
||||
|
|
|
@ -87,7 +87,6 @@
|
|||
"copy-webpack-plugin": "11.0.0",
|
||||
"cross-env": "7.0.3",
|
||||
"css-loader": "6.8.1",
|
||||
"del": "6.1.1",
|
||||
"electron": "25.9.1",
|
||||
"electron-builder": "23.6.0",
|
||||
"electron-log": "5.0.1",
|
||||
|
|
Loading…
Reference in New Issue