@storm-software/terraform-tools 0.48.0 → 0.49.0

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-NEISKBUA.mjs → chunk-3I64RHEK.mjs} +1 -1
  4. package/dist/{chunk-SIQ2JL7E.js → chunk-455PVGLF.js} +2 -2
  5. package/dist/{chunk-72FEODKN.js → chunk-665YWX4A.js} +263 -301
  6. package/dist/{chunk-SCRXKTPS.js → chunk-AMLRXVM3.js} +2 -2
  7. package/dist/{chunk-MW3JRZ4N.js → chunk-F7GLIHEV.js} +2 -2
  8. package/dist/{chunk-53WQJQ5K.js → chunk-FFFM47KZ.js} +2 -2
  9. package/dist/{chunk-AOTMRUKU.js → chunk-MOTE7YBG.js} +3 -3
  10. package/dist/{chunk-6GLEQENV.mjs → chunk-N4VDOPZF.mjs} +1 -1
  11. package/dist/{chunk-JNBNKAGF.js → chunk-NLQAVRJ6.js} +4 -4
  12. package/dist/{chunk-463AGI5I.mjs → chunk-OM64FIV6.mjs} +1 -1
  13. package/dist/{chunk-EAPOMBKY.mjs → chunk-QMDMW4SA.mjs} +1 -1
  14. package/dist/{chunk-WKVEHDC2.mjs → chunk-R4XW4ES7.mjs} +1 -1
  15. package/dist/{chunk-SH7NPG4K.mjs → chunk-UAZET5ED.mjs} +4 -4
  16. package/dist/{chunk-LKPBZPSA.mjs → chunk-Y52W5WN7.mjs} +97 -135
  17. package/dist/executors.js +6 -6
  18. package/dist/executors.mjs +6 -6
  19. package/dist/generators.js +3 -3
  20. package/dist/generators.mjs +2 -2
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/base/index.js +3 -3
  24. package/dist/src/base/index.mjs +2 -2
  25. package/dist/src/base/terraform-executor.js +3 -3
  26. package/dist/src/base/terraform-executor.mjs +2 -2
  27. package/dist/src/executors/apply/executor.js +4 -4
  28. package/dist/src/executors/apply/executor.mjs +3 -3
  29. package/dist/src/executors/destroy/executor.js +4 -4
  30. package/dist/src/executors/destroy/executor.mjs +3 -3
  31. package/dist/src/executors/output/executor.js +4 -4
  32. package/dist/src/executors/output/executor.mjs +3 -3
  33. package/dist/src/executors/plan/executor.js +4 -4
  34. package/dist/src/executors/plan/executor.mjs +3 -3
  35. package/dist/src/generators/init/init.js +3 -3
  36. package/dist/src/generators/init/init.mjs +2 -2
  37. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAOTMRUKUjs = require('./chunk-AOTMRUKU.js');
3
+ var _chunkMOTE7YBGjs = require('./chunk-MOTE7YBG.js');
4
4
 
5
5
  // src/executors/apply/executor.ts
6
- var executor_default = _chunkAOTMRUKUjs.withTerraformExecutor.call(void 0, "apply");
6
+ var executor_default = _chunkMOTE7YBGjs.withTerraformExecutor.call(void 0, "apply");
7
7
 
8
8
 
9
9
 
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAOTMRUKUjs = require('./chunk-AOTMRUKU.js');
3
+ var _chunkMOTE7YBGjs = require('./chunk-MOTE7YBG.js');
4
4
 
5
5
  // src/executors/output/executor.ts
6
- var executor_default = _chunkAOTMRUKUjs.withTerraformExecutor.call(void 0, "output");
6
+ var executor_default = _chunkMOTE7YBGjs.withTerraformExecutor.call(void 0, "output");
7
7
 
8
8
 
9
9
 
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAOTMRUKUjs = require('./chunk-AOTMRUKU.js');
3
+ var _chunkMOTE7YBGjs = require('./chunk-MOTE7YBG.js');
4
4
 
