Skip to content

Phantom v1.3.0

Choose a tag to compare

@aku11i aku11i released this 19 Jun 00:54
· 670 commits to main since this release
9decf28

🚀 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.json in 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/worktrees if not specified

🛠️ Improvements

PostCreate Commands for All Creation Methods (#185)

  • PostCreate commands now execute for phantom attach and phantom github checkout operations
  • 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 phantom

Full Changelog: v1.2.0...v1.3.0