@storm-software/workspace-tools 1.277.33 → 1.277.35
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/dist/{chunk-UXALGSQC.js → chunk-334J5IXK.js} +2 -2
- package/dist/{chunk-3TYXXJKV.js → chunk-4DLKOUQA.js} +2 -2
- package/dist/{chunk-R7DNGWVO.js → chunk-5BOL6D4L.js} +2 -2
- package/dist/{chunk-S2N53PIP.js → chunk-5L75MUAB.js} +2 -2
- package/dist/{chunk-ZFA26D42.mjs → chunk-7BLTZYJ3.mjs} +1 -1
- package/dist/{chunk-J2Z4WP3E.js → chunk-A77PFJ72.js} +2 -2
- package/dist/{chunk-6WBXO6UH.js → chunk-BWPSZXXW.js} +2 -2
- package/dist/{chunk-KZIA4CGL.js → chunk-CBPC6BVR.js} +24 -24
- package/dist/{chunk-SW2AFRXA.mjs → chunk-D4QG6XOG.mjs} +1 -1
- package/dist/{chunk-EUWPFP5C.mjs → chunk-DYIS436F.mjs} +1 -1
- package/dist/{chunk-K262HGVZ.mjs → chunk-ENPVXQZG.mjs} +1 -1
- package/dist/{chunk-3ZBMLG4D.mjs → chunk-FHBOYSRN.mjs} +17 -13
- package/dist/{chunk-PGIUP33N.mjs → chunk-FI4YJWQR.mjs} +4 -4
- package/dist/{chunk-QPCOSMXY.mjs → chunk-G4AFFXLB.mjs} +2 -2
- package/dist/{chunk-XBRR6YS3.js → chunk-GWJER63Y.js} +2 -2
- package/dist/{chunk-4WHSR4FK.js → chunk-HNFKVXBV.js} +0 -1
- package/dist/{chunk-6UFOMB3R.mjs → chunk-HTECEOBH.mjs} +40 -41
- package/dist/{chunk-NFK6PGAC.mjs → chunk-I2JPIOP6.mjs} +1 -1
- package/dist/{chunk-6XYAQUU3.js → chunk-IEZIXYOC.js} +26 -26
- package/dist/{chunk-GH5ABWPU.mjs → chunk-IMF332I2.mjs} +1 -1
- package/dist/{chunk-ABUZEUF7.js → chunk-IQCBMNCA.js} +2 -2
- package/dist/{chunk-ZRTYYXDL.mjs → chunk-K42K44IQ.mjs} +3 -3
- package/dist/{chunk-E566KBB3.js → chunk-KE2XVUHC.js} +5 -5
- package/dist/{chunk-VLOTOQYE.mjs → chunk-KLAMLNPM.mjs} +1 -1
- package/dist/{chunk-X6PHOMFB.mjs → chunk-KYGWN2MB.mjs} +1 -1
- package/dist/{chunk-NQ525HTH.mjs → chunk-L4RTU5C6.mjs} +4 -4
- package/dist/{chunk-LSF4BHCI.mjs → chunk-M5Z57CUO.mjs} +0 -1
- package/dist/{chunk-AQOT2IAM.js → chunk-MOD3ND43.js} +34 -34
- package/dist/{chunk-V5564COA.mjs → chunk-MY3L5HV6.mjs} +4 -4
- package/dist/{chunk-EC7YQEHT.js → chunk-NPYZUWJH.js} +2 -2
- package/dist/{chunk-5VY5IBBQ.js → chunk-NSSJMQFD.js} +16 -12
- package/dist/{chunk-RVJSZ7SI.js → chunk-NYAM2TPQ.js} +4 -4
- package/dist/{chunk-VRPEYRWI.mjs → chunk-OKEHKFS6.mjs} +1 -1
- package/dist/{chunk-L4NCVOB5.mjs → chunk-OWKH2ZBQ.mjs} +1 -1
- package/dist/{chunk-OQUI7H7Z.js → chunk-P7VPITZA.js} +2 -2
- package/dist/{chunk-V53473BD.js → chunk-Q4VGUJQZ.js} +2 -2
- package/dist/{chunk-Q7MIY2SX.mjs → chunk-QGUKFIB7.mjs} +1 -1
- package/dist/{chunk-XPFT4BMH.mjs → chunk-QMELEYB5.mjs} +1 -1
- package/dist/{chunk-65P2PGPR.js → chunk-QSAXCKSA.js} +5 -5
- package/dist/{chunk-3OVLNULV.js → chunk-S62KQPMR.js} +2 -2
- package/dist/{chunk-7IPJE3E3.mjs → chunk-T3MDVD7M.mjs} +4 -4
- package/dist/{chunk-PPMPCT7K.mjs → chunk-T5J6PFWJ.mjs} +2 -2
- package/dist/{chunk-7YUXBCFS.js → chunk-TXFPVY55.js} +11 -11
- package/dist/{chunk-A5CKB6IJ.js → chunk-UZ63ALZQ.js} +2 -2
- package/dist/{chunk-HWCERW6A.mjs → chunk-V3O4MYED.mjs} +1 -1
- package/dist/{chunk-BDA4N25E.js → chunk-VK52Z2DT.js} +25 -25
- package/dist/{chunk-YDXXSCNG.mjs → chunk-VZTL36R3.mjs} +1 -1
- package/dist/{chunk-ZLVVUMYO.js → chunk-WJ47CTAU.js} +2 -2
- package/dist/{chunk-3CPOV3N6.mjs → chunk-WMOEEQFZ.mjs} +1 -1
- package/dist/{chunk-TJ3JPU6C.js → chunk-X5VVVLBK.js} +2 -2
- package/dist/{chunk-BP22TRDI.js → chunk-X5WLGOL5.js} +2 -2
- package/dist/{chunk-55FODDLQ.mjs → chunk-XSLQUWWH.mjs} +2 -2
- package/dist/{chunk-3VAHUUNQ.mjs → chunk-XYJH3GTI.mjs} +1 -1
- package/dist/{chunk-6RHHYXZE.mjs → chunk-Y6HJGXM6.mjs} +1 -1
- package/dist/{chunk-QEU3B4T6.js → chunk-YQHPAR7K.js} +21 -21
- package/dist/{chunk-JRQIA2WV.js → chunk-YWOZ2IOU.js} +2 -2
- package/dist/{chunk-PG7GBHUM.mjs → chunk-ZB76VIIN.mjs} +2 -2
- package/dist/{chunk-TZJGO4US.js → chunk-ZX3GIY5S.js} +40 -41
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +23 -23
- package/dist/generators.js +14 -14
- package/dist/generators.mjs +16 -16
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -30
- package/dist/index.mjs +40 -38
- package/dist/src/base/base-executor.js +6 -6
- package/dist/src/base/base-executor.mjs +5 -5
- package/dist/src/base/base-generator.js +6 -6
- package/dist/src/base/base-generator.mjs +5 -5
- package/dist/src/base/index.js +7 -7
- package/dist/src/base/index.mjs +6 -6
- package/dist/src/executors/cargo-build/executor.js +7 -7
- package/dist/src/executors/cargo-build/executor.mjs +6 -6
- package/dist/src/executors/cargo-check/executor.js +7 -7
- package/dist/src/executors/cargo-check/executor.mjs +6 -6
- package/dist/src/executors/cargo-clippy/executor.js +7 -7
- package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
- package/dist/src/executors/cargo-doc/executor.js +7 -7
- package/dist/src/executors/cargo-doc/executor.mjs +6 -6
- package/dist/src/executors/cargo-format/executor.js +7 -7
- package/dist/src/executors/cargo-format/executor.mjs +6 -6
- package/dist/src/executors/cargo-publish/executor.js +5 -5
- package/dist/src/executors/cargo-publish/executor.mjs +4 -4
- package/dist/src/executors/clean-package/executor.js +8 -8
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +7 -7
- package/dist/src/executors/esbuild/executor.mjs +6 -6
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/typia/executor.js +7 -7
- package/dist/src/executors/typia/executor.mjs +6 -6
- package/dist/src/executors/unbuild/executor.js +7 -7
- package/dist/src/executors/unbuild/executor.mjs +6 -6
- package/dist/src/generators/browser-library/generator.js +7 -7
- package/dist/src/generators/browser-library/generator.mjs +6 -6
- package/dist/src/generators/config-schema/generator.js +7 -7
- package/dist/src/generators/config-schema/generator.mjs +6 -6
- package/dist/src/generators/neutral-library/generator.js +7 -7
- package/dist/src/generators/neutral-library/generator.mjs +6 -6
- package/dist/src/generators/node-library/generator.js +7 -7
- package/dist/src/generators/node-library/generator.mjs +6 -6
- package/dist/src/generators/preset/generator.js +7 -7
- package/dist/src/generators/preset/generator.mjs +6 -6
- package/dist/src/generators/release-version/generator.js +6 -6
- package/dist/src/generators/release-version/generator.mjs +5 -5
- package/dist/src/plugins/typescript/index.js +3 -3
- package/dist/src/plugins/typescript/index.mjs +2 -2
- package/dist/src/plugins/typescript/project-config.js +3 -3
- package/dist/src/plugins/typescript/project-config.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.js +22 -19
- package/dist/src/plugins/typescript/tsup.mjs +21 -18
- package/dist/src/plugins/typescript/untyped-schema.js +18 -15
- package/dist/src/plugins/typescript/untyped-schema.mjs +18 -15
- package/dist/src/utils/apply-workspace-tokens.js +3 -3
- package/dist/src/utils/apply-workspace-tokens.mjs +2 -2
- package/dist/src/utils/get-project-configurations.js +3 -3
- package/dist/src/utils/get-project-configurations.mjs +2 -2
- package/dist/src/utils/index.d.mts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +10 -8
- package/dist/src/utils/index.mjs +10 -8
- package/dist/src/utils/package-helpers.js +5 -5
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.d.mts +7 -6
- package/dist/src/utils/plugin-helpers.d.ts +7 -6
- package/dist/src/utils/plugin-helpers.js +4 -2
- package/dist/src/utils/plugin-helpers.mjs +5 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.277.34](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.34) (2025-08-02)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **git-tools:** Resolve issue with missing external dependencies
|
|
10
|
+
([d47adff14](https://github.com/storm-software/storm-ops/commit/d47adff14))
|
|
11
|
+
|
|
12
|
+
### Miscellaneous
|
|
13
|
+
|
|
14
|
+
- **monorepo:** Regenerate README markdown files
|
|
15
|
+
([b867380ec](https://github.com/storm-software/storm-ops/commit/b867380ec))
|
|
16
|
+
|
|
17
|
+
### Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated prettier to 0.51.59
|
|
20
|
+
- Updated esbuild to 0.45.47
|
|
21
|
+
- Updated unbuild to 0.49.58
|
|
22
|
+
|
|
23
|
+
## [1.277.33](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.33) (2025-08-01)
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
- **git-tools:** Update `package.json` to ensure external dependencies are
|
|
28
|
+
installed
|
|
29
|
+
([506a0cf30](https://github.com/storm-software/storm-ops/commit/506a0cf30))
|
|
30
|
+
|
|
31
|
+
### Updated Dependencies
|
|
32
|
+
|
|
33
|
+
- Updated prettier to 0.51.58
|
|
34
|
+
- Updated esbuild to 0.45.46
|
|
35
|
+
- Updated unbuild to 0.49.57
|
|
36
|
+
|
|
5
37
|
## [1.277.32](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.32) (2025-08-01)
|
|
6
38
|
|
|
7
39
|
### 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 -->
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkX5WLGOL5js = require('./chunk-X5WLGOL5.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunkX5WLGOL5js.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
|
|
4
4
|
|
|
5
5
|
// src/utils/apply-workspace-tokens.ts
|
|
6
6
|
var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
@@ -51,7 +51,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
52
|
result = result.replaceAll(
|
|
53
53
|
"{workspaceRoot}",
|
|
54
|
-
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
54
|
+
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, )))
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
return result;
|
|
@@ -7,7 +7,7 @@ var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkYQHPAR7Kjs = require('./chunk-YQHPAR7K.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -59,7 +59,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkYQHPAR7Kjs.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIEZIXYOCjs = require('./chunk-IEZIXYOC.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkIEZIXYOCjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
6
6
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -37,7 +37,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
37
37
|
if (result.includes("{workspaceRoot}")) {
|
|
38
38
|
result = result.replaceAll(
|
|
39
39
|
"{workspaceRoot}",
|
|
40
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => (
|
|
40
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, )))
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
return result;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIEZIXYOCjs = require('./chunk-IEZIXYOC.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkIEZIXYOCjs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk334J5IXKjs = require('./chunk-334J5IXK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkVK52Z2DTjs = require('./chunk-VK52Z2DT.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,10 +15,10 @@ var _chunkBDA4N25Ejs = require('./chunk-BDA4N25E.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkX5WLGOL5js = require('./chunk-X5WLGOL5.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
|
|
22
22
|
|
|
23
23
|
// src/generators/release-version/generator.ts
|
|
24
24
|
|
|
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
255
255
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
256
256
|
var _semver3 = require('semver');
|
|
257
257
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
258
|
-
|
|
258
|
+
_chunkX5WLGOL5js.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
259
259
|
|
|
260
260
|
`, config);
|
|
261
|
-
const stopwatch =
|
|
261
|
+
const stopwatch = _chunkX5WLGOL5js.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
262
262
|
try {
|
|
263
|
-
const workspaceRoot =
|
|
264
|
-
|
|
263
|
+
const workspaceRoot = _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, );
|
|
264
|
+
_chunkX5WLGOL5js.writeDebug.call(void 0,
|
|
265
265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
266
266
|
- workspaceRoot: ${workspaceRoot}`,
|
|
267
267
|
config
|
|
268
268
|
);
|
|
269
|
-
config = await
|
|
270
|
-
|
|
269
|
+
config = await _chunkVK52Z2DTjs.getConfig.call(void 0, workspaceRoot);
|
|
270
|
+
_chunkX5WLGOL5js.writeTrace.call(void 0,
|
|
271
271
|
`Generator schema options \u2699\uFE0F
|
|
272
272
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
273
273
|
(key) => ![
|
|
@@ -302,7 +302,7 @@ Valid values are: ${_versionlegacy.validReleaseVersionPrefixes.map((s) => `"${s}
|
|
|
302
302
|
const projects = options.projects;
|
|
303
303
|
const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {
|
|
304
304
|
if (_optionalChain([projectNode, 'optionalAccess', _3 => _3.data, 'optionalAccess', _4 => _4.root]) === _optionalChain([config, 'optionalAccess', _5 => _5.workspaceRoot]) || _optionalChain([projectNode, 'optionalAccess', _6 => _6.data, 'optionalAccess', _7 => _7.root]) === ".") {
|
|
305
|
-
return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => (
|
|
305
|
+
return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => ( _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, )));
|
|
306
306
|
}
|
|
307
307
|
if (!customPackageRoot) {
|
|
308
308
|
return projectNode.data.root;
|
|
@@ -344,13 +344,13 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
const workspaceRelativePackagePath = _path.relative.call(void 0,
|
|
347
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => (
|
|
347
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, ))),
|
|
348
348
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
349
349
|
);
|
|
350
350
|
const log = (msg) => {
|
|
351
|
-
|
|
351
|
+
_chunkX5WLGOL5js.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
_chunkX5WLGOL5js.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
354
354
|
let packageName;
|
|
355
355
|
let currentVersionFromDisk;
|
|
356
356
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
361
361
|
packageName = projectPackageJson.name;
|
|
362
362
|
currentVersionFromDisk = projectPackageJson.version;
|
|
363
363
|
} else if (tree.exists(cargoTomlPath)) {
|
|
364
|
-
const cargoToml =
|
|
364
|
+
const cargoToml = _chunk334J5IXKjs.parseCargoToml.call(void 0,
|
|
365
365
|
_optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
|
|
366
366
|
);
|
|
367
367
|
log(
|
|
@@ -636,12 +636,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
636
636
|
version: newVersion
|
|
637
637
|
});
|
|
638
638
|
} else if (tree.exists(cargoTomlPath)) {
|
|
639
|
-
const cargoToml =
|
|
639
|
+
const cargoToml = _chunk334J5IXKjs.parseCargoToml.call(void 0,
|
|
640
640
|
_optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
|
|
641
641
|
);
|
|
642
642
|
cargoToml.package ??= {};
|
|
643
643
|
cargoToml.package.version = newVersion;
|
|
644
|
-
tree.write(cargoTomlPath,
|
|
644
|
+
tree.write(cargoTomlPath, _chunk334J5IXKjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
645
645
|
}
|
|
646
646
|
log(
|
|
647
647
|
`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
|
|
@@ -689,7 +689,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
689
689
|
return json;
|
|
690
690
|
});
|
|
691
691
|
} else if (tree.exists(dependentCargoTomlPath)) {
|
|
692
|
-
const dependentPkg =
|
|
692
|
+
const dependentPkg = _chunk334J5IXKjs.parseCargoTomlWithTree.call(void 0,
|
|
693
693
|
tree,
|
|
694
694
|
dependentPackageRoot,
|
|
695
695
|
dependentProject.source
|
|
@@ -731,18 +731,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
731
731
|
dependentPackageRoot,
|
|
732
732
|
"Cargo.toml"
|
|
733
733
|
);
|
|
734
|
-
|
|
734
|
+
_chunk334J5IXKjs.modifyCargoTable.call(void 0,
|
|
735
735
|
dependentPkg,
|
|
736
736
|
dependentProject.dependencyCollection,
|
|
737
737
|
dependentProject.target,
|
|
738
738
|
updatedDependencyData
|
|
739
739
|
);
|
|
740
|
-
tree.write(cargoTomlToUpdate,
|
|
740
|
+
tree.write(cargoTomlToUpdate, _chunk334J5IXKjs.stringifyCargoToml.call(void 0, dependentPkg));
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
await _devkit.formatFiles.call(void 0, tree);
|
|
745
|
-
|
|
745
|
+
_chunkX5WLGOL5js.writeSuccess.call(void 0,
|
|
746
746
|
`Completed running the Storm Release Version generator!
|
|
747
747
|
`,
|
|
748
748
|
config
|
|
@@ -781,11 +781,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
} catch (error) {
|
|
784
|
-
|
|
784
|
+
_chunkX5WLGOL5js.writeFatal.call(void 0,
|
|
785
785
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
786
786
|
config
|
|
787
787
|
);
|
|
788
|
-
|
|
788
|
+
_chunkX5WLGOL5js.writeError.call(void 0,
|
|
789
789
|
`An exception was thrown in the Storm Release Version generator's process
|
|
790
790
|
- Details: ${error.message}
|
|
791
791
|
- Stacktrace: ${error.stack}`,
|
|
@@ -884,7 +884,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
|
|
|
884
884
|
`The project "${dep.target}" does not have a packageRoot available.`
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
|
-
const cargoToml =
|
|
887
|
+
const cargoToml = _chunk334J5IXKjs.parseCargoTomlWithTree.call(void 0,
|
|
888
888
|
tree,
|
|
889
889
|
resolvePackageRoot(projectNode),
|
|
890
890
|
projectNode.name
|
|
@@ -4,11 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-F66XEAID.mjs";
|
|
5
5
|
|
|
6
6
|
// src/utils/plugin-helpers.ts
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
readJsonFile
|
|
9
|
+
} from "@nx/devkit";
|
|
8
10
|
import defu from "defu";
|
|
9
11
|
import { existsSync } from "node:fs";
|
|
10
12
|
import { dirname, join } from "node:path";
|
|
11
|
-
|
|
13
|
+
function getProjectPlatform(project, ignoreTags = false) {
|
|
12
14
|
const tsconfigJson = readJsonFile(join(project.root, "tsconfig.json"));
|
|
13
15
|
if (!tsconfigJson) {
|
|
14
16
|
throw new Error(`No tsconfig.json found in project root: ${project.root}`);
|
|
@@ -23,9 +25,7 @@ var getProjectPlatform = (project, ignoreTags = false) => {
|
|
|
23
25
|
}
|
|
24
26
|
if (platformTag !== ProjectTagConstants.Platform.NEUTRAL) {
|
|
25
27
|
const types = Array.isArray(tsconfigJson.compilerOptions?.types) ? tsconfigJson.compilerOptions.types : [];
|
|
26
|
-
if (platformTag === ProjectTagConstants.Platform.WORKER || types.some(
|
|
27
|
-
(type) => type.toLowerCase() === "@cloudflare/workers-types"
|
|
28
|
-
) || packageJson.devDependencies?.["@cloudflare/workers-types"] || packageJson.devDependencies?.["wrangler"]) {
|
|
28
|
+
if (platformTag === ProjectTagConstants.Platform.WORKER || types.some((type) => type.toLowerCase() === "@cloudflare/workers-types") || packageJson.devDependencies?.["@cloudflare/workers-types"] || packageJson.devDependencies?.["wrangler"]) {
|
|
29
29
|
return "worker";
|
|
30
30
|
}
|
|
31
31
|
if (platformTag === ProjectTagConstants.Platform.NODE || types?.some((type) => type.toLowerCase() === "node") || packageJson.devDependencies?.["@types/node"]) {
|
|
@@ -40,11 +40,11 @@ var getProjectPlatform = (project, ignoreTags = false) => {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
return "neutral";
|
|
43
|
-
}
|
|
44
|
-
|
|
43
|
+
}
|
|
44
|
+
function getProjectConfigFromProjectJsonPath(projectJsonPath, packageJson) {
|
|
45
45
|
return getProjectConfigFromProjectRoot(dirname(projectJsonPath), packageJson);
|
|
46
|
-
}
|
|
47
|
-
|
|
46
|
+
}
|
|
47
|
+
function getProjectConfigFromProjectRoot(projectRoot, packageJson) {
|
|
48
48
|
const { nx, name } = packageJson;
|
|
49
49
|
const projectJson = readJsonFile(join(projectRoot, "project.json"));
|
|
50
50
|
return defu(nx ?? {}, projectJson, {
|
|
@@ -53,8 +53,8 @@ var getProjectConfigFromProjectRoot = (projectRoot, packageJson) => {
|
|
|
53
53
|
name,
|
|
54
54
|
root: projectRoot
|
|
55
55
|
});
|
|
56
|
-
}
|
|
57
|
-
|
|
56
|
+
}
|
|
57
|
+
function getProjectRoot(configPath, workspaceRoot) {
|
|
58
58
|
try {
|
|
59
59
|
const root = dirname(configPath);
|
|
60
60
|
const projectRoot = join(workspaceRoot, root);
|
|
@@ -66,11 +66,15 @@ var getProjectRoot = (configPath, workspaceRoot) => {
|
|
|
66
66
|
console.error(error_);
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|
|
70
|
+
function getRoot(projectRoot, context) {
|
|
71
|
+
return projectRoot.replaceAll("\\", "/").replace(context.workspaceRoot.replaceAll("\\", "/"), "").replace(/^\//g, "").replace(/\/$/g, "");
|
|
72
|
+
}
|
|
70
73
|
|
|
71
74
|
export {
|
|
72
75
|
getProjectPlatform,
|
|
73
76
|
getProjectConfigFromProjectJsonPath,
|
|
74
77
|
getProjectConfigFromProjectRoot,
|
|
75
|
-
getProjectRoot
|
|
78
|
+
getProjectRoot,
|
|
79
|
+
getRoot
|
|
76
80
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KYGWN2MB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZB76VIIN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D4QG6XOG.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-M5Z57CUO.mjs";
|
|
20
20
|
|
|
21
21
|
// src/base/base-generator.ts
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk334J5IXKjs = require('./chunk-334J5IXK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var getPackageInfo = (project) => {
|
|
|
31
31
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Cargo.toml",
|
|
34
|
-
content:
|
|
34
|
+
content: _chunk334J5IXKjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
35
|
};
|
|
36
36
|
} else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
|
|
37
37
|
project,
|
|
@@ -28,7 +28,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
28
28
|
|
|
29
29
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
30
30
|
var rootFiles = [
|
|
31
|
-
"storm-workspace.json",
|
|
32
31
|
"storm-workspace.json",
|
|
33
32
|
"storm-workspace.yaml",
|
|
34
33
|
"storm-workspace.yml",
|