From 4cb5f8dbca8d0f80c9883e6c68bfab3e7da42c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Tue, 17 Mar 2026 17:05:47 -0600 Subject: [PATCH] fix: add exports fields to pi-tui and pi-agent-core packages (#991) Co-authored-by: Claude Opus 4.6 (1M context) --- packages/pi-agent-core/package.json | 6 ++++++ packages/pi-tui/package.json | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/pi-agent-core/package.json b/packages/pi-agent-core/package.json index 18a713efb..d611451e0 100644 --- a/packages/pi-agent-core/package.json +++ b/packages/pi-agent-core/package.json @@ -5,6 +5,12 @@ "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + } + }, "scripts": { "build": "tsc -p tsconfig.json" }, diff --git a/packages/pi-tui/package.json b/packages/pi-tui/package.json index c6e52babb..02e845d77 100644 --- a/packages/pi-tui/package.json +++ b/packages/pi-tui/package.json @@ -3,8 +3,14 @@ "version": "0.57.1", "description": "Terminal User Interface library (vendored from pi-mono)", "type": "module", - "main": "dist/index.js", + "main": "./dist/index.js", "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + } + }, "scripts": { "build": "tsc -p tsconfig.json" },