fix(build): package manifest.json and drop dev files from zips #7

Merged
adrianbonpin merged 1 commits from fix/build-package-manifest into prod 2026-09-27 18:24:28 +00:00
1 Commits
Author SHA1 Message Date
adrianbonpin bd6c05d1b4 fix(build): package manifest.json and drop dev files from zips
ci / test (pull_request) Successful in 2m48s
collectFiles() skipped manifest.json unconditionally, and the final zip is
produced by calling collectFiles() on the built target dir — so both
dist/*.zip shipped with no manifest.json at all and could not be installed.
The per-target manifest was written into the dir correctly, then filtered
back out on the way into the archive.

Split the exclusion list: EXCLUDED_DIRS plus DEV_ONLY_FILES (manifest.json,
AGENTS.md, README.md, package.json, package-lock.json), and only apply the
latter when reading the repo root. Reading a built target keeps its
generated manifest.

Firefox zip: 26 files/1.84 MB (no manifest) -> 23 files/1.68 MB.
Chrome zip gains its manifest.json and background.chrome.js as before.
2026-09-28 02:23:12 +08:00