@storm-software/pnpm-tools 0.6.153 → 0.6.155
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 +37 -0
- package/README.md +1 -1
- package/bin/pnpm.cjs +48 -35
- package/bin/pnpm.js +48 -35
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pnpm Tools
|
|
4
4
|
|
|
5
|
+
## [0.6.154](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.154) (04/01/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **pnpm-tools:** Added try-catch handler to CLI app ([915e8ad4c](https://github.com/storm-software/storm-ops/commit/915e8ad4c))
|
|
10
|
+
- **monorepo:** Regenerate `README.md` files ([7179007bc](https://github.com/storm-software/storm-ops/commit/7179007bc))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **pnpm-tools:** Add backup version string ([a5544bf3b](https://github.com/storm-software/storm-ops/commit/a5544bf3b))
|
|
15
|
+
|
|
16
|
+
### Updated Dependencies
|
|
17
|
+
|
|
18
|
+
- Updated **package-constants** to **v0.1.4**
|
|
19
|
+
- Updated **testing-tools** to **v1.119.144**
|
|
20
|
+
- Updated **config-tools** to **v1.189.69**
|
|
21
|
+
- Updated **npm-tools** to **v0.6.107**
|
|
22
|
+
- Updated **config** to **v1.137.23**
|
|
23
|
+
|
|
24
|
+
## [0.6.153](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.153) (04/01/2026)
|
|
25
|
+
|
|
26
|
+
### Miscellaneous
|
|
27
|
+
|
|
28
|
+
- **pnpm-tools:** Resolve issue with invalid `version` import ([21c678e98](https://github.com/storm-software/storm-ops/commit/21c678e98))
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
- **pnpm-tools:** Resolve issue with bundled dependencies ([49d923a2d](https://github.com/storm-software/storm-ops/commit/49d923a2d))
|
|
33
|
+
|
|
34
|
+
### Updated Dependencies
|
|
35
|
+
|
|
36
|
+
- Updated **package-constants** to **v0.1.3**
|
|
37
|
+
- Updated **testing-tools** to **v1.119.143**
|
|
38
|
+
- Updated **config-tools** to **v1.189.68**
|
|
39
|
+
- Updated **npm-tools** to **v0.6.106**
|
|
40
|
+
- Updated **config** to **v1.137.22**
|
|
41
|
+
|
|
5
42
|
## [0.6.152](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.152) (04/01/2026)
|
|
6
43
|
|
|
7
44
|
### 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
|
@@ -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.
|
|
2184
|
+
version: "0.6.154",
|
|
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: {
|
|
@@ -2451,51 +2451,64 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
|
|
|
2451
2451
|
// src/cli/index.ts
|
|
2452
2452
|
var _config = {};
|
|
2453
2453
|
function createProgram(config) {
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
"
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
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
|
+
).option(
|
|
2476
|
+
"-t, --tag <string>",
|
|
2477
|
+
`The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
|
|
2478
|
+
"latest"
|
|
2479
|
+
).option(
|
|
2480
|
+
"-i, --install",
|
|
2481
|
+
"Whether to install the package after updating the version.",
|
|
2482
|
+
false
|
|
2483
|
+
).option("--all", "Whether to update all Storm Software packages.", false).option(
|
|
2484
|
+
"-p, --prefix <string>",
|
|
2485
|
+
`The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
|
|
2482
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.
|
|
2483
2487
|
- 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.
|
|
2484
2488
|
- Exact (no prefix): Locks the dependency to a specific version. No updates are allowed. Example: 1.2.3 will only use 1.2.3.
|
|
2485
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.
|
|
2486
2490
|
- Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2491
|
+
"^"
|
|
2492
|
+
).action(updateAction);
|
|
2493
|
+
return program;
|
|
2494
|
+
} catch (error) {
|
|
2495
|
+
writeFatal(
|
|
2496
|
+
`A fatal error occurred while running the Storm pnpm CLI program:
|
|
2497
|
+
|
|
2498
|
+
${error?.message}`,
|
|
2499
|
+
_config
|
|
2500
|
+
);
|
|
2501
|
+
throw new Error(error?.message, { cause: error });
|
|
2502
|
+
}
|
|
2490
2503
|
}
|
|
2491
|
-
async function updateAction(packages
|
|
2504
|
+
async function updateAction(packages, {
|
|
2492
2505
|
tag,
|
|
2493
2506
|
install = false,
|
|
2494
2507
|
all = false,
|
|
2495
2508
|
prefix = "^"
|
|
2496
2509
|
}) {
|
|
2497
2510
|
try {
|
|
2498
|
-
const pkgs = (Array.isArray(packages)
|
|
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("*", ""));
|
|
2499
2512
|
writeInfo(
|
|
2500
2513
|
`${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
|
|
2501
2514
|
_config
|
|
@@ -2579,7 +2592,7 @@ ${JSON.stringify(
|
|
|
2579
2592
|
)}`,
|
|
2580
2593
|
_config
|
|
2581
2594
|
);
|
|
2582
|
-
throw new Error(error
|
|
2595
|
+
throw new Error(error?.message, { cause: error });
|
|
2583
2596
|
}
|
|
2584
2597
|
}
|
|
2585
2598
|
|
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.
|
|
2162
|
+
version: "0.6.154",
|
|
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: {
|
|
@@ -2429,51 +2429,64 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
|
|
|
2429
2429
|
// src/cli/index.ts
|
|
2430
2430
|
var _config = {};
|
|
2431
2431
|
function createProgram(config) {
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
"
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
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
|
+
).option(
|
|
2454
|
+
"-t, --tag <string>",
|
|
2455
|
+
`The npm tag to use when fetching the latest version of the package (e.g., "latest", "next", etc.). Defaults to "latest".`,
|
|
2456
|
+
"latest"
|
|
2457
|
+
).option(
|
|
2458
|
+
"-i, --install",
|
|
2459
|
+
"Whether to install the package after updating the version.",
|
|
2460
|
+
false
|
|
2461
|
+
).option("--all", "Whether to update all Storm Software packages.", false).option(
|
|
2462
|
+
"-p, --prefix <string>",
|
|
2463
|
+
`The version prefix to use when updating the package (e.g., "^", "~", or "1.2.3"). Defaults to "^".
|
|
2460
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.
|
|
2461
2465
|
- 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.
|
|
2462
2466
|
- Exact (no prefix): Locks the dependency to a specific version. No updates are allowed. Example: 1.2.3 will only use 1.2.3.
|
|
2463
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.
|
|
2464
2468
|
- Wildcard (*): Allows the most flexibility by accepting any version. Example: \u201C*2.4.6" allows any version.`,
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2469
|
+
"^"
|
|
2470
|
+
).action(updateAction);
|
|
2471
|
+
return program;
|
|
2472
|
+
} catch (error) {
|
|
2473
|
+
writeFatal(
|
|
2474
|
+
`A fatal error occurred while running the Storm pnpm CLI program:
|
|
2475
|
+
|
|
2476
|
+
${error?.message}`,
|
|
2477
|
+
_config
|
|
2478
|
+
);
|
|
2479
|
+
throw new Error(error?.message, { cause: error });
|
|
2480
|
+
}
|
|
2468
2481
|
}
|
|
2469
|
-
async function updateAction(packages
|
|
2482
|
+
async function updateAction(packages, {
|
|
2470
2483
|
tag,
|
|
2471
2484
|
install = false,
|
|
2472
2485
|
all = false,
|
|
2473
2486
|
prefix = "^"
|
|
2474
2487
|
}) {
|
|
2475
2488
|
try {
|
|
2476
|
-
const pkgs = (Array.isArray(packages)
|
|
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("*", ""));
|
|
2477
2490
|
writeInfo(
|
|
2478
2491
|
`${brandIcon(_config)} Preparing to update the package version for ${pkgs.join(", ")}.`,
|
|
2479
2492
|
_config
|
|
@@ -2557,7 +2570,7 @@ ${JSON.stringify(
|
|
|
2557
2570
|
)}`,
|
|
2558
2571
|
_config
|
|
2559
2572
|
);
|
|
2560
|
-
throw new Error(error
|
|
2573
|
+
throw new Error(error?.message, { cause: error });
|
|
2561
2574
|
}
|
|
2562
2575
|
}
|
|
2563
2576
|
|
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.155",
|
|
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.
|
|
77
|
-
"@storm-software/config-tools": "^1.189.
|
|
78
|
-
"@storm-software/npm-tools": "^0.6.
|
|
79
|
-
"@storm-software/package-constants": "^0.1.
|
|
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",
|
|
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": "
|
|
93
|
+
"gitHead": "c3ebb5d4932added529fbce7c5dd3031daf9f84d"
|
|
94
94
|
}
|