@storm-software/k8s-tools 0.24.51 → 0.24.53
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 +17 -0
- package/README.md +1 -1
- package/dist/{chunk-IGXHTXQH.mjs → chunk-6F7C2HU3.mjs} +26 -10
- package/dist/{chunk-HS7SC5NU.mjs → chunk-6W5RODUW.mjs} +2 -2
- package/dist/{chunk-X3EJWLQF.js → chunk-7AUWIK6E.js} +19 -19
- package/dist/{chunk-UHK34HTM.mjs → chunk-B4EYBY2L.mjs} +2 -2
- package/dist/{chunk-27ZC57FP.js → chunk-HLHBBX4A.js} +26 -10
- package/dist/{chunk-RJJUCC2C.js → chunk-HR2BRBYY.js} +3 -3
- package/dist/{chunk-R64Y2LSB.js → chunk-IVE6VJ4S.js} +2 -2
- package/dist/{chunk-MYQII3CB.js → chunk-L26UZLMQ.js} +4 -4
- package/dist/{chunk-ESW5AXT2.mjs → chunk-NWZRYSHG.mjs} +2 -2
- package/dist/{chunk-73SZZ5JH.js → chunk-PS6CWFTA.js} +6 -6
- package/dist/{chunk-DKUH4YV2.mjs → chunk-QVVUYQET.mjs} +2 -2
- package/dist/{chunk-VN4RW7JL.mjs → chunk-SQWTERQC.mjs} +1 -1
- package/dist/{chunk-27AKWD73.js → chunk-TTASPUAD.js} +25 -25
- package/dist/{chunk-5WJ3PXBA.js → chunk-W2HCULDD.js} +4 -4
- package/dist/{chunk-EGAM4DSZ.mjs → chunk-Z3R3O2NI.mjs} +2 -2
- package/dist/{chunk-JA42WPMD.mjs → chunk-ZW6TG4ZS.mjs} +1 -1
- package/dist/{executor-DEatrcJs.d.ts → executor-DrSw4Xm3.d.mts} +3 -18
- package/dist/{executor-CumACYb8.d.mts → executor-DrSw4Xm3.d.ts} +3 -18
- package/dist/executors.d.mts +3 -3
- package/dist/executors.d.ts +3 -3
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +4 -4
- package/dist/{generator-CQG_XJ0l.d.ts → generator-C4BB5aOn.d.mts} +5 -4
- package/dist/{generator-UBiKRKhk.d.mts → generator-C4BB5aOn.d.ts} +5 -4
- package/dist/{generator-CoEmhb2l.d.ts → generator-CB8TPfuo.d.mts} +5 -4
- package/dist/{generator-C6GKj2Md.d.mts → generator-CB8TPfuo.d.ts} +5 -4
- package/dist/generators.d.mts +5 -5
- package/dist/generators.d.ts +5 -5
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +5 -5
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/executors/container-publish/executor.d.mts +2 -3
- package/dist/src/executors/container-publish/executor.d.ts +2 -3
- package/dist/src/executors/container-publish/executor.js +4 -4
- package/dist/src/executors/container-publish/executor.mjs +3 -3
- package/dist/src/executors/helm-package/executor.d.mts +3 -3
- package/dist/src/executors/helm-package/executor.d.ts +3 -3
- package/dist/src/executors/helm-package/executor.js +4 -4
- package/dist/src/executors/helm-package/executor.mjs +3 -3
- package/dist/src/generators/helm-chart/generator.d.mts +4 -4
- package/dist/src/generators/helm-chart/generator.d.ts +4 -4
- package/dist/src/generators/helm-chart/generator.js +5 -5
- package/dist/src/generators/helm-chart/generator.mjs +4 -4
- package/dist/src/generators/helm-dependency/generator.d.mts +4 -4
- package/dist/src/generators/helm-dependency/generator.d.ts +4 -4
- package/dist/src/generators/helm-dependency/generator.js +5 -5
- package/dist/src/generators/helm-dependency/generator.mjs +4 -4
- package/dist/src/plugins/docker/index.js +3 -3
- package/dist/src/plugins/docker/index.mjs +2 -2
- package/package.json +6 -5
- package/dist/types-BCBFBwnJ.d.mts +0 -20
- package/dist/types-BCBFBwnJ.d.ts +0 -20
- package/dist/types-BXfk4hPO.d.mts +0 -1252
- package/dist/types-BXfk4hPO.d.ts +0 -1252
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - K8s Tools
|
|
4
4
|
|
|
5
|
+
## [0.24.53](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.53) (2025-04-04)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([30c679ec1](https://github.com/storm-software/storm-ops/commit/30c679ec1))
|
|
11
|
+
- **monorepo:** Ensure consistency between workspace dependencies
|
|
12
|
+
([e635640da](https://github.com/storm-software/storm-ops/commit/e635640da))
|
|
13
|
+
|
|
14
|
+
## [0.24.52](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.52) (2025-04-02)
|
|
15
|
+
|
|
16
|
+
### Miscellaneous
|
|
17
|
+
|
|
18
|
+
- **k8s-tools:** Update all references to `StormConfig` to point to
|
|
19
|
+
`StormWorkspaceConfig`
|
|
20
|
+
([3ccd974a7](https://github.com/storm-software/storm-ops/commit/3ccd974a7))
|
|
21
|
+
|
|
5
22
|
## [0.24.51](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.51) (2025-03-18)
|
|
6
23
|
|
|
7
24
|
### 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 -->
|
|
@@ -366,7 +366,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
366
366
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
367
367
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
368
368
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
369
|
-
var
|
|
369
|
+
var errorConfigSchema = z.object({
|
|
370
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
371
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
372
|
+
}).describe("The workspace's error config used during the error process");
|
|
373
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
370
374
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
371
375
|
extends: ExtendsSchema.optional(),
|
|
372
376
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -384,6 +388,7 @@ var StormConfigSchema = z.object({
|
|
|
384
388
|
bot: WorkspaceBotConfigSchema,
|
|
385
389
|
release: WorkspaceReleaseConfigSchema,
|
|
386
390
|
account: WorkspaceAccountConfigSchema,
|
|
391
|
+
error: errorConfigSchema,
|
|
387
392
|
mode: z.enum([
|
|
388
393
|
"development",
|
|
389
394
|
"staging",
|
|
@@ -510,7 +515,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
510
515
|
license,
|
|
511
516
|
homepage,
|
|
512
517
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
513
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
518
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
519
|
+
error: {
|
|
520
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
521
|
+
}
|
|
514
522
|
};
|
|
515
523
|
}, "getDefaultConfig");
|
|
516
524
|
|
|
@@ -820,6 +828,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
820
828
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
821
829
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
822
830
|
},
|
|
831
|
+
error: {
|
|
832
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
833
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
834
|
+
},
|
|
823
835
|
account: {
|
|
824
836
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
825
837
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -993,6 +1005,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
993
1005
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
994
1006
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
995
1007
|
}
|
|
1008
|
+
if (config.error) {
|
|
1009
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
1010
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1011
|
+
}
|
|
996
1012
|
if (config.release) {
|
|
997
1013
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
998
1014
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -1123,7 +1139,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
1123
1139
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
1124
1140
|
}
|
|
1125
1141
|
if (config.registry.container) {
|
|
1126
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
1142
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
1127
1143
|
}
|
|
1128
1144
|
}
|
|
1129
1145
|
if (config.logLevel) {
|
|
@@ -1243,7 +1259,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
1243
1259
|
// ../config-tools/src/create-storm-config.ts
|
|
1244
1260
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1245
1261
|
var _static_cache = void 0;
|
|
1246
|
-
var
|
|
1262
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1247
1263
|
let result;
|
|
1248
1264
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1249
1265
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1258,7 +1274,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1258
1274
|
logLevel: "all"
|
|
1259
1275
|
});
|
|
1260
1276
|
}
|
|
1261
|
-
result = await
|
|
1277
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
|
|
1262
1278
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1263
1279
|
} else {
|
|
1264
1280
|
result = _static_cache.data;
|
|
@@ -1274,7 +1290,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1274
1290
|
data: result
|
|
1275
1291
|
};
|
|
1276
1292
|
return result;
|
|
1277
|
-
}, "
|
|
1293
|
+
}, "createStormWorkspaceConfig");
|
|
1278
1294
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
1279
1295
|
const extension_cache_key = {
|
|
1280
1296
|
extensionName
|
|
@@ -1289,19 +1305,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1289
1305
|
_extension_cache.set(extension_cache_key, extension);
|
|
1290
1306
|
return extension;
|
|
1291
1307
|
}, "createConfigExtension");
|
|
1292
|
-
var
|
|
1293
|
-
const config = await
|
|
1308
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
1309
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1294
1310
|
setConfigEnv(config);
|
|
1295
1311
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1296
1312
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1297
1313
|
${formatLogMessage(config)}`, config);
|
|
1298
1314
|
}
|
|
1299
1315
|
return config;
|
|
1300
|
-
}, "
|
|
1316
|
+
}, "loadStormWorkspaceConfig");
|
|
1301
1317
|
|
|
1302
1318
|
// ../config-tools/src/get-config.ts
|
|
1303
1319
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
1304
|
-
return
|
|
1320
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1305
1321
|
}, "getConfig");
|
|
1306
1322
|
|
|
1307
1323
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkR64Y2LSBjs = require('./chunk-R64Y2LSB.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -21,34 +21,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
21
21
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
22
22
|
skipReadingConfig: false
|
|
23
23
|
}) => async (tree, _options) => {
|
|
24
|
-
const stopwatch =
|
|
24
|
+
const stopwatch = _chunkHLHBBX4Ajs.getStopwatch.call(void 0, name);
|
|
25
25
|
let options = _options;
|
|
26
26
|
let config;
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
_chunkHLHBBX4Ajs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
29
29
|
|
|
30
30
|
`, config);
|
|
31
|
-
const workspaceRoot =
|
|
31
|
+
const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
32
32
|
if (!generatorOptions.skipReadingConfig) {
|
|
33
|
-
|
|
33
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
34
34
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
35
|
-
config = await
|
|
35
|
+
config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
|
|
36
36
|
}
|
|
37
37
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
38
|
-
|
|
38
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
39
39
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
40
|
-
|
|
40
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_chunkHLHBBX4Ajs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
43
43
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
44
|
-
const tokenized = await
|
|
44
|
+
const tokenized = await _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, {
|
|
45
45
|
workspaceRoot: tree.root,
|
|
46
46
|
config
|
|
47
|
-
},
|
|
47
|
+
}, _chunkIVE6VJ4Sjs.applyWorkspaceBaseTokens);
|
|
48
48
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
49
|
-
|
|
49
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
50
50
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
51
|
-
|
|
51
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
52
52
|
}
|
|
53
53
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
54
54
|
if (result) {
|
|
@@ -61,18 +61,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
64
|
-
|
|
64
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
65
65
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
66
|
-
|
|
66
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
67
67
|
}
|
|
68
68
|
return () => {
|
|
69
|
-
|
|
69
|
+
_chunkHLHBBX4Ajs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
70
70
|
`, config);
|
|
71
71
|
};
|
|
72
72
|
} catch (error) {
|
|
73
73
|
return () => {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
_chunkHLHBBX4Ajs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
75
|
+
_chunkHLHBBX4Ajs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
76
76
|
- Details: ${error.message}
|
|
77
77
|
- Stacktrace: ${error.stack}`, config);
|
|
78
78
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SQWTERQC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot,
|
|
7
7
|
getConfig,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeInfo,
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6F7C2HU3.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-2BPV2XV2.mjs";
|
|
@@ -366,7 +366,11 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
366
366
|
log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
367
367
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
368
368
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
369
|
-
var
|
|
369
|
+
var errorConfigSchema = _zod2.default.object({
|
|
370
|
+
codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
371
|
+
url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
372
|
+
}).describe("The workspace's error config used during the error process");
|
|
373
|
+
var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
370
374
|
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
371
375
|
extends: ExtendsSchema.optional(),
|
|
372
376
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -384,6 +388,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
384
388
|
bot: WorkspaceBotConfigSchema,
|
|
385
389
|
release: WorkspaceReleaseConfigSchema,
|
|
386
390
|
account: WorkspaceAccountConfigSchema,
|
|
391
|
+
error: errorConfigSchema,
|
|
387
392
|
mode: _zod2.default.enum([
|
|
388
393
|
"development",
|
|
389
394
|
"staging",
|
|
@@ -510,7 +515,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
510
515
|
license,
|
|
511
516
|
homepage,
|
|
512
517
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
513
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
518
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
519
|
+
error: {
|
|
520
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
521
|
+
}
|
|
514
522
|
};
|
|
515
523
|
}, "getDefaultConfig");
|
|
516
524
|
|
|
@@ -820,6 +828,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
820
828
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
821
829
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
822
830
|
},
|
|
831
|
+
error: {
|
|
832
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
833
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
834
|
+
},
|
|
823
835
|
account: {
|
|
824
836
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
825
837
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -993,6 +1005,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
993
1005
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
994
1006
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
995
1007
|
}
|
|
1008
|
+
if (config.error) {
|
|
1009
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
1010
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1011
|
+
}
|
|
996
1012
|
if (config.release) {
|
|
997
1013
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
998
1014
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -1123,7 +1139,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1123
1139
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
1124
1140
|
}
|
|
1125
1141
|
if (config.registry.container) {
|
|
1126
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
1142
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
1127
1143
|
}
|
|
1128
1144
|
}
|
|
1129
1145
|
if (config.logLevel) {
|
|
@@ -1243,7 +1259,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
|
|
|
1243
1259
|
// ../config-tools/src/create-storm-config.ts
|
|
1244
1260
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1245
1261
|
var _static_cache = void 0;
|
|
1246
|
-
var
|
|
1262
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1247
1263
|
let result;
|
|
1248
1264
|
if (!_optionalChain([_static_cache, 'optionalAccess', _54 => _54.data]) || !_optionalChain([_static_cache, 'optionalAccess', _55 => _55.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1249
1265
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1258,7 +1274,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
1258
1274
|
logLevel: "all"
|
|
1259
1275
|
});
|
|
1260
1276
|
}
|
|
1261
|
-
result = await
|
|
1277
|
+
result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
1262
1278
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1263
1279
|
} else {
|
|
1264
1280
|
result = _static_cache.data;
|
|
@@ -1274,7 +1290,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
1274
1290
|
data: result
|
|
1275
1291
|
};
|
|
1276
1292
|
return result;
|
|
1277
|
-
}, "
|
|
1293
|
+
}, "createStormWorkspaceConfig");
|
|
1278
1294
|
var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName, schema) => {
|
|
1279
1295
|
const extension_cache_key = {
|
|
1280
1296
|
extensionName
|
|
@@ -1289,19 +1305,19 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
1289
1305
|
_extension_cache.set(extension_cache_key, extension);
|
|
1290
1306
|
return extension;
|
|
1291
1307
|
}, "createConfigExtension");
|
|
1292
|
-
var
|
|
1293
|
-
const config = await
|
|
1308
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
1309
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1294
1310
|
setConfigEnv(config);
|
|
1295
1311
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1296
1312
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1297
1313
|
${formatLogMessage(config)}`, config);
|
|
1298
1314
|
}
|
|
1299
1315
|
return config;
|
|
1300
|
-
}, "
|
|
1316
|
+
}, "loadStormWorkspaceConfig");
|
|
1301
1317
|
|
|
1302
1318
|
// ../config-tools/src/get-config.ts
|
|
1303
1319
|
var getConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
|
|
1304
|
-
return
|
|
1320
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1305
1321
|
}, "getConfig");
|
|
1306
1322
|
|
|
1307
1323
|
|
|
@@ -8,7 +8,7 @@ var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -35,8 +35,8 @@ var createNodes = [
|
|
|
35
35
|
if (_optionalChain([projectJson, 'optionalAccess', _2 => _2.name])) {
|
|
36
36
|
return {};
|
|
37
37
|
}
|
|
38
|
-
const workspaceRoot =
|
|
39
|
-
const config = await
|
|
38
|
+
const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
39
|
+
const config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
Object.keys(projectJson).forEach((key) => {
|
|
41
41
|
if (!project[key]) {
|
|
42
42
|
project[key] = projectJson[key];
|
|
@@ -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 _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -32,7 +32,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
if (result.includes("{workspaceRoot}")) {
|
|
35
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => (
|
|
35
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, ))));
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunk7AUWIK6Ejs = require('./chunk-7AUWIK6E.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -12,7 +12,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
12
12
|
var _devkit = require('@nx/devkit');
|
|
13
13
|
var _path = require('path');
|
|
14
14
|
async function helmChartGeneratorFn(tree, options, config) {
|
|
15
|
-
|
|
15
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "\u{1F4DD} Preparing to write Helm Chart", config);
|
|
16
16
|
const project = _devkit.readProjectConfiguration.call(void 0, tree, options.project);
|
|
17
17
|
if (_optionalChain([project, 'access', _ => _.targets, 'optionalAccess', _2 => _2["helm-package"]])) {
|
|
18
18
|
throw new Error(`Project ${options.project} already has a helm target. Please remove it before running this command.`);
|
|
@@ -49,7 +49,7 @@ async function helmChartGeneratorFn(tree, options, config) {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
_chunk3GQAWCBQjs.__name.call(void 0, helmChartGeneratorFn, "helmChartGeneratorFn");
|
|
52
|
-
var generator_default =
|
|
52
|
+
var generator_default = _chunk7AUWIK6Ejs.withRunGenerator.call(void 0, "Helm Chart", helmChartGeneratorFn);
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-QSYJ4VHO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SQWTERQC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6F7C2HU3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-2BPV2XV2.mjs";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -59,7 +59,7 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
59
59
|
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
60
60
|
}
|
|
61
61
|
if (result.includes("{workspaceRoot}")) {
|
|
62
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
62
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, ))));
|
|
63
63
|
}
|
|
64
64
|
return result;
|
|
65
65
|
}, "applyWorkspaceExecutorTokens");
|
|
@@ -72,8 +72,8 @@ async function* publishExecutor(options, context) {
|
|
|
72
72
|
throw new Error("The executor requires a projectName.");
|
|
73
73
|
}
|
|
74
74
|
console.info(`\u{1F680} Running Storm Container Registry Publish executor on the ${context.projectName} crate`);
|
|
75
|
-
const workspaceRoot =
|
|
76
|
-
const config = await
|
|
75
|
+
const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
76
|
+
const config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
|
|
77
77
|
const projectConfig = _optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects, 'access', _4 => _4[context.projectName]]);
|
|
78
78
|
if (!projectConfig) {
|
|
79
79
|
throw new Error(`The executor requires a valid projectsConfiguration - No configuration found for project ${context.projectName}`);
|
|
@@ -82,7 +82,7 @@ async function* publishExecutor(options, context) {
|
|
|
82
82
|
const sourceRoot = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _6 => _6.sourceRoot]), () => ( workspaceRoot));
|
|
83
83
|
const projectName = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _7 => _7.name]), () => ( context.projectName));
|
|
84
84
|
config.workspaceRoot = workspaceRoot;
|
|
85
|
-
const tokenized = await
|
|
85
|
+
const tokenized = await _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, {
|
|
86
86
|
config,
|
|
87
87
|
workspaceRoot,
|
|
88
88
|
projectRoot,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceProjectTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SQWTERQC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot,
|
|
7
7
|
formatLogMessage,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6F7C2HU3.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createHelmClient
|
|
20
20
|
} from "./chunk-4LVLYUQO.mjs";
|