Skip to content

The open source coding agent.

TypeScript

fix(plugin): correct exports to point to dist instead of src

R44VC0RP7417e6eb38e9
diff --git a/packages/plugin/package.json b/packages/plugin/package.json
index 5a4afbae439..160ce6a8266 100644
--- a/packages/plugin/package.json
+++ b/packages/plugin/package.json
@@ -9,8 +9,14 @@
"build": "tsc"
},
"exports": {
- ".": "./src/index.ts",
- "./tool": "./src/tool.ts"
+ ".": {
+ "types": "./dist/index.d.ts",
+ "import": "./dist/index.js"
+ },
+ "./tool": {
+ "types": "./dist/tool.d.ts",
+ "import": "./dist/tool.js"
+ }
},
"files": [
"dist"