From dda0e63a6adcb09130b9776ff8db5ec5cbdef6dc Mon Sep 17 00:00:00 2001 From: Ben Surgison Date: Mon, 16 May 2022 16:17:26 +0100 Subject: [PATCH] Fix tests on node 12 --- run-tasks.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run-tasks.js b/run-tasks.js index bed2a488a9..9646e84dc2 100644 --- a/run-tasks.js +++ b/run-tasks.js @@ -1,4 +1,5 @@ const colour = require('nodemon/lib/utils/colour') +const del = require('del') function runTasks () { clean() @@ -20,9 +21,7 @@ function generateAssets () { function clean () { // doesn't clean extensions.scss, should it? - const fs = require('fs') - fs.rmSync('public', { recursive: true, force: true }) - fs.rmSync('.port.tmp', { force: true }) + del.sync(['public/**', '.port.tmp']) } function sassExtensions () {