@cvr/stacked 0.4.2 → 0.4.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.
package/bin/stacked CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cvr/stacked",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/cevr/stacked"
@@ -116,21 +116,21 @@ export const sync = Command.make("sync", {
116
116
  return;
117
117
  }
118
118
 
119
- yield* withSpinner(`Fetching ${trunk}`, git.fetch());
120
- yield* git.checkout(trunk);
121
- yield* withSpinner(`Rebasing ${trunk} onto ${originTrunk}`, git.rebase(originTrunk)).pipe(
122
- Effect.catchTag("GitError", (e) =>
123
- Effect.fail(
124
- new StackError({
125
- code: ErrorCode.REBASE_CONFLICT,
126
- message: `Rebase conflict on ${trunk}: ${e.message}\n\nResolve conflicts, then run:\n git rebase --continue`,
127
- }),
119
+ yield* Effect.gen(function* () {
120
+ yield* withSpinner(`Fetching ${trunk}`, git.fetch());
121
+ yield* git.checkout(trunk);
122
+ yield* withSpinner(`Rebasing ${trunk} onto ${originTrunk}`, git.rebase(originTrunk)).pipe(
123
+ Effect.catchTag("GitError", (e) =>
124
+ Effect.fail(
125
+ new StackError({
126
+ code: ErrorCode.REBASE_CONFLICT,
127
+ message: `Rebase conflict on ${trunk}: ${e.message}\n\nResolve conflicts, then run:\n git rebase --continue`,
128
+ }),
129
+ ),
128
130
  ),
129
- ),
130
- );
131
- results.push({ name: trunk, action: "rebased", base: originTrunk });
131
+ );
132
+ results.push({ name: trunk, action: "rebased", base: originTrunk });
132
133
 
133
- yield* Effect.gen(function* () {
134
134
  for (let i = startIdx; i < branches.length; i++) {
135
135
  const branch = branches[i];
136
136
  if (branch === undefined) continue;