From c1909c7d84e1513339625667fc6cab1525677f3b Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Tue, 26 Nov 2024 22:56:40 +0530 Subject: [PATCH] fix(bld): fs.promises.copyFile -> fs.promises.cp --- src/bld.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bld.js b/src/bld.js index 6eb832cc..05ecaa36 100644 --- a/src/bld.js +++ b/src/bld.js @@ -147,7 +147,7 @@ async function bld({ if (stats.isDirectory()) { continue; } - await fs.promises.copyFile( + await fs.promises.cp( file, path.resolve( outDir, @@ -156,6 +156,7 @@ async function bld({ : 'nwjs.app/Contents/Resources/app.nw', file, ), + { recursive: true, force: true }, ); } } else {