From 9187d5ff433d7bce996787634eb7c3e9ce879b3f Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 8 Feb 2026 13:37:06 +0100 Subject: [PATCH] fix: import crypto from node:crypto for Node.js compatibility The CLI uses crypto.subtle in getContentHash() but relied on the Bun-global crypto object. This fails in Node.js environments (e.g. GitHub Actions). Explicitly importing from node:crypto works in both. --- packages/cli/src/lib/markdown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/lib/markdown.ts b/packages/cli/src/lib/markdown.ts index fc88753..c64ae03 100644 --- a/packages/cli/src/lib/markdown.ts +++ b/packages/cli/src/lib/markdown.ts @@ -1,3 +1,4 @@ +import { webcrypto as crypto } from "node:crypto"; import * as fs from "node:fs/promises"; import * as path from "node:path"; import { glob } from "glob"; -- 2.51.2