snatching amp's walkthrough for my own purposes mwhahaha traverse.dunkirk.sh/diagram/6121f05c-a5ef-4ecf-8ffc-02534c5e767c

chore: bundle fonts

dunkirk.sh a0b5a662 b7240893

verified
+3 -3
fonts/inter-latin-400-normal.woff

This is a binary file and will not be displayed.

fonts/inter-latin-700-normal.woff

This is a binary file and will not be displayed.

+2 -2
package.json
··· 1 1 { 2 2 "name": "@taciturnaxolotl/traverse", 3 - "version": "0.1.3", 3 + "version": "0.1.4", 4 4 "description": "Interactive code walkthrough diagrams via MCP", 5 5 "module": "src/index.ts", 6 6 "type": "module", ··· 10 10 "files": [ 11 11 "src", 12 12 "bin", 13 + "fonts", 13 14 "icon.svg" 14 15 ], 15 16 "scripts": { ··· 23 24 "typescript": "^5" 24 25 }, 25 26 "dependencies": { 26 - "@fontsource/inter": "^5.2.8", 27 27 "@modelcontextprotocol/sdk": "^1.26.0", 28 28 "@resvg/resvg-wasm": "^2.6.2", 29 29 "satori": "^0.19.1"
+1 -1
src/og.ts
··· 3 3 import { join } from "path"; 4 4 5 5 // Load Inter font files (woff, not woff2 — satori doesn't support woff2) 6 - const fontsDir = join(import.meta.dir, "../node_modules/@fontsource/inter/files"); 6 + const fontsDir = join(import.meta.dir, "../fonts"); 7 7 const [interRegular, interBold] = await Promise.all([ 8 8 Bun.file(join(fontsDir, "inter-latin-400-normal.woff")).arrayBuffer(), 9 9 Bun.file(join(fontsDir, "inter-latin-700-normal.woff")).arrayBuffer(),