@storm-software/workspace-tools 1.275.20 → 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 +38 -0
- package/README.md +1 -1
- package/dist/{chunk-3PTWOMU2.mjs → chunk-24I5UG2D.mjs} +1 -1
- package/dist/{chunk-4M4SHAIR.js → chunk-42TNQHCD.js} +2 -2
- package/dist/{chunk-XZAVLGX6.js → chunk-5TUFRMTO.js} +2 -2
- package/dist/{chunk-XFRYBLPE.js → chunk-6R4A3PB6.js} +21 -21
- package/dist/{chunk-5LJGZH6B.mjs → chunk-7B7MO37D.mjs} +2 -2
- package/dist/{chunk-ZARYEHW7.js → chunk-7ZRQQA25.js} +2 -2
- package/dist/{chunk-6U5L5TSA.mjs → chunk-C7LHUAYC.mjs} +14 -3
- package/dist/{chunk-KAVKOD5C.js → chunk-DKLKGRRG.js} +2 -2
- package/dist/{chunk-BZLHJMEB.js → chunk-EN5XS3GB.js} +89 -78
- package/dist/{chunk-JY44CTPK.mjs → chunk-EN6UN4HW.mjs} +1 -1
- package/dist/{chunk-PT3X4RIM.js → chunk-EUAJDEYR.js} +2 -2
- package/dist/{chunk-YEIQEZ66.js → chunk-FFOWIU7U.js} +5 -5
- package/dist/{chunk-4Q5TA4HY.mjs → chunk-G6EH3PP7.mjs} +2 -2
- package/dist/{chunk-Q7ZNED73.mjs → chunk-HMYD5M4B.mjs} +2 -2
- package/dist/{chunk-MAW537K7.mjs → chunk-HWLOOO2F.mjs} +3 -3
- package/dist/{chunk-FXJFMNIG.mjs → chunk-I4SUMEDP.mjs} +3 -3
- package/dist/{chunk-2VYGGPNB.js → chunk-IK64JJIC.js} +2 -2
- package/dist/{chunk-EPHSEJ2O.mjs → chunk-JMWUA7I6.mjs} +1 -1
- package/dist/{chunk-5M6KTSAU.mjs → chunk-K2CSCQCX.mjs} +1 -1
- package/dist/{chunk-X6YEZ2IR.js → chunk-L5YPQPPI.js} +5 -5
- package/dist/{chunk-RJX34CGZ.mjs → chunk-LV23UCVW.mjs} +1 -1
- package/dist/{chunk-6HLO2W5F.mjs → chunk-M4FI4A7J.mjs} +2 -2
- package/dist/chunk-M4MFOGBP.js +67 -0
- package/dist/{chunk-UIHVLD6X.js → chunk-N26S5ZZO.js} +4 -4
- package/dist/{chunk-F6VM55TC.js → chunk-N56A46X4.js} +53 -21
- package/dist/{chunk-3OPUS7DM.js → chunk-PS2BJ4LE.js} +16 -16
- package/dist/{chunk-GZ2DMJNP.js → chunk-Q4OQNT35.js} +2 -2
- package/dist/{chunk-BWWZL3XI.mjs → chunk-RI4DKWHY.mjs} +1 -1
- package/dist/{chunk-UIPBCBUB.mjs → chunk-RRSFJSUD.mjs} +1 -1
- package/dist/{chunk-F2W3BT7Q.js → chunk-SC7EMPTR.js} +5 -5
- package/dist/{chunk-OCAYHE4R.mjs → chunk-T37KAYWR.mjs} +10 -7
- package/dist/{chunk-VNYMAMOQ.js → chunk-TED4ZEH4.js} +5 -5
- package/dist/{chunk-NZYIQ7PK.mjs → chunk-U46LNC6Z.mjs} +35 -3
- package/dist/{chunk-NWZ4RH4R.js → chunk-UND65LI3.js} +2 -2
- package/dist/{chunk-3DV3EPPP.mjs → chunk-VM2NJKNU.mjs} +1 -1
- package/dist/{chunk-U3YH5M4L.js → chunk-VTPEPAEB.js} +14 -14
- package/dist/{chunk-PNPK65F6.js → chunk-VTWK6DYL.js} +2 -2
- package/dist/{chunk-SE4WCL4O.js → chunk-VXAYID6A.js} +20 -20
- package/dist/{chunk-PTKTAEWS.mjs → chunk-WPS2TBOT.mjs} +2 -2
- package/dist/{chunk-RR4536RL.mjs → chunk-XUPPPUVL.mjs} +1 -1
- package/dist/{chunk-DJJD4NLR.js → chunk-Y2U6VHAA.js} +31 -31
- package/dist/{chunk-ZAMOY46U.mjs → chunk-Y47IDRQF.mjs} +2 -2
- package/dist/{chunk-7IUPGUV3.mjs → chunk-ZBYX46UV.mjs} +2 -2
- package/dist/{chunk-QCQPWUUG.mjs → chunk-ZCZPWHWR.mjs} +1 -1
- package/dist/{chunk-NMDGWPQQ.mjs → chunk-ZMH42O44.mjs} +2 -2
- package/dist/{chunk-EFJ4G4IB.js → chunk-ZTOCNHII.js} +5 -5
- package/dist/{executor-C0iYanib.d.mts → executor-BP-LYnHF.d.mts} +1 -1
- package/dist/{executor-DJ9zo_90.d.ts → executor-BSjbUx1A.d.ts} +1 -1
- package/dist/{executor-BnzblW4J.d.ts → executor-BksAOv8G.d.ts} +1 -1
- package/dist/{executor-BACiX_ZU.d.ts → executor-C-siLbCm.d.ts} +1 -1
- package/dist/{executor-B6rwbTH2.d.mts → executor-CKiwa5Xq.d.mts} +1 -1
- package/dist/{executor-fjC66tCo.d.ts → executor-CTCU7CcG.d.ts} +1 -1
- package/dist/{executor-B8Cw3Tig.d.mts → executor-Cmx3MWUy.d.mts} +1 -1
- package/dist/{executor-DBfq-cdb.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 +19 -19
- package/dist/{generator-BpgPcSPg.d.ts → generator-BXzhsfxo.d.ts} +1 -1
- package/dist/{generator-BVRsSb8i.d.ts → generator-BZs3V01e.d.ts} +2 -2
- package/dist/{generator-p2G5laVf.d.mts → generator-BtKZw7Ii.d.mts} +1 -1
- package/dist/{generator-CCtJHaiZ.d.ts → generator-BuRFeV2C.d.ts} +2 -2
- package/dist/{generator-CS2A1Qzu.d.ts → generator-CCIH4c92.d.ts} +1 -1
- package/dist/{generator-Diovfw1t.d.mts → generator-CVD09mcB.d.mts} +2 -2
- package/dist/{generator-B26zSwLY.d.mts → generator-CYG64r2I.d.mts} +2 -2
- package/dist/{generator-CfzaLi0k.d.ts → generator-Ca1yHZ_D.d.ts} +3 -3
- package/dist/{generator-B640GNIa.d.mts → generator-DjwiJF7J.d.mts} +3 -3
- package/dist/{generator-6ooMg1MM.d.mts → generator-MW3X4CCa.d.mts} +2 -2
- package/dist/{generator-vnIt_4qz.d.mts → generator-Sdga0BE0.d.mts} +1 -1
- package/dist/{generator-Dkpc6Apg.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 +12 -12
- package/dist/generators.mjs +11 -11
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +24 -24
- package/dist/index.mjs +28 -28
- 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 +6 -6
- package/dist/src/base/index.mjs +5 -5
- 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 +6 -6
- package/dist/src/generators/browser-library/generator.mjs +5 -5
- 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 +6 -6
- package/dist/src/generators/neutral-library/generator.mjs +5 -5
- 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 +6 -6
- package/dist/src/generators/node-library/generator.mjs +5 -5
- 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-DJ_Tqtsg.d.ts → types-CaL51DUL.d.ts} +1 -1
- package/dist/{types-Bq2vUp-m.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 +5 -6
- package/dist/chunk-44ORGJU6.js +0 -64
- package/dist/types-kTmkrbB_.d.mts +0 -1292
- package/dist/types-kTmkrbB_.d.ts +0 -1292
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
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
|
+
|
|
26
|
+
## [1.275.20](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.275.20) (2025-06-18)
|
|
27
|
+
|
|
28
|
+
### Miscellaneous
|
|
29
|
+
|
|
30
|
+
- **monorepo:** Update workspace package links
|
|
31
|
+
([3c7747ccf](https://github.com/storm-software/storm-ops/commit/3c7747ccf))
|
|
32
|
+
- **monorepo:** Regenerate README markdown files
|
|
33
|
+
([0975b603d](https://github.com/storm-software/storm-ops/commit/0975b603d))
|
|
34
|
+
|
|
35
|
+
### Updated Dependencies
|
|
36
|
+
|
|
37
|
+
- Updated prettier to 0.51.28
|
|
38
|
+
- Updated esbuild to 0.45.8
|
|
39
|
+
- Updated esbuild to 0.45.8
|
|
40
|
+
- Updated unbuild to 0.49.19
|
|
41
|
+
- Updated unbuild to 0.49.19
|
|
42
|
+
|
|
5
43
|
## [1.275.19](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.275.19) (2025-06-18)
|
|
6
44
|
|
|
7
45
|
### Bug Fixes
|
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 -->
|
|
@@ -106,7 +106,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
106
106
|
addProjectConfiguration(tree, normalized.name, projectConfig);
|
|
107
107
|
let repository = {
|
|
108
108
|
type: "github",
|
|
109
|
-
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
109
|
+
url: config?.repository || `https://github.com/${(typeof config?.organization === "string" ? config?.organization : config?.organization?.name) || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
110
110
|
};
|
|
111
111
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
112
112
|
if (tree.exists("package.json")) {
|
|
@@ -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 _chunkF6VM55TCjs = require('./chunk-F6VM55TC.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 @@ ${_chunkBZLHJMEBjs.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 @@ ${_chunkBZLHJMEBjs.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 @@ ${_chunkBZLHJMEBjs.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}`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-24I5UG2D.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HMYD5M4B.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
10
|
} from "./chunk-U7JFVMCK.mjs";
|
|
@@ -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";
|
|
@@ -171,6 +171,15 @@ var errorConfigSchema = z.object({
|
|
|
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 = 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
|
+
"A URL to a page that provides more information about the organization"
|
|
181
|
+
)
|
|
182
|
+
}).describe("The workspace's organization details");
|
|
174
183
|
var stormWorkspaceConfigSchema = z.object({
|
|
175
184
|
$schema: z.string().trim().default(
|
|
176
185
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -182,7 +191,9 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
182
191
|
"The name of the service/package/scope using this configuration"
|
|
183
192
|
),
|
|
184
193
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
185
|
-
organization: z.string().trim().
|
|
194
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
195
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
196
|
+
),
|
|
186
197
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
187
198
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
188
199
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -235,7 +246,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
235
246
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
236
247
|
"Storm theme config values used for styling various package elements"
|
|
237
248
|
),
|
|
238
|
-
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")
|
|
239
250
|
}).describe(
|
|
240
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."
|
|
241
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,111 +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
|
|
175
|
-
|
|
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
|
+
"A URL to a page that provides more information about the organization"
|
|
181
|
+
)
|
|
182
|
+
}).describe("The workspace's organization details");
|
|
183
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
184
|
+
$schema: z.string().trim().default(
|
|
176
185
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
177
186
|
).optional().nullish().describe(
|
|
178
187
|
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
179
188
|
),
|
|
180
189
|
extends: ExtendsSchema.optional(),
|
|
181
|
-
name:
|
|
190
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
182
191
|
"The name of the service/package/scope using this configuration"
|
|
183
192
|
),
|
|
184
|
-
namespace:
|
|
185
|
-
organization:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
196
|
+
),
|
|
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(
|
|
194
205
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
195
206
|
),
|
|
196
|
-
branch:
|
|
197
|
-
preid:
|
|
198
|
-
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"),
|
|
199
210
|
bot: WorkspaceBotConfigSchema,
|
|
200
211
|
release: WorkspaceReleaseConfigSchema,
|
|
201
212
|
account: WorkspaceAccountConfigSchema,
|
|
202
213
|
error: errorConfigSchema,
|
|
203
|
-
mode:
|
|
204
|
-
workspaceRoot:
|
|
205
|
-
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(
|
|
206
217
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
207
218
|
),
|
|
208
|
-
skipCache:
|
|
219
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
209
220
|
directories: WorkspaceDirectoryConfigSchema,
|
|
210
|
-
packageManager:
|
|
221
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
211
222
|
"The JavaScript/TypeScript package manager used by the repository"
|
|
212
223
|
),
|
|
213
|
-
timezone:
|
|
214
|
-
locale:
|
|
215
|
-
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([
|
|
216
227
|
"silent",
|
|
217
228
|
"fatal",
|
|
218
229
|
"error",
|
|
@@ -225,17 +236,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
225
236
|
]).default("info").describe(
|
|
226
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`)."
|
|
227
238
|
),
|
|
228
|
-
skipConfigLogging:
|
|
239
|
+
skipConfigLogging: z.boolean().optional().describe(
|
|
229
240
|
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
230
241
|
),
|
|
231
242
|
registry: RegistryConfigSchema,
|
|
232
|
-
configFile:
|
|
243
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
233
244
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
234
245
|
),
|
|
235
246
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
236
247
|
"Storm theme config values used for styling various package elements"
|
|
237
248
|
),
|
|
238
|
-
extensions:
|
|
249
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
239
250
|
}).describe(
|
|
240
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."
|
|
241
252
|
);
|