为 TypeScript 项目配置包边界检查,检测外部对包内部文件的直接引用和循环依赖。以包根目录文件作为公开入口,并完成示例、验证和文档。
- 防止直接引用包内部文件
- 在类型检查时一并检查包边界
- 创建可复制的包模板
6 个 · 按相关度排序
为 TypeScript 项目配置包边界检查,检测外部对包内部文件的直接引用和循环依赖。以包根目录文件作为公开入口,并完成示例、验证和文档。
Set up dependency-cruiser in a TypeScript repository to enforce package boundaries: outside code uses public entry files while implementation stays in subfolders. Add checks, a starter package, and documentation, then verify that forbidden imports fail.
中文简介正在准备中。当前显示英语简介。
将 dependency-cruiser 接入 TypeScript 仓库,使每个 package 都是一个深度模块:实现隐藏在子文件夹中,只能通过入口点文件访问。由用户调用。
中文简介正在准备中。当前显示原文说明。
Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in subfolders and reachable only through its entry-point files. User-invoked.
中文简介正在准备中。当前显示原文说明。
Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in subfolders and reachable only through its entry-point files. User-invoked.
中文简介正在准备中。当前显示原文说明。
Use when surfacing architectural friction and proposing deepening refactors (shallow modules → deep modules) for testability and AI-navigability. Triggers on "improve architecture", "find deepening opportunities", "where is this codebase shallow", "architecture review". Emits structured candidates + precise patches; delegates ALL rendering to mk:preview. NOT for diagram/HTML rendering (see mk:preview); NOT for trade-off deliberation (see mk:party); NOT for plan critique (see mk:plan-ceo-review).
中文简介正在准备中。当前显示原文说明。