diff --git a/tasks/generate-icons.js b/tasks/generate-icons.js index 77fbd738..a8d6b9a1 100644 --- a/tasks/generate-icons.js +++ b/tasks/generate-icons.js @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -const del = require('del'); const fs = require('fs-extra'); const rawGlob = require('glob'); const util = require('util'); @@ -54,7 +53,7 @@ async function run() { iconsByShape[category][id] = svgContent; } - await del('assets/icons'); + await fs.rm('assets/icons', { recursive: true, force: true }); await fs.mkdir('assets/icons', { recursive: true }); // Generate shapes for (const [shapeId, icons] of Object.entries(iconsByShape)) {