FIx compendiums

This commit is contained in:
2026-05-13 22:43:58 +02:00
parent c76813029b
commit a572c66678
68 changed files with 869 additions and 309 deletions
@@ -0,0 +1,12 @@
diff --git a/node_modules/@foundryvtt/foundryvtt-cli/lib/package.mjs b/node_modules/@foundryvtt/foundryvtt-cli/lib/package.mjs
index fe64397..74427bc 100644
--- a/node_modules/@foundryvtt/foundryvtt-cli/lib/package.mjs
+++ b/node_modules/@foundryvtt/foundryvtt-cli/lib/package.mjs
@@ -341,6 +341,7 @@ async function compileClassicLevel(pack, files, { log, transformEntry }={}) {
// Load the directory as a ClassicLevel DB.
const db = new ClassicLevel(pack, { keyEncoding: "utf8", valueEncoding: "json" });
+ await db.open(); // explicit open to avoid deferred-iterator crash on Node 24+
const batch = db.batch();
const seenKeys = new Set();