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" },