@storm-software/pnpm-tools 0.4.2 → 0.4.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,23 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pnpm Tools
4
4
 
5
+ ## [0.4.2](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.4.2) (2025-09-19)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **pnpm-tools:** Resolve issue with `action` methods parameters
10
+ ([615ee65c5](https://github.com/storm-software/storm-ops/commit/615ee65c5))
11
+
12
+ ### Miscellaneous
13
+
14
+ - **monorepo:** Update workspace package links
15
+ ([8a98818fa](https://github.com/storm-software/storm-ops/commit/8a98818fa))
16
+
17
+ ### Updated Dependencies
18
+
19
+ - Updated config-tools to 1.186.2
20
+ - Updated npm-tools to 0.4.2
21
+
5
22
  ## [0.4.1](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.4.1) (2025-09-19)
6
23
 
7
24
  ### Bug Fixes
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.3.4-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)
24
+ [![Version](https://img.shields.io/badge/version-0.4.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/pnpm.cjs CHANGED
@@ -148,7 +148,7 @@ async function updateAction(packageName, {
148
148
  }) {
149
149
  try {
150
150
  (0, import_config_tools.writeInfo)(
151
- `\u26A1 Preparing to update the package version for ${packageName}. Please provide the requested details below...`,
151
+ `\u26A1 Preparing to update the package version for ${packageName}.`,
152
152
  _config
153
153
  );
154
154
  const catalog = await getCatalog();
@@ -157,6 +157,14 @@ async function updateAction(packageName, {
157
157
  "No catalog found in the pnpm-workspace.yaml file of the current workspace."
158
158
  );
159
159
  }
160
+ (0, import_config_tools.writeTrace)(
161
+ `Found catalog file with the following details:
162
+
163
+ ${JSON.stringify(
164
+ catalog
165
+ )}`,
166
+ _config
167
+ );
160
168
  const matchedPackages = Object.keys(catalog).filter(
161
169
  (pkg) => packageName.endsWith("/") ? pkg.startsWith(packageName) : pkg === packageName
162
170
  );
@@ -165,11 +173,21 @@ async function updateAction(packageName, {
165
173
  `No packages found in the catalog matching the name/pattern "${packageName}".`
166
174
  );
167
175
  }
176
+ (0, import_config_tools.writeTrace)(
177
+ `Found ${matchedPackages.length} matching packages in the catalog file:
178
+
179
+ - ${matchedPackages.join("\n- ")}`,
180
+ _config
181
+ );
168
182
  await Promise.all(
169
183
  matchedPackages.map(
170
184
  (pkg) => upgradeCatalogPackage(pkg, { tag, throwIfMissingInCatalog: true })
171
185
  )
172
186
  );
187
+ (0, import_config_tools.writeTrace)(
188
+ "Running `pnpm dedupe` to update local dependency versions",
189
+ _config
190
+ );
173
191
  await new Promise((resolve, reject) => {
174
192
  (0, import_node_child_process.exec)("pnpm dedupe", (error, stdout, stderr) => {
175
193
  if (error) {
@@ -189,7 +207,11 @@ async function updateAction(packageName, {
189
207
  (0, import_config_tools.writeFatal)(
190
208
  `A fatal error occurred while running Storm pnpm update:
191
209
 
192
- ${error.message}`,
210
+ ${JSON.stringify(
211
+ error,
212
+ null,
213
+ 2
214
+ )}`,
193
215
  _config
194
216
  );
195
217
  throw new Error(error.message, { cause: error });
package/bin/pnpm.js CHANGED
@@ -14,7 +14,8 @@ import {
14
14
  findWorkspaceRootSafe,
15
15
  writeFatal,
16
16
  writeInfo,
17
- writeSuccess
17
+ writeSuccess,
18
+ writeTrace
18
19
  } from "@storm-software/config-tools";
19
20
  import { Argument, Command } from "commander";
20
21
  import { exec } from "node:child_process";
@@ -157,7 +158,7 @@ async function updateAction(packageName, {
157
158
  }) {
158
159
  try {
159
160
  writeInfo(
160
- `\u26A1 Preparing to update the package version for ${packageName}. Please provide the requested details below...`,
161
+ `\u26A1 Preparing to update the package version for ${packageName}.`,
161
162
  _config
162
163
  );
163
164
  const catalog = await getCatalog();
@@ -166,6 +167,14 @@ async function updateAction(packageName, {
166
167
  "No catalog found in the pnpm-workspace.yaml file of the current workspace."
167
168
  );
168
169
  }
170
+ writeTrace(
171
+ `Found catalog file with the following details:
172
+
173
+ ${JSON.stringify(
174
+ catalog
175
+ )}`,
176
+ _config
177
+ );
169
178
  const matchedPackages = Object.keys(catalog).filter(
170
179
  (pkg) => packageName.endsWith("/") ? pkg.startsWith(packageName) : pkg === packageName
171
180
  );
@@ -174,11 +183,21 @@ async function updateAction(packageName, {
174
183
  `No packages found in the catalog matching the name/pattern "${packageName}".`
175
184
  );
176
185
  }
186
+ writeTrace(
187
+ `Found ${matchedPackages.length} matching packages in the catalog file:
188
+
189
+ - ${matchedPackages.join("\n- ")}`,
190
+ _config
191
+ );
177
192
  await Promise.all(
178
193
  matchedPackages.map(
179
194
  (pkg) => upgradeCatalogPackage(pkg, { tag, throwIfMissingInCatalog: true })
180
195
  )
181
196
  );
197
+ writeTrace(
198
+ "Running `pnpm dedupe` to update local dependency versions",
199
+ _config
200
+ );
182
201
  await new Promise((resolve, reject) => {
183
202
  exec("pnpm dedupe", (error, stdout, stderr) => {
184
203
  if (error) {
@@ -198,7 +217,11 @@ async function updateAction(packageName, {
198
217
  writeFatal(
199
218
  `A fatal error occurred while running Storm pnpm update:
200
219
 
201
- ${error.message}`,
220
+ ${JSON.stringify(
221
+ error,
222
+ null,
223
+ 2
224
+ )}`,
202
225
  _config
203
226
  );
204
227
  throw new Error(error.message, { cause: error });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pnpm-tools",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "description": "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
6
6
  "repository": {
@@ -89,9 +89,9 @@
89
89
  "dependencies": {
90
90
  "@pnpm/plugin-better-defaults": "^0.2.1",
91
91
  "@pnpm/plugin-esm-node-path": "^0.1.2",
92
- "@storm-software/config": "^1.132.1",
93
- "@storm-software/config-tools": "^1.186.2",
94
- "@storm-software/npm-tools": "^0.4.2",
92
+ "@storm-software/config": "^1.132.2",
93
+ "@storm-software/config-tools": "^1.186.3",
94
+ "@storm-software/npm-tools": "^0.4.3",
95
95
  "commander": "^12.1.0",
96
96
  "defu": "6.1.4",
97
97
  "prettier": "^3.5.1",
@@ -105,5 +105,5 @@
105
105
  "tsup": "8.4.0"
106
106
  },
107
107
  "publishConfig": { "access": "public" },
108
- "gitHead": "a27048aa8969fb416f5fbf25265feaeceb2805f0"
108
+ "gitHead": "4685d950fde94a24f6739526637a100d134c3623"
109
109
  }