Skip to content

Symlink node_modules and husky in worktrees#8422

Merged
iHiD merged 1 commit into
mainfrom
fix/worktree-deps
Feb 8, 2026
Merged

Symlink node_modules and husky in worktrees#8422
iHiD merged 1 commit into
mainfrom
fix/worktree-deps

Conversation

@iHiD

@iHiD iHiD commented Feb 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Worktrees created by the /fix skill don't have node_modules or .husky/_/husky.sh, which breaks pre-commit hooks (prettier, eslint) and JS tests
  • Add symlink commands to the /fix skill's Step 3 so node_modules and .husky/_ are linked from the main repo after worktree creation
  • Add .husky/_ to .gitignore so the symlink doesn't show as an untracked file
  • Update worktree paths from ../website-worktrees/ to ./worktrees/

Test plan

  • Created a worktree, added symlinks, and verified pre-commit hooks (prettier) ran successfully via the symlinked node_modules

🤖 Generated with Claude Code

Worktrees don't have node_modules or .husky/_/husky.sh, breaking
pre-commit hooks (prettier, eslint) and JS tests. Fix by symlinking
both from the main repo after worktree creation.

Also add .husky/_ to .gitignore so the symlink doesn't show as
untracked, and update worktree paths to use ./worktrees/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iHiD iHiD merged commit e793cd3 into main Feb 8, 2026
8 checks passed
@iHiD iHiD deleted the fix/worktree-deps branch February 8, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant