@storm-software/k8s-tools 0.24.69 → 0.24.72

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-PGBUNXO7.js → chunk-3OATAJ3B.js} +26 -25
  4. package/dist/{chunk-CZTVYRID.mjs → chunk-64SIKGJH.mjs} +3 -3
  5. package/dist/{chunk-PPDBX2DB.mjs → chunk-A3MPFMCY.mjs} +4 -4
  6. package/dist/{chunk-VE7J7D3X.js → chunk-ARMCUBMY.js} +14 -9
  7. package/dist/{chunk-D4VO3DCN.mjs → chunk-FULZ6CEA.mjs} +3 -3
  8. package/dist/{chunk-Y5TIVTDC.js → chunk-G7TAEXNU.js} +3 -3
  9. package/dist/{chunk-G7P6LRP6.mjs → chunk-GQNRXLSS.mjs} +15 -10
  10. package/dist/{chunk-JO75D6RV.mjs → chunk-GR5MMTTX.mjs} +3 -3
  11. package/dist/{chunk-QAUF7D74.mjs → chunk-HKY2SDLX.mjs} +1 -1
  12. package/dist/{chunk-SSXO7X7J.js → chunk-IQYUMTUG.js} +4 -4
  13. package/dist/{chunk-BHDHCIR5.mjs → chunk-KGKE4OZZ.mjs} +1 -1
  14. package/dist/{chunk-OPP4IMYZ.js → chunk-OIKG7EMC.js} +2 -2
  15. package/dist/{chunk-UG6MUDEB.mjs → chunk-P6TL3VCN.mjs} +2 -2
  16. package/dist/{chunk-FMUZ2ZD5.js → chunk-PDHZDUK3.js} +6 -6
  17. package/dist/{chunk-QQZ4PBT3.mjs → chunk-QTT3BVML.mjs} +3 -3
  18. package/dist/{chunk-CW4NXQ36.mjs → chunk-R2N4B3KK.mjs} +3 -3
  19. package/dist/{chunk-XTY7BXZU.js → chunk-RKHT4PWO.js} +19 -19
  20. package/dist/{chunk-3XH4BC62.mjs → chunk-TDKCD2UH.mjs} +1 -1
  21. package/dist/{chunk-5L4K65CJ.mjs → chunk-VBJEIRYY.mjs} +5 -4
  22. package/dist/{chunk-Y4D6KHJP.mjs → chunk-VGSUCQ2S.mjs} +1 -1
  23. package/dist/{chunk-AIGYW4R3.mjs → chunk-VYR2ASHT.mjs} +1 -1
  24. package/dist/{chunk-S4UA2QEG.js → chunk-X7ALQPYH.js} +4 -4
  25. package/dist/executors.js +5 -5
  26. package/dist/executors.mjs +9 -9
  27. package/dist/generators.js +6 -6
  28. package/dist/generators.mjs +6 -6
  29. package/dist/index.js +9 -9
  30. package/dist/index.mjs +14 -14
  31. package/dist/src/executors/container-publish/executor.js +4 -4
  32. package/dist/src/executors/container-publish/executor.mjs +5 -5
  33. package/dist/src/executors/helm-package/executor.js +4 -4
  34. package/dist/src/executors/helm-package/executor.mjs +7 -7
  35. package/dist/src/generators/helm-chart/generator.js +5 -5
  36. package/dist/src/generators/helm-chart/generator.mjs +5 -5
  37. package/dist/src/generators/helm-dependency/generator.js +5 -5
  38. package/dist/src/generators/helm-dependency/generator.mjs +5 -5
  39. package/dist/src/plugins/docker/index.js +3 -3
  40. package/dist/src/plugins/docker/index.mjs +4 -4
  41. package/dist/src/types.mjs +2 -2
  42. package/dist/src/utils/client.mjs +4 -4
  43. package/dist/src/utils/ensure-init.mjs +2 -2
  44. package/dist/src/utils/index.mjs +5 -5
  45. package/dist/src/utils/prettier.mjs +2 -2
  46. package/dist/tsup.config.mjs +1 -1
  47. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  # Changelog for Storm Ops - K8s Tools
