Files
oh-my-pi/tsconfig.json
T
can1357 7b5af2dd9f 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
2026-01-23 11:56:32 +01:00

29 lines
1.2 KiB
JSON

{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"paths": {
"$c/*": ["./packages/coding-agent/src/*"],
"$ai/*": ["./packages/ai/src/*"],
"$tui/*": ["./packages/tui/src/*"],
"$agent/*": ["./packages/agent/src/*"],
"$stats/*": ["./packages/omp-stats/src/*"],
"*": ["./*"],
"@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/core/hooks/index.ts"],
"@oh-my-pi/pi-coding-agent/*": ["./packages/coding-agent/src/*"],
"@sinclair/typebox": ["./node_modules/@sinclair/typebox"],
"@oh-my-pi/pi-tui": ["./packages/tui/src/index.ts"],
"@oh-my-pi/pi-tui/*": ["./packages/tui/src/*"]
}
},
"include": ["packages/*/src/**/*", "packages/*/test/**/*", "packages/coding-agent/examples/**/*"],
"exclude": ["packages/web-ui/**/*", "**/dist/**"]
}