diff --git a/scripts/shared.mjs b/scripts/shared.mjs index 0e16396..d54a7de 100644 --- a/scripts/shared.mjs +++ b/scripts/shared.mjs @@ -43,7 +43,9 @@ export const defaultBuildOptions = { src: "./src/", dest: "./dist/", recursive: true, - filter: (src) => files.includes(src) || ignore.includes(src), + + // Return true if the file should be copied and false otherwise. + filter: (src) => ![...files, ...ignore].includes(src), }), ], };