feat(scripts): add prepare:worktree hook for agent job worktrees #53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/prepare-worktree-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pairs with scrum4me-mcp PR #27 (runs this hook per worktree).
Why
The agent worker runs
npm run verifyin a per-job git worktree, which lacks gitignoredlib/manual.generated.ts(normally from postinstall/prebuildmanual:build, never triggered by verify). Result: typecheck + 22 test files fail on@/lib/manual.generated.What
Adds
"prepare:worktree": "npm run manual:build"— the generic hook scrum4me-mcp createWorktreeForJob runs per worktree (paired with submodule init). Minimal on purpose: prisma client is shared via node_modules symlink + schema.prisma is committed, so gen-schema/prisma generate are NOT run per-worktree.Verified
Worker worktree after submodule init + this hook: verify GREEN (140 files / 1235 tests).