@storm-software/bun-tools 0.0.24 → 0.0.26

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/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  # Changelog for Storm Ops - Bun Tools
4
4
 
5
+ ## [0.0.26](https://github.com/storm-software/storm-ops/releases/tag/bun-tools%400.0.26) (08/07/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **bun-tools:** Ensure error is thrown during upgrades ([8ea3bec9f](https://github.com/storm-software/storm-ops/commit/8ea3bec9f))
10
+ - **bun-tools:** Improve error handling in CLI ([9a2eb5256](https://github.com/storm-software/storm-ops/commit/9a2eb5256))
11
+
12
+ ## [0.0.25](https://github.com/storm-software/storm-ops/releases/tag/bun-tools%400.0.25) (08/07/2026)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **bun-tools:** Update logging during `storm-bun` CLI ([05977ab77](https://github.com/storm-software/storm-ops/commit/05977ab77))
17
+
18
+ ### Updated Dependencies
19
+
20
+ - Updated **config** to **v1.138.53**
21
+ - Updated **config-tools** to **v1.190.116**
22
+ - Updated **npm-tools** to **v0.6.234**
23
+ - Updated **package-constants** to **v0.1.129**
24
+ - Updated **testing-tools** to **v1.119.269**
25
+
5
26
  ## [0.0.24](https://github.com/storm-software/storm-ops/releases/tag/bun-tools%400.0.24) (08/07/2026)
6
27
 
7
28
  ### Miscellaneous
package/bin/bun.cjs CHANGED
@@ -2207,7 +2207,7 @@ var import_commander = require("commander");
2207
2207
  // package.json
2208
2208
  var package_default = {
2209
2209
  name: "@storm-software/bun-tools",
2210
- version: "0.0.24",
2210
+ version: "0.0.26",
2211
2211
  private: false,
2212
2212
  description: "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
2213
2213
  repository: {
@@ -2660,7 +2660,7 @@ async function updateAction(packages, options) {
2660
2660
  } = options || {};
2661
2661
  let packagesFound = false;
2662
2662
  let pkgs = packages && Array.isArray(packages) ? packages : [];
2663
- if (internal) {
2663
+ if (internal || pkgs.length === 0 || all) {
2664
2664
  pkgs.push(...INTERNAL_PACKAGES);
2665
2665
  }
2666
2666
  pkgs = pkgs.filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
@@ -2685,7 +2685,7 @@ async function updateAction(packages, options) {
2685
2685
  (p) => pkg.endsWith("/") ? p.startsWith(pkg) : p === pkg
2686
2686
  );
2687
2687
  if (matchedPackages.length === 0) {
2688
- if (!all) {
2688
+ if (!all && (!packages || packages.length > 0)) {
2689
2689
  writeInfo(
2690
2690
  `No packages found in the catalog matching the name/pattern "${pkg}".`,
2691
2691
  _config
@@ -2701,15 +2701,24 @@ async function updateAction(packages, options) {
2701
2701
  packagesFound = true;
2702
2702
  await Promise.all(
2703
2703
  matchedPackages.map(async (matchedPackage) => {
2704
- writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2705
- const result = await upgradeCatalog(catalog, matchedPackage, {
2706
- tag,
2707
- prefix,
2708
- workspaceRoot: _config.workspaceRoot,
2709
- verbose
2710
- });
2711
- if (result.updated && result.catalog[matchedPackage]) {
2712
- catalog[matchedPackage] = result.catalog[matchedPackage];
2704
+ try {
2705
+ writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2706
+ const result = await upgradeCatalog(catalog, matchedPackage, {
2707
+ tag,
2708
+ prefix,
2709
+ workspaceRoot: _config.workspaceRoot,
2710
+ verbose
2711
+ });
2712
+ if (result.updated && result.catalog[matchedPackage]) {
2713
+ catalog[matchedPackage] = result.catalog[matchedPackage];
2714
+ }
2715
+ } catch (error) {
2716
+ writeFatal(
2717
+ `A fatal error occurred while upgrading ${matchedPackage}:
2718
+ ${typeof error === "object" ? JSON.stringify(error, null, 2) : error}`,
2719
+ _config
2720
+ );
2721
+ throw error;
2713
2722
  }
2714
2723
  })
2715
2724
  );
package/bin/bun.js CHANGED
@@ -2185,7 +2185,7 @@ import { Command } from "commander";
2185
2185
  // package.json
2186
2186
  var package_default = {
2187
2187
  name: "@storm-software/bun-tools",
2188
- version: "0.0.24",
2188
+ version: "0.0.26",
2189
2189
  private: false,
2190
2190
  description: "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
2191
2191
  repository: {
@@ -2638,7 +2638,7 @@ async function updateAction(packages, options) {
2638
2638
  } = options || {};
2639
2639
  let packagesFound = false;
2640
2640
  let pkgs = packages && Array.isArray(packages) ? packages : [];
2641
- if (internal) {
2641
+ if (internal || pkgs.length === 0 || all) {
2642
2642
  pkgs.push(...INTERNAL_PACKAGES);
2643
2643
  }
2644
2644
  pkgs = pkgs.filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
@@ -2663,7 +2663,7 @@ async function updateAction(packages, options) {
2663
2663
  (p) => pkg.endsWith("/") ? p.startsWith(pkg) : p === pkg
2664
2664
  );
2665
2665
  if (matchedPackages.length === 0) {
2666
- if (!all) {
2666
+ if (!all && (!packages || packages.length > 0)) {
2667
2667
  writeInfo(
2668
2668
  `No packages found in the catalog matching the name/pattern "${pkg}".`,
2669
2669
  _config
@@ -2679,15 +2679,24 @@ async function updateAction(packages, options) {
2679
2679
  packagesFound = true;
2680
2680
  await Promise.all(
2681
2681
  matchedPackages.map(async (matchedPackage) => {
2682
- writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2683
- const result = await upgradeCatalog(catalog, matchedPackage, {
2684
- tag,
2685
- prefix,
2686
- workspaceRoot: _config.workspaceRoot,
2687
- verbose
2688
- });
2689
- if (result.updated && result.catalog[matchedPackage]) {
2690
- catalog[matchedPackage] = result.catalog[matchedPackage];
2682
+ try {
2683
+ writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2684
+ const result = await upgradeCatalog(catalog, matchedPackage, {
2685
+ tag,
2686
+ prefix,
2687
+ workspaceRoot: _config.workspaceRoot,
2688
+ verbose
2689
+ });
2690
+ if (result.updated && result.catalog[matchedPackage]) {
2691
+ catalog[matchedPackage] = result.catalog[matchedPackage];
2692
+ }
2693
+ } catch (error) {
2694
+ writeFatal(
2695
+ `A fatal error occurred while upgrading ${matchedPackage}:
2696
+ ${typeof error === "object" ? JSON.stringify(error, null, 2) : error}`,
2697
+ _config
2698
+ );
2699
+ throw error;
2691
2700
  }
2692
2701
  })
2693
2702
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/bun-tools",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "private": false,
5
5
  "description": "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
6
6
  "repository": {
@@ -73,10 +73,10 @@
73
73
  "storm-bun-esm": "./bin/bun.js"
74
74
  },
75
75
  "dependencies": {
76
- "@storm-software/config": "1.138.52",
77
- "@storm-software/config-tools": "1.190.115",
78
- "@storm-software/npm-tools": "0.6.233",
79
- "@storm-software/package-constants": "0.1.128",
76
+ "@storm-software/config": "^1.138.53",
77
+ "@storm-software/config-tools": "^1.190.116",
78
+ "@storm-software/npm-tools": "^0.6.234",
79
+ "@storm-software/package-constants": "^0.1.129",
80
80
  "chalk": "^4.1.2",
81
81
  "commander": "^12.1.0",
82
82
  "defu": "^6.1.7",
@@ -87,5 +87,5 @@
87
87
  },
88
88
  "devDependencies": { "@types/node": "^25.9.5", "tsup": "8.4.0" },
89
89
  "publishConfig": { "access": "public" },
90
- "gitHead": "a360653bbd01cb87c15b934343a341558bee7468"
90
+ "gitHead": "22552db998982c9f7e6a6b38c11d8874ca879e14"
91
91
  }