refactor: restructured monorepo TypeScript config and build tasks for unified setup

- Migrated all package tsconfig files to extend tsconfig.workspace.json for unified TypeScript configuration across monorepo.
- Consolidated build and check scripts across 10+ packages to use biome for linting/formatting with separate type checking via tsgo.
- Renamed build scripts from build:native and build:binary to build for simplified command naming across packages/natives and packages/coding-agent.
- Refactored CI workflow to invoke bun tasks instead of inline shell scripts, reducing workflow complexity by 40+ lines.
- Removed sync-exports.ts and repro-stuck.ts scripts; deleted path aliases from tsconfig.base.json in favor of workspace-based configuration.
- Updated turbo.json with new task definitions (check:types, lint, fmt, fix) and removed build:native/embed:native tasks.
This commit is contained in:
can1357
2026-04-08 16:09:37 +02:00
parent 61dff04ab1
commit 52719d1a7c
55 changed files with 777 additions and 746 deletions
+21 -30
View File
@@ -2,45 +2,36 @@
"compilerOptions": {
"target": "ES2024",
"module": "ESNext",
"lib": ["ES2024", "DOM.AsyncIterable"],
"lib": [
"ES2024",
"DOM.AsyncIterable"
],
"moduleResolution": "Bundler",
"moduleDetection": "force",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowArbitraryExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"inlineSources": true,
"inlineSourceMap": false,
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"allowArbitraryExtensions": true,
"allowImportingTsExtensions": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"useDefineForClassFields": false,
"types": ["bun", "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/utils/src/index.ts"],
"@oh-my-pi/pi-utils/*": ["./packages/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/pi-natives": ["./packages/natives/native"],
"@oh-my-pi/omp-stats": ["./packages/stats/src/index.ts"],
"@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/*"],
"@oh-my-pi/typescript-edit-benchmark": ["./packages/typescript-edit-benchmark/src/index.ts"],
"@oh-my-pi/typescript-edit-benchmark/*": ["./packages/typescript-edit-benchmark/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"]
"types": [
"bun",
"assets"
],
"typeRoots": [
"./types",
"./node_modules/@types"
],
"assumeChangesOnlyAffectDirectDependencies": true
}
}