zapdev 2.0.0 → 2.1.0
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/cli.js +8 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1736,7 +1736,7 @@ function _getBuiltinFlags(long, short, userNames, userAliases) {
|
|
|
1736
1736
|
// package.json
|
|
1737
1737
|
var package_default = {
|
|
1738
1738
|
name: "zapdev",
|
|
1739
|
-
version: "2.
|
|
1739
|
+
version: "2.1.0",
|
|
1740
1740
|
description: "Fast, performant and lightweight git chores and dev tools using your terminal and an OpenAI-compatible LLM endpoint.",
|
|
1741
1741
|
type: "module",
|
|
1742
1742
|
bin: {
|
|
@@ -2669,10 +2669,13 @@ var commitCommand = defineCommand({
|
|
|
2669
2669
|
}
|
|
2670
2670
|
shouldPush = answer;
|
|
2671
2671
|
}
|
|
2672
|
-
if (shouldPush) {
|
|
2673
|
-
|
|
2674
|
-
await
|
|
2675
|
-
|
|
2672
|
+
if (shouldPush && destinations.length) {
|
|
2673
|
+
await runTask("Pushing repositories in parallel", "Repositories pushed", async (onOutput) => {
|
|
2674
|
+
const results2 = await Promise.allSettled(destinations.map(({ repo, branch, remote }) => push(repo, remote, branch, void 0, onOutput)));
|
|
2675
|
+
for (const [index, result] of results2.entries()) {
|
|
2676
|
+
if (result.status === "rejected") throw new Error(`${destinations[index].label}: ${errorMessage(result.reason)}`);
|
|
2677
|
+
}
|
|
2678
|
+
});
|
|
2676
2679
|
}
|
|
2677
2680
|
if (interactive) outro("Done.");
|
|
2678
2681
|
} catch (error) {
|