build(config): refactored build and TypeScript configuration with Bun loaders
- Removed WASM generation script; use Bun `wasm?raw` loader for imports. - Added bunfig.toml with loaders for `.md`, `.py`, and `.wasm?raw` text imports. - Added types/assets/index.d.ts for global TypeScript module declarations. - Unified TypeScript configuration with tsgo-based checking across monorepo. - Removed build and WASM steps from install and publish pipelines.
This commit is contained in:
+23
-2
@@ -14,10 +14,31 @@
|
||||
"inlineSourceMap": false,
|
||||
"moduleResolution": "Bundler",
|
||||
"resolveJsonModule": true,
|
||||
"allowArbitraryExtensions": true,
|
||||
"allowImportingTsExtensions": false,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"useDefineForClassFields": false,
|
||||
"types": ["bun", "node"]
|
||||
}
|
||||
"types": ["bun", "node", "assets"],
|
||||
"typeRoots": ["./types", "./node_modules/@types"],
|
||||
"paths": {
|
||||
"@oh-my-pi/pi-ai": ["./packages/ai/src/index.ts"],
|
||||
"@oh-my-pi/pi-ai/*": ["./packages/ai/src/*"],
|
||||
"@oh-my-pi/pi-agent-core": ["./packages/agent/src/index.ts"],
|
||||
"@oh-my-pi/pi-agent-core/*": ["./packages/agent/src/*"],
|
||||
"@oh-my-pi/pi-utils": ["./packages/pi-utils/src/index.ts"],
|
||||
"@oh-my-pi/pi-utils/*": ["./packages/pi-utils/src/*"],
|
||||
"@oh-my-pi/pi-coding-agent": ["./packages/coding-agent/src/index.ts"],
|
||||
"@oh-my-pi/pi-coding-agent/hooks": ["./packages/coding-agent/src/extensibility/hooks/index.ts"],
|
||||
"@oh-my-pi/pi-coding-agent/*": ["./packages/coding-agent/src/*"],
|
||||
"@oh-my-pi/omp-stats": ["./packages/stats/src/index.ts"],
|
||||
"@oh-my-pi/omp-stats/src/*": ["./packages/stats/src/*"],
|
||||
"@oh-my-pi/omp-stats/*": ["./packages/stats/src/*"],
|
||||
"@oh-my-pi/pi-tui": ["./packages/tui/src/index.ts"],
|
||||
"@oh-my-pi/pi-tui/*": ["./packages/tui/src/*"],
|
||||
"@sinclair/typebox": ["./node_modules/@sinclair/typebox/build/esm/index.d.mts"],
|
||||
"@sinclair/typebox/*": ["./node_modules/@sinclair/typebox/build/esm/*"]
|
||||
}
|
||||
},
|
||||
"files": ["./types/assets/index.d.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user