| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Claude finished @carlos-alm's task —— View job PR Review: chore: gitignore napi-generated artifacts in crates/codegraph-coreTasks:
Root Cause AnalysisProblem Being Solved: Running npx napi build --platform --release in crates/codegraph-core/ generates three build artifacts (index.js, index.d.ts, *.node) that are not committed to the repo but were previously missing from .gitignore, leaving the working tree dirty after a native build. Why This Approach: Adding root-level .gitignore entries is the correct mechanism — these are build products analogous to grammars/*.wasm (already gitignored), dist/, target/, etc. A crate-local .gitignore would also work but would be less discoverable; the root-level pattern is consistent with how this repo already handles similar artifacts. Risk Assessment: Zero risk. This is a purely additive configuration change to a non-code file. It does not silence warnings, relax rules, or hide real issues — it prevents untracked build artifacts from polluting git status. Backlog Compliance
Code ReviewThe diff is exactly right: +crates/codegraph-core/index.js
+crates/codegraph-core/index.d.ts
+crates/codegraph-core/*.node
One minor observation: the crates/codegraph-core/package.json likely specifies these same files as napi's output. Worth verifying nothing in that package.json tries to commit them (e.g. via files field), but this does not block the PR. Final Recommendation
|
Sorry, something went wrong.
Greptile SummaryAdds three .gitignore entries for the artifacts emitted by npx napi build in crates/codegraph-core/, preventing them from appearing as untracked files after a local native build.
Confidence Score: 5/5Safe to merge — adds only three targeted gitignore entries that ignore generated napi build artifacts and have no impact on runtime behavior. The change is confined to .gitignore and correctly scopes each pattern to the crates/codegraph-core/ directory. The *.node glob matches all platform-specific binary names that napi emits, mirroring the existing grammars/*.wasm pattern. No logic, build system, or source file is touched. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Developer runs\nnpx napi build --platform --release] --> B[crates/codegraph-core/index.js]
A --> C[crates/codegraph-core/index.d.ts]
A --> D[crates/codegraph-core/*.node]
B --> E{Tracked by git?}
C --> E
D --> E
E -- Before this PR --> F[Working tree dirty\nuntracked build artifacts]
E -- After this PR --> G[.gitignore matches\nartifacts ignored cleanly]
Reviews (1): Last reviewed commit: "chore: gitignore napi-generated artifact..." | Re-trigger Greptile |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adds .gitignore entries for the three artifacts emitted by npx napi build --platform --release in crates/codegraph-core/:
These are build products and should receive the same treatment as WASM grammars. Without this, every local native build leaves the working tree dirty with untracked files.
Closes #1462