chore: lockfile lefthook#4647
Conversation
|
PR Review: chore: lockfile lefthook Overview: Adds pre-commit lockfile validation hooks, fixes pnpm-lock.yaml to use workspace resolution for @rivetkit/engine-api-full (was pinned to a PR preview URL), removes a stale Cargo workspace dep, and fixes a Rust formatting issue. Strengths:
Concerns:
The lockfile now includes rivetkit-typescript/packages/sqlite-vfs with @rivetkit/sqlite and @rivetkit/sqlite-vfs as dependencies. CLAUDE.md says not to add @rivetkit/sqlite, @rivetkit/sqlite-vfs, or other WebAssembly SQLite fallbacks. If this package is intentional (e.g., an internal implementation package), CLAUDE.md should be updated with the exception and reasoning to avoid confusion for future contributors.
Neither hook has a glob: filter so both run on every commit. cargo metadata --locked is fast, but pnpm install --frozen-lockfile can be slow on cold node_modules. Scoping the hooks to only fire when Cargo manifests or package.json files change would reduce friction on unrelated commits.
Removing [workspace.dependencies.rivetkit-sqlite-native] will break the build if any Cargo.toml still references rivetkit-sqlite-native.workspace = true. A grep across .toml files would confirm it is safe to drop.
The TODO comment still reads figrue instead of figure. Low priority since you are already touching this line. Summary:
|
f9a5fe1 to
98a33e4
Compare
975f858 to
258991d
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: