lazyslides 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -112,6 +112,14 @@ export default function lazyslides(eleventyConfig, options = {}) {
112
112
  d2Cache.set(source, `<div class="d2-error">${safeMsg}</div>`);
113
113
  }
114
114
  }
115
+
116
+ // Terminate the D2 worker thread so the Node process can exit cleanly.
117
+ // The D2 class spawns a Worker for WASM but never exposes a cleanup method.
118
+ if (d2Instance?.worker) {
119
+ await d2Instance.worker.terminate();
120
+ d2Instance = null;
121
+ d2Available = null;
122
+ }
115
123
  });
116
124
 
117
125
  // ---------------------------------------------------------------
package/lib/export-pdf.js CHANGED
@@ -229,7 +229,6 @@ export async function run(opts = {}) {
229
229
  // Summary
230
230
  console.log("\u2501".repeat(30));
231
231
  console.log(`Exported: ${success} Failed: ${failure}`);
232
- if (failure > 0) {
233
- process.exit(1);
234
- }
232
+ // Force exit to ensure all child processes (server, npx wrappers) are cleaned up.
233
+ process.exit(failure > 0 ? 1 : 0);
235
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lazyslides",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Slide decks with native agentic AI integration",
5
5
  "license": "MIT",
6
6
  "author": "Chris Tietz",