@storm-software/k8s-tools 0.23.7 → 0.23.9
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-CYX2EGNR.js → chunk-4EGVVLI3.js} +4 -4
- package/dist/{chunk-2KQ424CX.js → chunk-6VJ4YIAW.js} +2 -2
- package/dist/{chunk-4DFXY52M.js → chunk-7BEW7XW4.js} +25 -25
- package/dist/{chunk-UAYQFQHK.js → chunk-7LCHKXTN.js} +6 -6
- package/dist/{chunk-6YMDSAA2.mjs → chunk-AB6D2LAH.mjs} +1 -1
- package/dist/{chunk-QHVQC4QN.mjs → chunk-BDFFDPNP.mjs} +2 -2
- package/dist/{chunk-LYAWWCAB.mjs → chunk-BRC5CRLX.mjs} +1 -1
- package/dist/{chunk-TSVC2RVE.mjs → chunk-BYQ4XJQ5.mjs} +2 -2
- package/dist/{chunk-CBICNJ6E.js → chunk-J7XUSE5I.js} +12 -6
- package/dist/{chunk-WEKPYGWO.js → chunk-JD3FNU5J.js} +19 -19
- package/dist/{chunk-TDTK6IFT.mjs → chunk-M2H6MECZ.mjs} +2 -2
- package/dist/{chunk-PHZZBOSZ.js → chunk-MKCXXASB.js} +3 -3
- package/dist/{chunk-HOFDLRYP.js → chunk-UMI64N73.js} +4 -4
- package/dist/{chunk-A7MW7UFA.mjs → chunk-WZZOPQW7.mjs} +2 -2
- package/dist/{chunk-ROJAE6RK.mjs → chunk-XZ36BP73.mjs} +16 -10
- package/dist/{chunk-QPQOI6C5.mjs → chunk-YFBFWKCF.mjs} +2 -2
- package/dist/{executor-D71n4jMa.d.mts → executor-Bdz-Mv0J.d.mts} +1 -1
- package/dist/{executor-MTqWZB_j.d.ts → executor-C8P1WXgN.d.ts} +1 -1
- package/dist/executors.d.mts +2 -2
- package/dist/executors.d.ts +2 -2
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +4 -4
- package/dist/{generator-uvcWUyND.d.mts → generator-8uXPNFWN.d.mts} +1 -1
- package/dist/{generator-p_07U7ir.d.ts → generator-BmLTcTjN.d.ts} +1 -1
- package/dist/{generator-CIKNY8lm.d.ts → generator-CYcHfQas.d.ts} +1 -1
- package/dist/{generator-DwMlsudq.d.mts → generator-cmhbMmbg.d.mts} +1 -1
- package/dist/generators.d.mts +3 -3
- package/dist/generators.d.ts +3 -3
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +5 -5
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/executors/container-publish/executor.d.mts +1 -1
- package/dist/src/executors/container-publish/executor.d.ts +1 -1
- 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 +2 -2
- package/dist/src/executors/helm-package/executor.d.ts +2 -2
- 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 +2 -2
- package/dist/src/generators/helm-chart/generator.d.ts +2 -2
- 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 +2 -2
- package/dist/src/generators/helm-dependency/generator.d.ts +2 -2
- 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/dist/{types-BQ21E8Xn.d.mts → types-CMF_wowV.d.mts} +2 -2
- package/dist/{types-BQ21E8Xn.d.ts → types-CMF_wowV.d.ts} +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.23.9 (2025-01-23)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([eb629846](https://github.com/storm-software/storm-ops/commit/eb629846))
|
|
6
|
+
|
|
7
|
+
## 0.23.8 (2025-01-23)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Resolve issue with invalid Nx Devkit imports ([356d591c](https://github.com/storm-software/storm-ops/commit/356d591c))
|
|
12
|
+
|
|
1
13
|
## 0.23.7 (2025-01-23)
|
|
2
14
|
|
|
3
15
|
### 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,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 _chunkJD3FNU5Jjs = require('./chunk-JD3FNU5J.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.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
|
+
_chunkJ7XUSE5Ijs.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 = _chunkJD3FNU5Jjs.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 _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.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]))), () => ( _chunkJ7XUSE5Ijs.findWorkspaceRoot.call(void 0, ))));
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
@@ -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 _chunk6VJ4YIAWjs = require('./chunk-6VJ4YIAW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ var _chunk2KQ424CXjs = require('./chunk-2KQ424CX.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk2GAU2GHGjs = require('./chunk-2GAU2GHG.js');
|
|
@@ -25,52 +25,52 @@ 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 = _chunkJ7XUSE5Ijs.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 = _chunkJ7XUSE5Ijs.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
|
+
_chunkJ7XUSE5Ijs.writeInfo.call(void 0, `
|
|
41
41
|
\u26A1 Running the ${name} executor for ${projectName}
|
|
42
42
|
`, config);
|
|
43
43
|
if (!executorOptions.skipReadingConfig) {
|
|
44
|
-
|
|
44
|
+
_chunkJ7XUSE5Ijs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
45
45
|
- workspaceRoot: ${workspaceRoot}
|
|
46
46
|
- projectRoot: ${projectRoot}
|
|
47
47
|
- sourceRoot: ${sourceRoot}
|
|
48
48
|
- projectName: ${projectName}
|
|
49
49
|
`, config);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkJ7XUSE5Ijs.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
54
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
55
|
-
|
|
55
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
${
|
|
57
|
+
_chunkJ7XUSE5Ijs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
58
|
+
${_chunkJ7XUSE5Ijs.formatLogMessage.call(void 0, options)}
|
|
59
59
|
`, config);
|
|
60
|
-
const tokenized = await
|
|
60
|
+
const tokenized = await _chunk6VJ4YIAWjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
61
61
|
workspaceRoot,
|
|
62
62
|
projectRoot,
|
|
63
63
|
sourceRoot,
|
|
64
64
|
projectName,
|
|
65
65
|
config
|
|
66
|
-
}, config, context.projectsConfigurations.projects[context.projectName]),
|
|
67
|
-
|
|
68
|
-
${
|
|
66
|
+
}, config, context.projectsConfigurations.projects[context.projectName]), _chunk6VJ4YIAWjs.applyWorkspaceProjectTokens);
|
|
67
|
+
_chunkJ7XUSE5Ijs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
68
|
+
${_chunkJ7XUSE5Ijs.formatLogMessage.call(void 0, tokenized)}
|
|
69
69
|
`, config);
|
|
70
70
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
71
|
-
|
|
71
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
72
72
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
73
|
-
|
|
73
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
74
74
|
}
|
|
75
75
|
const ret = executorFn(tokenized, context, config);
|
|
76
76
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -80,26 +80,26 @@ ${_chunkCBICNJ6Ejs.formatLogMessage.call(void 0, tokenized)}
|
|
|
80
80
|
}
|
|
81
81
|
const result = await Promise.resolve(ret);
|
|
82
82
|
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")) {
|
|
83
|
-
|
|
84
|
-
${
|
|
83
|
+
_chunkJ7XUSE5Ijs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
84
|
+
${_chunkJ7XUSE5Ijs.formatLogMessage.call(void 0, result)}`, config);
|
|
85
85
|
console.error(result);
|
|
86
86
|
throw new Error(`The ${name} executor failed to run`, {
|
|
87
87
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
91
|
-
|
|
91
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
92
92
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
93
|
-
|
|
93
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
_chunkJ7XUSE5Ijs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
96
96
|
`, config);
|
|
97
97
|
return {
|
|
98
98
|
success: true
|
|
99
99
|
};
|
|
100
100
|
} catch (error) {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
_chunkJ7XUSE5Ijs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
102
|
+
_chunkJ7XUSE5Ijs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
103
103
|
- Details: ${error.message}
|
|
104
104
|
- Stacktrace: ${error.stack}`, config);
|
|
105
105
|
return {
|
|
@@ -148,7 +148,7 @@ async function serveExecutor(options, context, config) {
|
|
|
148
148
|
remote: options.remote
|
|
149
149
|
});
|
|
150
150
|
} else {
|
|
151
|
-
|
|
151
|
+
_chunkJ7XUSE5Ijs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
152
152
|
}
|
|
153
153
|
return {
|
|
154
154
|
success: true
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6VJ4YIAWjs = require('./chunk-6VJ4YIAW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.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, () => ( _chunkJ7XUSE5Ijs.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 = _chunkJ7XUSE5Ijs.findWorkspaceRoot.call(void 0, );
|
|
76
|
+
const config = await _chunkJ7XUSE5Ijs.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 _chunk6VJ4YIAWjs.applyWorkspaceTokens.call(void 0, options, {
|
|
86
86
|
config,
|
|
87
87
|
workspaceRoot,
|
|
88
88
|
projectRoot,
|
|
@@ -3,26 +3,32 @@
|
|
|
3
3
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
-
var
|
|
6
|
+
var _path = require('path');
|
|
7
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (osSpecificPath) => {
|
|
8
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
9
|
+
}, "removeWindowsDriveLetter");
|
|
7
10
|
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (path) => {
|
|
8
11
|
if (!path) {
|
|
9
12
|
return "";
|
|
10
13
|
}
|
|
11
|
-
if (
|
|
12
|
-
path
|
|
14
|
+
if (path.includes("\\")) {
|
|
15
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
16
|
+
path = `C:${path}`;
|
|
17
|
+
}
|
|
18
|
+
return path.replaceAll("/", "\\");
|
|
13
19
|
}
|
|
14
|
-
return path.
|
|
20
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
15
21
|
}, "correctPaths");
|
|
16
22
|
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (...paths) => {
|
|
17
23
|
if (!paths || paths.length === 0) {
|
|
18
24
|
return "";
|
|
19
25
|
}
|
|
20
|
-
return correctPaths(
|
|
26
|
+
return correctPaths(_path.join.call(void 0, ...paths));
|
|
21
27
|
}, "joinPaths");
|
|
22
28
|
|
|
23
29
|
// ../config-tools/src/utilities/find-up.ts
|
|
24
30
|
var _fs = require('fs');
|
|
25
|
-
|
|
31
|
+
|
|
26
32
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
27
33
|
var depth = 0;
|
|
28
34
|
function findFolderUp(startPath, endFileNames) {
|
|
@@ -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 _chunk6VJ4YIAWjs = require('./chunk-6VJ4YIAW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunk2KQ424CXjs = require('./chunk-2KQ424CX.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.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 = _chunkJ7XUSE5Ijs.getStopwatch.call(void 0, name);
|
|
25
25
|
let options = _options;
|
|
26
26
|
let config;
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
_chunkJ7XUSE5Ijs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
29
29
|
|
|
30
30
|
`, config);
|
|
31
|
-
const workspaceRoot =
|
|
31
|
+
const workspaceRoot = _chunkJ7XUSE5Ijs.findWorkspaceRoot.call(void 0, );
|
|
32
32
|
if (!generatorOptions.skipReadingConfig) {
|
|
33
|
-
|
|
33
|
+
_chunkJ7XUSE5Ijs.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 _chunkJ7XUSE5Ijs.getConfig.call(void 0, workspaceRoot);
|
|
36
36
|
}
|
|
37
37
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
38
|
-
|
|
38
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
39
39
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
40
|
-
|
|
40
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_chunkJ7XUSE5Ijs.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 _chunk6VJ4YIAWjs.applyWorkspaceTokens.call(void 0, options, {
|
|
45
45
|
workspaceRoot: tree.root,
|
|
46
46
|
config
|
|
47
|
-
},
|
|
47
|
+
}, _chunk6VJ4YIAWjs.applyWorkspaceBaseTokens);
|
|
48
48
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
49
|
-
|
|
49
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
50
50
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
51
|
-
|
|
51
|
+
_chunkJ7XUSE5Ijs.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
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
65
65
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
66
|
-
|
|
66
|
+
_chunkJ7XUSE5Ijs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
67
67
|
}
|
|
68
68
|
return () => {
|
|
69
|
-
|
|
69
|
+
_chunkJ7XUSE5Ijs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
70
70
|
`, config);
|
|
71
71
|
};
|
|
72
72
|
} catch (error) {
|
|
73
73
|
return () => {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
_chunkJ7XUSE5Ijs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
75
|
+
_chunkJ7XUSE5Ijs.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-AB6D2LAH.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-XZ36BP73.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -8,7 +8,7 @@ var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.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 = _chunkJ7XUSE5Ijs.findWorkspaceRoot.call(void 0, );
|
|
39
|
+
const config = await _chunkJ7XUSE5Ijs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
Object.keys(projectJson).forEach((key) => {
|
|
41
41
|
if (!project[key]) {
|
|
42
42
|
project[key] = projectJson[key];
|
|
@@ -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 _chunkJD3FNU5Jjs = require('./chunk-JD3FNU5J.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJ7XUSE5Ijs = require('./chunk-J7XUSE5I.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
|
+
_chunkJ7XUSE5Ijs.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 = _chunkJD3FNU5Jjs.withRunGenerator.call(void 0, "Helm Chart", helmChartGeneratorFn);
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceProjectTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AB6D2LAH.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-XZ36BP73.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createHelmClient
|
|
20
20
|
} from "./chunk-6V45YKVB.mjs";
|
|
@@ -3,35 +3,41 @@ import {
|
|
|
3
3
|
} from "./chunk-XUV4U54K.mjs";
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
-
import {
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ __name((osSpecificPath) => {
|
|
8
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
9
|
+
}, "removeWindowsDriveLetter");
|
|
7
10
|
var correctPaths = /* @__PURE__ */ __name((path) => {
|
|
8
11
|
if (!path) {
|
|
9
12
|
return "";
|
|
10
13
|
}
|
|
11
|
-
if (
|
|
12
|
-
path
|
|
14
|
+
if (path.includes("\\")) {
|
|
15
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
16
|
+
path = `C:${path}`;
|
|
17
|
+
}
|
|
18
|
+
return path.replaceAll("/", "\\");
|
|
13
19
|
}
|
|
14
|
-
return path.
|
|
20
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
15
21
|
}, "correctPaths");
|
|
16
22
|
var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
17
23
|
if (!paths || paths.length === 0) {
|
|
18
24
|
return "";
|
|
19
25
|
}
|
|
20
|
-
return correctPaths(
|
|
26
|
+
return correctPaths(join(...paths));
|
|
21
27
|
}, "joinPaths");
|
|
22
28
|
|
|
23
29
|
// ../config-tools/src/utilities/find-up.ts
|
|
24
30
|
import { existsSync } from "node:fs";
|
|
25
|
-
import { join } from "node:path";
|
|
31
|
+
import { join as join2 } from "node:path";
|
|
26
32
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
27
33
|
var depth = 0;
|
|
28
34
|
function findFolderUp(startPath, endFileNames) {
|
|
29
35
|
const _startPath = startPath ?? process.cwd();
|
|
30
|
-
if (endFileNames.some((endFileName) => existsSync(
|
|
36
|
+
if (endFileNames.some((endFileName) => existsSync(join2(_startPath, endFileName)))) {
|
|
31
37
|
return _startPath;
|
|
32
38
|
}
|
|
33
39
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
34
|
-
const parent =
|
|
40
|
+
const parent = join2(_startPath, "..");
|
|
35
41
|
return findFolderUp(parent, endFileNames);
|
|
36
42
|
}
|
|
37
43
|
return void 0;
|
|
@@ -290,7 +296,7 @@ var COLOR_KEYS = [
|
|
|
290
296
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
291
297
|
import { existsSync as existsSync2 } from "node:fs";
|
|
292
298
|
import { readFile } from "node:fs/promises";
|
|
293
|
-
import { join as
|
|
299
|
+
import { join as join3 } from "node:path";
|
|
294
300
|
var DEFAULT_COLOR_CONFIG = {
|
|
295
301
|
"light": {
|
|
296
302
|
"background": "#fafafa",
|
|
@@ -326,7 +332,7 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
326
332
|
let namespace = void 0;
|
|
327
333
|
let repository = void 0;
|
|
328
334
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
329
|
-
if (existsSync2(
|
|
335
|
+
if (existsSync2(join3(workspaceRoot, "package.json"))) {
|
|
330
336
|
const file = await readFile(joinPaths(workspaceRoot, "package.json"), "utf8");
|
|
331
337
|
if (file) {
|
|
332
338
|
const packageJson = JSON.parse(file);
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-RVFKH45R.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AB6D2LAH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XZ36BP73.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-XUV4U54K.mjs";
|
package/dist/executors.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getRegistryVersion } from './src/executors/container-publish/executor.mjs';
|
|
2
2
|
export { C as ContainerPublishExecutorSchema } from './schema.d-Cx_3iG9A.mjs';
|
|
3
|
-
export { H as HelmPackageExecutorSchema, s as serveExecutor } from './executor-
|
|
3
|
+
export { H as HelmPackageExecutorSchema, s as serveExecutor } from './executor-Bdz-Mv0J.mjs';
|
|
4
4
|
import '@nx/devkit';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-CMF_wowV.mjs';
|
|
6
6
|
import 'zod';
|