build(deps): migrated from @types/node to @types/bun for Bun runtime compatibility

- Migrated from @types/node to @types/bun across all packages to align with Bun runtime.
- Removed @types/node and bun-types from root and package-specific devDependencies.
- Updated tsconfig.base.json to remove 'node' from types array and 'DOM.AsyncIterable' from lib, keeping only Bun-compatible configurations.
- Simplified ReadableStream type annotation in openai-codex-stream.test.ts by removing explicit Uint8Array generic parameter.
This commit is contained in:
can1357
2026-02-05 09:10:45 +01:00
parent 928c210051
commit f69671676d
13 changed files with 26 additions and 52 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ES2024",
"module": "ESNext",
"lib": ["ES2024", "DOM.AsyncIterable"],
"lib": ["ES2024"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
@@ -19,7 +19,7 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"useDefineForClassFields": false,
"types": ["bun", "node", "assets"],
"types": ["bun", "assets"],
"typeRoots": ["./types", "./node_modules/@types"],
"paths": {
"@oh-my-pi/pi-ai": ["./packages/ai/src/index.ts"],