refactor(build): migrated imports to path aliases with per-package tsconfig support

- converted relative imports to path aliases ($c/*, $ai/*, $tui/*, etc.) across all packages
- added per-package tsconfig.json with complete path mappings for runtime resolution
- set importModuleSpecifier to non-relative for IDE auto-import preferences
- updated dev script to run from monorepo root for consistent path resolution
This commit is contained in:
can1357
2026-01-23 11:45:11 +01:00
parent 06efb8bd72
commit 7b5af2dd9f
371 changed files with 1370 additions and 1162 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"baseUrl": ".",
"paths": {
"$tui/*": ["./src/*"],
"$ai/*": ["../ai/src/*"],
"$c/*": ["../coding-agent/src/*"],
"$agent/*": ["../agent/src/*"],
"$stats/*": ["../omp-stats/src/*"],
"@oh-my-pi/pi-tui": ["./src/index.ts"],
"@oh-my-pi/pi-tui/*": ["./src/*"],
"@oh-my-pi/pi-ai": ["../ai/src/index.ts"],
"@oh-my-pi/pi-ai/*": ["../ai/src/*"],
"@oh-my-pi/pi-agent-core": ["../agent/src/index.ts"],
"@oh-my-pi/pi-agent-core/*": ["../agent/src/*"],
"@oh-my-pi/pi-utils": ["../pi-utils/src/index.ts"],
"@oh-my-pi/pi-utils/*": ["../pi-utils/src/*"],
"@oh-my-pi/pi-coding-agent": ["../coding-agent/src/index.ts"],
"@oh-my-pi/pi-coding-agent/*": ["../coding-agent/src/*"]
}
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}