From: =?utf-8?q?Bastien_Roucari=C3=A8s?= Date: Sun, 26 Apr 2026 14:32:44 +0200 Subject: Avoid small packages for del forwarded: not-needed --- test.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index 67c11aa..674780c 100644 --- a/test.js +++ b/test.js @@ -1,8 +1,21 @@ import path from 'path'; import test from 'ava'; import execa from 'execa'; -import cpy from 'cpy'; -import del from 'del'; +import { cp, mkdir } from 'fs/promises'; +import { dirname, join } from 'path'; + +async function cpy(sources, destRoot, ignore) { + for (const file of sources) { + const dest = join(destRoot, file); + await mkdir(dirname(dest), { recursive: true }); + await cp(file, dest); + } +} +import { rm } from 'fs/promises'; + +async function del(path) { + await await rm('path/to/dir', { recursive: true, force: true }); +} test('local', async t => { await cpy(