@storm-software/pnpm-tools 0.6.152 → 0.6.154
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 +32 -0
- package/README.md +1 -1
- package/bin/pnpm.cjs +162 -32
- package/bin/pnpm.js +162 -32
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pnpm Tools
|
|
4
4
|
|
|
5
|
+
## [0.6.153](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.153) (04/01/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **pnpm-tools:** Resolve issue with invalid `version` import ([21c678e98](https://github.com/storm-software/storm-ops/commit/21c678e98))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **pnpm-tools:** Resolve issue with bundled dependencies ([49d923a2d](https://github.com/storm-software/storm-ops/commit/49d923a2d))
|
|
14
|
+
|
|
15
|
+
### Updated Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated **package-constants** to **v0.1.3**
|
|
18
|
+
- Updated **testing-tools** to **v1.119.143**
|
|
19
|
+
- Updated **config-tools** to **v1.189.68**
|
|
20
|
+
- Updated **npm-tools** to **v0.6.106**
|
|
21
|
+
- Updated **config** to **v1.137.22**
|
|
22
|
+
|
|
23
|
+
## [0.6.152](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.152) (04/01/2026)
|
|
24
|
+
|
|
25
|
+
### Miscellaneous
|
|
26
|
+
|
|
27
|
+
- **monorepo:** Regenerate `README.md` file ([b226844d5](https://github.com/storm-software/storm-ops/commit/b226844d5))
|
|
28
|
+
|
|
29
|
+
### Updated Dependencies
|
|
30
|
+
|
|
31
|
+
- Updated **package-constants** to **v0.1.2**
|
|
32
|
+
- Updated **testing-tools** to **v1.119.142**
|
|
33
|
+
- Updated **config-tools** to **v1.189.67**
|
|
34
|
+
- Updated **npm-tools** to **v0.6.105**
|
|
35
|
+
- Updated **config** to **v1.137.21**
|
|
36
|
+
|
|
5
37
|
## [0.6.151](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.151) (04/01/2026)
|
|
6
38
|
|
|
7
39
|
### 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/pnpm.cjs
CHANGED
|
@@ -2178,6 +2178,121 @@ var INTERNAL_PACKAGES = [
|
|
|
2178
2178
|
// src/cli/index.ts
|
|
2179
2179
|
var import_commander = require("commander");
|
|
2180
2180
|
|
|
2181
|
+
// package.json
|
|
2182
|
+
var package_default = {
|
|
2183
|
+
name: "@storm-software/pnpm-tools",
|
|
2184
|
+
version: "0.6.153",
|
|
2185
|
+
private: false,
|
|
2186
|
+
description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
2187
|
+
repository: {
|
|
2188
|
+
type: "github",
|
|
2189
|
+
url: "https://github.com/storm-software/storm-ops",
|
|
2190
|
+
directory: "packages/pnpm-tools"
|
|
2191
|
+
},
|
|
2192
|
+
type: "module",
|
|
2193
|
+
exports: {
|
|
2194
|
+
"./package.json": "./package.json",
|
|
2195
|
+
"./index": {
|
|
2196
|
+
import: {
|
|
2197
|
+
types: "./dist/index.d.ts",
|
|
2198
|
+
default: "./dist/index.js"
|
|
2199
|
+
},
|
|
2200
|
+
require: {
|
|
2201
|
+
types: "./dist/index.d.cts",
|
|
2202
|
+
default: "./dist/index.cjs"
|
|
2203
|
+
},
|
|
2204
|
+
default: {
|
|
2205
|
+
types: "./dist/index.d.ts",
|
|
2206
|
+
default: "./dist/index.js"
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
".": {
|
|
2210
|
+
import: {
|
|
2211
|
+
types: "./dist/index.d.ts",
|
|
2212
|
+
default: "./dist/index.js"
|
|
2213
|
+
},
|
|
2214
|
+
require: {
|
|
2215
|
+
types: "./dist/index.d.cts",
|
|
2216
|
+
default: "./dist/index.cjs"
|
|
2217
|
+
},
|
|
2218
|
+
default: {
|
|
2219
|
+
types: "./dist/index.d.ts",
|
|
2220
|
+
default: "./dist/index.js"
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
"./types": {
|
|
2224
|
+
import: {
|
|
2225
|
+
types: "./dist/types.d.ts",
|
|
2226
|
+
default: "./dist/types.js"
|
|
2227
|
+
},
|
|
2228
|
+
require: {
|
|
2229
|
+
types: "./dist/types.d.cts",
|
|
2230
|
+
default: "./dist/types.cjs"
|
|
2231
|
+
},
|
|
2232
|
+
default: {
|
|
2233
|
+
types: "./dist/types.d.ts",
|
|
2234
|
+
default: "./dist/types.js"
|
|
2235
|
+
}
|
|
2236
|
+
},
|
|
2237
|
+
"./helpers": {
|
|
2238
|
+
import: {
|
|
2239
|
+
types: "./dist/helpers/index.d.ts",
|
|
2240
|
+
default: "./dist/helpers/index.js"
|
|
2241
|
+
},
|
|
2242
|
+
require: {
|
|
2243
|
+
types: "./dist/helpers/index.d.cts",
|
|
2244
|
+
default: "./dist/helpers/index.cjs"
|
|
2245
|
+
},
|
|
2246
|
+
default: {
|
|
2247
|
+
types: "./dist/helpers/index.d.ts",
|
|
2248
|
+
default: "./dist/helpers/index.js"
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
"./helpers/*": {
|
|
2252
|
+
import: {
|
|
2253
|
+
types: "./dist/helpers/*.d.ts",
|
|
2254
|
+
default: "./dist/helpers/*.js"
|
|
2255
|
+
},
|
|
2256
|
+
require: {
|
|
2257
|
+
types: "./dist/helpers/*.d.cts",
|
|
2258
|
+
default: "./dist/helpers/*.cjs"
|
|
2259
|
+
},
|
|
2260
|
+
default: {
|
|
2261
|
+
types: "./dist/helpers/*.d.ts",
|
|
2262
|
+
default: "./dist/helpers/*.js"
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
main: "./dist/index.cjs",
|
|
2267
|
+
module: "./dist/index.js",
|
|
2268
|
+
types: "./dist/index.d.ts",
|
|
2269
|
+
bin: {
|
|
2270
|
+
"storm-pnpm": "./bin/pnpm.js",
|
|
2271
|
+
"storm-pnpm-cjs": "./bin/pnpm.cjs",
|
|
2272
|
+
"storm-pnpm-esm": "./bin/pnpm.js"
|
|
2273
|
+
},
|
|
2274
|
+
dependencies: {
|
|
2275
|
+
"@storm-software/config": "workspace:*",
|
|
2276
|
+
"@storm-software/config-tools": "workspace:*",
|
|
2277
|
+
"@storm-software/npm-tools": "workspace:*",
|
|
2278
|
+
"@storm-software/package-constants": "workspace:*",
|
|
2279
|
+
commander: "catalog:",
|
|
2280
|
+
defu: "catalog:",
|
|
2281
|
+
prettier: "catalog:",
|
|
2282
|
+
"prettier-plugin-packagejson": "catalog:",
|
|
2283
|
+
semver: "7.6.2",
|
|
2284
|
+
yaml: "catalog:"
|
|
2285
|
+
},
|
|
2286
|
+
devDependencies: {
|
|
2287
|
+
"@pnpm/types": "catalog:",
|
|
2288
|
+
"@types/node": "catalog:",
|
|
2289
|
+
tsup: "catalog:"
|
|
2290
|
+
},
|
|
2291
|
+
publishConfig: {
|
|
2292
|
+
access: "public"
|
|
2293
|
+
}
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2181
2296
|
// ../npm-tools/src/constants.ts
|
|
2182
2297
|
var LATEST_NPM_TAG = "latest";
|
|
2183
2298
|
var DEFAULT_NPM_TAG = LATEST_NPM_TAG;
|
|
@@ -2336,41 +2451,56 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
|
|
|
2336
2451
|
// src/cli/index.ts
|
|
2337
2452
|
var _config = {};
|
|
2338
2453
|
function createProgram(config) {
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
"
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
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
|
+
[]
|
|
2476
|
+
).option(
|
|
2477
|
+
"-t, --tag <string>",
|
|
2478
|
+
`The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
|
|
2479
|
+
"latest"
|
|
2480
|
+
).option(
|
|
2481
|
+
"-i, --install",
|
|
2482
|
+
"Whether to install the package after updating the version.",
|
|
2483
|
+
false
|
|
2484
|
+
).option("--all", "Whether to update all Storm Software packages.", false).option(
|
|
2485
|
+
"-p, --prefix <string>",
|
|
2486
|
+
`The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
|
|
2366
2487
|
- 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.
|
|
2367
2488
|
- 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.
|
|
2368
2489
|
- Exact (no prefix): Locks the dependency to a specific version. No updates are allowed. Example: 1.2.3 will only use 1.2.3.
|
|
2369
2490
|
- 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.
|
|
2370
2491
|
- Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2492
|
+
"^"
|
|
2493
|
+
).action(updateAction);
|
|
2494
|
+
return program;
|
|
2495
|
+
} catch (error) {
|
|
2496
|
+
writeFatal(
|
|
2497
|
+
`A fatal error occurred while running the Storm pnpm CLI program:
|
|
2498
|
+
|
|
2499
|
+
${error?.message}`,
|
|
2500
|
+
_config
|
|
2501
|
+
);
|
|
2502
|
+
throw new Error(error?.message, { cause: error });
|
|
2503
|
+
}
|
|
2374
2504
|
}
|
|
2375
2505
|
async function updateAction(packages = [], {
|
|
2376
2506
|
tag,
|
|
@@ -2379,7 +2509,7 @@ async function updateAction(packages = [], {
|
|
|
2379
2509
|
prefix = "^"
|
|
2380
2510
|
}) {
|
|
2381
2511
|
try {
|
|
2382
|
-
const pkgs = (Array.isArray(packages) ? packages : typeof packages === "string" ? [packages.split(",")].flat() : []).concat(all ? INTERNAL_PACKAGES : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
|
|
2512
|
+
const pkgs = (Array.isArray(packages) ? packages : typeof packages === "string" ? [packages.split(",")].flat() : []).concat(all ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
|
|
2383
2513
|
writeInfo(
|
|
2384
2514
|
`${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
|
|
2385
2515
|
_config
|
|
@@ -2463,7 +2593,7 @@ ${JSON.stringify(
|
|
|
2463
2593
|
)}`,
|
|
2464
2594
|
_config
|
|
2465
2595
|
);
|
|
2466
|
-
throw new Error(error
|
|
2596
|
+
throw new Error(error?.message, { cause: error });
|
|
2467
2597
|
}
|
|
2468
2598
|
}
|
|
2469
2599
|
|
package/bin/pnpm.js
CHANGED
|
@@ -2156,6 +2156,121 @@ var INTERNAL_PACKAGES = [
|
|
|
2156
2156
|
// src/cli/index.ts
|
|
2157
2157
|
import { Command } from "commander";
|
|
2158
2158
|
|
|
2159
|
+
// package.json
|
|
2160
|
+
var package_default = {
|
|
2161
|
+
name: "@storm-software/pnpm-tools",
|
|
2162
|
+
version: "0.6.153",
|
|
2163
|
+
private: false,
|
|
2164
|
+
description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
2165
|
+
repository: {
|
|
2166
|
+
type: "github",
|
|
2167
|
+
url: "https://github.com/storm-software/storm-ops",
|
|
2168
|
+
directory: "packages/pnpm-tools"
|
|
2169
|
+
},
|
|
2170
|
+
type: "module",
|
|
2171
|
+
exports: {
|
|
2172
|
+
"./package.json": "./package.json",
|
|
2173
|
+
"./index": {
|
|
2174
|
+
import: {
|
|
2175
|
+
types: "./dist/index.d.ts",
|
|
2176
|
+
default: "./dist/index.js"
|
|
2177
|
+
},
|
|
2178
|
+
require: {
|
|
2179
|
+
types: "./dist/index.d.cts",
|
|
2180
|
+
default: "./dist/index.cjs"
|
|
2181
|
+
},
|
|
2182
|
+
default: {
|
|
2183
|
+
types: "./dist/index.d.ts",
|
|
2184
|
+
default: "./dist/index.js"
|
|
2185
|
+
}
|
|
2186
|
+
},
|
|
2187
|
+
".": {
|
|
2188
|
+
import: {
|
|
2189
|
+
types: "./dist/index.d.ts",
|
|
2190
|
+
default: "./dist/index.js"
|
|
2191
|
+
},
|
|
2192
|
+
require: {
|
|
2193
|
+
types: "./dist/index.d.cts",
|
|
2194
|
+
default: "./dist/index.cjs"
|
|
2195
|
+
},
|
|
2196
|
+
default: {
|
|
2197
|
+
types: "./dist/index.d.ts",
|
|
2198
|
+
default: "./dist/index.js"
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
"./types": {
|
|
2202
|
+
import: {
|
|
2203
|
+
types: "./dist/types.d.ts",
|
|
2204
|
+
default: "./dist/types.js"
|
|
2205
|
+
},
|
|
2206
|
+
require: {
|
|
2207
|
+
types: "./dist/types.d.cts",
|
|
2208
|
+
default: "./dist/types.cjs"
|
|
2209
|
+
},
|
|
2210
|
+
default: {
|
|
2211
|
+
types: "./dist/types.d.ts",
|
|
2212
|
+
default: "./dist/types.js"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"./helpers": {
|
|
2216
|
+
import: {
|
|
2217
|
+
types: "./dist/helpers/index.d.ts",
|
|
2218
|
+
default: "./dist/helpers/index.js"
|
|
2219
|
+
},
|
|
2220
|
+
require: {
|
|
2221
|
+
types: "./dist/helpers/index.d.cts",
|
|
2222
|
+
default: "./dist/helpers/index.cjs"
|
|
2223
|
+
},
|
|
2224
|
+
default: {
|
|
2225
|
+
types: "./dist/helpers/index.d.ts",
|
|
2226
|
+
default: "./dist/helpers/index.js"
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2229
|
+
"./helpers/*": {
|
|
2230
|
+
import: {
|
|
2231
|
+
types: "./dist/helpers/*.d.ts",
|
|
2232
|
+
default: "./dist/helpers/*.js"
|
|
2233
|
+
},
|
|
2234
|
+
require: {
|
|
2235
|
+
types: "./dist/helpers/*.d.cts",
|
|
2236
|
+
default: "./dist/helpers/*.cjs"
|
|
2237
|
+
},
|
|
2238
|
+
default: {
|
|
2239
|
+
types: "./dist/helpers/*.d.ts",
|
|
2240
|
+
default: "./dist/helpers/*.js"
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
},
|
|
2244
|
+
main: "./dist/index.cjs",
|
|
2245
|
+
module: "./dist/index.js",
|
|
2246
|
+
types: "./dist/index.d.ts",
|
|
2247
|
+
bin: {
|
|
2248
|
+
"storm-pnpm": "./bin/pnpm.js",
|
|
2249
|
+
"storm-pnpm-cjs": "./bin/pnpm.cjs",
|
|
2250
|
+
"storm-pnpm-esm": "./bin/pnpm.js"
|
|
2251
|
+
},
|
|
2252
|
+
dependencies: {
|
|
2253
|
+
"@storm-software/config": "workspace:*",
|
|
2254
|
+
"@storm-software/config-tools": "workspace:*",
|
|
2255
|
+
"@storm-software/npm-tools": "workspace:*",
|
|
2256
|
+
"@storm-software/package-constants": "workspace:*",
|
|
2257
|
+
commander: "catalog:",
|
|
2258
|
+
defu: "catalog:",
|
|
2259
|
+
prettier: "catalog:",
|
|
2260
|
+
"prettier-plugin-packagejson": "catalog:",
|
|
2261
|
+
semver: "7.6.2",
|
|
2262
|
+
yaml: "catalog:"
|
|
2263
|
+
},
|
|
2264
|
+
devDependencies: {
|
|
2265
|
+
"@pnpm/types": "catalog:",
|
|
2266
|
+
"@types/node": "catalog:",
|
|
2267
|
+
tsup: "catalog:"
|
|
2268
|
+
},
|
|
2269
|
+
publishConfig: {
|
|
2270
|
+
access: "public"
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2159
2274
|
// ../npm-tools/src/constants.ts
|
|
2160
2275
|
var LATEST_NPM_TAG = "latest";
|
|
2161
2276
|
var DEFAULT_NPM_TAG = LATEST_NPM_TAG;
|
|
@@ -2314,41 +2429,56 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
|
|
|
2314
2429
|
// src/cli/index.ts
|
|
2315
2430
|
var _config = {};
|
|
2316
2431
|
function createProgram(config) {
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
"
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
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
|
+
[]
|
|
2454
|
+
).option(
|
|
2455
|
+
"-t, --tag <string>",
|
|
2456
|
+
`The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
|
|
2457
|
+
"latest"
|
|
2458
|
+
).option(
|
|
2459
|
+
"-i, --install",
|
|
2460
|
+
"Whether to install the package after updating the version.",
|
|
2461
|
+
false
|
|
2462
|
+
).option("--all", "Whether to update all Storm Software packages.", false).option(
|
|
2463
|
+
"-p, --prefix <string>",
|
|
2464
|
+
`The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
|
|
2344
2465
|
- 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.
|
|
2345
2466
|
- 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.
|
|
2346
2467
|
- Exact (no prefix): Locks the dependency to a specific version. No updates are allowed. Example: 1.2.3 will only use 1.2.3.
|
|
2347
2468
|
- 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.
|
|
2348
2469
|
- Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2470
|
+
"^"
|
|
2471
|
+
).action(updateAction);
|
|
2472
|
+
return program;
|
|
2473
|
+
} catch (error) {
|
|
2474
|
+
writeFatal(
|
|
2475
|
+
`A fatal error occurred while running the Storm pnpm CLI program:
|
|
2476
|
+
|
|
2477
|
+
${error?.message}`,
|
|
2478
|
+
_config
|
|
2479
|
+
);
|
|
2480
|
+
throw new Error(error?.message, { cause: error });
|
|
2481
|
+
}
|
|
2352
2482
|
}
|
|
2353
2483
|
async function updateAction(packages = [], {
|
|
2354
2484
|
tag,
|
|
@@ -2357,7 +2487,7 @@ async function updateAction(packages = [], {
|
|
|
2357
2487
|
prefix = "^"
|
|
2358
2488
|
}) {
|
|
2359
2489
|
try {
|
|
2360
|
-
const pkgs = (Array.isArray(packages) ? packages : typeof packages === "string" ? [packages.split(",")].flat() : []).concat(all ? INTERNAL_PACKAGES : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
|
|
2490
|
+
const pkgs = (Array.isArray(packages) ? packages : typeof packages === "string" ? [packages.split(",")].flat() : []).concat(all ? [...INTERNAL_PACKAGES] : []).filter(Boolean).map((pkg) => pkg.trim().replaceAll("*", ""));
|
|
2361
2491
|
writeInfo(
|
|
2362
2492
|
`${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
|
|
2363
2493
|
_config
|
|
@@ -2441,7 +2571,7 @@ ${JSON.stringify(
|
|
|
2441
2571
|
)}`,
|
|
2442
2572
|
_config
|
|
2443
2573
|
);
|
|
2444
|
-
throw new Error(error
|
|
2574
|
+
throw new Error(error?.message, { cause: error });
|
|
2445
2575
|
}
|
|
2446
2576
|
}
|
|
2447
2577
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/pnpm-tools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.154",
|
|
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,9 +73,10 @@
|
|
|
73
73
|
"storm-pnpm-esm": "./bin/pnpm.js"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@storm-software/config": "^1.137.
|
|
77
|
-
"@storm-software/config-tools": "^1.189.
|
|
78
|
-
"@storm-software/npm-tools": "^0.6.
|
|
76
|
+
"@storm-software/config": "^1.137.23",
|
|
77
|
+
"@storm-software/config-tools": "^1.189.69",
|
|
78
|
+
"@storm-software/npm-tools": "^0.6.107",
|
|
79
|
+
"@storm-software/package-constants": "^0.1.4",
|
|
79
80
|
"commander": "^12.1.0",
|
|
80
81
|
"defu": "6.1.4",
|
|
81
82
|
"prettier": "^3.8.1",
|
|
@@ -85,10 +86,9 @@
|
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
88
|
"@pnpm/types": "^1001.3.0",
|
|
88
|
-
"@storm-software/package-constants": "^0.1.2",
|
|
89
89
|
"@types/node": "^25.5.0",
|
|
90
90
|
"tsup": "8.4.0"
|
|
91
91
|
},
|
|
92
92
|
"publishConfig": { "access": "public" },
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "d3b969195de1255aafd247f7521707b02d8e1940"
|
|
94
94
|
}
|