4
4
 
5
+ ## [0.24.72](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.72) (2025-04-25)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([2a4a88059](https://github.com/storm-software/storm-ops/commit/2a4a88059))
11
+
12
+ ## [0.24.71](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.71) (2025-04-25)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **monorepo:** Regenerate README markdown files
17
+ ([9ab7e03d9](https://github.com/storm-software/storm-ops/commit/9ab7e03d9))
18
+
5
19
  ## [0.24.69](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.69) (2025-04-16)
6
20
 
7
21
  ### 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
- [![Version](https://img.shields.io/badge/version-0.24.69-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.24.71-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkOPP4IMYZjs = require('./chunk-OPP4IMYZ.js');
4
+ var _chunkOIKG7EMCjs = require('./chunk-OIKG7EMC.js');
5
5
 
6
6
 
7
7
 
@@ -14,7 +14,7 @@ var _chunkOPP4IMYZjs = require('./chunk-OPP4IMYZ.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkVE7J7D3Xjs = require('./chunk-VE7J7D3X.js');
17
+ var _chunkARMCUBMYjs = require('./chunk-ARMCUBMY.js');
18
18
 
19
19
 
20
20
  var _chunk2GAU2GHGjs = require('./chunk-2GAU2GHG.js');
@@ -25,79 +25,80 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
25
25
  // ../workspace-tools/src/base/base-executor.ts
26
26
  var _defu = require('defu');
27
27
  var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
28
- const stopwatch = _chunkVE7J7D3Xjs.getStopwatch.call(void 0, name);
28
+ const stopwatch = _chunkARMCUBMYjs.getStopwatch.call(void 0, name);
29
29
  let options = _options;
30
30
  let config = {};
31
31
  try {
32
32
  if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
33
33
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
34
34
  }
35
- const workspaceRoot = _chunkVE7J7D3Xjs.findWorkspaceRoot.call(void 0, );
35
+ const workspaceRoot = _chunkARMCUBMYjs.findWorkspaceRoot.call(void 0, );
36
36
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
37
37
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
38
38
  const projectName = context.projectName;
39
39
  config.workspaceRoot = workspaceRoot;
40
- _chunkVE7J7D3Xjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
40
+ _chunkARMCUBMYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
41
41
  if (!executorOptions.skipReadingConfig) {
42
- _chunkVE7J7D3Xjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
42
+ _chunkARMCUBMYjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
43
43
  - workspaceRoot: ${workspaceRoot}
44
44
  - projectRoot: ${projectRoot}
45
45
  - sourceRoot: ${sourceRoot}
46
46
  - projectName: ${projectName}
47
47
  `, config);
48
- config = await _chunkVE7J7D3Xjs.getConfig.call(void 0, workspaceRoot);
48
+ config = await _chunkARMCUBMYjs.getConfig.call(void 0, workspaceRoot);
49
49
  }
50
50
  if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
51
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
51
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
52
52
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
53
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
53
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
54
54
  }
55
- _chunkVE7J7D3Xjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
56
- ${_chunkVE7J7D3Xjs.formatLogMessage.call(void 0, options)}
55
+ _chunkARMCUBMYjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
56
+ ${_chunkARMCUBMYjs.formatLogMessage.call(void 0, options)}
57
57
  `, config);
58
- const tokenized = await _chunkOPP4IMYZjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
58
+ const tokenized = await _chunkOIKG7EMCjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
59
59
  workspaceRoot,
60
60
  projectRoot,
61
61
  sourceRoot,
62
62
  projectName,
63
63
  config
64
- }, config, context.projectsConfigurations.projects[context.projectName]), _chunkOPP4IMYZjs.applyWorkspaceProjectTokens);
65
- _chunkVE7J7D3Xjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
66
- ${_chunkVE7J7D3Xjs.formatLogMessage.call(void 0, tokenized)}
64
+ }, config, context.projectsConfigurations.projects[context.projectName]), _chunkOIKG7EMCjs.applyWorkspaceProjectTokens);
65
+ _chunkARMCUBMYjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
66
+ ${_chunkARMCUBMYjs.formatLogMessage.call(void 0, tokenized)}
67
67
  `, config);
68
68
  if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
69
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
69
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
70
70
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
71
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
71
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
72
72
  }
73
73
  const ret = executorFn(tokenized, context, config);
74
74
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
75
75
  const asyncGen = ret;
76
76
  for await (const iter of asyncGen) {
77
+ void iter;
77
78
  }
78
79
  }
79
80
  const result = await Promise.resolve(ret);
80
81
  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")) {
81
- _chunkVE7J7D3Xjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
82
- ${_chunkVE7J7D3Xjs.formatLogMessage.call(void 0, result)}`, config);
82
+ _chunkARMCUBMYjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
83
+ ${_chunkARMCUBMYjs.formatLogMessage.call(void 0, result)}`, config);
83
84
  console.error(result);
84
85
  throw new Error(`The ${name} executor failed to run`, {
85
86
  cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
86
87
  });
87
88
  }
88
89
  if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
89
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
90
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
90
91
  await Promise.resolve(executorOptions.hooks.postProcess(config));
91
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
92
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
92
93
  }
93
- _chunkVE7J7D3Xjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
94
+ _chunkARMCUBMYjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
94
95
  `, config);
