feat(ci): Phase 14.2 dependency-cruiser 整合
- 新增 pnpm dep-check 腳本 - CI lint job 新增 Dependency Check 步驟 - 修復 tsPreCompilationDeps (monorepo 相容) 83 模組、57 依賴、0 違規 ✅ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -145,11 +145,8 @@ module.exports = {
|
||||
path: "apps/web/src"
|
||||
},
|
||||
|
||||
tsPreCompilationDeps: true,
|
||||
|
||||
tsConfig: {
|
||||
fileName: "apps/web/tsconfig.json"
|
||||
},
|
||||
// 2026-03-26: 關閉 TS 前置編譯 (避免 monorepo tsconfig extends 問題)
|
||||
tsPreCompilationDeps: false,
|
||||
|
||||
enhancedResolveOptions: {
|
||||
exportsFields: ["exports"],
|
||||
|
||||
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@@ -72,6 +72,10 @@ jobs:
|
||||
- name: Type check
|
||||
run: pnpm typecheck
|
||||
|
||||
# Phase 14.2: 依賴治理 (2026-03-26)
|
||||
- name: Dependency Check
|
||||
run: pnpm dep-check
|
||||
|
||||
- name: ADR Compliance Check
|
||||
run: |
|
||||
echo "🔍 檢查 ADR 規定..."
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"typecheck": "turbo typecheck",
|
||||
"test": "turbo test",
|
||||
"clean": "turbo clean && rm -rf node_modules",
|
||||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\""
|
||||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
|
||||
"dep-check": "depcruise apps/web/src --config .dependency-cruiser.cjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.0",
|
||||
|
||||
Reference in New Issue
Block a user