Skip to content

Commit

Permalink
fix(bld): fs.promises.copyFile -> fs.promises.cp
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Nov 26, 2024
1 parent de40e01 commit c1909c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bld.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async function bld({
if (stats.isDirectory()) {
continue;
}
await fs.promises.copyFile(
await fs.promises.cp(
file,
path.resolve(
outDir,
Expand All @@ -156,6 +156,7 @@ async function bld({
: 'nwjs.app/Contents/Resources/app.nw',
file,
),
{ recursive: true, force: true },
);
}
} else {
Expand Down

0 comments on commit c1909c7

Please sign in to comment.