worktree-launcher 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -175,13 +175,11 @@ import path3 from "path";
175
175
  import { constants } from "fs";
176
176
  function launchAITool(options) {
177
177
  const { cwd, tool } = options;
178
- const child = spawn(tool, [], {
178
+ spawn(tool, [], {
179
179
  cwd,
180
180
  stdio: "inherit",
181
- // Detach so the CLI can exit
182
- detached: true
181
+ shell: true
183
182
  });
184
- child.unref();
185
183
  }
186
184
  async function isToolAvailable(tool) {
187
185
  return new Promise((resolve) => {
@@ -586,7 +584,7 @@ async function removeCommand(identifier, options) {
586
584
 
587
585
  // src/index.ts
588
586
  var program = new Command();
589
- program.name("wt").description("CLI tool to streamline git worktrees with AI coding assistants").version("1.0.0");
587
+ program.name("wt").description("CLI tool to streamline git worktrees with AI coding assistants").version("1.0.3");
590
588
  program.command("new <branch-name>").description("Create a new worktree and launch AI assistant").option("-i, --install", "Run package manager install after creating worktree").option("-s, --skip-launch", "Create worktree without launching AI assistant").action(async (branchName, options) => {
591
589
  await newCommand(branchName, {
592
590
  install: options.install,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worktree-launcher",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "CLI tool for managing git worktrees with AI coding assistants",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",