mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-24 08:27:18 +00:00
fix: restore missing files (package.json etc) and fix sync script logic
This commit is contained in:
29
docs/zh-TW/commands/build-fix.md
Normal file
29
docs/zh-TW/commands/build-fix.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# 建置與修復
|
||||
|
||||
增量修復 TypeScript 和建置錯誤:
|
||||
|
||||
1. 執行建置:npm run build 或 pnpm build
|
||||
|
||||
2. 解析錯誤輸出:
|
||||
- 依檔案分組
|
||||
- 依嚴重性排序
|
||||
|
||||
3. 對每個錯誤:
|
||||
- 顯示錯誤上下文(前後 5 行)
|
||||
- 解釋問題
|
||||
- 提出修復方案
|
||||
- 套用修復
|
||||
- 重新執行建置
|
||||
- 驗證錯誤已解決
|
||||
|
||||
4. 停止條件:
|
||||
- 修復引入新錯誤
|
||||
- 3 次嘗試後同樣錯誤仍存在
|
||||
- 使用者要求暫停
|
||||
|
||||
5. 顯示摘要:
|
||||
- 已修復的錯誤
|
||||
- 剩餘的錯誤
|
||||
- 新引入的錯誤
|
||||
|
||||
為了安全,一次修復一個錯誤!
|
||||
Reference in New Issue
Block a user