@storm-software/workspace-tools 1.275.21 → 1.275.22
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 +21 -0
- package/dist/{chunk-M2RWCXGG.js → chunk-42TNQHCD.js} +2 -2
- package/dist/{chunk-VNWWEHIC.js → chunk-5TUFRMTO.js} +2 -2
- package/dist/{chunk-WRM3EAQL.js → chunk-6R4A3PB6.js} +21 -21
- package/dist/{chunk-RB2UWVCU.mjs → chunk-7B7MO37D.mjs} +1 -1
- package/dist/{chunk-Q5PHHZK5.js → chunk-7ZRQQA25.js} +2 -2
- package/dist/{chunk-X2JVWB4F.mjs → chunk-C7LHUAYC.mjs} +2 -2
- package/dist/{chunk-JYOPSFB4.js → chunk-DKLKGRRG.js} +2 -2
- package/dist/{chunk-4AJFY3TU.js → chunk-EN5XS3GB.js} +84 -84
- package/dist/{chunk-SLYJ57BS.mjs → chunk-EN6UN4HW.mjs} +1 -1
- package/dist/{chunk-323YYPBI.js → chunk-EUAJDEYR.js} +2 -2
- package/dist/{chunk-U3ORKFRH.js → chunk-FFOWIU7U.js} +5 -5
- package/dist/{chunk-562YIZY6.mjs → chunk-G6EH3PP7.mjs} +2 -2
- package/dist/{chunk-AXP4TQEB.mjs → chunk-HMYD5M4B.mjs} +2 -2
- package/dist/{chunk-4TKNR4UF.mjs → chunk-HWLOOO2F.mjs} +3 -3
- package/dist/{chunk-O6CDIW64.mjs → chunk-I4SUMEDP.mjs} +3 -3
- package/dist/{chunk-6IGBLWC7.js → chunk-IK64JJIC.js} +2 -2
- package/dist/{chunk-LWMUUMAO.mjs → chunk-JMWUA7I6.mjs} +1 -1
- package/dist/{chunk-KK7GLPSX.mjs → chunk-K2CSCQCX.mjs} +1 -1
- package/dist/{chunk-HXX2KU7K.js → chunk-L5YPQPPI.js} +2 -2
- package/dist/{chunk-UKJES7FE.mjs → chunk-LV23UCVW.mjs} +1 -1
- package/dist/{chunk-UER4EE2C.mjs → chunk-M4FI4A7J.mjs} +2 -2
- package/dist/chunk-M4MFOGBP.js +67 -0
- package/dist/{chunk-JPD34HQ6.js → chunk-N26S5ZZO.js} +4 -4
- package/dist/{chunk-62PWDDJ5.js → chunk-N56A46X4.js} +19 -19
- package/dist/{chunk-FRSRLLIU.js → chunk-PS2BJ4LE.js} +16 -16
- package/dist/{chunk-S3TTYACT.js → chunk-Q4OQNT35.js} +2 -2
- package/dist/{chunk-TMWRMTZX.mjs → chunk-RI4DKWHY.mjs} +1 -1
- package/dist/{chunk-TA7R5VU7.mjs → chunk-RRSFJSUD.mjs} +1 -1
- package/dist/{chunk-FNHLEPRE.js → chunk-SC7EMPTR.js} +2 -2
- package/dist/{chunk-GSDPFFZP.mjs → chunk-T37KAYWR.mjs} +10 -7
- package/dist/{chunk-F2AQZYX7.js → chunk-TED4ZEH4.js} +2 -2
- package/dist/{chunk-WZURLCQH.mjs → chunk-U46LNC6Z.mjs} +1 -1
- package/dist/{chunk-HTLPAE2L.js → chunk-UND65LI3.js} +2 -2
- package/dist/{chunk-7R5M47RD.mjs → chunk-VM2NJKNU.mjs} +1 -1
- package/dist/{chunk-X5WXK44U.js → chunk-VTWK6DYL.js} +2 -2
- package/dist/{chunk-5QELRWTW.js → chunk-VXAYID6A.js} +20 -20
- package/dist/{chunk-KCYF6ZJO.mjs → chunk-WPS2TBOT.mjs} +2 -2
- package/dist/{chunk-PYR2GK7W.mjs → chunk-XUPPPUVL.mjs} +1 -1
- package/dist/{chunk-FIHLI4YN.js → chunk-Y2U6VHAA.js} +31 -31
- package/dist/{chunk-DR3QHMB4.mjs → chunk-Y47IDRQF.mjs} +1 -1
- package/dist/{chunk-AQBADFNP.mjs → chunk-ZBYX46UV.mjs} +1 -1
- package/dist/{chunk-SQZZXL5S.mjs → chunk-ZCZPWHWR.mjs} +1 -1
- package/dist/{chunk-P2LLJMPH.mjs → chunk-ZMH42O44.mjs} +2 -2
- package/dist/{chunk-JIITW5QG.js → chunk-ZTOCNHII.js} +5 -5
- package/dist/{executor-D5ne03fk.d.mts → executor-BP-LYnHF.d.mts} +1 -1
- package/dist/{executor-CFg--mJ6.d.ts → executor-BSjbUx1A.d.ts} +1 -1
- package/dist/{executor-BYF2xhS9.d.ts → executor-BksAOv8G.d.ts} +1 -1
- package/dist/{executor-C4qgoGSX.d.ts → executor-C-siLbCm.d.ts} +1 -1
- package/dist/{executor-BHzuA3tJ.d.mts → executor-CKiwa5Xq.d.mts} +1 -1
- package/dist/{executor-Y9N9Pqs7.d.ts → executor-CTCU7CcG.d.ts} +1 -1
- package/dist/{executor-JPxZNI_w.d.mts → executor-Cmx3MWUy.d.mts} +1 -1
- package/dist/{executor-BBzyEOFH.d.mts → executor-XS6ys9ih.d.mts} +1 -1
- package/dist/executors.d.mts +6 -6
- package/dist/executors.d.ts +6 -6
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +14 -14
- package/dist/{generator-DhUKH7iC.d.ts → generator-BXzhsfxo.d.ts} +1 -1
- package/dist/{generator-CEGGlFM-.d.ts → generator-BZs3V01e.d.ts} +2 -2
- package/dist/{generator-C-imx0M4.d.mts → generator-BtKZw7Ii.d.mts} +1 -1
- package/dist/{generator-CYjtZpPF.d.ts → generator-BuRFeV2C.d.ts} +2 -2
- package/dist/{generator-D9LfLTBp.d.ts → generator-CCIH4c92.d.ts} +1 -1
- package/dist/{generator-BYQUuNd1.d.mts → generator-CVD09mcB.d.mts} +2 -2
- package/dist/{generator-CqREcpH1.d.mts → generator-CYG64r2I.d.mts} +2 -2
- package/dist/{generator-B5y6fbM9.d.ts → generator-Ca1yHZ_D.d.ts} +3 -3
- package/dist/{generator-Bb-wk9zd.d.mts → generator-DjwiJF7J.d.mts} +3 -3
- package/dist/{generator-BtJNGRAU.d.mts → generator-MW3X4CCa.d.mts} +2 -2
- package/dist/{generator-CcUUjx-4.d.mts → generator-Sdga0BE0.d.mts} +1 -1
- package/dist/{generator-BDd_dgNW.d.ts → generator-qXrsuk5E.d.ts} +2 -2
- package/dist/generators.d.mts +9 -9
- package/dist/generators.d.ts +9 -9
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +10 -10
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +23 -23
- package/dist/index.mjs +22 -22
- package/dist/src/base/base-executor.d.mts +3 -3
- package/dist/src/base/base-executor.d.ts +3 -3
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.d.mts +3 -3
- package/dist/src/base/base-generator.d.ts +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.d.mts +3 -3
- package/dist/src/base/index.d.ts +3 -3
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.d.mts +2 -2
- package/dist/src/executors/clean-package/executor.d.ts +2 -2
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.d.mts +3 -3
- package/dist/src/executors/esbuild/executor.d.ts +3 -3
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.d.mts +3 -3
- package/dist/src/executors/size-limit/executor.d.ts +3 -3
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.d.mts +3 -3
- package/dist/src/executors/typia/executor.d.ts +3 -3
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.d.mts +3 -3
- package/dist/src/executors/unbuild/executor.d.ts +3 -3
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.d.mts +4 -4
- package/dist/src/generators/browser-library/generator.d.ts +4 -4
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.d.mts +4 -4
- package/dist/src/generators/config-schema/generator.d.ts +4 -4
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.d.mts +4 -4
- package/dist/src/generators/neutral-library/generator.d.ts +4 -4
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.d.mts +4 -4
- package/dist/src/generators/node-library/generator.d.ts +4 -4
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.d.mts +4 -4
- package/dist/src/generators/preset/generator.d.ts +4 -4
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/generators/release-version/generator.d.mts +3 -3
- package/dist/src/generators/release-version/generator.d.ts +3 -3
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/types.d.mts +3 -3
- package/dist/src/types.d.ts +3 -3
- package/dist/src/utils/apply-workspace-tokens.d.mts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.ts +2 -2
- package/dist/src/utils/index.d.mts +3 -3
- package/dist/src/utils/index.d.ts +3 -3
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/dist/src/utils/project-tags.d.mts +3 -3
- package/dist/src/utils/project-tags.d.ts +3 -3
- package/dist/{types-CS7-qMzU.d.ts → types-CaL51DUL.d.ts} +1 -1
- package/dist/{types-DRb7iLoG.d.mts → types-DzO7l4VZ.d.mts} +1 -1
- package/dist/types-sLpco176.d.mts +267 -0
- package/dist/types-sLpco176.d.ts +267 -0
- package/package.json +2 -3
- package/dist/chunk-V7XHSQAI.js +0 -64
- package/dist/types-20QvkLZ0.d.mts +0 -1322
- package/dist/types-20QvkLZ0.d.ts +0 -1322
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.275.21](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.275.21) (2025-06-20)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **workspace-tools:** Update all references to latest `OrganizationConfig` type
|
|
10
|
+
definition
|
|
11
|
+
([ab4ddbce9](https://github.com/storm-software/storm-ops/commit/ab4ddbce9))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Regenerate README markdown files
|
|
16
|
+
([0bdc8a84e](https://github.com/storm-software/storm-ops/commit/0bdc8a84e))
|
|
17
|
+
- **monorepo:** Update workspace packages' links
|
|
18
|
+
([35f3ef346](https://github.com/storm-software/storm-ops/commit/35f3ef346))
|
|
19
|
+
|
|
20
|
+
### Updated Dependencies
|
|
21
|
+
|
|
22
|
+
- Updated prettier to 0.51.29
|
|
23
|
+
- Updated esbuild to 0.45.9
|
|
24
|
+
- Updated unbuild to 0.49.20
|
|
25
|
+
|
|
5
26
|
## [1.275.20](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.275.20) (2025-06-18)
|
|
6
27
|
|
|
7
28
|
### Miscellaneous
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6R4A3PB6js = require('./chunk-6R4A3PB6.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 = _chunk6R4A3PB6js.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -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 _chunkEN5XS3GBjs = require('./chunk-EN5XS3GB.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
|
+
_chunkEN5XS3GBjs.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);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkN56A46X4js = require('./chunk-N56A46X4.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunk62PWDDJ5js = require('./chunk-62PWDDJ5.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkEN5XS3GBjs = require('./chunk-EN5XS3GB.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -22,7 +22,7 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
22
22
|
// src/base/base-executor.ts
|
|
23
23
|
var _defu = require('defu');
|
|
24
24
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkEN5XS3GBjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config = {};
|
|
28
28
|
try {
|
|
@@ -36,9 +36,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
36
36
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
37
|
const projectName = context.projectName;
|
|
38
38
|
config.workspaceRoot = workspaceRoot;
|
|
39
|
-
|
|
39
|
+
_chunkEN5XS3GBjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
40
40
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
41
|
+
_chunkEN5XS3GBjs.writeTrace.call(void 0,
|
|
42
42
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
@@ -47,18 +47,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
47
|
`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkN56A46X4js.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunkEN5XS3GBjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
54
|
options = await Promise.resolve(
|
|
55
55
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
56
56
|
);
|
|
57
|
-
|
|
57
|
+
_chunkEN5XS3GBjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
_chunkEN5XS3GBjs.writeTrace.call(void 0,
|
|
60
60
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
61
|
+
${_chunkEN5XS3GBjs.formatLogMessage.call(void 0, options)}
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
@@ -71,18 +71,18 @@ ${_chunk4AJFY3TUjs.formatLogMessage.call(void 0, options)}
|
|
|
71
71
|
),
|
|
72
72
|
_chunkJ2Z4WP3Ejs.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
_chunkEN5XS3GBjs.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
76
|
+
${_chunkEN5XS3GBjs.formatLogMessage.call(void 0, tokenized)}
|
|
77
77
|
`,
|
|
78
78
|
config
|
|
79
79
|
);
|
|
80
80
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
81
|
-
|
|
81
|
+
_chunkEN5XS3GBjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
82
82
|
await Promise.resolve(
|
|
83
83
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
84
84
|
);
|
|
85
|
-
|
|
85
|
+
_chunkEN5XS3GBjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
86
86
|
}
|
|
87
87
|
const ret = executorFn(tokenized, context, config);
|
|
88
88
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -95,9 +95,9 @@ ${_chunk4AJFY3TUjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
95
95
|
ret
|
|
96
96
|
);
|
|
97
97
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
98
|
-
|
|
98
|
+
_chunkEN5XS3GBjs.writeTrace.call(void 0,
|
|
99
99
|
`Failure determined by the ${name} executor
|
|
100
|
-
${
|
|
100
|
+
${_chunkEN5XS3GBjs.formatLogMessage.call(void 0, result)}`,
|
|
101
101
|
config
|
|
102
102
|
);
|
|
103
103
|
console.error(result);
|
|
@@ -106,21 +106,21 @@ ${_chunk4AJFY3TUjs.formatLogMessage.call(void 0, result)}`,
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
109
|
+
_chunkEN5XS3GBjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
111
|
+
_chunkEN5XS3GBjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunkEN5XS3GBjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
114
114
|
`, config);
|
|
115
115
|
return {
|
|
116
116
|
success: true
|
|
117
117
|
};
|
|
118
118
|
} catch (error) {
|
|
119
|
-
|
|
119
|
+
_chunkEN5XS3GBjs.writeFatal.call(void 0,
|
|
120
120
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
121
121
|
config
|
|
122
122
|
);
|
|
123
|
-
|
|
123
|
+
_chunkEN5XS3GBjs.writeError.call(void 0,
|
|
124
124
|
`An exception was thrown in the executor's process
|
|
125
125
|
- Details: ${error.message}
|
|
126
126
|
- Stacktrace: ${error.stack}`,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPS2BJ4LEjs = require('./chunk-PS2BJ4LE.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/preset/generator.ts
|
|
10
10
|
|
|
@@ -239,7 +239,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
239
239
|
);
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var generator_default =
|
|
242
|
+
var generator_default = _chunkPS2BJ4LEjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-U7JFVMCK.mjs";
|
|
7
7
|
|
|
8
8
|
// ../config/src/schema.ts
|
|
9
|
-
import z from "zod";
|
|
9
|
+
import * as z from "zod/v4";
|
|
10
10
|
|
|
11
11
|
// ../config/src/constants.ts
|
|
12
12
|
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
@@ -246,7 +246,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
246
246
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
247
247
|
"Storm theme config values used for styling various package elements"
|
|
248
248
|
),
|
|
249
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
249
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
250
250
|
}).describe(
|
|
251
251
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
252
252
|
);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5TUFRMTOjs = require('./chunk-5TUFRMTO.js');
|
|
8
8
|
|
|
9
9
|
// src/utils/package-helpers.ts
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ var getPackageInfo = (project) => {
|
|
|
24
24
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
25
25
|
return {
|
|
26
26
|
type: "Cargo.toml",
|
|
27
|
-
content:
|
|
27
|
+
content: _chunk5TUFRMTOjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
28
28
|
};
|
|
29
29
|
} else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
|
|
30
30
|
project,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
3
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
6
6
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
7
7
|
|
|
8
8
|
// ../config/src/schema.ts
|
|
9
|
-
var
|
|
9
|
+
var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
|
|
10
10
|
|
|
11
11
|
// ../config/src/constants.ts
|
|
12
12
|
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
@@ -31,21 +31,21 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
31
31
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
32
32
|
|
|
33
33
|
// ../config/src/schema.ts
|
|
34
|
-
var DarkColorSchema =
|
|
35
|
-
var LightColorSchema =
|
|
36
|
-
var BrandColorSchema =
|
|
37
|
-
var AlternateColorSchema =
|
|
38
|
-
var AccentColorSchema =
|
|
39
|
-
var LinkColorSchema =
|
|
40
|
-
var HelpColorSchema =
|
|
41
|
-
var SuccessColorSchema =
|
|
42
|
-
var InfoColorSchema =
|
|
43
|
-
var WarningColorSchema =
|
|
44
|
-
var DangerColorSchema =
|
|
45
|
-
var FatalColorSchema =
|
|
46
|
-
var PositiveColorSchema =
|
|
47
|
-
var NegativeColorSchema =
|
|
48
|
-
var DarkThemeColorConfigSchema =
|
|
34
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
35
|
+
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
36
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
37
|
+
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
38
|
+
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
39
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
40
|
+
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
41
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
42
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
43
|
+
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
44
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
45
|
+
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
46
|
+
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
47
|
+
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
48
|
+
var DarkThemeColorConfigSchema = z.object({
|
|
49
49
|
foreground: LightColorSchema,
|
|
50
50
|
background: DarkColorSchema,
|
|
51
51
|
brand: BrandColorSchema,
|
|
@@ -61,7 +61,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
|
|
|
61
61
|
positive: PositiveColorSchema,
|
|
62
62
|
negative: NegativeColorSchema
|
|
63
63
|
});
|
|
64
|
-
var LightThemeColorConfigSchema =
|
|
64
|
+
var LightThemeColorConfigSchema = z.object({
|
|
65
65
|
foreground: DarkColorSchema,
|
|
66
66
|
background: LightColorSchema,
|
|
67
67
|
brand: BrandColorSchema,
|
|
@@ -77,11 +77,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
|
|
|
77
77
|
positive: PositiveColorSchema,
|
|
78
78
|
negative: NegativeColorSchema
|
|
79
79
|
});
|
|
80
|
-
var MultiThemeColorConfigSchema =
|
|
80
|
+
var MultiThemeColorConfigSchema = z.object({
|
|
81
81
|
dark: DarkThemeColorConfigSchema,
|
|
82
82
|
light: LightThemeColorConfigSchema
|
|
83
83
|
});
|
|
84
|
-
var SingleThemeColorConfigSchema =
|
|
84
|
+
var SingleThemeColorConfigSchema = z.object({
|
|
85
85
|
dark: DarkColorSchema,
|
|
86
86
|
light: LightColorSchema,
|
|
87
87
|
brand: BrandColorSchema,
|
|
@@ -97,8 +97,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
|
|
|
97
97
|
positive: PositiveColorSchema,
|
|
98
98
|
negative: NegativeColorSchema
|
|
99
99
|
});
|
|
100
|
-
var RegistryUrlConfigSchema =
|
|
101
|
-
var RegistryConfigSchema =
|
|
100
|
+
var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
101
|
+
var RegistryConfigSchema = z.object({
|
|
102
102
|
github: RegistryUrlConfigSchema,
|
|
103
103
|
npm: RegistryUrlConfigSchema,
|
|
104
104
|
cargo: RegistryUrlConfigSchema,
|
|
@@ -108,122 +108,122 @@ var RegistryConfigSchema = _zod2.default.object({
|
|
|
108
108
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
109
109
|
MultiThemeColorConfigSchema
|
|
110
110
|
).describe("Colors used for various workspace elements");
|
|
111
|
-
var ColorConfigMapSchema =
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
var ColorConfigMapSchema = z.union([
|
|
112
|
+
z.object({ base: ColorConfigSchema }),
|
|
113
|
+
z.record(z.string(), ColorConfigSchema)
|
|
114
114
|
]);
|
|
115
|
-
var ExtendsItemSchema =
|
|
115
|
+
var ExtendsItemSchema = z.string().trim().describe(
|
|
116
116
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
117
117
|
);
|
|
118
118
|
var ExtendsSchema = ExtendsItemSchema.or(
|
|
119
|
-
|
|
119
|
+
z.array(ExtendsItemSchema)
|
|
120
120
|
).describe(
|
|
121
121
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
122
122
|
);
|
|
123
|
-
var WorkspaceBotConfigSchema =
|
|
124
|
-
name:
|
|
123
|
+
var WorkspaceBotConfigSchema = z.object({
|
|
124
|
+
name: z.string().trim().default("stormie-bot").describe(
|
|
125
125
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
126
126
|
),
|
|
127
|
-
email:
|
|
127
|
+
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
128
128
|
}).describe(
|
|
129
129
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
130
130
|
);
|
|
131
|
-
var WorkspaceReleaseConfigSchema =
|
|
132
|
-
banner:
|
|
131
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
132
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
|
|
133
133
|
"A URL to a banner image used to display the workspace's release"
|
|
134
134
|
),
|
|
135
|
-
header:
|
|
135
|
+
header: z.string().trim().optional().describe(
|
|
136
136
|
"A header message appended to the start of the workspace's release notes"
|
|
137
137
|
),
|
|
138
|
-
footer:
|
|
138
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
|
|
139
139
|
"A footer message appended to the end of the workspace's release notes"
|
|
140
140
|
)
|
|
141
141
|
}).describe("The workspace's release config used during the release process");
|
|
142
|
-
var WorkspaceAccountConfigSchema =
|
|
143
|
-
twitter:
|
|
144
|
-
discord:
|
|
145
|
-
telegram:
|
|
146
|
-
slack:
|
|
147
|
-
medium:
|
|
148
|
-
github:
|
|
142
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
143
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
144
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
145
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
146
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
147
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
148
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
149
149
|
}).describe(
|
|
150
150
|
"The workspace's account config used to store various social media links"
|
|
151
151
|
);
|
|
152
|
-
var WorkspaceDirectoryConfigSchema =
|
|
153
|
-
cache:
|
|
152
|
+
var WorkspaceDirectoryConfigSchema = z.object({
|
|
153
|
+
cache: z.string().trim().optional().describe(
|
|
154
154
|
"The directory used to store the environment's cached file data"
|
|
155
155
|
),
|
|
156
|
-
data:
|
|
157
|
-
config:
|
|
156
|
+
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
157
|
+
config: z.string().trim().optional().describe(
|
|
158
158
|
"The directory used to store the environment's configuration files"
|
|
159
159
|
),
|
|
160
|
-
temp:
|
|
161
|
-
log:
|
|
162
|
-
build:
|
|
160
|
+
temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
161
|
+
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
162
|
+
build: z.string().trim().default("dist").describe(
|
|
163
163
|
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
164
164
|
)
|
|
165
165
|
}).describe(
|
|
166
166
|
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
167
167
|
);
|
|
168
|
-
var errorConfigSchema =
|
|
169
|
-
codesFile:
|
|
170
|
-
url:
|
|
168
|
+
var errorConfigSchema = z.object({
|
|
169
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
170
|
+
url: z.string().trim().url().optional().describe(
|
|
171
171
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
172
172
|
)
|
|
173
173
|
}).describe("The workspace's error config used during the error process");
|
|
174
|
-
var organizationConfigSchema =
|
|
175
|
-
name:
|
|
176
|
-
description:
|
|
177
|
-
logo:
|
|
178
|
-
icon:
|
|
179
|
-
url:
|
|
174
|
+
var organizationConfigSchema = z.object({
|
|
175
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
176
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
177
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
178
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
179
|
+
url: z.string().trim().url().optional().describe(
|
|
180
180
|
"A URL to a page that provides more information about the organization"
|
|
181
181
|
)
|
|
182
182
|
}).describe("The workspace's organization details");
|
|
183
|
-
var stormWorkspaceConfigSchema =
|
|
184
|
-
$schema:
|
|
183
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
184
|
+
$schema: z.string().trim().default(
|
|
185
185
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
186
186
|
).optional().nullish().describe(
|
|
187
187
|
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
188
188
|
),
|
|
189
189
|
extends: ExtendsSchema.optional(),
|
|
190
|
-
name:
|
|
190
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
191
191
|
"The name of the service/package/scope using this configuration"
|
|
192
192
|
),
|
|
193
|
-
namespace:
|
|
194
|
-
organization: organizationConfigSchema.or(
|
|
193
|
+
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
194
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
195
195
|
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
196
196
|
),
|
|
197
|
-
repository:
|
|
198
|
-
license:
|
|
199
|
-
homepage:
|
|
200
|
-
docs:
|
|
201
|
-
portal:
|
|
202
|
-
licensing:
|
|
203
|
-
contact:
|
|
204
|
-
support:
|
|
197
|
+
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
198
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
199
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
200
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
201
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
202
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
203
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
204
|
+
support: z.string().trim().url().optional().describe(
|
|
205
205
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
206
206
|
),
|
|
207
|
-
branch:
|
|
208
|
-
preid:
|
|
209
|
-
owner:
|
|
207
|
+
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
208
|
+
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
209
|
+
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
210
210
|
bot: WorkspaceBotConfigSchema,
|
|
211
211
|
release: WorkspaceReleaseConfigSchema,
|
|
212
212
|
account: WorkspaceAccountConfigSchema,
|
|
213
213
|
error: errorConfigSchema,
|
|
214
|
-
mode:
|
|
215
|
-
workspaceRoot:
|
|
216
|
-
externalPackagePatterns:
|
|
214
|
+
mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
|
|
215
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
216
|
+
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
217
217
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
218
218
|
),
|
|
219
|
-
skipCache:
|
|
219
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
220
220
|
directories: WorkspaceDirectoryConfigSchema,
|
|
221
|
-
packageManager:
|
|
221
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
222
222
|
"The JavaScript/TypeScript package manager used by the repository"
|
|
223
223
|
),
|
|
224
|
-
timezone:
|
|
225
|
-
locale:
|
|
226
|
-
logLevel:
|
|
224
|
+
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
225
|
+
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
226
|
+
logLevel: z.enum([
|
|
227
227
|
"silent",
|
|
228
228
|
"fatal",
|
|
229
229
|
"error",
|
|
@@ -236,17 +236,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
236
236
|
]).default("info").describe(
|
|
237
237
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
238
238
|
),
|
|
239
|
-
skipConfigLogging:
|
|
239
|
+
skipConfigLogging: z.boolean().optional().describe(
|
|
240
240
|
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
241
241
|
),
|
|
242
242
|
registry: RegistryConfigSchema,
|
|
243
|
-
configFile:
|
|
243
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
244
244
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
245
245
|
),
|
|
246
246
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
247
247
|
"Storm theme config values used for styling various package elements"
|
|
248
248
|
),
|
|
249
|
-
extensions:
|
|
249
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
250
250
|
}).describe(
|
|
251
251
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
252
252
|
);
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6R4A3PB6js = require('./chunk-6R4A3PB6.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk6R4A3PB6js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk6R4A3PB6js = require('./chunk-6R4A3PB6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEN5XS3GBjs = require('./chunk-EN5XS3GB.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkEN5XS3GBjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkEN5XS3GBjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunk6R4A3PB6js.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|