@storm-software/pnpm-tools 0.6.153 → 0.6.155

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,43 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pnpm Tools
4
4
 
5
+ ## [0.6.154](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.154) (04/01/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **pnpm-tools:** Added try-catch handler to CLI app ([915e8ad4c](https://github.com/storm-software/storm-ops/commit/915e8ad4c))
10
+ - **monorepo:** Regenerate `README.md` files ([7179007bc](https://github.com/storm-software/storm-ops/commit/7179007bc))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **pnpm-tools:** Add backup version string ([a5544bf3b](https://github.com/storm-software/storm-ops/commit/a5544bf3b))
15
+
16
+ ### Updated Dependencies
17
+
18
+ - Updated **package-constants** to **v0.1.4**
19
+ - Updated **testing-tools** to **v1.119.144**
20
+ - Updated **config-tools** to **v1.189.69**
21
+ - Updated **npm-tools** to **v0.6.107**
22
+ - Updated **config** to **v1.137.23**
23
+
24
+ ## [0.6.153](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.153) (04/01/2026)
25
+
26
+ ### Miscellaneous
27
+
28
+ - **pnpm-tools:** Resolve issue with invalid `version` import ([21c678e98](https://github.com/storm-software/storm-ops/commit/21c678e98))
29
+
30
+ ### Bug Fixes
31
+
32
+ - **pnpm-tools:** Resolve issue with bundled dependencies ([49d923a2d](https://github.com/storm-software/storm-ops/commit/49d923a2d))
33
+
34
+ ### Updated Dependencies
35
+
36
+ - Updated **package-constants** to **v0.1.3**
37
+ - Updated **testing-tools** to **v1.119.143**
38
+ - Updated **config-tools** to **v1.189.68**
39
+ - Updated **npm-tools** to **v0.6.106**
40
+ - Updated **config** to **v1.137.22**
41
+
5
42
  ## [0.6.152](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.152) (04/01/2026)
6
43
 
7
44
  ### Miscellaneous
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.6.150-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.6.153-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/bin/pnpm.cjs CHANGED
@@ -2181,7 +2181,7 @@ var import_commander = require("commander");
2181
2181
  // package.json
2182
2182
  var package_default = {
2183
2183
  name: "@storm-software/pnpm-tools",
2184
- version: "0.6.152",
2184
+ version: "0.6.154",
2185
2185
  private: false,
2186
2186
  description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
2187
2187
  repository: {
@@ -2451,51 +2451,64 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
2451
2451
  // src/cli/index.ts
2452
2452
  var _config = {};
2453
2453
  function createProgram(config) {
2454
- _config = config;
2455
- writeInfo(
2456
- `${brandIcon(_config)} Running the \`storm-pnpm\` command-line application`,
2457
- config
2458
- );
2459
- const root = findWorkspaceRootSafe(_config.workspaceRoot || process.cwd());
2460
- process.env.STORM_WORKSPACE_ROOT ??= root;
2461
- process.env.NX_WORKSPACE_ROOT_PATH ??= root;
2462
- if (root) {
2463
- process.chdir(root);
2464
- }
2465
- const program = new import_commander.Command("storm-pnpm");
2466
- program.version(package_default.version, "-v --version", "display CLI version");
2467
- program.command("update").description("Update pnpm catalog dependency package version.").argument(
2468
- "<packages...>",
2469
- "The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ or @storm-software/*).",
2470
- []
2471
- ).option(
2472
- "-t, --tag <string>",
2473
- `The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
2474
- "latest"
2475
- ).option(
2476
- "-i, --install",
2477
- "Whether to install the package after updating the version.",
2478
- false
2479
- ).option("--all", "Whether to update all Storm Software packages.", false).option(
2480
- "-p, --prefix <string>",
2481
- `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
2454
+ try {
2455
+ _config = config;
2456
+ writeInfo(
2457
+ `${brandIcon(_config)} Running the \`storm-pnpm\` command-line application`,
2458
+ config
2459
+ );
2460
+ const root = findWorkspaceRootSafe(_config.workspaceRoot || process.cwd());
2461
+ process.env.STORM_WORKSPACE_ROOT ??= root;
2462
+ process.env.NX_WORKSPACE_ROOT_PATH ??= root;
2463
+ if (root) {
2464
+ process.chdir(root);
2465
+ }
2466
+ const program = new import_commander.Command("storm-pnpm");
2467
+ program.version(
2468
+ package_default?.version || "1.0.0",
2469
+ "-v --version",
2470
+ "display CLI version"
2471
+ );
2472
+ program.command("update").description("Update pnpm catalog dependency package version.").argument(
2473
+ "<packages...>",
2474
+ "The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ or @storm-software/*)."
2475
+ ).option(
2476
+ "-t, --tag <string>",
2477
+ `The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
2478
+ "latest"
2479
+ ).option(
2480
+ "-i, --install",
2481
+ "Whether to install the package after updating the version.",
2482
+ false
2483
+ ).option("--all", "Whether to update all Storm Software packages.", false).option(
2484
+ "-p, --prefix <string>",
2485
+ `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
2482
2486
  - Caret (^): The default prefix. It allows updates to the latest minor or patch version while staying within the same major version. Example: \u201C^1.2.3" allows updates to 1.3.0 or 1.2.4, but not 2.0.0.
2483
2487
  - Tilde (~): Allows updates to the latest patch version while staying within the same minor version. Example: \u201C~1.2.3" allows updates to 1.2.4 but not 1.3.0.
2484
2488
  - Exact (no prefix): Locks the dependency to a specific version. No updates are allowed. Example: 1.2.3 will only use 1.2.3.
2485
2489
  - Greater/Less Than (>, <, >=, <=): Specifies a range of acceptable versions. Example: \u201C>=1.2.3 <2.0.0" allows any version from 1.2.3 to 1.9.x.
2486
2490
  - Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
2487
- "^"
2488
- ).action(updateAction);
2489
- return program;
2491
+ "^"
2492
+ ).action(updateAction);
2493
+ return program;
2494
+ } catch (error) {
2495
+ writeFatal(
2496
+ `A fatal error occurred while running the Storm pnpm CLI program:
2497
+
2498
+ ${error?.message}`,
2499
+ _config
2500
+ );
2501
+ throw new Error(error?.message, { cause: error });
2502
+ }
2490
2503
  }
2491
- async function updateAction(packages = [], {
2504
+ async function updateAction(packages, {
2492
2505
  tag,
2493
2506
  install = false,
2494
2507
  all = false,
2495
2508
  prefix = "^"
2496
2509
  }) {
2497
2510
  try {
2498
- const pkgs = (Array.isArray(packages) ? packages : typeof packages === "string" ? [packages.split(",")].flat() : []).concat(all ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2511
+ const pkgs = (packages && (Array.isArray(packages) || typeof packages === "string") ? Array.isArray(packages) ? packages : [packages.split(",")].flat() : []).concat(all ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2499
2512
  writeInfo(
2500
2513
  `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
2501
2514
  _config
@@ -2579,7 +2592,7 @@ ${JSON.stringify(
2579
2592
  )}`,
2580
2593
  _config
2581
2594
  );
2582
- throw new Error(error.message, { cause: error });
2595
+ throw new Error(error?.message, { cause: error });
2583
2596
  }
2584
2597
  }
2585
2598
 
package/bin/pnpm.js CHANGED
@@ -2159,7 +2159,7 @@ import { Command } from "commander";
2159
2159
  // package.json
2160
2160
  var package_default = {
2161
2161
  name: "@storm-software/pnpm-tools",
2162
- version: "0.6.152",
2162
+ version: "0.6.154",
2163
2163
  private: false,
2164
2164
  description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
2165
2165
  repository: {
@@ -2429,51 +2429,64 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
2429
2429
  // src/cli/index.ts
2430
2430
  var _config = {};
2431
2431
  function createProgram(config) {
2432
- _config = config;
2433
- writeInfo(
2434
- `${brandIcon(_config)} Running the \`storm-pnpm\` command-line application`,
2435
- config
2436
- );
2437
- const root = findWorkspaceRootSafe(_config.workspaceRoot || process.cwd());
2438
- process.env.STORM_WORKSPACE_ROOT ??= root;
2439
- process.env.NX_WORKSPACE_ROOT_PATH ??= root;
2440
- if (root) {
2441
- process.chdir(root);
2442
- }
2443
- const program = new Command("storm-pnpm");
2444
- program.version(package_default.version, "-v --version", "display CLI version");
2445
- program.command("update").description("Update pnpm catalog dependency package version.").argument(
2446
- "<packages...>",
2447
- "The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ or @storm-software/*).",
2448
- []
2449
- ).option(
2450
- "-t, --tag <string>",
2451
- `The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
2452
- "latest"
2453
- ).option(
2454
- "-i, --install",
2455
- "Whether to install the package after updating the version.",
2456
- false
2457
- ).option("--all", "Whether to update all Storm Software packages.", false).option(
2458
- "-p, --prefix <string>",
2459
- `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
2432
+ try {
2433
+ _config = config;
2434
+ writeInfo(
2435
+ `${brandIcon(_config)} Running the \`storm-pnpm\` command-line application`,
2436
+ config
2437
+ );
2438
+ const root = findWorkspaceRootSafe(_config.workspaceRoot || process.cwd());
2439
+ process.env.STORM_WORKSPACE_ROOT ??= root;
2440
+ process.env.NX_WORKSPACE_ROOT_PATH ??= root;
2441
+ if (root) {
2442
+ process.chdir(root);
2443
+ }
2444
+ const program = new Command("storm-pnpm");
2445
+ program.version(
2446
+ package_default?.version || "1.0.0",
2447
+ "-v --version",
2448
+ "display CLI version"
2449
+ );
2450
+ program.command("update").description("Update pnpm catalog dependency package version.").argument(
2451
+ "<packages...>",
2452
+ "The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ or @storm-software/*)."
2453
+ ).option(
2454
+ "-t, --tag <string>",
2455
+ `The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
2456
+ "latest"
2457
+ ).option(
2458
+ "-i, --install",
2459
+ "Whether to install the package after updating the version.",
2460
+ false
2461
+ ).option("--all", "Whether to update all Storm Software packages.", false).option(
2462
+ "-p, --prefix <string>",
2463
+ `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
2460
2464
  - Caret (^): The default prefix. It allows updates to the latest minor or patch version while staying within the same major version. Example: \u201C^1.2.3" allows updates to 1.3.0 or 1.2.4, but not 2.0.0.
2461
2465
  - Tilde (~): Allows updates to the latest patch version while staying within the same minor version. Example: \u201C~1.2.3" allows updates to 1.2.4 but not 1.3.0.
2462
2466
  - Exact (no prefix): Locks the dependency to a specific version. No updates are allowed. Example: 1.2.3 will only use 1.2.3.
2463
2467
  - Greater/Less Than (>, <, >=, <=): Specifies a range of acceptable versions. Example: \u201C>=1.2.3 <2.0.0" allows any version from 1.2.3 to 1.9.x.
2464
2468
  - Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
2465
- "^"
2466
- ).action(updateAction);
2467
- return program;
2469
+ "^"
2470
+ ).action(updateAction);
2471
+ return program;
2472
+ } catch (error) {
2473
+ writeFatal(
2474
+ `A fatal error occurred while running the Storm pnpm CLI program:
2475
+
2476
+ ${error?.message}`,
2477
+ _config
2478
+ );
2479
+ throw new Error(error?.message, { cause: error });
2480
+ }
2468
2481
  }
2469
- async function updateAction(packages = [], {
2482
+ async function updateAction(packages, {
2470
2483
  tag,
2471
2484
  install = false,
2472
2485
  all = false,
2473
2486
  prefix = "^"
2474
2487
  }) {
2475
2488
  try {
2476
- const pkgs = (Array.isArray(packages) ? packages : typeof packages === "string" ? [packages.split(",")].flat() : []).concat(all ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2489
+ const pkgs = (packages && (Array.isArray(packages) || typeof packages === "string") ? Array.isArray(packages) ? packages : [packages.split(",")].flat() : []).concat(all ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2477
2490
  writeInfo(
2478
2491
  `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
2479
2492
  _config
@@ -2557,7 +2570,7 @@ ${JSON.stringify(
2557
2570
  )}`,
2558
2571
  _config
2559
2572
  );
2560
- throw new Error(error.message, { cause: error });
2573
+ throw new Error(error?.message, { cause: error });
2561
2574
  }
2562
2575
  }
2563
2576
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pnpm-tools",
3
- "version": "0.6.153",
3
+ "version": "0.6.155",
4
4
  "private": false,
5
5
  "description": "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
6
6
  "repository": {
@@ -73,10 +73,10 @@
73
73
  "storm-pnpm-esm": "./bin/pnpm.js"
74
74
  },
75
75
  "dependencies": {
76
- "@storm-software/config": "^1.137.22",
77
- "@storm-software/config-tools": "^1.189.68",
78
- "@storm-software/npm-tools": "^0.6.106",
79
- "@storm-software/package-constants": "^0.1.3",
76
+ "@storm-software/config": "^1.137.24",
77
+ "@storm-software/config-tools": "^1.189.70",
78
+ "@storm-software/npm-tools": "^0.6.108",
79
+ "@storm-software/package-constants": "^0.1.5",
80
80
  "commander": "^12.1.0",
81
81
  "defu": "6.1.4",
82
82
  "prettier": "^3.8.1",
@@ -90,5 +90,5 @@
90
90
  "tsup": "8.4.0"
91
91
  },
92
92
  "publishConfig": { "access": "public" },
93
- "gitHead": "d654fe249bcca8d4ff06a2f23c26d188151db704"
93
+ "gitHead": "c3ebb5d4932added529fbce7c5dd3031daf9f84d"
94
94
  }