Skip to content

Commit ebba84d

Browse files
committed
fix(publish): add prepare script and remove files field to enable dependency installation from
1 parent 0f5bf19 commit ebba84d

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

packages/agent/package.json

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@
55
"type": "module",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",
8-
"files": [
9-
"dist",
10-
"README.md",
11-
"LICENSE",
12-
"bin"
13-
],
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"import": "./dist/index.js"
12+
},
13+
"./services": {
14+
"types": "./dist/services/index.d.ts",
15+
"import": "./dist/services/index.js"
16+
},
17+
"./aisdk": {
18+
"types": "./dist/aisdk/index.d.ts",
19+
"import": "./dist/aisdk/index.js"
20+
}
21+
},
1422
"bin": {
1523
"tools-registry-cli": "./bin/tools-registry-cli.js"
1624
},
@@ -20,9 +28,7 @@
2028
},
2129
"scripts": {
2230
"build": "tsc",
23-
"deploy": "wrangler deploy",
24-
"dev": "wrangler dev",
25-
"start": "wrangler dev",
31+
"prepare": "pnpm run build",
2632
"test": "echo No Tests",
2733
"cf-typegen": "wrangler types"
2834
},
@@ -41,19 +47,5 @@
4147
"ai": "^4.3.9",
4248
"hono": "^4.7.7",
4349
"zod": "^3.24.3"
44-
},
45-
"exports": {
46-
".": {
47-
"types": "./dist/index.d.ts",
48-
"import": "./dist/index.js"
49-
},
50-
"./services": {
51-
"types": "./dist/services/index.d.ts",
52-
"import": "./dist/services/index.js"
53-
},
54-
"./aisdk": {
55-
"types": "./dist/aisdk/index.d.ts",
56-
"import": "./dist/aisdk/index.js"
57-
}
5850
}
5951
}

0 commit comments

Comments
 (0)