@storm-software/terraform-tools 0.54.38 → 0.54.40
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 +218 -119
- package/README.md +7 -7
- package/dist/{chunk-R7DU2APC.mjs → chunk-2BPV2XV2.mjs} +1 -1
- package/dist/{chunk-CGSFJIIU.js → chunk-6JNJXZFJ.js} +2 -2
- package/dist/{chunk-ISD3KOJH.js → chunk-7EE3ZWHR.js} +94 -21
- package/dist/{chunk-U4KXII2A.js → chunk-7QES4OFY.js} +3 -3
- package/dist/{chunk-X5SGDD4A.mjs → chunk-B73EOUKJ.mjs} +2 -2
- package/dist/{chunk-WWB3SZR5.mjs → chunk-CU3WSB7P.mjs} +1 -1
- package/dist/{chunk-3WK6TOEQ.mjs → chunk-FIYCZYZ5.mjs} +1 -1
- package/dist/{chunk-V74I37PF.mjs → chunk-HVYCNU5R.mjs} +323 -409
- package/dist/{chunk-HLHB472M.js → chunk-IJO2IHPY.js} +2 -2
- package/dist/{chunk-WFNWZFRJ.js → chunk-MLGQ6TX6.js} +2 -2
- package/dist/{chunk-M5ME7ATW.mjs → chunk-NJ3UD3AW.mjs} +94 -21
- package/dist/{chunk-G7Z6MEYZ.js → chunk-NYWVLPFT.js} +2 -2
- package/dist/{chunk-IYCLXMY5.mjs → chunk-T6WPHTRX.mjs} +1 -1
- package/dist/{chunk-R3BFLMXQ.mjs → chunk-TB4YXZBF.mjs} +1 -1
- package/dist/{chunk-KU7XQWZI.js → chunk-VO4U3XSB.js} +473 -559
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/terraform-executor.d.mts +67 -3
- package/dist/src/base/terraform-executor.d.ts +67 -3
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +3 -3
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +4 -4
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +4 -4
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +4 -4
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +4 -4
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"><img src="https://
|
|
6
|
+
<div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
|
|
7
7
|
<br />
|
|
8
8
|
|
|
9
9
|
<div align="center">
|
|
@@ -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 -->
|
|
@@ -33,7 +33,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
33
33
|
<!-- prettier-ignore-end -->
|
|
34
34
|
|
|
35
35
|
<div align="center">
|
|
36
|
-
<b>Be sure to ⭐ this
|
|
36
|
+
<b>Be sure to ⭐ this <a href="https://github.com/storm-software/storm-ops" target="_blank">repository on GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<br />
|
|
@@ -341,7 +341,7 @@ specification. Contributions of any kind welcome!
|
|
|
341
341
|
<br />
|
|
342
342
|
|
|
343
343
|
<div align="center">
|
|
344
|
-
<img src="https://
|
|
344
|
+
<img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
|
|
345
345
|
</div>
|
|
346
346
|
<br />
|
|
347
347
|
|
|
@@ -350,7 +350,7 @@ specification. Contributions of any kind welcome!
|
|
|
350
350
|
</div>
|
|
351
351
|
|
|
352
352
|
<div align="center">
|
|
353
|
-
<b>Fingerprint:</b>
|
|
353
|
+
<b>Fingerprint:</b> F47F 1853 BCAD DE9B 42C8 6316 9FDE EC95 47FE D106
|
|
354
354
|
</div>
|
|
355
355
|
<br />
|
|
356
356
|
|
|
@@ -373,9 +373,9 @@ channel!
|
|
|
373
373
|
|
|
374
374
|
<br />
|
|
375
375
|
|
|
376
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
376
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
377
377
|
<br />
|
|
378
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
378
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
379
379
|
|
|
380
380
|
<br />
|
|
381
381
|
|
|
@@ -7,7 +7,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.
|
|
10
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.51.1_@types+node@22.13.9__@swc+core@1.7.26_@swc+h_15d7298fb4f51a3f0d8d4a9f5c0e1421/node_modules/tsup/assets/esm_shims.js
|
|
11
11
|
import { fileURLToPath } from "url";
|
|
12
12
|
import path from "path";
|
|
13
13
|
var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7QES4OFYjs = require('./chunk-7QES4OFY.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk7QES4OFYjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -52,8 +52,23 @@ var LogLevelLabel = {
|
|
|
52
52
|
// ../config/src/constants.ts
|
|
53
53
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
54
54
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
55
|
+
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
55
56
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
56
57
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
58
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
59
|
+
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
60
|
+
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
61
|
+
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
62
|
+
var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
63
|
+
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
64
|
+
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
65
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
66
|
+
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
67
|
+
|
|
68
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
69
|
+
|
|
70
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
71
|
+
`;
|
|
57
72
|
|
|
58
73
|
// ../config/src/schema.ts
|
|
59
74
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
@@ -141,9 +156,22 @@ var ColorConfigMapSchema = _zod2.default.union([
|
|
|
141
156
|
var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
142
157
|
var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
143
158
|
var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
144
|
-
name: _zod2.default.string().trim().default("
|
|
159
|
+
name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
145
160
|
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
146
161
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
162
|
+
var WorkspaceReleaseConfigSchema = _zod2.default.object({
|
|
163
|
+
banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
164
|
+
header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
165
|
+
footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
166
|
+
}).describe("The workspace's release config used during the release process");
|
|
167
|
+
var WorkspaceAccountConfigSchema = _zod2.default.object({
|
|
168
|
+
twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
169
|
+
discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
170
|
+
telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
171
|
+
slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
172
|
+
medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
173
|
+
github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
174
|
+
}).describe("The workspace's account config used to store various social media links");
|
|
147
175
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
148
176
|
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
149
177
|
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -163,15 +191,18 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
163
191
|
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
164
192
|
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
165
193
|
licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
194
|
+
contact: _zod2.default.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
|
|
166
195
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
167
196
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
168
197
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
169
198
|
bot: WorkspaceBotConfigSchema,
|
|
170
|
-
|
|
199
|
+
release: WorkspaceReleaseConfigSchema,
|
|
200
|
+
account: WorkspaceAccountConfigSchema,
|
|
201
|
+
mode: _zod2.default.enum([
|
|
171
202
|
"development",
|
|
172
203
|
"staging",
|
|
173
204
|
"production"
|
|
174
|
-
]).default("production").describe("The current runtime environment
|
|
205
|
+
]).default("production").describe("The current runtime environment mode for the package"),
|
|
175
206
|
workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
|
|
176
207
|
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"),
|
|
177
208
|
skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
@@ -538,17 +569,14 @@ var getChalk = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
538
569
|
}, "getChalk");
|
|
539
570
|
|
|
540
571
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
541
|
-
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
542
572
|
function isUnicodeSupported() {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
551
|
-
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
573
|
+
if (process.platform !== "win32") {
|
|
574
|
+
return process.env.TERM !== "linux";
|
|
575
|
+
}
|
|
576
|
+
return Boolean(process.env.WT_SESSION) || // Windows Terminal
|
|
577
|
+
Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
578
|
+
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
579
|
+
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
552
580
|
}
|
|
553
581
|
_chunk3GQAWCBQjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
554
582
|
|
|
@@ -636,7 +664,7 @@ var getLogFn = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel =
|
|
|
636
664
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
637
665
|
return (message) => {
|
|
638
666
|
console.error(`
|
|
639
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
667
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
640
668
|
`);
|
|
641
669
|
};
|
|
642
670
|
}
|
|
@@ -867,12 +895,26 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
867
895
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
868
896
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
869
897
|
},
|
|
898
|
+
release: {
|
|
899
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
900
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
901
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
902
|
+
},
|
|
903
|
+
account: {
|
|
904
|
+
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
905
|
+
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
906
|
+
telegram: process.env[`${prefix}ACCOUNT_TELEGRAM`] || void 0,
|
|
907
|
+
slack: process.env[`${prefix}ACCOUNT_SLACK`] || void 0,
|
|
908
|
+
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
909
|
+
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
910
|
+
},
|
|
870
911
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
871
912
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
872
913
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
873
914
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
874
915
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
875
916
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
917
|
+
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
876
918
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
877
919
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
878
920
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -886,7 +928,7 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
886
928
|
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
887
929
|
},
|
|
888
930
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
889
|
-
|
|
931
|
+
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
890
932
|
// ci:
|
|
891
933
|
// process.env[`${prefix}CI`] !== undefined
|
|
892
934
|
// ? Boolean(
|
|
@@ -1031,6 +1073,31 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1031
1073
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
1032
1074
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
1033
1075
|
}
|
|
1076
|
+
if (config.release) {
|
|
1077
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1078
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1079
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1080
|
+
}
|
|
1081
|
+
if (config.account) {
|
|
1082
|
+
if (config.account.twitter) {
|
|
1083
|
+
process.env[`${prefix}ACCOUNT_TWITTER`] = config.account.twitter;
|
|
1084
|
+
}
|
|
1085
|
+
if (config.account.discord) {
|
|
1086
|
+
process.env[`${prefix}ACCOUNT_DISCORD`] = config.account.discord;
|
|
1087
|
+
}
|
|
1088
|
+
if (config.account.telegram) {
|
|
1089
|
+
process.env[`${prefix}ACCOUNT_TELEGRAM`] = config.account.telegram;
|
|
1090
|
+
}
|
|
1091
|
+
if (config.account.slack) {
|
|
1092
|
+
process.env[`${prefix}ACCOUNT_SLACK`] = config.account.slack;
|
|
1093
|
+
}
|
|
1094
|
+
if (config.account.medium) {
|
|
1095
|
+
process.env[`${prefix}ACCOUNT_MEDIUM`] = config.account.medium;
|
|
1096
|
+
}
|
|
1097
|
+
if (config.account.github) {
|
|
1098
|
+
process.env[`${prefix}ACCOUNT_GITHUB`] = config.account.github;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1034
1101
|
if (config.organization) {
|
|
1035
1102
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
1036
1103
|
}
|
|
@@ -1049,6 +1116,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1049
1116
|
if (config.licensing) {
|
|
1050
1117
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
1051
1118
|
}
|
|
1119
|
+
if (config.contact) {
|
|
1120
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
1121
|
+
}
|
|
1052
1122
|
if (config.timezone) {
|
|
1053
1123
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
1054
1124
|
process.env.TZ = config.timezone;
|
|
@@ -1095,10 +1165,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1095
1165
|
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
1096
1166
|
}
|
|
1097
1167
|
}
|
|
1098
|
-
if (config.
|
|
1099
|
-
process.env[`${prefix}
|
|
1100
|
-
process.env.NODE_ENV = config.
|
|
1101
|
-
process.env.ENVIRONMENT = config.
|
|
1168
|
+
if (config.mode) {
|
|
1169
|
+
process.env[`${prefix}MODE`] = config.mode;
|
|
1170
|
+
process.env.NODE_ENV = config.mode;
|
|
1171
|
+
process.env.ENVIRONMENT = config.mode;
|
|
1102
1172
|
}
|
|
1103
1173
|
if (_optionalChain([config, 'access', _47 => _47.colors, 'optionalAccess', _48 => _48.base, 'optionalAccess', _49 => _49.light]) || _optionalChain([config, 'access', _50 => _50.colors, 'optionalAccess', _51 => _51.base, 'optionalAccess', _52 => _52.dark])) {
|
|
1104
1174
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -1147,7 +1217,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1147
1217
|
}
|
|
1148
1218
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
1149
1219
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1150
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
1220
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1221
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
1222
|
+
}
|
|
1151
1223
|
}
|
|
1152
1224
|
}, "setConfigEnv");
|
|
1153
1225
|
var setThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
|
|
@@ -1424,4 +1496,5 @@ var _isFunction2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value)
|
|
|
1424
1496
|
|
|
1425
1497
|
|
|
1426
1498
|
|
|
1427
|
-
|
|
1499
|
+
|
|
1500
|
+
exports.StormConfigSchema = StormConfigSchema; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.applyWorkspaceBaseTokens = applyWorkspaceBaseTokens; exports.applyWorkspaceTokens = applyWorkspaceTokens; exports.run = run; exports.getConfig = getConfig; exports.withRunExecutor = withRunExecutor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7EE3ZWHRjs = require('./chunk-7EE3ZWHR.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -9,7 +9,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
9
9
|
// src/base/terraform-executor.ts
|
|
10
10
|
var _shelljs = require('shelljs');
|
|
11
11
|
var withTerraformExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (command, executorOptions = {}) => async (_options, context) => {
|
|
12
|
-
return
|
|
12
|
+
return _chunk7EE3ZWHRjs.withRunExecutor.call(void 0, `Terraform \`${command}\` Command Executor`, async (options, context2, config) => {
|
|
13
13
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
14
14
|
throw new Error("Both OpenTofu and Terraform are not installed. Please install one of the two before running this executor.");
|
|
15
15
|
}
|
|
@@ -21,7 +21,7 @@ var withTerraformExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
21
21
|
if (typeof jsonBackendConfig === "string") {
|
|
22
22
|
jsonBackendConfig = JSON.parse(jsonBackendConfig);
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
_chunk7EE3ZWHRjs.run.call(void 0, config, [
|
|
25
25
|
"terragrunt",
|
|
26
26
|
command,
|
|
27
27
|
...jsonBackendConfig.map((config2) => `-backend-config="${config2.key}=${config2.name}"`),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
run,
|
|
3
3
|
withRunExecutor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NJ3UD3AW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/base/terraform-executor.ts
|
|
10
10
|
import { which } from "shelljs";
|