Repository navigation
Phantom v1.3.0
🚀 What's New in v1.3.0
This release introduces the ability to customize where Phantom creates worktrees through configuration.
✨ New Features
Custom Worktree Directory Support (#181, #182) - Thanks @fumihumi!
You can now specify where Phantom creates worktrees using the worktreesDirectory option in phantom.config.json:
{
"worktreesDirectory": "./custom-worktrees",
"postCreate": {
"copyFiles": [".env.example"],
"commands": ["npm install"]
}
}- Configuration file:
phantom.config.jsonin your repository root - Use relative paths (e.g.,
"./worktrees") for paths relative to your repository - Use absolute paths (e.g.,
"/home/user/projects/worktrees") for fixed locations - Defaults to
.git/phantom/worktreesif not specified
🛠️ Improvements
PostCreate Commands for All Creation Methods (#185)
- PostCreate commands now execute for
phantom attachandphantom github checkoutoperations - Ensures consistent setup across all worktree creation methods
📚 Documentation
- Added comprehensive configuration documentation
- Updated README with configuration examples
- Added internal behavior documentation for GitHub checkout
Installation/Upgrade:
npm install -g @aku11i/phantom@latest
# or
brew upgrade phantomFull Changelog: v1.2.0...v1.3.0