diff --git a/scripts/shared.mjs b/scripts/shared.mjs index 6939401..5149f1b 100644 --- a/scripts/shared.mjs +++ b/scripts/shared.mjs @@ -13,14 +13,6 @@ const files = [ path.join("src", "options", "options.js"), ]; -/** - * This array contains all files that we don't want to copy from the `src` folder. - * For now, only exact filenames are supported, neither directories, glob patterns or regular expressions. - * - * @type {string[]} - */ -const ignore = []; - /** * @type {import("esbuild").BuildOptions} */ @@ -49,7 +41,7 @@ export const defaultBuildOptions = { recursive: true, // Return true if the file should be copied and false otherwise. - filter: (src) => ![...files, ...ignore].includes(src), + filter: (src) => !src.endsWith(".js"), }), ], };