95
96
  return {
96
97
  success: true
97
98
  };
98
99
  } catch (error) {
99
- _chunkVE7J7D3Xjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
100
- _chunkVE7J7D3Xjs.writeError.call(void 0, `An exception was thrown in the executor's process
100
+ _chunkARMCUBMYjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
101
+ _chunkARMCUBMYjs.writeError.call(void 0, `An exception was thrown in the executor's process
101
102
  - Details: ${error.message}
102
103
  - Stacktrace: ${error.stack}`, config);
103
104
  return {
@@ -146,7 +147,7 @@ async function serveExecutor(options, context, config) {
146
147
  remote: options.remote
147
148
  });
148
149
  } else {
149
- _chunkVE7J7D3Xjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
150
+ _chunkARMCUBMYjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
150
151
  }
151
152
  return {
152
153
  success: true
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyWorkspaceBaseTokens,
3
3
  applyWorkspaceTokens
4
- } from "./chunk-UG6MUDEB.mjs";
4
+ } from "./chunk-P6TL3VCN.mjs";
5
5
  import {
6
6
  findWorkspaceRoot,
7
7
  getConfig,
@@ -12,10 +12,10 @@ import {
12
12
  writeInfo,
13
13
  writeSuccess,
14
14
  writeTrace
15
- } from "./chunk-G7P6LRP6.mjs";
15
+ } from "./chunk-GQNRXLSS.mjs";
16
16
  import {
17
17
  __name
18
- } from "./chunk-Y4D6KHJP.mjs";
18
+ } from "./chunk-VGSUCQ2S.mjs";
19
19
 
20
20
  // ../workspace-tools/src/base/base-generator.ts
21
21
  var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptions = {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  getPackageInfo
3
- } from "./chunk-BHDHCIR5.mjs";
3
+ } from "./chunk-KGKE4OZZ.mjs";
4
4
  import {
5
5
  applyWorkspaceTokens
6
- } from "./chunk-UG6MUDEB.mjs";
6
+ } from "./chunk-P6TL3VCN.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getConfig
10
- } from "./chunk-G7P6LRP6.mjs";
10
+ } from "./chunk-GQNRXLSS.mjs";
11
11
  import {
12
12
  __name
13
- } from "./chunk-Y4D6KHJP.mjs";
13
+ } from "./chunk-VGSUCQ2S.mjs";
14
14
 
15
15
  // src/executors/container-publish/executor.ts
16
16
  import { parseTargetString, runExecutor } from "@nx/devkit";
@@ -395,7 +395,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
395
395
  "staging",
396
396
  "production"
397
397
  ]).default("production").describe("The current runtime environment mode for the package"),
398
- workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
398
+ workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
399
399
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
400
400
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
401
401
  directories: WorkspaceDirectoryConfigSchema,
@@ -795,7 +795,7 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
795
795
  }
796
796
  }
797
797
  }
798
- if (!config) {
798
+ if (!config || Object.keys(config).length === 0) {
799
799
  return void 0;
800
800
  }
801
801
  config.configFile = configFile;
@@ -1266,7 +1266,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1266
1266
  // ../config-tools/src/create-storm-config.ts
1267
1267
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1268
1268
  var _static_cache = void 0;
1269
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1269
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1270
1270
  let result;
1271
1271
  if (!_optionalChain([_static_cache, 'optionalAccess', _54 => _54.data]) || !_optionalChain([_static_cache, 'optionalAccess', _55 => _55.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1272
1272
  let _workspaceRoot = workspaceRoot;
@@ -1274,13 +1274,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1274
1274
  _workspaceRoot = findWorkspaceRoot();
1275
1275
  }
1276
1276
  const configEnv = getConfigEnv();
1277
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1278
1277
  const configFile = await getConfigFile(_workspaceRoot);
1279
- if (!configFile && !skipLogs) {
1280
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
1281
- logLevel: "all"
1282
- });
1278
+ if (!configFile) {
1279
+ if (!skipLogs) {
1280
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
1281
+ logLevel: "all"
1282
+ });
1283
+ }
1284
+ if (useDefault === false) {
1285
+ return void 0;
1286
+ }
1283
1287
  }
1288
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
1284
1289
  result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
1285
1290
  result.workspaceRoot ??= _workspaceRoot;
1286
1291
  } else {
@@ -1313,7 +1318,7 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
1313
1318
  return extension;
1314
1319
  }, "createConfigExtension");
1315
1320
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
1316
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
1321
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
1317
1322
  setConfigEnv(config);
1318
1323
  if (!skipLogs && !config.skipConfigLogging) {
1319
1324
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  AbstractHelmClient
3
- } from "./chunk-QAUF7D74.mjs";
3
+ } from "./chunk-HKY2SDLX.mjs";
4
4
  import {
5
5
  ensureInitialized
6
- } from "./chunk-3XH4BC62.mjs";
6
+ } from "./chunk-TDKCD2UH.mjs";
7
7
  import {
8
8
  __name
9
- } from "./chunk-Y4D6KHJP.mjs";
9
+ } from "./chunk-VGSUCQ2S.mjs";
10
10
 
11
11
  // src/utils/client.ts
12
12
  import { execSync } from "node:child_process";
@@ -8,7 +8,7 @@ var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkVE7J7D3Xjs = require('./chunk-VE7J7D3X.js');
11
+ var _chunkARMCUBMYjs = require('./chunk-ARMCUBMY.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 = _chunkVE7J7D3Xjs.findWorkspaceRoot.call(void 0, );
39
- const config = await _chunkVE7J7D3Xjs.getConfig.call(void 0, workspaceRoot);
38
+ const workspaceRoot = _chunkARMCUBMYjs.findWorkspaceRoot.call(void 0, );
39
+ const config = await _chunkARMCUBMYjs.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
  import {
2
2
  __name
3
- } from "./chunk-Y4D6KHJP.mjs";
3
+ } from "./chunk-VGSUCQ2S.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/correct-paths.ts
6
6
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -395,7 +395,7 @@ var stormWorkspaceConfigSchema = z.object({
395
395
  "staging",
396
396
  "production"
397
397
  ]).default("production").describe("The current runtime environment mode for the package"),
398
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
398
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
399
399
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
400
400
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
401
401
  directories: WorkspaceDirectoryConfigSchema,
@@ -795,7 +795,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
795
795
  }
796
796
  }
797
797
  }
798
- if (!config) {
798
+ if (!config || Object.keys(config).length === 0) {
799
799
  return void 0;
800
800
  }
801
801
  config.configFile = configFile;
@@ -1266,7 +1266,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
1266
1266
  // ../config-tools/src/create-storm-config.ts
1267
1267
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1268
1268
  var _static_cache = void 0;
1269
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1269
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1270
1270
  let result;
1271
1271
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
1272
1272
  let _workspaceRoot = workspaceRoot;
@@ -1274,13 +1274,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
1274
1274
  _workspaceRoot = findWorkspaceRoot();
1275
1275
  }
1276
1276
  const configEnv = getConfigEnv();
1277
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1278
1277
  const configFile = await getConfigFile(_workspaceRoot);
1279
- if (!configFile && !skipLogs) {
1280
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
1281
- logLevel: "all"
1282
- });
1278
+ if (!configFile) {
1279
+ if (!skipLogs) {
1280
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
1281
+ logLevel: "all"
1282
+ });
1283
+ }
1284
+ if (useDefault === false) {
1285
+ return void 0;
1286
+ }
1283
1287
  }
1288
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
1284
1289
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
1285
1290
  result.workspaceRoot ??= _workspaceRoot;
1286
1291
  } else {
@@ -1313,7 +1318,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
1313
1318
  return extension;
1314
1319
  }, "createConfigExtension");
1315
1320
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
1316
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
1321
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
1317
1322
  setConfigEnv(config);
1318
1323
  if (!skipLogs && !config.skipConfigLogging) {
1319
1324
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-CZTVYRID.mjs";
3
+ } from "./chunk-64SIKGJH.mjs";
4
4
  import {
5
5
  writeDebug
6
- } from "./chunk-G7P6LRP6.mjs";
6
+ } from "./chunk-GQNRXLSS.mjs";
7
7
  import {
8
8
  __name
9
- } from "./chunk-Y4D6KHJP.mjs";
9
+ } from "./chunk-VGSUCQ2S.mjs";
10
10
 
11
11
  // src/generators/helm-dependency/generator.ts
12
12
  import { formatFiles, readProjectConfiguration, updateProjectConfiguration } from "@nx/devkit";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-Y4D6KHJP.mjs";
3
+ } from "./chunk-VGSUCQ2S.mjs";
4
4
 
5
5
  // src/types.ts
6
6
  var AbstractHelmClient = class {
@@ -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 _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 _chunkXTY7BXZUjs = require('./chunk-XTY7BXZU.js');
3
+ var _chunkRKHT4PWOjs = require('./chunk-RKHT4PWO.js');
4
4
 
5
5
 
6
- var _chunkVE7J7D3Xjs = require('./chunk-VE7J7D3X.js');
6
+ var _chunkARMCUBMYjs = require('./chunk-ARMCUBMY.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 _jsyaml = require('js-yaml'); var _jsyaml2 = _interopRequireDefault(_jsyaml);
14
14
  async function helmDependencyGeneratorFn(tree, options, config) {
15
- _chunkVE7J7D3Xjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to add Helm Dependency", config);
15
+ _chunkARMCUBMYjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to add Helm Dependency", 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} does not have a helm target. Please run the chart generator first.`);
@@ -27,7 +27,7 @@ async function helmDependencyGeneratorFn(tree, options, config) {
27
27
  };
28
28
  }
