@storm-software/terraform-tools 0.60.37 → 0.60.39
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-T77AY65K.mjs → chunk-2CUJGXYC.mjs} +1 -1
- package/dist/{chunk-3BLQVDP7.mjs → chunk-7PNDKMV6.mjs} +1 -1
- package/dist/{chunk-IE3GYKQ2.js → chunk-BAT7EH6A.js} +31 -16
- package/dist/{chunk-BUWPIUZN.js → chunk-CX64APPB.js} +2 -2
- package/dist/{chunk-U4ZH7ICY.js → chunk-G6Z52OQD.js} +2 -2
- package/dist/{chunk-3CXHVZHF.js → chunk-JALHLYVF.js} +107 -107
- package/dist/{chunk-F3DDL5QO.js → chunk-M3WQJ3MW.js} +2 -2
- package/dist/{chunk-7RR2HKBA.mjs → chunk-PISYVTPL.mjs} +1 -1
- package/dist/{chunk-GERJUBNF.mjs → chunk-SET5HWVQ.mjs} +23 -8
- package/dist/{chunk-SBXLS6B7.js → chunk-V3UBZ6UF.js} +2 -2
- package/dist/{chunk-5MOGYNLI.mjs → chunk-X5OTQLMS.mjs} +1 -1
- package/dist/{chunk-LBU72XRT.js → chunk-XJCRXCA5.js} +2 -2
- package/dist/{chunk-KYSRH4TW.mjs → chunk-ZP7LLXH2.mjs} +1 -1
- package/dist/{chunk-OV2EM7MW.mjs → chunk-ZZHYNV7P.mjs} +1 -1
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.60.38](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.38) (2025-07-10)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([98723860a](https://github.com/storm-software/storm-ops/commit/98723860a))
|
|
11
|
+
|
|
12
|
+
## [0.60.37](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.37) (2025-07-08)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Update README markdown files
|
|
17
|
+
([a201e9178](https://github.com/storm-software/storm-ops/commit/a201e9178))
|
|
18
|
+
|
|
5
19
|
## [0.60.36](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.36) (2025-07-06)
|
|
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 -->
|
|
@@ -32,7 +32,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
32
32
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
33
33
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
34
34
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
35
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
36
35
|
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
37
36
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
38
37
|
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
@@ -148,13 +147,13 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
148
147
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
149
148
|
);
|
|
150
149
|
var WorkspaceReleaseConfigSchema = z.object({
|
|
151
|
-
banner: z.string().trim().
|
|
150
|
+
banner: z.string().trim().optional().describe(
|
|
152
151
|
"A URL to a banner image used to display the workspace's release"
|
|
153
152
|
),
|
|
154
153
|
header: z.string().trim().optional().describe(
|
|
155
154
|
"A header message appended to the start of the workspace's release notes"
|
|
156
155
|
),
|
|
157
|
-
footer: z.string().trim().
|
|
156
|
+
footer: z.string().trim().optional().describe(
|
|
158
157
|
"A footer message appended to the end of the workspace's release notes"
|
|
159
158
|
)
|
|
160
159
|
}).describe("The workspace's release config used during the release process");
|
|
@@ -1557,12 +1556,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1557
1556
|
}
|
|
1558
1557
|
}
|
|
1559
1558
|
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1559
|
+
const configInput = _defu2.default.call(void 0,
|
|
1560
|
+
configEnv,
|
|
1561
|
+
configFile,
|
|
1562
|
+
defaultConfig
|
|
1564
1563
|
);
|
|
1565
|
-
|
|
1564
|
+
try {
|
|
1565
|
+
result = applyDefaultConfig(
|
|
1566
|
+
await stormWorkspaceConfigSchema.parseAsync(configInput)
|
|
1567
|
+
);
|
|
1568
|
+
result.workspaceRoot ??= _workspaceRoot;
|
|
1569
|
+
} catch (error) {
|
|
1570
|
+
throw new Error(
|
|
1571
|
+
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _63 => _63.message]) ? `: ${error.message}` : ""}
|
|
1572
|
+
|
|
1573
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
|
|
1574
|
+
configInput
|
|
1575
|
+
)}`,
|
|
1576
|
+
{
|
|
1577
|
+
cause: error
|
|
1578
|
+
}
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1566
1581
|
} else {
|
|
1567
1582
|
result = _static_cache.data;
|
|
1568
1583
|
}
|
|
@@ -1628,7 +1643,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1628
1643
|
let options = _options;
|
|
1629
1644
|
let config = {};
|
|
1630
1645
|
try {
|
|
1631
|
-
if (!_optionalChain([context, 'access',
|
|
1646
|
+
if (!_optionalChain([context, 'access', _64 => _64.projectsConfigurations, 'optionalAccess', _65 => _65.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1632
1647
|
throw new Error(
|
|
1633
1648
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1634
1649
|
);
|
|
@@ -1651,7 +1666,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1651
1666
|
);
|
|
1652
1667
|
config = await getConfig(workspaceRoot);
|
|
1653
1668
|
}
|
|
1654
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1669
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _66 => _66.hooks, 'optionalAccess', _67 => _67.applyDefaultOptions])) {
|
|
1655
1670
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
1656
1671
|
options = await Promise.resolve(
|
|
1657
1672
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -1679,7 +1694,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1679
1694
|
`,
|
|
1680
1695
|
config
|
|
1681
1696
|
);
|
|
1682
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1697
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _68 => _68.hooks, 'optionalAccess', _69 => _69.preProcess])) {
|
|
1683
1698
|
writeDebug("Running the preProcess hook...", config);
|
|
1684
1699
|
await Promise.resolve(
|
|
1685
1700
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -1687,7 +1702,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1687
1702
|
writeDebug("Completed the preProcess hook", config);
|
|
1688
1703
|
}
|
|
1689
1704
|
const ret = executorFn(tokenized, context, config);
|
|
1690
|
-
if (_isFunction2(_optionalChain([ret, 'optionalAccess',
|
|
1705
|
+
if (_isFunction2(_optionalChain([ret, 'optionalAccess', _70 => _70.next]))) {
|
|
1691
1706
|
const asyncGen = ret;
|
|
1692
1707
|
for await (const iter of asyncGen) {
|
|
1693
1708
|
void iter;
|
|
@@ -1696,7 +1711,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1696
1711
|
const result = await Promise.resolve(
|
|
1697
1712
|
ret
|
|
1698
1713
|
);
|
|
1699
|
-
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess',
|
|
1714
|
+
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _71 => _71.error, 'optionalAccess', _72 => _72.message]) && typeof _optionalChain([result, 'optionalAccess', _73 => _73.error, 'optionalAccess', _74 => _74.message]) === "string" && _optionalChain([result, 'optionalAccess', _75 => _75.error, 'optionalAccess', _76 => _76.name]) && typeof _optionalChain([result, 'optionalAccess', _77 => _77.error, 'optionalAccess', _78 => _78.name]) === "string")) {
|
|
1700
1715
|
writeTrace(
|
|
1701
1716
|
`Failure determined by the ${name} executor
|
|
1702
1717
|
${formatLogMessage(result)}`,
|
|
@@ -1704,10 +1719,10 @@ ${formatLogMessage(result)}`,
|
|
|
1704
1719
|
);
|
|
1705
1720
|
console.error(result);
|
|
1706
1721
|
throw new Error(`The ${name} executor failed to run`, {
|
|
1707
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1722
|
+
cause: _optionalChain([result, 'optionalAccess', _79 => _79.error])
|
|
1708
1723
|
});
|
|
1709
1724
|
}
|
|
1710
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1725
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.postProcess])) {
|
|
1711
1726
|
writeDebug("Running the postProcess hook...", config);
|
|
1712
1727
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
1713
1728
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -1737,7 +1752,7 @@ ${formatLogMessage(result)}`,
|
|
|
1737
1752
|
};
|
|
1738
1753
|
var _isFunction2 = (value) => {
|
|
1739
1754
|
try {
|
|
1740
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
1755
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _82 => _82.constructor]) && _optionalChain([value, 'optionalAccess', _83 => _83.call]) && _optionalChain([value, 'optionalAccess', _84 => _84.apply]));
|
|
1741
1756
|
} catch (e) {
|
|
1742
1757
|
return false;
|
|
1743
1758
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkV3UBZ6UFjs = require('./chunk-V3UBZ6UF.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/destroy/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkV3UBZ6UFjs.withTerraformExecutor.call(void 0, "destroy");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkV3UBZ6UFjs = require('./chunk-V3UBZ6UF.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkV3UBZ6UFjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|