From f628f7184372b085b890b6338d3b3dfe785afca3 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Sat, 21 Mar 2026 10:44:45 -0600 Subject: [PATCH] fix: add require condition to pi-tui exports for CJS resolution createRequire() in shared/ui.ts uses CJS resolution which needs a "require" condition in package.json exports. Without it, Node throws ERR_PACKAGE_PATH_NOT_EXPORTED. Verified locally: build, typecheck:extensions, test:unit (0 fail), test:integration (0 fail), validate-pack all pass. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/pi-tui/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/pi-tui/package.json b/packages/pi-tui/package.json index dc26264fb..60d65401a 100644 --- a/packages/pi-tui/package.json +++ b/packages/pi-tui/package.json @@ -8,7 +8,8 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.js" + "import": "./dist/index.js", + "require": "./dist/index.js" } }, "scripts": {