chore: remove tracked dependency files, output to generated/#67
chore: remove tracked dependency files, output to generated/#67carlos-alm merged 5 commits intomainfrom
Conversation
Delete DEPENDENCIES.json and generated/DEPENDENCIES.md from the repo. Update gen-deps.cjs to write into generated/ and gitignore its output so it stays local-only.
Greptile SummaryThis PR moves dependency tracking files from the repository root to a
All previously reported issues regarding missing directory creation have been addressed in commits 6d44a03 and cee85a8. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 69cb331 |
| const fs = require('fs'); | ||
| const path = require('path'); | ||
|
|
||
| const outFile = path.join('generated', 'DEPENDENCIES.md'); |
There was a problem hiding this comment.
The generated/ directory must exist before writing, or writeFileSync will fail with ENOENT. Add fs.mkdirSync(path.dirname(outFile), { recursive: true }) before line 8.
| const outFile = path.join('generated', 'DEPENDENCIES.md'); | |
| const outFile = path.join('generated', 'DEPENDENCIES.md'); | |
| fs.mkdirSync(path.dirname(outFile), { recursive: true }); |
There was a problem hiding this comment.
Fixed in 6d44a03 — added fs.mkdirSync(path.dirname(outFile), { recursive: true }) before the write.
.github/workflows/publish.yml
Outdated
| - name: Generate DEPENDENCIES.json | ||
| if: github.event_name != 'push' | ||
| run: npm ls --json --all --omit=dev > DEPENDENCIES.json 2>/dev/null || true | ||
| run: npm ls --json --all --omit=dev > generated/DEPENDENCIES.json 2>/dev/null || true |
There was a problem hiding this comment.
The generated/ directory must exist before writing, or this command will fail with ENOENT. Add mkdir -p generated && before the npm command.
| run: npm ls --json --all --omit=dev > generated/DEPENDENCIES.json 2>/dev/null || true | |
| run: mkdir -p generated && npm ls --json --all --omit=dev > generated/DEPENDENCIES.json 2>/dev/null || true |
There was a problem hiding this comment.
Fixed in 6d44a03 — added mkdir -p generated && before the npm command.
Add mkdir for generated/ in both gen-deps.cjs and publish.yml to prevent ENOENT failures on fresh clones.
| .claude/codegraph-checked.log | ||
| artifacts/ | ||
| pkg/ | ||
| generated/DEPENDENCIES.md |
There was a problem hiding this comment.
also add generated/DEPENDENCIES.json since the workflow generates it and it shouldn't be committed locally
| generated/DEPENDENCIES.md | |
| generated/DEPENDENCIES.md | |
| generated/DEPENDENCIES.json |
The publish workflow generates this file; it shouldn't be committed locally.
|
Both issues addressed:
Fresh clones will now create |
…ncies Impact: 21 functions changed, 38 affected
|
Claude finished @carlos-alm's task —— View job PR Review Complete ✅Todo List
Root Cause AnalysisProblem Being Solved: The PR addresses dependency file management pollution in the working tree. Previously, Why This Approach: Moving dependency files to a Risk Assessment: LOW RISK - This is a pure organizational change with proper safeguards. The functionality remains identical; only the file locations change. Configuration Change AnalysisChanges Reviewed:
Security Assessment: No security concerns. All changes are organizational improvements. Previous Review Feedback Verification✅ Directory Creation Fix (6d44a03): Added ✅ Missing Gitignore Entry (cee85a8): Added Both issues identified in previous reviews have been properly addressed. Code Quality Assessment
Technical Verification
Test Plan ValidationThe PR's test plan is appropriate:
Both requirements are satisfied by the implementation. Final Recommendation
Strengths:
No Critical Concerns: This is a safe, well-implemented change that improves the developer experience without introducing any risks. |
Summary
DEPENDENCIES.jsonandgenerated/DEPENDENCIES.mdfrom trackinggen-deps.cjsto write intogenerated/DEPENDENCIES.mdpublish.ymlto writeDEPENDENCIES.jsonintogenerated/generated/DEPENDENCIES.mdso localnpm installdoesn't dirty the treeTest plan
npm run deps:treeand verify output lands ingenerated/DEPENDENCIES.mdgit statusstays clean afternpm install