Skip to content

Commit

Permalink
fix(bld): use fs.promises.copyFile to copy app files in build mode wi…
Browse files Browse the repository at this point in the history
…th glob enabled
  • Loading branch information
ayushmanchhabra committed Nov 25, 2024
1 parent bd0ef96 commit e1843f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bld.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ async function bld({

if (glob) {
for (let file of files) {
await fs.promises.cp(
const stats = await fs.promises.stat(file);
if (stats.isDirectory()) {
continue;
}
await fs.promises.copyFile(
file,
path.resolve(
outDir,
Expand Down

0 comments on commit e1843f0

Please sign in to comment.