@storm-software/pnpm-tools 0.7.1 → 0.7.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/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pnpm Tools
4
4
 
5
+ ## [0.7.2](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.2) (04/08/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update devenv modules ([6e20ef576](https://github.com/storm-software/storm-ops/commit/6e20ef576))
10
+
11
+ ### Updated Dependencies
12
+
13
+ - Updated **package-constants** to **v0.1.9**
14
+ - Updated **testing-tools** to **v1.119.149**
15
+ - Updated **config-tools** to **v1.189.74**
16
+ - Updated **npm-tools** to **v0.6.112**
17
+ - Updated **config** to **v1.137.28**
18
+
19
+ ## [0.7.1](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.1) (04/07/2026)
20
+
21
+ ### Miscellaneous
22
+
23
+ - **monorepo:** Update workspace packages' dependencies ([c9e9f1659](https://github.com/storm-software/storm-ops/commit/c9e9f1659))
24
+
25
+ ### Updated Dependencies
26
+
27
+ - Updated **package-constants** to **v0.1.8**
28
+ - Updated **testing-tools** to **v1.119.148**
29
+ - Updated **config-tools** to **v1.189.73**
30
+ - Updated **npm-tools** to **v0.6.111**
31
+ - Updated **config** to **v1.137.27**
32
+
5
33
  ## [0.7.0](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.0) (04/01/2026)
6
34
 
7
35
  ### 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.156-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.7.1-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.7.0",
