@storm-software/workspace-tools 1.289.4 → 1.290.1
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 +36 -0
- package/README.md +1 -1
- package/dist/{chunk-JXPBXBVT.mjs → chunk-M3HC5OLX.mjs} +178 -70
- package/dist/{chunk-QFSU34UE.mjs → chunk-NMQP6WEB.mjs} +1 -1
- package/dist/{chunk-2AMDW3YQ.mjs → chunk-O6WPJVUK.mjs} +1 -1
- package/dist/{chunk-YFBXGVV7.mjs → chunk-S2N7LJJH.mjs} +1 -1
- package/dist/{chunk-LRNWFATF.mjs → chunk-SIJTE7Y2.mjs} +1 -1
- package/dist/{chunk-BSC56LZT.mjs → chunk-W2A22QES.mjs} +1 -1
- package/dist/{chunk-2AWJ2YR5.js → chunk-ZDIU6OXP.js} +184 -76
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +6 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +6 -6
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +1 -1
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +1 -1
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +1 -1
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +1 -1
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +1 -1
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +1 -1
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.mjs +1 -1
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.mjs +1 -1
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.mjs +1 -1
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +1 -1
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.mjs +2 -2
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.js +2 -2
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.290.0](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.290.0) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **conventional-changelog:** Added `minimal` and `monorepo` configs to the
|
|
10
|
+
package
|
|
11
|
+
([4b4809048](https://github.com/storm-software/storm-ops/commit/4b4809048))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Update workspace package links
|
|
16
|
+
([18136e9ad](https://github.com/storm-software/storm-ops/commit/18136e9ad))
|
|
17
|
+
|
|
18
|
+
### Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated pnpm-tools to 0.4.0
|
|
21
|
+
- Updated npm-tools to 0.4.0
|
|
22
|
+
- Updated prettier to 0.56.0
|
|
23
|
+
- Updated esbuild to 0.52.0
|
|
24
|
+
- Updated unbuild to 0.56.0
|
|
25
|
+
|
|
26
|
+
## [1.289.4](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.289.4) (2025-09-18)
|
|
27
|
+
|
|
28
|
+
### Miscellaneous
|
|
29
|
+
|
|
30
|
+
- **monorepo:** Update workspace package links
|
|
31
|
+
([4ecf1952d](https://github.com/storm-software/storm-ops/commit/4ecf1952d))
|
|
32
|
+
|
|
33
|
+
### Updated Dependencies
|
|
34
|
+
|
|
35
|
+
- Updated pnpm-tools to 0.3.4
|
|
36
|
+
- Updated npm-tools to 0.3.4
|
|
37
|
+
- Updated prettier to 0.55.4
|
|
38
|
+
- Updated esbuild to 0.51.4
|
|
39
|
+
- Updated unbuild to 0.55.4
|
|
40
|
+
|
|
5
41
|
## [1.289.3](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.289.3) (2025-09-18)
|
|
6
42
|
|
|
7
43
|
### Miscellaneous
|
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 -->
|
|
@@ -39,8 +39,19 @@ import {
|
|
|
39
39
|
import { resolveLocalPackageDependencies as resolveLocalPackageJsonDependencies } from "@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies";
|
|
40
40
|
import { updateLockFile } from "@nx/js/src/release/utils/update-lock-file";
|
|
41
41
|
|
|
42
|
-
// ../git-tools/dist/chunk-
|
|
43
|
-
var
|
|
42
|
+
// ../git-tools/dist/chunk-5XU2KBM6.js
|
|
43
|
+
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
44
|
+
skip: "press enter to skip",
|
|
45
|
+
max: "must be %d chars at most",
|
|
46
|
+
min: "must be %d chars at least",
|
|
47
|
+
emptyWarning: "can not be empty",
|
|
48
|
+
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
49
|
+
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
50
|
+
closedIssueMessage: "Closes: "
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// ../git-tools/dist/chunk-3GGWHKRP.js
|
|
54
|
+
var DEFAULT_COMMIT_TYPES = {
|
|
44
55
|
/* --- Bumps version when selected --- */
|
|
45
56
|
"chore": {
|
|
46
57
|
"description": "Other changes that don't modify src or test files",
|
|
@@ -169,15 +180,148 @@ var COMMIT_TYPES = {
|
|
|
169
180
|
}
|
|
170
181
|
}
|
|
171
182
|
};
|
|
183
|
+
var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
|
|
184
|
+
Object.entries(DEFAULT_COMMIT_TYPES).reduce(
|
|
185
|
+
(ret, [key, commitType]) => {
|
|
186
|
+
ret[key] = {
|
|
187
|
+
...commitType.changelog,
|
|
188
|
+
type: key,
|
|
189
|
+
section: commitType.changelog?.title || commitType.title,
|
|
190
|
+
hidden: commitType.changelog?.hidden
|
|
191
|
+
};
|
|
192
|
+
return ret;
|
|
193
|
+
},
|
|
194
|
+
{}
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
var CHANGELOG_COMMIT_TYPES = [
|
|
198
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.feat,
|
|
199
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.fix,
|
|
200
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.chore,
|
|
201
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.deps,
|
|
202
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.docs,
|
|
203
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.style,
|
|
204
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
|
|
205
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.perf,
|
|
206
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.build,
|
|
207
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.ci,
|
|
208
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.test
|
|
209
|
+
];
|
|
210
|
+
var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
211
|
+
(entry) => entry.type
|
|
212
|
+
);
|
|
213
|
+
var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
214
|
+
(entry) => entry.section
|
|
215
|
+
);
|
|
216
|
+
var changelogs = {
|
|
217
|
+
props: {
|
|
218
|
+
ignoreCommits: void 0,
|
|
219
|
+
types: CHANGELOG_COMMIT_TYPES,
|
|
220
|
+
bumpStrict: true,
|
|
221
|
+
scope: void 0,
|
|
222
|
+
scopeOnly: false
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
var commitlint = {
|
|
226
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
|
|
227
|
+
rules: {
|
|
228
|
+
"body-leading-blank": [1, "always"],
|
|
229
|
+
"body-max-length": [2, "always", 600],
|
|
230
|
+
"footer-leading-blank": [1, "always"],
|
|
231
|
+
"footer-max-line-length": [2, "always", 150],
|
|
232
|
+
"header-max-length": [2, "always", 150],
|
|
233
|
+
"header-trim": [2, "always"],
|
|
234
|
+
"subject-case": [2, "always", ["sentence-case"]],
|
|
235
|
+
"subject-empty": [2, "never"],
|
|
236
|
+
"subject-full-stop": [2, "never", "."],
|
|
237
|
+
"subject-max-length": [2, "always", 150],
|
|
238
|
+
"subject-min-length": [2, "always", 3],
|
|
239
|
+
"type-case": [2, "always", "kebab-case"],
|
|
240
|
+
"type-empty": [2, "never"],
|
|
241
|
+
"type-enum": [
|
|
242
|
+
2,
|
|
243
|
+
"always",
|
|
244
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
245
|
+
],
|
|
246
|
+
"type-max-length": [2, "always", 20],
|
|
247
|
+
"type-min-length": [2, "always", 3],
|
|
248
|
+
"scope-empty": [2, "always"]
|
|
249
|
+
},
|
|
250
|
+
settings: {
|
|
251
|
+
enableMultipleScopes: false,
|
|
252
|
+
disableEmoji: true,
|
|
253
|
+
breakingChangePrefix: "\u{1F4A3} ",
|
|
254
|
+
closedIssuePrefix: "\u2705 ",
|
|
255
|
+
format: "{type}: {emoji}{subject}"
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
var config = {
|
|
259
|
+
types: DEFAULT_COMMIT_TYPES,
|
|
260
|
+
changelogs,
|
|
261
|
+
commitlint
|
|
262
|
+
};
|
|
263
|
+
var minimal_default = config;
|
|
264
|
+
var changelogs2 = {
|
|
265
|
+
props: {
|
|
266
|
+
ignoreCommits: void 0,
|
|
267
|
+
types: CHANGELOG_COMMIT_TYPES,
|
|
268
|
+
bumpStrict: true,
|
|
269
|
+
scope: ["monorepo"],
|
|
270
|
+
scopeOnly: true
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
var commitlint2 = {
|
|
274
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
|
|
275
|
+
rules: {
|
|
276
|
+
"body-leading-blank": [1, "always"],
|
|
277
|
+
"body-max-length": [2, "always", 600],
|
|
278
|
+
"footer-leading-blank": [1, "always"],
|
|
279
|
+
"footer-max-line-length": [2, "always", 150],
|
|
280
|
+
"header-max-length": [2, "always", 150],
|
|
281
|
+
"header-trim": [2, "always"],
|
|
282
|
+
"subject-case": [2, "always", ["sentence-case"]],
|
|
283
|
+
"subject-empty": [2, "never"],
|
|
284
|
+
"subject-full-stop": [2, "never", "."],
|
|
285
|
+
"subject-max-length": [2, "always", 150],
|
|
286
|
+
"subject-min-length": [2, "always", 3],
|
|
287
|
+
"type-case": [2, "always", "kebab-case"],
|
|
288
|
+
"type-empty": [2, "never"],
|
|
289
|
+
"type-enum": [
|
|
290
|
+
2,
|
|
291
|
+
"always",
|
|
292
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
293
|
+
],
|
|
294
|
+
"type-max-length": [2, "always", 20],
|
|
295
|
+
"type-min-length": [2, "always", 3],
|
|
296
|
+
"scope-case": [2, "always", ["kebab-case"]],
|
|
297
|
+
"scope-empty": [2, "never"]
|
|
298
|
+
},
|
|
299
|
+
settings: {
|
|
300
|
+
enableMultipleScopes: false,
|
|
301
|
+
disableEmoji: true,
|
|
302
|
+
breakingChangePrefix: "\u{1F4A3} ",
|
|
303
|
+
closedIssuePrefix: "\u2705 ",
|
|
304
|
+
format: "{type}({scope}): {emoji}{subject}"
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
var config2 = {
|
|
308
|
+
types: DEFAULT_COMMIT_TYPES,
|
|
309
|
+
changelogs: changelogs2,
|
|
310
|
+
commitlint: commitlint2
|
|
311
|
+
};
|
|
312
|
+
var monorepo_default = config2;
|
|
313
|
+
var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
|
|
314
|
+
|
|
315
|
+
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
172
316
|
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
173
317
|
type: {
|
|
174
318
|
type: "select",
|
|
175
319
|
title: "Commit Type",
|
|
176
320
|
description: "Select the commit type that best describes your changes",
|
|
177
|
-
enum: Object.keys(
|
|
178
|
-
(type) =>
|
|
321
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
322
|
+
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
179
323
|
).reduce((ret, type) => {
|
|
180
|
-
ret[type] =
|
|
324
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
181
325
|
return ret;
|
|
182
326
|
}, {}),
|
|
183
327
|
defaultValue: "chore",
|
|
@@ -226,6 +370,14 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
|
226
370
|
minLength: 3
|
|
227
371
|
}
|
|
228
372
|
};
|
|
373
|
+
var config3 = {
|
|
374
|
+
settings: COMMIT_CONFIGS.minimal.commitlint.settings,
|
|
375
|
+
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
376
|
+
questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
|
|
377
|
+
types: DEFAULT_COMMIT_TYPES
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
229
381
|
var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
230
382
|
type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
|
|
231
383
|
scope: {
|
|
@@ -244,61 +396,17 @@ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
|
244
396
|
isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
|
|
245
397
|
issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
|
|
246
398
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
"header-max-length": [2, "always", 150],
|
|
253
|
-
"header-trim": [2, "always"],
|
|
254
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
255
|
-
"subject-empty": [2, "never"],
|
|
256
|
-
"subject-full-stop": [2, "never", "."],
|
|
257
|
-
"subject-max-length": [2, "always", 150],
|
|
258
|
-
"subject-min-length": [2, "always", 3],
|
|
259
|
-
"type-case": [2, "always", "kebab-case"],
|
|
260
|
-
"type-empty": [2, "never"],
|
|
261
|
-
"type-enum": [
|
|
262
|
-
2,
|
|
263
|
-
"always",
|
|
264
|
-
Object.keys(COMMIT_TYPES)
|
|
265
|
-
],
|
|
266
|
-
"type-max-length": [2, "always", 20],
|
|
267
|
-
"type-min-length": [2, "always", 3],
|
|
268
|
-
"scope-empty": 0,
|
|
269
|
-
"scope-case": 0,
|
|
270
|
-
"scope-enum": 0
|
|
271
|
-
/* Disabled */
|
|
272
|
-
};
|
|
273
|
-
var DEFAULT_MONOREPO_COMMIT_RULES = {
|
|
274
|
-
"body-leading-blank": [1, "always"],
|
|
275
|
-
"body-max-length": [2, "always", 600],
|
|
276
|
-
"footer-leading-blank": [1, "always"],
|
|
277
|
-
"footer-max-line-length": [2, "always", 150],
|
|
278
|
-
"header-max-length": [2, "always", 150],
|
|
279
|
-
"header-trim": [2, "always"],
|
|
280
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
281
|
-
"subject-empty": [2, "never"],
|
|
282
|
-
"subject-full-stop": [2, "never", "."],
|
|
283
|
-
"subject-max-length": [2, "always", 150],
|
|
284
|
-
"subject-min-length": [2, "always", 3],
|
|
285
|
-
"type-case": [2, "always", "kebab-case"],
|
|
286
|
-
"type-empty": [2, "never"],
|
|
287
|
-
"type-enum": [
|
|
288
|
-
2,
|
|
289
|
-
"always",
|
|
290
|
-
Object.keys(COMMIT_TYPES)
|
|
291
|
-
],
|
|
292
|
-
"type-max-length": [2, "always", 20],
|
|
293
|
-
"type-min-length": [2, "always", 3],
|
|
294
|
-
"scope-case": [2, "always", ["kebab-case"]],
|
|
295
|
-
"scope-empty": [2, "never"]
|
|
399
|
+
var config4 = {
|
|
400
|
+
settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
|
|
401
|
+
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
402
|
+
questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
403
|
+
types: DEFAULT_COMMIT_TYPES
|
|
296
404
|
};
|
|
297
405
|
|
|
298
|
-
// ../git-tools/dist/chunk-
|
|
406
|
+
// ../git-tools/dist/chunk-YCEUZFMU.js
|
|
299
407
|
var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
|
|
300
408
|
questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
301
|
-
types:
|
|
409
|
+
types: DEFAULT_COMMIT_TYPES
|
|
302
410
|
};
|
|
303
411
|
|
|
304
412
|
// src/generators/release-version/generator.ts
|
|
@@ -320,19 +428,19 @@ import {
|
|
|
320
428
|
} from "nx/src/command-line/release/version-legacy";
|
|
321
429
|
import { interpolate } from "nx/src/tasks-runner/utils";
|
|
322
430
|
import { prerelease } from "semver";
|
|
323
|
-
async function releaseVersionGeneratorFn(tree, options,
|
|
431
|
+
async function releaseVersionGeneratorFn(tree, options, config5) {
|
|
324
432
|
writeInfo(`\u26A1 Running the Storm Release Version generator...
|
|
325
433
|
|
|
326
|
-
`,
|
|
434
|
+
`, config5);
|
|
327
435
|
const stopwatch = getStopwatch("Storm Release Version generator");
|
|
328
436
|
try {
|
|
329
437
|
const workspaceRoot = findWorkspaceRoot();
|
|
330
438
|
writeDebug(
|
|
331
439
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
332
440
|
- workspaceRoot: ${workspaceRoot}`,
|
|
333
|
-
|
|
441
|
+
config5
|
|
334
442
|
);
|
|
335
|
-
|
|
443
|
+
config5 = await getConfig(workspaceRoot);
|
|
336
444
|
writeTrace(
|
|
337
445
|
`Generator schema options \u2699\uFE0F
|
|
338
446
|
${Object.keys(options ?? {}).filter(
|
|
@@ -343,7 +451,7 @@ ${Object.keys(options ?? {}).filter(
|
|
|
343
451
|
"currentVersionResolverMetadata"
|
|
344
452
|
].includes(key)
|
|
345
453
|
).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
346
|
-
|
|
454
|
+
config5
|
|
347
455
|
);
|
|
348
456
|
const versionData = {};
|
|
349
457
|
if (options.specifier) {
|
|
@@ -367,8 +475,8 @@ Valid values are: ${validReleaseVersionPrefixes.map((s) => `"${s}"`).join(", ")}
|
|
|
367
475
|
options.currentVersionResolver ??= "git-tag";
|
|
368
476
|
const projects = options.projects;
|
|
369
477
|
const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {
|
|
370
|
-
if (projectNode?.data?.root ===
|
|
371
|
-
return
|
|
478
|
+
if (projectNode?.data?.root === config5?.workspaceRoot || projectNode?.data?.root === ".") {
|
|
479
|
+
return config5?.workspaceRoot ?? findWorkspaceRoot();
|
|
372
480
|
}
|
|
373
481
|
if (!customPackageRoot) {
|
|
374
482
|
return projectNode.data.root;
|
|
@@ -410,13 +518,13 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
410
518
|
);
|
|
411
519
|
}
|
|
412
520
|
const workspaceRelativePackagePath = relative(
|
|
413
|
-
|
|
521
|
+
config5?.workspaceRoot ?? findWorkspaceRoot(),
|
|
414
522
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
415
523
|
);
|
|
416
524
|
const log = (msg) => {
|
|
417
|
-
writeInfo(`${projectName}: ${msg}`,
|
|
525
|
+
writeInfo(`${projectName}: ${msg}`, config5);
|
|
418
526
|
};
|
|
419
|
-
writeInfo(`Running release version for project: ${project.name}`,
|
|
527
|
+
writeInfo(`Running release version for project: ${project.name}`, config5);
|
|
420
528
|
let packageName;
|
|
421
529
|
let currentVersionFromDisk;
|
|
422
530
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -644,7 +752,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
644
752
|
tree,
|
|
645
753
|
options.projectGraph,
|
|
646
754
|
projects.filter(
|
|
647
|
-
(project2) => project2?.data?.root && project2?.data?.root !==
|
|
755
|
+
(project2) => project2?.data?.root && project2?.data?.root !== config5?.workspaceRoot
|
|
648
756
|
),
|
|
649
757
|
projectNameToPackageRootMap,
|
|
650
758
|
resolvePackageRoot,
|
|
@@ -796,7 +904,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
796
904
|
writeSuccess(
|
|
797
905
|
`Completed running the Storm Release Version generator!
|
|
798
906
|
`,
|
|
799
|
-
|
|
907
|
+
config5
|
|
800
908
|
);
|
|
801
909
|
return {
|
|
802
910
|
data: versionData,
|
|
@@ -834,13 +942,13 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
834
942
|
} catch (error) {
|
|
835
943
|
writeFatal(
|
|
836
944
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
837
|
-
|
|
945
|
+
config5
|
|
838
946
|
);
|
|
839
947
|
writeError(
|
|
840
948
|
`An exception was thrown in the Storm Release Version generator's process
|
|
841
949
|
- Details: ${error.message}
|
|
842
950
|
- Stacktrace: ${error.stack}`,
|
|
843
|
-
|
|
951
|
+
config5
|
|
844
952
|
);
|
|
845
953
|
throw new Error(
|
|
846
954
|
`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__fa5acda50dbe19817dbc1cdda69071eb/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|