@storm-software/pnpm-tools 0.4.1 → 0.4.2
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 +18 -0
- package/bin/pnpm.cjs +6 -7
- package/bin/pnpm.js +6 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pnpm Tools
|
|
4
4
|
|
|
5
|
+
## [0.4.1](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.4.1) (2025-09-19)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **pnpm-tools:** Resolve issue parsing the `name` command-line argument
|
|
10
|
+
([532d37c75](https://github.com/storm-software/storm-ops/commit/532d37c75))
|
|
11
|
+
|
|
12
|
+
### Miscellaneous
|
|
13
|
+
|
|
14
|
+
- **monorepo:** Update workspace package links
|
|
15
|
+
([8cd386592](https://github.com/storm-software/storm-ops/commit/8cd386592))
|
|
16
|
+
|
|
17
|
+
### Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated config-tools to 1.186.1
|
|
20
|
+
- Updated npm-tools to 0.4.1
|
|
21
|
+
- Updated config to 1.132.1
|
|
22
|
+
|
|
5
23
|
## [0.4.0](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.4.0) (2025-09-18)
|
|
6
24
|
|
|
7
25
|
### Features
|
package/bin/pnpm.cjs
CHANGED
|
@@ -122,7 +122,7 @@ async function upgradeCatalogPackage(packageName, options = {}) {
|
|
|
122
122
|
var _config = {};
|
|
123
123
|
function createProgram(config) {
|
|
124
124
|
_config = config;
|
|
125
|
-
(0, import_config_tools.writeInfo)("\u26A1 Running
|
|
125
|
+
(0, import_config_tools.writeInfo)("\u26A1 Running the `storm-pnpm` command-line application", config);
|
|
126
126
|
const root = (0, import_config_tools.findWorkspaceRootSafe)(process.cwd());
|
|
127
127
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
128
128
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
@@ -133,7 +133,7 @@ function createProgram(config) {
|
|
|
133
133
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
134
134
|
program.command("update").description("Update pnpm catalog dependency package version.").addArgument(
|
|
135
135
|
new import_commander.Argument(
|
|
136
|
-
"<name>",
|
|
136
|
+
"<package-name>",
|
|
137
137
|
"The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ for all Storm packages)."
|
|
138
138
|
)
|
|
139
139
|
).option(
|
|
@@ -143,13 +143,12 @@ function createProgram(config) {
|
|
|
143
143
|
).action(updateAction);
|
|
144
144
|
return program;
|
|
145
145
|
}
|
|
146
|
-
async function updateAction({
|
|
147
|
-
name,
|
|
146
|
+
async function updateAction(packageName, {
|
|
148
147
|
tag
|
|
149
148
|
}) {
|
|
150
149
|
try {
|
|
151
150
|
(0, import_config_tools.writeInfo)(
|
|
152
|
-
`\u26A1 Preparing to update the package version for ${
|
|
151
|
+
`\u26A1 Preparing to update the package version for ${packageName}. Please provide the requested details below...`,
|
|
153
152
|
_config
|
|
154
153
|
);
|
|
155
154
|
const catalog = await getCatalog();
|
|
@@ -159,11 +158,11 @@ async function updateAction({
|
|
|
159
158
|
);
|
|
160
159
|
}
|
|
161
160
|
const matchedPackages = Object.keys(catalog).filter(
|
|
162
|
-
(pkg) =>
|
|
161
|
+
(pkg) => packageName.endsWith("/") ? pkg.startsWith(packageName) : pkg === packageName
|
|
163
162
|
);
|
|
164
163
|
if (matchedPackages.length === 0) {
|
|
165
164
|
throw new Error(
|
|
166
|
-
`No packages found in the catalog matching the name/pattern "${
|
|
165
|
+
`No packages found in the catalog matching the name/pattern "${packageName}".`
|
|
167
166
|
);
|
|
168
167
|
}
|
|
169
168
|
await Promise.all(
|
package/bin/pnpm.js
CHANGED
|
@@ -131,7 +131,7 @@ async function upgradeCatalogPackage(packageName, options = {}) {
|
|
|
131
131
|
var _config = {};
|
|
132
132
|
function createProgram(config) {
|
|
133
133
|
_config = config;
|
|
134
|
-
writeInfo("\u26A1 Running
|
|
134
|
+
writeInfo("\u26A1 Running the `storm-pnpm` command-line application", config);
|
|
135
135
|
const root = findWorkspaceRootSafe(process.cwd());
|
|
136
136
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
137
137
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
@@ -142,7 +142,7 @@ function createProgram(config) {
|
|
|
142
142
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
143
143
|
program.command("update").description("Update pnpm catalog dependency package version.").addArgument(
|
|
144
144
|
new Argument(
|
|
145
|
-
"<name>",
|
|
145
|
+
"<package-name>",
|
|
146
146
|
"The package name/pattern to update the version for (e.g., @storm-software/config or @storm-software/ for all Storm packages)."
|
|
147
147
|
)
|
|
148
148
|
).option(
|
|
@@ -152,13 +152,12 @@ function createProgram(config) {
|
|
|
152
152
|
).action(updateAction);
|
|
153
153
|
return program;
|
|
154
154
|
}
|
|
155
|
-
async function updateAction({
|
|
156
|
-
name,
|
|
155
|
+
async function updateAction(packageName, {
|
|
157
156
|
tag
|
|
158
157
|
}) {
|
|
159
158
|
try {
|
|
160
159
|
writeInfo(
|
|
161
|
-
`\u26A1 Preparing to update the package version for ${
|
|
160
|
+
`\u26A1 Preparing to update the package version for ${packageName}. Please provide the requested details below...`,
|
|
162
161
|
_config
|
|
163
162
|
);
|
|
164
163
|
const catalog = await getCatalog();
|
|
@@ -168,11 +167,11 @@ async function updateAction({
|
|
|
168
167
|
);
|
|
169
168
|
}
|
|
170
169
|
const matchedPackages = Object.keys(catalog).filter(
|
|
171
|
-
(pkg) =>
|
|
170
|
+
(pkg) => packageName.endsWith("/") ? pkg.startsWith(packageName) : pkg === packageName
|
|
172
171
|
);
|
|
173
172
|
if (matchedPackages.length === 0) {
|
|
174
173
|
throw new Error(
|
|
175
|
-
`No packages found in the catalog matching the name/pattern "${
|
|
174
|
+
`No packages found in the catalog matching the name/pattern "${packageName}".`
|
|
176
175
|
);
|
|
177
176
|
}
|
|
178
177
|
await Promise.all(
|
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.2",
|
|
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": {
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"@pnpm/plugin-better-defaults": "^0.2.1",
|
|
91
91
|
"@pnpm/plugin-esm-node-path": "^0.1.2",
|
|
92
92
|
"@storm-software/config": "^1.132.1",
|
|
93
|
-
"@storm-software/config-tools": "^1.186.
|
|
94
|
-
"@storm-software/npm-tools": "^0.4.
|
|
93
|
+
"@storm-software/config-tools": "^1.186.2",
|
|
94
|
+
"@storm-software/npm-tools": "^0.4.2",
|
|
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": "a27048aa8969fb416f5fbf25265feaeceb2805f0"
|
|
109
109
|
}
|