@paleo/worktree-env 0.7.3 → 0.7.4
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/dist/setup-worktree.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ export interface PreSetupContext {
|
|
|
86
86
|
export interface SetupContext {
|
|
87
87
|
currentWorktree: string;
|
|
88
88
|
mainWorktree: string;
|
|
89
|
+
/** `true` when finalizing the main worktree. Gate "copy from main" steps with `!isMainWorktree`. */
|
|
90
|
+
isMainWorktree: boolean;
|
|
89
91
|
slot: number;
|
|
90
92
|
branch: string;
|
|
91
93
|
owner?: string;
|
package/dist/setup-worktree.js
CHANGED
|
@@ -181,6 +181,7 @@ async function runFinalize(args, config) {
|
|
|
181
181
|
const setupContext = {
|
|
182
182
|
currentWorktree: ctx.currentWorktree,
|
|
183
183
|
mainWorktree: ctx.mainWorktree,
|
|
184
|
+
isMainWorktree: ctx.isMainWorktree,
|
|
184
185
|
slot,
|
|
185
186
|
branch: entry.branch,
|
|
186
187
|
owner: entry.owner,
|
|
@@ -279,15 +280,13 @@ async function waitForSlot(slot, config, options = {}) {
|
|
|
279
280
|
process.exit(1);
|
|
280
281
|
}
|
|
281
282
|
if (entry.status === "ready") {
|
|
283
|
+
console.log("\n… ready");
|
|
282
284
|
if (printSummary) {
|
|
283
285
|
printWorktreeInfo(config, slot, entry.worktree, {
|
|
284
286
|
branch: entry.branch,
|
|
285
287
|
owner: entry.owner,
|
|
286
288
|
});
|
|
287
289
|
}
|
|
288
|
-
else {
|
|
289
|
-
console.log("Status: ready");
|
|
290
|
-
}
|
|
291
290
|
return;
|
|
292
291
|
}
|
|
293
292
|
if (entry.status === "failed") {
|