Skip to content

Commit 1e17809

Browse files
simongdaviesCopilot
andcommitted
chore(deps): regenerate artifacts for napi 3.9.0 bump
Rebuilding the code-validator guest host crate with napi/napi-derive 3.x makes api build emit a generated loader (host/index.js) alongside the already-ignored host/index.d.ts. Both are build artifacts: the canonical loader/types live in src/code-validator/guest/index.{js,d.ts}, so ignore host/index.js in .gitignore and .prettierignore for consistency. Also prune the now-orphaned convert_case 0.10.0 entry from the guest Cargo.lock (only napi-derive 2 pulled it in; napi-derive 3 uses 0.11.0). Verified on Linux+KVM: TS suite (2505) and analysis-guest Rust tests (124) pass, including the previously-failing mcp/module-store runtime integrity checks; prettier, tsc, and guest clippy/fmt are clean. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent d261a0b commit 1e17809

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ plugins/host-modules.d.ts
5555
output-hyperagent-*/
5656
scripts/bash-bundle/_tmp_bundle.js
5757

58-
# Generated NAPI binding type declarations (emitted by `napi build`)
58+
# Generated NAPI binding loader + type declarations (emitted by `napi build`)
5959
src/code-validator/guest/host/index.d.ts
60+
src/code-validator/guest/host/index.js

.prettierignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Generated NAPI binding type declarations (emitted by `napi build`).
2-
# napi-derive >= 3 writes JSDoc into this file, which is not Prettier-formatted.
3-
# The canonical, hand-written types live in src/code-validator/guest/index.d.ts.
1+
# Generated NAPI binding loader + type declarations (emitted by `napi build`).
2+
# napi-derive >= 3 writes JSDoc into the .d.ts and emits a loader .js, neither of
3+
# which is Prettier-formatted. The canonical, hand-written loader/types live in
4+
# src/code-validator/guest/index.js and src/code-validator/guest/index.d.ts.
45
src/code-validator/guest/host/index.d.ts
6+
src/code-validator/guest/host/index.js

src/code-validator/guest/Cargo.lock

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)