From 2998c6dc77e24837b30104733d1e87db5e568ba1 Mon Sep 17 00:00:00 2001 From: Ugo Bechameil Date: Tue, 19 Sep 2023 17:36:47 +0200 Subject: [PATCH] Use cp instead of rename --- lib/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/publish.js b/lib/publish.js index 5179c3d..bd1cbc9 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -141,7 +141,7 @@ export async function prepareParcelWatcherPrebuildsPackages() { force: true, recursive: true, }); - await rename(dir, hackoladeScopedPkgPath); + await cp(dir, hackoladeScopedPkgPath, {recursive: true, force: true}); // Tweak package.json to remove useless information const pkgRaw = await readFile(