summaryrefslogtreecommitdiff
path: root/packages/astro
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro')
-rw-r--r--packages/astro/test/benchmark/build.bench.js4
-rw-r--r--packages/astro/test/benchmark/dev.bench.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/test/benchmark/build.bench.js b/packages/astro/test/benchmark/build.bench.js
index 9595af76c..a140082a3 100644
--- a/packages/astro/test/benchmark/build.bench.js
+++ b/packages/astro/test/benchmark/build.bench.js
@@ -5,7 +5,7 @@ import { performance } from 'perf_hooks';
import { build as astroBuild } from '#astro/build';
import { loadConfig } from '#astro/config';
import { Benchmark } from './benchmark.js';
-import del from 'del';
+import { deleteAsync } from 'del';
import { Writable } from 'stream';
import { format as utilFormat } from 'util';
@@ -47,7 +47,7 @@ const benchmarks = [
async setup() {
process.chdir(new URL('../../../../', import.meta.url).pathname);
const spcache = new URL('../../node_modules/.cache/', import.meta.url);
- await Promise.all([del(spcache.pathname, { force: true }), setupBuild()]);
+ await Promise.all([deleteAsync(spcache.pathname, { force: true }), setupBuild()]);
},
run: runBuild,
}),
diff --git a/packages/astro/test/benchmark/dev.bench.js b/packages/astro/test/benchmark/dev.bench.js
index 0ffbe55a2..134992634 100644
--- a/packages/astro/test/benchmark/dev.bench.js
+++ b/packages/astro/test/benchmark/dev.bench.js
@@ -3,7 +3,7 @@
import { performance } from 'perf_hooks';
import { Benchmark } from './benchmark.js';
import { runDevServer } from '../helpers.js';
-import del from 'del';
+import { deleteAsync } from 'del';
const docsExampleRoot = new URL('../../../../docs/', import.meta.url);
@@ -31,7 +31,7 @@ const benchmarks = [
file: new URL('./dev-server-uncached.json', import.meta.url),
async setup() {
const spcache = new URL('../../node_modules/.cache/', import.meta.url);
- await del(spcache.pathname);
+ await deleteAsync(spcache.pathname);
},
run({ root }) {
return runToStarted(root);