2184
+ version: "0.7.2",
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: {
@@ -2478,8 +2478,7 @@ function createProgram(config) {
2478
2478
  "latest"
2479
2479
  ).option(
2480
2480
  "-i, --install",
2481
- "Whether to install the package after updating the version.",
2482
- false
2481
+ "Whether to install the package after updating the version."
2483
2482
  ).option(
2484
2483
  "-p, --prefix <string>",
2485
2484
  `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
@@ -2489,15 +2488,10 @@ function createProgram(config) {
2489
2488
  - 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.
2490
2489
  - Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
2491
2490
  "^"
2492
- ).option(
2493
- "--internal",
2494
- "Whether to update all Storm Software packages.",
2495
- false
2496
- ).option("--nx", "Whether to update Nx packages.", false).option(
2491
+ ).option("--internal", "Whether to update all Storm Software packages.").option("--nx", "Whether to update Nx packages.").option(
2497
2492
  "--pnpm-plugin",
2498
- "Whether to upgrade the Storm Software pnpm plugin.",
2499
- false
2500
- ).option("--all", "Whether to update all packages.", false).action(updateAction);
2493
+ "Whether to upgrade the Storm Software pnpm plugin."
2494
+ ).option("--all", "Whether to update all packages.").action(updateAction);
2501
2495
  return program;
2502
2496
  } catch (error) {
2503
2497
  writeFatal(
@@ -2513,55 +2507,75 @@ async function updateAction(packages, options) {
2513
2507
  try {
2514
2508
  const {
2515
2509
  tag,
2516
- install = false,
2517
- all = false,
2510
+ install,
2511
+ all,
2518
2512
  internal = all,
2519
2513
  nx = all,
2520
2514
  pnpmPlugin = all,
2521
2515
  prefix = "^"
2522
2516
  } = options || {};
2523
- const pkgs = (packages && Array.isArray(packages) ? packages : []).concat(internal ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2524
- writeInfo(
2525
- `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
2526
- _config
2527
- );
2528
- let catalog = await getCatalog();
2529
- if (!catalog) {
2530
- throw new Error(
2531
- "No catalog found in the pnpm-workspace.yaml file of the current workspace."
2532
- );
2533
- }
2534
2517
  let packagesFound = false;
2535
2518
  let packagesUpdated = false;
2536
- for (const pkg of pkgs) {
2537
- const matchedPackages = Object.keys(catalog).filter(
2538
- (p) => pkg.endsWith("/") ? p.startsWith(pkg) : p === pkg
2519
+ let pkgs = packages && Array.isArray(packages) ? packages : [];
2520
+ if (internal) {
2521
+ pkgs.push(...INTERNAL_PACKAGES);
2522
+ }
2523
+ pkgs = pkgs.filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2524
+ if (pkgs.length > 0) {
2525
+ writeInfo(
2526
+ `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(
2527
+ ", "
2528
+ )}.`,
2529
+ _config
2539
2530
  );
2540
- if (matchedPackages.length === 0) {
2541
- writeInfo(
2542
- `No packages found in the catalog matching the name/pattern "${pkg}".`,
2531
+ let catalog = await getCatalog();
2532
+ if (!catalog) {
2533
+ throw new Error(
2534
+ "No catalog found in the pnpm-workspace.yaml file of the current workspace."
2535
+ );
2536
+ }
2537
+ for (const pkg of pkgs) {
2538
+ const matchedPackages = Object.keys(catalog).filter(
2539
+ (p) => pkg.endsWith("/") ? p.startsWith(pkg) : p === pkg
2540
+ );
2541
+ if (matchedPackages.length === 0) {
2542
+ writeInfo(
2543
+ `No packages found in the catalog matching the name/pattern "${pkg}".`,
2544
+ _config
2545
+ );
2546
+ } else {
2547
+ writeDebug(
2548
+ `${brandIcon(_config)} Found ${matchedPackages.length} packages matching "${pkg}" in the pnpm catalog file:
2549
+
2550
+ - ${matchedPackages.map((p) => `${p} (${catalog[p] || "unknown"})`).join("\n- ")}`,
2551
+ _config
2552
+ );
2553
+ packagesFound = true;
2554
+ for (const matchedPackage of matchedPackages) {
2555
+ writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2556
+ const result = await upgradeCatalog(catalog, matchedPackage, {
2557
+ tag,
2558
+ prefix,
2559
+ workspaceRoot: _config.workspaceRoot
2560
+ });
2561
+ if (result.updated) {
2562
+ catalog = result.catalog;
2563
+ packagesUpdated = true;
2564
+ }
2565
+ }
2566
+ }
2567
+ }
2568
+ if (packagesUpdated) {
2569
+ writeDebug(
2570
+ "Finalizing changes to the pnpm workspace's catalog dependencies",
2543
2571
  _config
2544
2572
  );
2573
+ await setCatalog(catalog, _config.workspaceRoot);
2545
2574
  } else {
2546
2575
  writeDebug(
2547
- `${brandIcon(_config)} Found ${matchedPackages.length} packages matching "${pkg}" in the pnpm catalog file:
2548
-
2549
- - ${matchedPackages.map((p) => `${p} (${catalog[p] || "unknown"})`).join("\n- ")}`,
2576
+ "No packages were updated since all matching packages are already up to date in the catalog.",
2550
2577
  _config
2551
2578
  );
2552
- packagesFound = true;
2553
- for (const matchedPackage of matchedPackages) {
2554
- writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2555
- const result = await upgradeCatalog(catalog, matchedPackage, {
2556
- tag,
2557
- prefix,
2558
- workspaceRoot: _config.workspaceRoot
2559
- });
2560
- if (result.updated) {
2561
- catalog = result.catalog;
2562
- packagesUpdated = true;
2563
- }
2564
- }
2565
2579
  }
2566
2580
  }
2567
2581
  if (nx) {
@@ -2598,19 +2612,7 @@ async function updateAction(packages, options) {
2598
2612
  );
2599
2613
  return;
2600
2614
  }
2601
- writeDebug(
2602
- "Finalizing changes to the pnpm workspace's catalog dependencies",
2603
- _config
2604
- );
2605
- if (!packagesUpdated) {
2606
- writeDebug(
2607
- "No packages were updated since all matching packages are already up to date in the catalog.",
2608
- _config
2609
- );
2610
- return;
2611
- }
2612
- await setCatalog(catalog, _config.workspaceRoot);
2613
- if (install) {
2615
+ if (install && packagesUpdated) {
2614
2616
  writeDebug(
2615
2617
  "Running `pnpm install --no-frozen-lockfile` to update local dependency versions",
2616
2618
  _config
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.7.0",
2162
+ version: "0.7.2",
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: {
@@ -2456,8 +2456,7 @@ function createProgram(config) {
2456
2456
  "latest"
2457
2457
  ).option(
2458
2458
  "-i, --install",
2459
- "Whether to install the package after updating the version.",
2460
- false
2459
+ "Whether to install the package after updating the version."
2461
2460
  ).option(
2462
2461
  "-p, --prefix <string>",
2463
2462
  `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
@@ -2467,15 +2466,10 @@ function createProgram(config) {
2467
2466
  - 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.
2468
2467
  - Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
2469
2468
  "^"
2470
- ).option(
2471
- "--internal",
2472
- "Whether to update all Storm Software packages.",
2473
- false
2474
- ).option("--nx", "Whether to update Nx packages.", false).option(
2469
+ ).option("--internal", "Whether to update all Storm Software packages.").option("--nx", "Whether to update Nx packages.").option(
2475
2470
  "--pnpm-plugin",
2476
- "Whether to upgrade the Storm Software pnpm plugin.",
2477
- false
2478
- ).option("--all", "Whether to update all packages.", false).action(updateAction);
2471
+ "Whether to upgrade the Storm Software pnpm plugin."
2472
+ ).option("--all", "Whether to update all packages.").action(updateAction);
2479
2473
  return program;
2480
2474
  } catch (error) {
2481
2475
  writeFatal(
@@ -2491,55 +2485,75 @@ async function updateAction(packages, options) {
2491
2485
  try {
2492
2486
  const {
2493
2487
  tag,
2494
- install = false,
2495
- all = false,
2488
+ install,
2489
+ all,
2496
2490
  internal = all,
2497
2491
  nx = all,
2498
2492
  pnpmPlugin = all,
2499
2493
  prefix = "^"
2500
2494
  } = options || {};
2501
- const pkgs = (packages && Array.isArray(packages) ? packages : []).concat(internal ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2502
- writeInfo(
2503
- `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
2504
- _config
2505
- );
2506
- let catalog = await getCatalog();
2507
- if (!catalog) {
2508
- throw new Error(
2509
- "No catalog found in the pnpm-workspace.yaml file of the current workspace."
2510
- );
2511
- }
2512
2495
  let packagesFound = false;
2513
2496
  let packagesUpdated = false;
2514
- for (const pkg of pkgs) {
2515
- const matchedPackages = Object.keys(catalog).filter(
2516
- (p) => pkg.endsWith("/") ? p.startsWith(pkg) : p === pkg
2497
+ let pkgs = packages && Array.isArray(packages) ? packages : [];
2498
+ if (internal) {
2499
+ pkgs.push(...INTERNAL_PACKAGES);
2500
+ }
2501
+ pkgs = pkgs.filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2502
+ if (pkgs.length > 0) {
2503
+ writeInfo(
2504
+ `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(
2505
+ ", "
2506
+ )}.`,
2507
+ _config
2517
2508
  );
2518
- if (matchedPackages.length === 0) {
2519
- writeInfo(
2520
- `No packages found in the catalog matching the name/pattern "${pkg}".`,
2509
+ let catalog = await getCatalog();
2510
+ if (!catalog) {
2511
+ throw new Error(
2512
+ "No catalog found in the pnpm-workspace.yaml file of the current workspace."
2513
+ );
2514
+ }
2515
+ for (const pkg of pkgs) {
2516
+ const matchedPackages = Object.keys(catalog).filter(
2517
+ (p) => pkg.endsWith("/") ? p.startsWith(pkg) : p === pkg
2518
+ );
2519
+ if (matchedPackages.length === 0) {
2520
+ writeInfo(
2521
+ `No packages found in the catalog matching the name/pattern "${pkg}".`,
2522
+ _config
2523
+ );
2524
+ } else {
2525
+ writeDebug(
2526
+ `${brandIcon(_config)} Found ${matchedPackages.length} packages matching "${pkg}" in the pnpm catalog file:
2527
+
2528
+ - ${matchedPackages.map((p) => `${p} (${catalog[p] || "unknown"})`).join("\n- ")}`,
2529
+ _config
2530
+ );
2531
+ packagesFound = true;
2532
+ for (const matchedPackage of matchedPackages) {
2533
+ writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2534
+ const result = await upgradeCatalog(catalog, matchedPackage, {
2535
+ tag,
2536
+ prefix,
2537
+ workspaceRoot: _config.workspaceRoot
2538
+ });
2539
+ if (result.updated) {
2540
+ catalog = result.catalog;
2541
+ packagesUpdated = true;
2542
+ }
2543
+ }
2544
+ }
2545
+ }
2546
+ if (packagesUpdated) {
2547
+ writeDebug(
2548
+ "Finalizing changes to the pnpm workspace's catalog dependencies",
2521
2549
  _config
2522
2550
  );
2551
+ await setCatalog(catalog, _config.workspaceRoot);
2523
2552
  } else {
2524
2553
  writeDebug(
2525
- `${brandIcon(_config)} Found ${matchedPackages.length} packages matching "${pkg}" in the pnpm catalog file:
2526
-
2527
- - ${matchedPackages.map((p) => `${p} (${catalog[p] || "unknown"})`).join("\n- ")}`,
2554
+ "No packages were updated since all matching packages are already up to date in the catalog.",
2528
2555
  _config
2529
2556
  );
2530
- packagesFound = true;
2531
- for (const matchedPackage of matchedPackages) {
2532
- writeTrace(`- Upgrading ${matchedPackage}...`, _config);
2533
- const result = await upgradeCatalog(catalog, matchedPackage, {
2534
- tag,
2535
- prefix,
2536
- workspaceRoot: _config.workspaceRoot
2537
- });
2538
- if (result.updated) {
2539
- catalog = result.catalog;
2540
- packagesUpdated = true;
2541
- }
2542
- }
2543
2557
  }
2544
2558
  }
2545
2559
  if (nx) {
@@ -2576,19 +2590,7 @@ async function updateAction(packages, options) {
2576
2590
  );
2577
2591
  return;
2578
2592
  }
2579
- writeDebug(
2580
- "Finalizing changes to the pnpm workspace's catalog dependencies",
2581
- _config
2582
- );
2583
- if (!packagesUpdated) {
2584
- writeDebug(
2585
- "No packages were updated since all matching packages are already up to date in the catalog.",
2586
- _config
2587
- );
2588
- return;
2589
- }
2590
- await setCatalog(catalog, _config.workspaceRoot);
2591
- if (install) {
2593
+ if (install && packagesUpdated) {
2592
2594
  writeDebug(
2593
2595
  "Running `pnpm install --no-frozen-lockfile` to update local dependency versions",
2594
2596
  _config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pnpm-tools",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
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,22 +73,22 @@
73
73
  "storm-pnpm-esm": "./bin/pnpm.js"
74
74
  },
75
75
  "dependencies": {
76
- "@storm-software/config": "^1.137.27",
77
- "@storm-software/config-tools": "^1.189.73",
78
- "@storm-software/npm-tools": "^0.6.111",
79
- "@storm-software/package-constants": "^0.1.8",
76
+ "@storm-software/config": "^1.137.29",
77
+ "@storm-software/config-tools": "^1.189.75",
78
+ "@storm-software/npm-tools": "^0.6.113",
79
+ "@storm-software/package-constants": "^0.1.10",
80
80
  "commander": "^12.1.0",
81
81
  "defu": "6.1.4",
82
- "prettier": "^3.8.1",
82
+ "prettier": "^3.8.2",
83
83
  "prettier-plugin-packagejson": "^3.0.2",
84
84
  "semver": "7.6.2",
85
85
  "yaml": "^2.8.3"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@pnpm/types": "^1001.3.0",
89
- "@types/node": "^25.5.2",
89
+ "@types/node": "^25.6.0",
90
90
  "tsup": "8.4.0"
91
91
  },
92
92
  "publishConfig": { "access": "public" },
93
- "gitHead": "9cdb2da81cf91e859866411bf558483f8fe65571"
93
+ "gitHead": "9007c2c789d195cf25efea8782b60a05cbebafb9"
94
94
  }