29
29
  _chunk3GQAWCBQjs.__name.call(void 0, helmDependencyGeneratorFn, "helmDependencyGeneratorFn");
30
- var generator_default = _chunkXTY7BXZUjs.withRunGenerator.call(void 0, "Helm Dependency", helmDependencyGeneratorFn);
30
+ var generator_default = _chunkRKHT4PWOjs.withRunGenerator.call(void 0, "Helm Dependency", helmDependencyGeneratorFn);
31
31
  function addDependencyToConfig(project, name, url) {
32
32
  return {
33
33
  ...project,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-Y4D6KHJP.mjs";
3
+ } from "./chunk-VGSUCQ2S.mjs";
4
4
 
5
5
  // ../workspace-tools/src/utils/package-helpers.ts
6
6
  import { joinPathFragments, readJsonFile } from "@nx/devkit";
@@ -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 _chunkVE7J7D3Xjs = require('./chunk-VE7J7D3X.js');
3
+ var _chunkARMCUBMYjs = require('./chunk-ARMCUBMY.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]))), () => ( _chunkVE7J7D3Xjs.findWorkspaceRoot.call(void 0, ))));
35
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkARMCUBMYjs.findWorkspaceRoot.call(void 0, ))));
36
36
  }
37
37
  return result;
38
38
  }, "applyWorkspaceBaseTokens");
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  findWorkspaceRoot
3
- } from "./chunk-G7P6LRP6.mjs";
3
+ } from "./chunk-GQNRXLSS.mjs";
4
4
  import {
5
5
  __name
6
- } from "./chunk-Y4D6KHJP.mjs";
6
+ } from "./chunk-VGSUCQ2S.mjs";
7
7
 
