From da1e8b8f775492ac4a09b79a57213c46c26fcf40 Mon Sep 17 00:00:00 2001 From: YSingh Date: Wed, 1 Jul 2026 17:34:18 -0600 Subject: [PATCH] fix: declare calculate-packing/graphics-debug deps; math-utils as peer Build is tsup-node (no bundling). The shipped dist imports calculate-packing, graphics-debug and @tscircuit/math-utils while they sat only in devDependencies, so a clean `bun add @tscircuit/matchpack` + import throws "Cannot find module". Following the tscircuit dependency-check convention (internal_lib): external packages -> dependencies, internal @tscircuit/* -> peerDependencies ("*"). So: calculate-packing + graphics-debug -> dependencies; math-utils -> peerDependencies. --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4e7583d..e6a4a0d 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,10 @@ "format:check": "biome format .", "build:site": "cosmos-export" }, + "dependencies": { + "calculate-packing": "^0.0.75", + "graphics-debug": "^0.0.95" + }, "devDependencies": { "@biomejs/biome": "^2.4.16", "@react-hook/resize-observer": "^2.0.2", @@ -23,9 +27,7 @@ "@types/bun": "^1.3.14", "bun-match-svg": "^0.0.15", "bpc-graph": "^0.0.66", - "calculate-packing": "^0.0.75", "circuit-json": "^0.0.432", - "graphics-debug": "^0.0.95", "react-cosmos": "^7.3.0", "react-cosmos-plugin-vite": "^7.3.0", "tscircuit": "^0.0.1891", @@ -33,6 +35,7 @@ "circuit-to-svg": "^0.0.351" }, "peerDependencies": { + "@tscircuit/math-utils": "*", "typescript": "^5" } }