diff --git a/src/bld.js b/src/bld.js index a752befc..f931ccc3 100644 --- a/src/bld.js +++ b/src/bld.js @@ -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,