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>
This commit is contained in:
Dax Raad 2025-05-30 21:56:37 -04:00
parent 56a5d58945
commit 1472efcbfe
6 changed files with 53 additions and 67 deletions

2
bunfig.toml Normal file
View file

@ -0,0 +1,2 @@
[install]
exact = true

View file

@ -12,8 +12,8 @@
], ],
"devDependencies": { "devDependencies": {
"@tsconfig/node22": "22.0.0", "@tsconfig/node22": "22.0.0",
"@types/node": "^22.13.9", "@types/node": "22.13.9",
"prettier": "^3.5.3", "prettier": "3.5.3",
"sst": "3.16.0", "sst": "3.16.0",
"typescript": "5.8.2" "typescript": "5.8.2"
}, },
@ -32,6 +32,12 @@
"overrides": { "overrides": {
"zod": "3.24.2" "zod": "3.24.2"
}, },
"catalog": {
"typescript": "5.8.2",
"@types/node": "22.13.9",
"zod": "3.24.2",
"ai": "5.0.0-alpha.7"
},
"trustedDependencies": [ "trustedDependencies": [
"esbuild", "esbuild",
"protobufjs", "protobufjs",

View file

@ -5,6 +5,8 @@
"private": true, "private": true,
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@cloudflare/workers-types": "^4.20250522.0" "@cloudflare/workers-types": "4.20250522.0",
"typescript": "catalog:",
"@types/node": "catalog:"
} }
} }

View file

@ -12,28 +12,30 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/bun": "^1.0.7", "@tsconfig/bun": "1.0.7",
"@types/bun": "latest", "@types/bun": "latest",
"@types/jsdom": "^21.1.7", "@types/jsdom": "21.1.7",
"@types/turndown": "^5.0.5" "@types/turndown": "5.0.5",
"typescript": "catalog:",
"@types/node": "catalog:"
}, },
"dependencies": { "dependencies": {
"@flystorage/file-storage": "^1.1.0", "@flystorage/file-storage": "1.1.0",
"@flystorage/local-fs": "^1.1.0", "@flystorage/local-fs": "1.1.0",
"@hono/zod-validator": "^0.5.0", "@hono/zod-validator": "0.5.0",
"ai": "5.0.0-alpha.7", "ai": "catalog:",
"cac": "^6.7.14", "cac": "6.7.14",
"decimal.js": "^10.5.0", "decimal.js": "10.5.0",
"env-paths": "^3.0.0", "env-paths": "3.0.0",
"hono": "^4.7.10", "hono": "4.7.10",
"hono-openapi": "^0.4.8", "hono-openapi": "0.4.8",
"jsdom": "^26.1.0", "jsdom": "26.1.0",
"remeda": "^2.22.3", "remeda": "2.22.3",
"ts-lsp-client": "^1.0.3", "ts-lsp-client": "1.0.3",
"turndown": "^7.2.0", "turndown": "7.2.0",
"vscode-jsonrpc": "^8.2.1", "vscode-jsonrpc": "8.2.1",
"vscode-languageclient": "8", "vscode-languageclient": "8",
"zod": "^3.25.3", "zod": "catalog:",
"zod-openapi": "^4.2.4" "zod-openapi": "4.2.4"
} }
} }

View file

@ -1,30 +0,0 @@
// This is a dummy file for testing purposes
console.log('Hello, world!');
export function dummyFunction(): void {
console.log('This is a dummy function');
}
export function anotherDummyFunction(): string {
return 'This is another dummy function';
}
export function newDummyFunction(): number {
return 42;
}
export function extraDummyFunction(): boolean {
return true;
}
export function superDummyFunction(): void {
console.log('This is a super dummy function');
}
export function ultraDummyFunction(): object {
return { dummy: true };
}
export function megaDummyFunction(): Array<string> {
return ['dummy', 'mega', 'function'];
}

View file

@ -10,20 +10,24 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/markdown-remark": "^6.3.1", "@astrojs/markdown-remark": "6.3.1",
"@astrojs/solid-js": "^5.1.0", "@astrojs/solid-js": "5.1.0",
"@astrojs/starlight": "^0.34.3", "@astrojs/starlight": "0.34.3",
"@fontsource/ibm-plex-mono": "^5.2.5", "@fontsource/ibm-plex-mono": "5.2.5",
"@shikijs/transformers": "^3.4.2", "@shikijs/transformers": "3.4.2",
"@types/luxon": "^3.6.2", "@types/luxon": "3.6.2",
"ai": "^5.0.0-alpha.2", "ai": "catalog:",
"astro": "^5.7.13", "astro": "5.7.13",
"diff": "^8.0.2", "diff": "8.0.2",
"luxon": "^3.6.1", "luxon": "3.6.1",
"rehype-autolink-headings": "^7.1.0", "rehype-autolink-headings": "7.1.0",
"sharp": "^0.32.5", "sharp": "0.32.5",
"shiki": "^3.4.2", "shiki": "3.4.2",
"solid-js": "^1.9.7", "solid-js": "1.9.7",
"toolbeam-docs-theme": "^0.2.4" "toolbeam-docs-theme": "0.2.4"
},
"devDependencies": {
"typescript": "catalog:",
"@types/node": "catalog:"
} }
} }