@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 +17 -0
- package/README.md +1 -1
- package/bin/pnpm.cjs +24 -2
- package/bin/pnpm.js +26 -3
- package/package.json +5 -5
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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}
|
|
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
|
-
${
|
|
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}
|
|
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
|
-
${
|
|
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.
|
|
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.
|
|
93
|
-
"@storm-software/config-tools": "^1.186.
|
|
94
|
-
"@storm-software/npm-tools": "^0.4.
|
|
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": "
|
|
108
|
+
"gitHead": "4685d950fde94a24f6739526637a100d134c3623"
|
|
109
109
|
}
|