fix(books): downgrade archiver to v7 to restore zip export (#41)

archiver v8 switched to pure ESM with no default export and a
   completely different API, breaking every zip export request with
   TypeError: (0 , _archiver.default) is not a function. The NestJS
   SWC build produces CJS output, which cannot import the new ESM-only
   package at runtime.

   Downgrade to ~7.0.1 (the last CJS release) and add a Dependabot
   ignore rule for archiver major bumps so this cannot recur silently.

   Fixes #31
This commit is contained in:
neon
2026-05-18 15:48:46 -06:00
committed by GitHub
parent 38e901f3af
commit 1fc04f8af6
4 changed files with 12369 additions and 6664 deletions
+1 -1
View File
@@ -64,7 +64,7 @@
"@nestjs/websockets": "^11.1.21",
"@parcel/watcher": "^2.5.6",
"@types/archiver": "^7.0.0",
"archiver": "^8.0.0",
"archiver": "~7.0.1",
"bcryptjs": "^3.0.3",
"cheerio": "^1.2.0",
"class-transformer": "^0.5.1",