@wipcomputer/wip-release 1.9.54 → 1.9.56
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.
- package/core.mjs +3 -3
- package/package.json +1 -1
package/core.mjs
CHANGED
|
@@ -1614,8 +1614,8 @@ export async function release({ repoPath, level, notes, notesSource, dryRun, noP
|
|
|
1614
1614
|
// 12. Prune stale worktrees (#212)
|
|
1615
1615
|
try {
|
|
1616
1616
|
execSync('git worktree prune', { cwd: repoPath, stdio: 'pipe' });
|
|
1617
|
-
// Also check
|
|
1618
|
-
const worktreesDir = join(dirname(repoPath), '
|
|
1617
|
+
// Also check .worktrees/ for dirs whose branches are now merged
|
|
1618
|
+
const worktreesDir = join(dirname(repoPath), '.worktrees');
|
|
1619
1619
|
if (existsSync(worktreesDir)) {
|
|
1620
1620
|
const repoBase = basename(repoPath);
|
|
1621
1621
|
const wtDirs = readdirSync(worktreesDir, { withFileTypes: true })
|
|
@@ -1639,7 +1639,7 @@ export async function release({ repoPath, level, notes, notesSource, dryRun, noP
|
|
|
1639
1639
|
} catch {} // Branch not merged or other issue, leave it
|
|
1640
1640
|
}
|
|
1641
1641
|
if (wtPruned > 0) {
|
|
1642
|
-
console.log(` ✓ Pruned ${wtPruned} merged worktree(s) from
|
|
1642
|
+
console.log(` ✓ Pruned ${wtPruned} merged worktree(s) from .worktrees/`);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
} catch {}
|
package/package.json
CHANGED