@storm-software/pnpm-tools 0.6.155 → 0.7.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/CHANGELOG.md CHANGED
@@ -2,6 +2,42 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pnpm Tools
4
4
 
5
+ ## [0.6.156](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.156) (04/01/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate `README.md` files ([020581272](https://github.com/storm-software/storm-ops/commit/020581272))
10
+
11
+ ### Bug Fixes
12
+
13
+ - **pnpm-tools:** Ensure `packages` argument is marked as optional ([96b223829](https://github.com/storm-software/storm-ops/commit/96b223829))
14
+
15
+ ### Updated Dependencies
16
+
17
+ - Updated **package-constants** to **v0.1.6**
18
+ - Updated **testing-tools** to **v1.119.146**
19
+ - Updated **config-tools** to **v1.189.71**
20
+ - Updated **npm-tools** to **v0.6.109**
21
+ - Updated **config** to **v1.137.25**
22
+
23
+ ## [0.6.155](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.155) (04/01/2026)
24
+
25
+ ### Miscellaneous
26
+
27
+ - **monorepo:** Regenerate `README.md` file ([613228ecc](https://github.com/storm-software/storm-ops/commit/613228ecc))
28
+
29
+ ### Bug Fixes
30
+
31
+ - **pnpm-tools:** Resolve issue with invalid default argument value ([68668d596](https://github.com/storm-software/storm-ops/commit/68668d596))
32
+
33
+ ### Updated Dependencies
34
+
35
+ - Updated **package-constants** to **v0.1.5**
36
+ - Updated **testing-tools** to **v1.119.145**
37
+ - Updated **config-tools** to **v1.189.70**
38
+ - Updated **npm-tools** to **v0.6.108**
39
+ - Updated **config** to **v1.137.24**
40
+
5
41
  ## [0.6.154](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.154) (04/01/2026)
6
42
 
7
43
  ### 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.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)
30
+ [![Version](https://img.shields.io/badge/version-0.6.155-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.154",
2184
+ version: "0.6.156",
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: {
@@ -2470,7 +2470,7 @@ function createProgram(config) {
2470
2470
  "display CLI version"
2471
2471
  );
2472
2472
  program.command("update").description("Update pnpm catalog dependency package version.").argument(
2473
- "<packages...>",
2473
+ "[packages...]",
2474
2474
  "The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ or @storm-software/*)."
2475
2475
  ).option(
2476
2476
  "-t, --tag <string>",
@@ -2480,7 +2480,7 @@ function createProgram(config) {
2480
2480
  "-i, --install",
2481
2481
  "Whether to install the package after updating the version.",
2482
2482
  false
2483
- ).option("--all", "Whether to update all Storm Software packages.", false).option(
2483
+ ).option(
2484
2484
  "-p, --prefix <string>",
2485
2485
  `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
2486
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.
@@ -2489,7 +2489,15 @@ function createProgram(config) {
2489
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.
2490
2490
  - Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
2491
2491
  "^"
2492
- ).action(updateAction);
2492
+ ).option(
2493
+ "--internal",
2494
+ "Whether to update all Storm Software packages.",
2495
+ false
2496
+ ).option("--nx", "Whether to update Nx packages.", false).option(
2497
+ "--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
2501
  return program;
2494
2502
  } catch (error) {
2495
2503
  writeFatal(
@@ -2501,14 +2509,18 @@ ${error?.message}`,
2501
2509
  throw new Error(error?.message, { cause: error });
2502
2510
  }
2503
2511
  }
2504
- async function updateAction(packages, {
2505
- tag,
2506
- install = false,
2507
- all = false,
2508
- prefix = "^"
2509
- }) {
2512
+ async function updateAction(packages, options) {
2510
2513
  try {
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("*", ""));
2514
+ const {
2515
+ tag,
2516
+ install = false,
2517
+ all = false,
2518
+ internal = all,
2519
+ nx = all,
2520
+ pnpmPlugin = all,
2521
+ prefix = "^"
2522
+ } = options || {};
2523
+ const pkgs = (packages && Array.isArray(packages) ? packages : []).concat(internal ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2512
2524
  writeInfo(
2513
2525
  `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
2514
2526
  _config
@@ -2552,6 +2564,33 @@ async function updateAction(packages, {
2552
2564
  }
2553
2565
  }
2554
2566
  }
2567
+ if (nx) {
2568
+ writeDebug(
2569
+ "Running `nx migrate latest` to update Nx packages to their latest versions",
2570
+ _config
2571
+ );
2572
+ const proc = await runAsync(_config, "pnpm nx migrate latest");
2573
+ proc.stdout?.on("data", (data) => {
2574
+ console.log(data.toString());
2575
+ });
2576
+ packagesFound = true;
2577
+ packagesUpdated = true;
2578
+ }
2579
+ if (pnpmPlugin) {
2580
+ writeDebug(
2581
+ "Running `pnpm add --config pnpm-plugin-storm-software` to update the Storm Software pnpm plugin to its latest version",
2582
+ _config
2583
+ );
2584
+ const proc = await runAsync(
2585
+ _config,
2586
+ "pnpm add --config pnpm-plugin-storm-software"
2587
+ );
2588
+ proc.stdout?.on("data", (data) => {
2589
+ console.log(data.toString());
2590
+ });
2591
+ packagesFound = true;
2592
+ packagesUpdated = true;
2593
+ }
2555
2594
  if (!packagesFound) {
2556
2595
  writeWarning(
2557
2596
  `No packages were updated since no matching packages were found in the catalog.`,
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.154",
2162
+ version: "0.6.156",
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: {
@@ -2448,7 +2448,7 @@ function createProgram(config) {
2448
2448
  "display CLI version"
2449
2449
  );
2450
2450
  program.command("update").description("Update pnpm catalog dependency package version.").argument(
2451
- "<packages...>",
2451
+ "[packages...]",
2452
2452
  "The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ or @storm-software/*)."
2453
2453
  ).option(
2454
2454
  "-t, --tag <string>",
@@ -2458,7 +2458,7 @@ function createProgram(config) {
2458
2458
  "-i, --install",
2459
2459
  "Whether to install the package after updating the version.",
2460
2460
  false
2461
- ).option("--all", "Whether to update all Storm Software packages.", false).option(
2461
+ ).option(
2462
2462
  "-p, --prefix <string>",
2463
2463
  `The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
2464
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.
@@ -2467,7 +2467,15 @@ function createProgram(config) {
2467
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.
2468
2468
  - Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
2469
2469
  "^"
2470
- ).action(updateAction);
2470
+ ).option(
2471
+ "--internal",
2472
+ "Whether to update all Storm Software packages.",
2473
+ false
2474
+ ).option("--nx", "Whether to update Nx packages.", false).option(
2475
+ "--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
2479
  return program;
2472
2480
  } catch (error) {
2473
2481
  writeFatal(
@@ -2479,14 +2487,18 @@ ${error?.message}`,
2479
2487
  throw new Error(error?.message, { cause: error });
2480
2488
  }
2481
2489
  }
2482
- async function updateAction(packages, {
2483
- tag,
2484
- install = false,
2485
- all = false,
2486
- prefix = "^"
2487
- }) {
2490
+ async function updateAction(packages, options) {
2488
2491
  try {
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("*", ""));
2492
+ const {
2493
+ tag,
2494
+ install = false,
2495
+ all = false,
2496
+ internal = all,
2497
+ nx = all,
2498
+ pnpmPlugin = all,
2499
+ prefix = "^"
2500
+ } = options || {};
2501
+ const pkgs = (packages && Array.isArray(packages) ? packages : []).concat(internal ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
2490
2502
  writeInfo(
2491
2503
  `${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
2492
2504
  _config
@@ -2530,6 +2542,33 @@ async function updateAction(packages, {
2530
2542
  }
2531
2543
  }
2532
2544
  }
2545
+ if (nx) {
2546
+ writeDebug(
2547
+ "Running `nx migrate latest` to update Nx packages to their latest versions",
2548
+ _config
2549
+ );
2550
+ const proc = await runAsync(_config, "pnpm nx migrate latest");
2551
+ proc.stdout?.on("data", (data) => {
2552
+ console.log(data.toString());
2553
+ });
2554
+ packagesFound = true;
2555
+ packagesUpdated = true;
2556
+ }
2557
+ if (pnpmPlugin) {
2558
+ writeDebug(
2559
+ "Running `pnpm add --config pnpm-plugin-storm-software` to update the Storm Software pnpm plugin to its latest version",
2560
+ _config
2561
+ );
2562
+ const proc = await runAsync(
2563
+ _config,
2564
+ "pnpm add --config pnpm-plugin-storm-software"
2565
+ );
2566
+ proc.stdout?.on("data", (data) => {
2567
+ console.log(data.toString());
2568
+ });
2569
+ packagesFound = true;
2570
+ packagesUpdated = true;
2571
+ }
2533
2572
  if (!packagesFound) {
2534
2573
  writeWarning(
2535
2574
  `No packages were updated since no matching packages were found in the catalog.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pnpm-tools",
3
- "version": "0.6.155",
3
+ "version": "0.7.0",
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.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",
76
+ "@storm-software/config": "^1.137.26",
77
+ "@storm-software/config-tools": "^1.189.72",
78
+ "@storm-software/npm-tools": "^0.6.110",
79
+ "@storm-software/package-constants": "^0.1.7",
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": "c3ebb5d4932added529fbce7c5dd3031daf9f84d"
93
+ "gitHead": "20de7accec65706d7c32884aa0316c975c5a2298"
94
94
  }