🔧 Add SessionStart hook to ensure dependencies are installed#6705
Conversation
Ensures `pnpm install --frozen-lockfile` runs at the start of every Claude session when node_modules is missing. This is critical in CI (GitHub Actions) where dependencies are not pre-installed, preventing Claude from failing on build/test/lint commands. https://claude.ai/code/session_01Hb6WFpzY7wgeahAdk72LeS
|
@fast-check/ava
fast-check
@fast-check/jest
@fast-check/packaged
@fast-check/poisoning
@fast-check/vitest
@fast-check/worker
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6705 +/- ##
=======================================
Coverage 94.54% 94.54%
=======================================
Files 210 210
Lines 5685 5686 +1
Branches 1500 1499 -1
=======================================
+ Hits 5375 5376 +1
Misses 297 297
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
This PR adds a
SessionStarthook that automatically ensures project dependencies are installed before Claude starts working. The hook runs a bash script that:pnpmglobally via npm if it's not already availablepnpm install --frozen-lockfileifnode_modulesis missing or emptyThis is particularly important in CI environments (like GitHub Actions) where
pnpm installmay not have been run yet, ensuring Claude has access to all necessary dependencies when it begins working on the codebase.Checklist
pnpm run bumpor by following the instructions from the changeset bothttps://claude.ai/code/session_01Hb6WFpzY7wgeahAdk72LeS