chore: automate git worktree setup (shared node_modules, per-worktree dev port)

This commit is contained in:
Mauricio Siu
2026-08-25 00:59:44 -06:00
parent d675db10bb
commit 8be1e68fe1
4 changed files with 66 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"worktree": {
"baseRef": "fresh",
"symlinkDirectories": ["node_modules"]
},
"hooks": {
"PostToolUse": [
{
"matcher": "EnterWorktree",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR/scripts/assign-worktree-port.sh\""
}
]
}
]
}
}