Skip to content

Commit

Permalink
fix: don't expand extraFiles directories when copying
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jun 20, 2024
1 parent 3010d7e commit 6ad1d43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ if (fs.existsSync(webpackExtPath)) {

// copy extra files
if (Array.isArray(webpackExt.extraFiles)) {
const files = await globby(webpackExt.extraFiles)
const files = await globby(webpackExt.extraFiles, {
expandDirectories: false,
onlyFiles: false,
})

for (const file of files) {
await fs.copy(file, path.join('pkg', path.basename(file)), {
overwrite: false,
Expand Down

0 comments on commit 6ad1d43

Please sign in to comment.