diff --git a/.dependency-cruiser.cjs b/.dependency-cruiser.cjs index 48ddf05c..8c58957c 100644 --- a/.dependency-cruiser.cjs +++ b/.dependency-cruiser.cjs @@ -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"], diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 39ce6dcb..e1d325f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 規定..." diff --git a/package.json b/package.json index d90e4755..4dab0eef 100644 --- a/package.json +++ b/package.json @@ -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",