@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.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/dist/{chunk-PGBUNXO7.js → chunk-3OATAJ3B.js} +26 -25
- package/dist/{chunk-CZTVYRID.mjs → chunk-64SIKGJH.mjs} +3 -3
- package/dist/{chunk-PPDBX2DB.mjs → chunk-A3MPFMCY.mjs} +4 -4
- package/dist/{chunk-VE7J7D3X.js → chunk-ARMCUBMY.js} +14 -9
- package/dist/{chunk-D4VO3DCN.mjs → chunk-FULZ6CEA.mjs} +3 -3
- package/dist/{chunk-Y5TIVTDC.js → chunk-G7TAEXNU.js} +3 -3
- package/dist/{chunk-G7P6LRP6.mjs → chunk-GQNRXLSS.mjs} +15 -10
- package/dist/{chunk-JO75D6RV.mjs → chunk-GR5MMTTX.mjs} +3 -3
- package/dist/{chunk-QAUF7D74.mjs → chunk-HKY2SDLX.mjs} +1 -1
- package/dist/{chunk-SSXO7X7J.js → chunk-IQYUMTUG.js} +4 -4
- package/dist/{chunk-BHDHCIR5.mjs → chunk-KGKE4OZZ.mjs} +1 -1
- package/dist/{chunk-OPP4IMYZ.js → chunk-OIKG7EMC.js} +2 -2
- package/dist/{chunk-UG6MUDEB.mjs → chunk-P6TL3VCN.mjs} +2 -2
- package/dist/{chunk-FMUZ2ZD5.js → chunk-PDHZDUK3.js} +6 -6
- package/dist/{chunk-QQZ4PBT3.mjs → chunk-QTT3BVML.mjs} +3 -3
- package/dist/{chunk-CW4NXQ36.mjs → chunk-R2N4B3KK.mjs} +3 -3
- package/dist/{chunk-XTY7BXZU.js → chunk-RKHT4PWO.js} +19 -19
- package/dist/{chunk-3XH4BC62.mjs → chunk-TDKCD2UH.mjs} +1 -1
- package/dist/{chunk-5L4K65CJ.mjs → chunk-VBJEIRYY.mjs} +5 -4
- package/dist/{chunk-Y4D6KHJP.mjs → chunk-VGSUCQ2S.mjs} +1 -1
- package/dist/{chunk-AIGYW4R3.mjs → chunk-VYR2ASHT.mjs} +1 -1
- package/dist/{chunk-S4UA2QEG.js → chunk-X7ALQPYH.js} +4 -4
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +9 -9
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +6 -6
- package/dist/index.js +9 -9
- package/dist/index.mjs +14 -14
- package/dist/src/executors/container-publish/executor.js +4 -4
- package/dist/src/executors/container-publish/executor.mjs +5 -5
- package/dist/src/executors/helm-package/executor.js +4 -4
- package/dist/src/executors/helm-package/executor.mjs +7 -7
- package/dist/src/generators/helm-chart/generator.js +5 -5
- package/dist/src/generators/helm-chart/generator.mjs +5 -5
- package/dist/src/generators/helm-dependency/generator.js +5 -5
- package/dist/src/generators/helm-dependency/generator.mjs +5 -5
- package/dist/src/plugins/docker/index.js +3 -3
- package/dist/src/plugins/docker/index.mjs +4 -4
- package/dist/src/types.mjs +2 -2
- package/dist/src/utils/client.mjs +4 -4
- package/dist/src/utils/ensure-init.mjs +2 -2
- package/dist/src/utils/index.mjs +5 -5
- package/dist/src/utils/prettier.mjs +2 -2
- package/dist/tsup.config.mjs +1 -1
- 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,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
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
40
|
+
_chunkARMCUBMYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
41
41
|
if (!executorOptions.skipReadingConfig) {
|
|
42
|
-
|
|
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
|
|
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
|
-
|
|
51
|
+
_chunkARMCUBMYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
52
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
-
|
|
53
|
+
_chunkARMCUBMYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
${
|
|
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
|
|
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]),
|
|
65
|
-
|
|
66
|
-
${
|
|
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
|
-
|
|
69
|
+
_chunkARMCUBMYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
70
70
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
71
|
-
|
|
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
|
-
|
|
82
|
-
${
|
|
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
|
-
|
|
90
|
+
_chunkARMCUBMYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
90
91
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
91
|
-
|
|
92
|
+
_chunkARMCUBMYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
92
93
|
}
|
|
93
|
-
|
|
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
|
-
|
|
100
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
15
|
+
} from "./chunk-GQNRXLSS.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-KGKE4OZZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P6TL3VCN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GQNRXLSS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
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().
|
|
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
|
|
1280
|
-
|
|
1281
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-HKY2SDLX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ensureInitialized
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TDKCD2UH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
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
|
|
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 =
|
|
39
|
-
const config = await
|
|
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-
|
|
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().
|
|
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
|
|
1280
|
-
|
|
1281
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-64SIKGJH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeDebug
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQNRXLSS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
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,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
|
|
3
|
+
var _chunkRKHT4PWOjs = require('./chunk-RKHT4PWO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
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
|
-
|
|
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 =
|
|
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
|
"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 _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]))), () => (
|
|
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-
|
|
3
|
+
} from "./chunk-GQNRXLSS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
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
|
|
6
|
+
var _chunkOIKG7EMCjs = require('./chunk-OIKG7EMC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
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, () => (
|
|
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 =
|
|
76
|
-
const config = await
|
|
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
|
|
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-
|
|
3
|
+
} from "./chunk-64SIKGJH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeDebug
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQNRXLSS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__dirname,
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
7
|
+
} from "./chunk-KGKE4OZZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
findWorkspaceRoot,
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GQNRXLSS.mjs";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VGSUCQ2S.mjs";
|
|
15
15
|
|
|
16
16
|
// src/plugins/docker/_dockerfile.ts
|
|
17
17
|
import { joinPathFragments, readJsonFile } from "@nx/devkit";
|