Skip to content

Commit 1472efc

Browse files
thdxropencode
andcommitted
Optimize package management with catalog and exact versions
- Add catalog feature to centralize common dependency versions - Convert all package versions to exact (remove ^ prefixes) - Move prettier to root package only to reduce duplication - Configure bunfig.toml for exact dependency installs - Improve version consistency across workspace packages 🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 56a5d58 commit 1472efc

6 files changed

Lines changed: 53 additions & 67 deletions

File tree

bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[install]
2+
exact = true

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
],
1313
"devDependencies": {
1414
"@tsconfig/node22": "22.0.0",
15-
"@types/node": "^22.13.9",
16-
"prettier": "^3.5.3",
15+
"@types/node": "22.13.9",
16+
"prettier": "3.5.3",
1717
"sst": "3.16.0",
1818
"typescript": "5.8.2"
1919
},
@@ -32,6 +32,12 @@
3232
"overrides": {
3333
"zod": "3.24.2"
3434
},
35+
"catalog": {
36+
"typescript": "5.8.2",
37+
"@types/node": "22.13.9",
38+
"zod": "3.24.2",
39+
"ai": "5.0.0-alpha.7"
40+
},
3541
"trustedDependencies": [
3642
"esbuild",
3743
"protobufjs",

packages/function/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"private": true,
66
"type": "module",
77
"devDependencies": {
8-
"@cloudflare/workers-types": "^4.20250522.0"
8+
"@cloudflare/workers-types": "4.20250522.0",
9+
"typescript": "catalog:",
10+
"@types/node": "catalog:"
911
}
1012
}

packages/opencode/package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,30 @@
1212
]
1313
},
1414
"devDependencies": {
15-
"@tsconfig/bun": "^1.0.7",
15+
"@tsconfig/bun": "1.0.7",
1616
"@types/bun": "latest",
17-
"@types/jsdom": "^21.1.7",
18-
"@types/turndown": "^5.0.5"
17+
"@types/jsdom": "21.1.7",
18+
"@types/turndown": "5.0.5",
19+
"typescript": "catalog:",
20+
"@types/node": "catalog:"
1921
},
2022
"dependencies": {
21-
"@flystorage/file-storage": "^1.1.0",
22-
"@flystorage/local-fs": "^1.1.0",
23-
"@hono/zod-validator": "^0.5.0",
24-
"ai": "5.0.0-alpha.7",
25-
"cac": "^6.7.14",
26-
"decimal.js": "^10.5.0",
27-
"env-paths": "^3.0.0",
28-
"hono": "^4.7.10",
29-
"hono-openapi": "^0.4.8",
30-
"jsdom": "^26.1.0",
31-
"remeda": "^2.22.3",
32-
"ts-lsp-client": "^1.0.3",
33-
"turndown": "^7.2.0",
34-
"vscode-jsonrpc": "^8.2.1",
23+
"@flystorage/file-storage": "1.1.0",
24+
"@flystorage/local-fs": "1.1.0",
25+
"@hono/zod-validator": "0.5.0",
26+
"ai": "catalog:",
27+
"cac": "6.7.14",
28+
"decimal.js": "10.5.0",
29+
"env-paths": "3.0.0",
30+
"hono": "4.7.10",
31+
"hono-openapi": "0.4.8",
32+
"jsdom": "26.1.0",
33+
"remeda": "2.22.3",
34+
"ts-lsp-client": "1.0.3",
35+
"turndown": "7.2.0",
36+
"vscode-jsonrpc": "8.2.1",
3537
"vscode-languageclient": "8",
36-
"zod": "^3.25.3",
37-
"zod-openapi": "^4.2.4"
38+
"zod": "catalog:",
39+
"zod-openapi": "4.2.4"
3840
}
3941
}

packages/opencode/scrap.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/web/package.json

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/markdown-remark": "^6.3.1",
14-
"@astrojs/solid-js": "^5.1.0",
15-
"@astrojs/starlight": "^0.34.3",
16-
"@fontsource/ibm-plex-mono": "^5.2.5",
17-
"@shikijs/transformers": "^3.4.2",
18-
"@types/luxon": "^3.6.2",
19-
"ai": "^5.0.0-alpha.2",
20-
"astro": "^5.7.13",
21-
"diff": "^8.0.2",
22-
"luxon": "^3.6.1",
23-
"rehype-autolink-headings": "^7.1.0",
24-
"sharp": "^0.32.5",
25-
"shiki": "^3.4.2",
26-
"solid-js": "^1.9.7",
27-
"toolbeam-docs-theme": "^0.2.4"
13+
"@astrojs/markdown-remark": "6.3.1",
14+
"@astrojs/solid-js": "5.1.0",
15+
"@astrojs/starlight": "0.34.3",
16+
"@fontsource/ibm-plex-mono": "5.2.5",
17+
"@shikijs/transformers": "3.4.2",
18+
"@types/luxon": "3.6.2",
19+
"ai": "catalog:",
20+
"astro": "5.7.13",
21+
"diff": "8.0.2",
22+
"luxon": "3.6.1",
23+
"rehype-autolink-headings": "7.1.0",
24+
"sharp": "0.32.5",
25+
"shiki": "3.4.2",
26+
"solid-js": "1.9.7",
27+
"toolbeam-docs-theme": "0.2.4"
28+
},
29+
"devDependencies": {
30+
"typescript": "catalog:",
31+
"@types/node": "catalog:"
2832
}
2933
}

0 commit comments

Comments
 (0)