8
8
  // ../config-tools/src/utilities/apply-workspace-tokens.ts
9
9
  var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
@@ -3,11 +3,11 @@
3
3
  var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
4
4
 
5
5
 
6
- var _chunkOPP4IMYZjs = require('./chunk-OPP4IMYZ.js');
6
+ var _chunkOIKG7EMCjs = require('./chunk-OIKG7EMC.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkVE7J7D3Xjs = require('./chunk-VE7J7D3X.js');
10
+ var _chunkARMCUBMYjs = require('./chunk-ARMCUBMY.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, () => ( _chunkVE7J7D3Xjs.findWorkspaceRoot.call(void 0, ))));
62
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkARMCUBMYjs.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 = _chunkVE7J7D3Xjs.findWorkspaceRoot.call(void 0, );
76
- const config = await _chunkVE7J7D3Xjs.getConfig.call(void 0, workspaceRoot);
75
+ const workspaceRoot = _chunkARMCUBMYjs.findWorkspaceRoot.call(void 0, );
76
+ const config = await _chunkARMCUBMYjs.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 _chunkOPP4IMYZjs.applyWorkspaceTokens.call(void 0, options, {
85
+ const tokenized = await _chunkOIKG7EMCjs.applyWorkspaceTokens.call(void 0, options, {
86
86
  config,
87
87
  workspaceRoot,
88
88
  projectRoot,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-CZTVYRID.mjs";
3
+ } from "./chunk-64SIKGJH.mjs";
4
4
  import {
5
5
  writeDebug
6
- } from "./chunk-G7P6LRP6.mjs";
6
+ } from "./chunk-GQNRXLSS.mjs";
7
7
  import {
8
8
  __dirname,
9
9
  __name
10
- } from "./chunk-Y4D6KHJP.mjs";
10
+ } from "./chunk-VGSUCQ2S.mjs";
11
11
 
12
12
  // src/generators/helm-chart/generator.ts
13
13
  import { formatFiles, generateFiles, readProjectConfiguration, updateProjectConfiguration } from "@nx/devkit";
@@ -4,14 +4,14 @@ import {
4
4
  hasProjectTag,
5
5
  isEqualProjectTag,
6
6
  setDefaultProjectTags
7
- } from "./chunk-BHDHCIR5.mjs";
7
+ } from "./chunk-KGKE4OZZ.mjs";
8
8
  import {
9
9
  findWorkspaceRoot,
10
10
  getConfig
11
- } from "./chunk-G7P6LRP6.mjs";
11
+ } from "./chunk-GQNRXLSS.mjs";
12
12
  import {
13
13
  __name
14
- } from "./chunk-Y4D6KHJP.mjs";
14
+ } from "./chunk-VGSUCQ2S.mjs";
15
15
 
16
16
  // src/plugins/docker/_dockerfile.ts
17
17
  import { joinPathFragments, readJsonFile } from "@nx/devkit";