5
5
  // src/executors/destroy/executor.ts
6
- var executor_default = _chunkAOTMRUKUjs.withTerraformExecutor.call(void 0, "destroy");
6
+ var executor_default = _chunkMOTE7YBGjs.withTerraformExecutor.call(void 0, "destroy");
7
7
 
8
8
 
9
9
 
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkJNBNKAGFjs = require('./chunk-JNBNKAGF.js');
4
+ var _chunkNLQAVRJ6js = require('./chunk-NLQAVRJ6.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 _chunkJNBNKAGFjs.withRunExecutor.call(void 0, `Terraform \`${command}\` Command Executor`, async (options, context2, config) => {
12
+ return _chunkNLQAVRJ6js.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
- _chunkJNBNKAGFjs.run.call(void 0, config, [
24
+ _chunkNLQAVRJ6js.run.call(void 0, config, [
25
25
  "terragrunt",
26
26
  command,
27
27
  ...jsonBackendConfig.map((config2) => `-backend-config="${config2.key}=${config2.name}"`),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-WKVEHDC2.mjs";
3
+ } from "./chunk-R4XW4ES7.mjs";
4
4
 
5
5
  // src/executors/destroy/executor.ts
6
6
  var executor_default = withTerraformExecutor("destroy");
@@ -653,26 +653,26 @@ var applyWorkspaceTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
653
653
  // ../config-tools/src/config-file/get-config-file.ts
654
654
  var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
655
655
  const workspacePath = filePath || findWorkspaceRoot(filePath);
656
- let config = _c12.loadConfig.call(void 0, {
656
+ let config = await _c12.loadConfig.call(void 0, {
657
657
  cwd: workspacePath,
658
658
  packageJson: true,
659
659
  name: fileName,
660
660
  envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
661
661
  jitiOptions: {
662
662
  debug: false,
663
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
663
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
664
664
  },
665
665
  ...options
666
666
  });
667
667
  if (!config || Object.keys(config).length === 0) {
668
- config = _c12.loadConfig.call(void 0, {
668
+ config = await _c12.loadConfig.call(void 0, {
669
669
  cwd: workspacePath,
670
670
  packageJson: true,
671
671
  name: fileName,
672
672
  envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
673
673
  jitiOptions: {
674
674
  debug: false,
675
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
675
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
676
676
  },
677
677
  configFile: fileName,
678
678
  ...options
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-WKVEHDC2.mjs";
3
+ } from "./chunk-R4XW4ES7.mjs";
4
4
 
5
5
  // src/executors/apply/executor.ts
6
6
  var executor_default = withTerraformExecutor("apply");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-WKVEHDC2.mjs";
3
+ } from "./chunk-R4XW4ES7.mjs";
4
4
 
5
5
  // src/executors/output/executor.ts
6
6
  var executor_default = withTerraformExecutor("output");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-SH7NPG4K.mjs";
4
+ } from "./chunk-UAZET5ED.mjs";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-XUV4U54K.mjs";
@@ -653,26 +653,26 @@ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokeni
653
653
  // ../config-tools/src/config-file/get-config-file.ts
654
654
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
655
655
  const workspacePath = filePath || findWorkspaceRoot(filePath);
656
- let config = loadConfig({
656
+ let config = await loadConfig({
657
657
  cwd: workspacePath,
658
658
  packageJson: true,
659
659
  name: fileName,
660
660
  envName: fileName?.toUpperCase(),
661
661
  jitiOptions: {
662
662
  debug: false,
663
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
663
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
664
664
  },
665
665
  ...options
666
666
  });
667
667
  if (!config || Object.keys(config).length === 0) {
668
- config = loadConfig({
668
+ config = await loadConfig({
669
669
  cwd: workspacePath,
670
670
  packageJson: true,
671
671
  name: fileName,
672
672
  envName: fileName?.toUpperCase(),
673
673
  jitiOptions: {
674
674
  debug: false,
675
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
675
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
676
676
  },
677
677
  configFile: fileName,
678
678
  ...options