@storm-software/terraform-tools 0.60.6 → 0.60.8
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-OV7TVEAC.js → chunk-4DRQJGE3.js} +2 -2
- package/dist/{chunk-DIXFQWYR.mjs → chunk-4QP4T44Y.mjs} +59 -17
- package/dist/{chunk-WJV4GOSN.js → chunk-55XGUC3P.js} +2 -2
- package/dist/{chunk-Q7Q5E5A6.mjs → chunk-ANYBI735.mjs} +2 -2
- package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
- package/dist/{chunk-ONGG25RY.mjs → chunk-BFEGWMVE.mjs} +1 -1
- package/dist/{chunk-W6SJQG4N.js → chunk-H25JD5GS.js} +104 -104
- package/dist/{chunk-AJVSFBNT.js → chunk-HHJAQU3C.js} +2 -2
- package/dist/{chunk-VNME2RIT.mjs → chunk-HKVLMETH.mjs} +1 -1
- package/dist/{chunk-A4RDGLKC.js → chunk-INVPP6KU.js} +82 -40
- package/dist/{chunk-2WTDMDFS.js → chunk-J4NMOU7J.js} +2 -2
- package/dist/{chunk-5TXZ2IQ6.mjs → chunk-MOSLDSLC.mjs} +1 -1
- package/dist/{chunk-7GH4VDRM.mjs → chunk-NYFXF3YV.mjs} +1 -1
- package/dist/{chunk-ZLPOE4VZ.js → chunk-OREQEO5N.js} +2 -2
- package/dist/{chunk-LHAZ3WPQ.mjs → chunk-VSHDXAHC.mjs} +1 -1
- 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.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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.60.7](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.7) (2025-05-13)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
|
|
11
|
+
## [0.60.6](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.6) (2025-05-09)
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Regenerate README markdown files
|
|
16
|
+
- **monorepo:** Upgrade Nx packages to v21.0.3
|
|
17
|
+
- **monorepo:** Regenerate README markdown files
|
|
18
|
+
|
|
5
19
|
## [0.60.5](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.5) (2025-05-08)
|
|
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,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOREQEO5Njs = require('./chunk-OREQEO5N.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkOREQEO5Njs.withTerraformExecutor.call(void 0, "output");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -27,10 +27,10 @@ var LogLevelLabel = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
// ../config/src/constants.ts
|
|
30
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
30
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
31
31
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
32
32
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
33
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
33
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
34
34
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
35
35
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
36
36
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -204,10 +204,13 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
204
204
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
205
205
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
206
206
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
207
|
-
homepage: z.string().trim().url().
|
|
208
|
-
docs: z.string().trim().url().
|
|
209
|
-
licensing: z.string().trim().url().
|
|
210
|
-
contact: z.string().trim().url().
|
|
207
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
208
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
209
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
210
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
211
|
+
support: z.string().trim().url().optional().describe(
|
|
212
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
213
|
+
),
|
|
211
214
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
212
215
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
213
216
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -528,9 +531,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
528
531
|
negative: "#dc2626"
|
|
529
532
|
}
|
|
530
533
|
};
|
|
531
|
-
|
|
534
|
+
async function getPackageJsonConfig(root) {
|
|
532
535
|
let license = STORM_DEFAULT_LICENSE;
|
|
533
|
-
let homepage =
|
|
536
|
+
let homepage = void 0;
|
|
537
|
+
let support = void 0;
|
|
534
538
|
let name = void 0;
|
|
535
539
|
let namespace = void 0;
|
|
536
540
|
let repository = void 0;
|
|
@@ -561,6 +565,13 @@ var getDefaultConfig = async (root) => {
|
|
|
561
565
|
if (packageJson.homepage) {
|
|
562
566
|
homepage = packageJson.homepage;
|
|
563
567
|
}
|
|
568
|
+
if (packageJson.bugs) {
|
|
569
|
+
if (typeof packageJson.bugs === "string") {
|
|
570
|
+
support = packageJson.bugs;
|
|
571
|
+
} else if (packageJson.bugs.url) {
|
|
572
|
+
support = packageJson.bugs.url;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
564
575
|
}
|
|
565
576
|
}
|
|
566
577
|
return {
|
|
@@ -570,13 +581,38 @@ var getDefaultConfig = async (root) => {
|
|
|
570
581
|
repository,
|
|
571
582
|
license,
|
|
572
583
|
homepage,
|
|
573
|
-
|
|
574
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
575
|
-
error: {
|
|
576
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
577
|
-
}
|
|
584
|
+
support
|
|
578
585
|
};
|
|
579
|
-
}
|
|
586
|
+
}
|
|
587
|
+
function applyDefaultConfig(config) {
|
|
588
|
+
if (!config.support && config.contact) {
|
|
589
|
+
config.support = config.contact;
|
|
590
|
+
}
|
|
591
|
+
if (!config.contact && config.support) {
|
|
592
|
+
config.contact = config.support;
|
|
593
|
+
}
|
|
594
|
+
if (config.homepage) {
|
|
595
|
+
if (!config.docs) {
|
|
596
|
+
config.docs = `${config.homepage}/docs`;
|
|
597
|
+
}
|
|
598
|
+
if (!config.license) {
|
|
599
|
+
config.license = `${config.homepage}/license`;
|
|
600
|
+
}
|
|
601
|
+
if (!config.support) {
|
|
602
|
+
config.support = `${config.homepage}/support`;
|
|
603
|
+
}
|
|
604
|
+
if (!config.contact) {
|
|
605
|
+
config.contact = `${config.homepage}/contact`;
|
|
606
|
+
}
|
|
607
|
+
if (!config.error?.codesFile || !config?.error?.url) {
|
|
608
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
609
|
+
if (config.homepage) {
|
|
610
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return config;
|
|
615
|
+
}
|
|
580
616
|
|
|
581
617
|
// ../config-tools/src/logger/chalk.ts
|
|
582
618
|
import chalk from "chalk";
|
|
@@ -1010,6 +1046,7 @@ var getConfigEnv = () => {
|
|
|
1010
1046
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
1011
1047
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
1012
1048
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
1049
|
+
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1013
1050
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1014
1051
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1015
1052
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -1228,6 +1265,9 @@ var setConfigEnv = (config) => {
|
|
|
1228
1265
|
if (config.contact) {
|
|
1229
1266
|
process.env[`${prefix}CONTACT`] = config.contact;
|
|
1230
1267
|
}
|
|
1268
|
+
if (config.support) {
|
|
1269
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
1270
|
+
}
|
|
1231
1271
|
if (config.timezone) {
|
|
1232
1272
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
1233
1273
|
process.env.TZ = config.timezone;
|
|
@@ -1477,9 +1517,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1477
1517
|
return void 0;
|
|
1478
1518
|
}
|
|
1479
1519
|
}
|
|
1480
|
-
const defaultConfig = await
|
|
1481
|
-
result =
|
|
1482
|
-
|
|
1520
|
+
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
1521
|
+
result = applyDefaultConfig(
|
|
1522
|
+
await stormWorkspaceConfigSchema.parseAsync(
|
|
1523
|
+
defu2(configEnv, configFile, defaultConfig)
|
|
1524
|
+
)
|
|
1483
1525
|
);
|
|
1484
1526
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1485
1527
|
} else {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOREQEO5Njs = require('./chunk-OREQEO5N.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkOREQEO5Njs.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace,
|
|
17
17
|
writeWarning
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4QP4T44Y.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__dirname,
|
|
21
21
|
__require
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AYJTBMXU.mjs";
|
|
23
23
|
|
|
24
24
|
// src/generators/init/init.ts
|
|
25
25
|
import { formatFiles as formatFiles9 } from "@nx/devkit";
|
|
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
8
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/esm_shims.js
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
import path from "path";
|
|
11
11
|
var getFilename = () => fileURLToPath(import.meta.url);
|