@storm-software/terraform-tools 0.54.43 → 0.54.44
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 +8 -0
- package/dist/{chunk-T72ETESF.mjs → chunk-2KL7TQCA.mjs} +11 -7
- package/dist/{chunk-NJ3UD3AW.mjs → chunk-2YQ45BL6.mjs} +9 -9
- package/dist/{chunk-6JNJXZFJ.js → chunk-7DKBJQFC.js} +2 -2
- package/dist/{chunk-B73EOUKJ.mjs → chunk-DQSC56MV.mjs} +1 -1
- package/dist/{chunk-FIYCZYZ5.mjs → chunk-END6WC65.mjs} +1 -1
- package/dist/{chunk-7EE3ZWHR.js → chunk-HLKD7LH2.js} +9 -9
- package/dist/{chunk-NYWVLPFT.js → chunk-HNQXOQIK.js} +2 -2
- package/dist/{chunk-TB4YXZBF.mjs → chunk-I7YJV2HQ.mjs} +1 -1
- package/dist/{chunk-IJO2IHPY.js → chunk-IASMSKFD.js} +2 -2
- package/dist/{chunk-CU3WSB7P.mjs → chunk-JXBAKJPX.mjs} +1 -1
- package/dist/{chunk-T6WPHTRX.mjs → chunk-KXU4RONH.mjs} +1 -1
- package/dist/{chunk-MLGQ6TX6.js → chunk-SD5RUDOC.js} +2 -2
- package/dist/{chunk-VMGNL2KF.js → chunk-TC6M3XSY.js} +172 -168
- package/dist/{chunk-7QES4OFY.js → chunk-TMSXVOPT.js} +3 -3
- 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.d.mts +21 -5
- package/dist/src/base/terraform-executor.d.ts +21 -5
- 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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.54.44](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.44) (2025-04-02)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **terraform-tools:** Update all references to `StormConfig` to point to
|
|
10
|
+
`StormWorkspaceConfig`
|
|
11
|
+
([b0a3d9f8d](https://github.com/storm-software/storm-ops/commit/b0a3d9f8d))
|
|
12
|
+
|
|
5
13
|
## [0.54.43](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.43) (2025-03-18)
|
|
6
14
|
|
|
7
15
|
### Miscellaneous
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
StormConfigSchema,
|
|
3
2
|
applyWorkspaceBaseTokens,
|
|
4
3
|
applyWorkspaceTokens,
|
|
5
4
|
correctPaths,
|
|
@@ -10,6 +9,7 @@ import {
|
|
|
10
9
|
isVerbose,
|
|
11
10
|
joinPaths,
|
|
12
11
|
run,
|
|
12
|
+
stormWorkspaceConfigSchema,
|
|
13
13
|
withRunExecutor,
|
|
14
14
|
writeDebug,
|
|
15
15
|
writeError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
writeSuccess,
|
|
19
19
|
writeTrace,
|
|
20
20
|
writeWarning
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2YQ45BL6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
__dirname,
|
|
24
24
|
__name,
|
|
@@ -390,13 +390,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
|
|
|
390
390
|
return ret;
|
|
391
391
|
}, []);
|
|
392
392
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
393
|
-
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
394
|
-
ret[localPackage.name] =
|
|
393
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
|
|
394
|
+
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
395
395
|
}
|
|
396
396
|
return ret;
|
|
397
397
|
}, packageJson.dependencies ?? {});
|
|
398
398
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
399
|
-
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
399
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
|
|
400
400
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
401
401
|
}
|
|
402
402
|
return ret;
|
|
@@ -489,7 +489,11 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
|
|
|
489
489
|
return ret;
|
|
490
490
|
}, []));
|
|
491
491
|
} else {
|
|
492
|
-
|
|
492
|
+
const result = correctPaths(entryPoint.replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
493
|
+
writeDebug(`Trying to add entry point ${result}"`, config);
|
|
494
|
+
if (!paths.includes(result)) {
|
|
495
|
+
paths.push(result);
|
|
496
|
+
}
|
|
493
497
|
}
|
|
494
498
|
return paths;
|
|
495
499
|
}));
|
|
@@ -2211,7 +2215,7 @@ import { zodToJsonSchema } from "zod-to-json-schema";
|
|
|
2211
2215
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2212
2216
|
writeInfo("\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
2213
2217
|
writeTrace(`Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
2214
|
-
const jsonSchema = zodToJsonSchema(
|
|
2218
|
+
const jsonSchema = zodToJsonSchema(stormWorkspaceConfigSchema, {
|
|
2215
2219
|
name: "StormWorkspaceConfiguration"
|
|
2216
2220
|
});
|
|
2217
2221
|
writeTrace(jsonSchema, config);
|
|
@@ -180,7 +180,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
180
180
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
181
181
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
182
182
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
183
|
-
var
|
|
183
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
184
184
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
185
185
|
extends: ExtendsSchema.optional(),
|
|
186
186
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -1323,7 +1323,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
1323
1323
|
// ../config-tools/src/create-storm-config.ts
|
|
1324
1324
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1325
1325
|
var _static_cache = void 0;
|
|
1326
|
-
var
|
|
1326
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1327
1327
|
let result;
|
|
1328
1328
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1329
1329
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1338,7 +1338,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1338
1338
|
logLevel: "all"
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
1341
|
-
result = await
|
|
1341
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
|
|
1342
1342
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1343
1343
|
} else {
|
|
1344
1344
|
result = _static_cache.data;
|
|
@@ -1354,7 +1354,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1354
1354
|
data: result
|
|
1355
1355
|
};
|
|
1356
1356
|
return result;
|
|
1357
|
-
}, "
|
|
1357
|
+
}, "createStormWorkspaceConfig");
|
|
1358
1358
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
1359
1359
|
const extension_cache_key = {
|
|
1360
1360
|
extensionName
|
|
@@ -1369,19 +1369,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1369
1369
|
_extension_cache.set(extension_cache_key, extension);
|
|
1370
1370
|
return extension;
|
|
1371
1371
|
}, "createConfigExtension");
|
|
1372
|
-
var
|
|
1373
|
-
const config = await
|
|
1372
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
1373
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1374
1374
|
setConfigEnv(config);
|
|
1375
1375
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1376
1376
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1377
1377
|
${formatLogMessage(config)}`, config);
|
|
1378
1378
|
}
|
|
1379
1379
|
return config;
|
|
1380
|
-
}, "
|
|
1380
|
+
}, "loadStormWorkspaceConfig");
|
|
1381
1381
|
|
|
1382
1382
|
// ../config-tools/src/get-config.ts
|
|
1383
1383
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
1384
|
-
return
|
|
1384
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1385
1385
|
}, "getConfig");
|
|
1386
1386
|
|
|
1387
1387
|
// ../workspace-tools/src/base/base-executor.ts
|
|
@@ -1478,7 +1478,7 @@ var _isFunction2 = /* @__PURE__ */ __name((value) => {
|
|
|
1478
1478
|
}, "_isFunction");
|
|
1479
1479
|
|
|
1480
1480
|
export {
|
|
1481
|
-
|
|
1481
|
+
stormWorkspaceConfigSchema,
|
|
1482
1482
|
correctPaths,
|
|
1483
1483
|
joinPaths,
|
|
1484
1484
|
findWorkspaceRoot,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTMSXVOPTjs = require('./chunk-TMSXVOPT.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkTMSXVOPTjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -180,7 +180,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
180
180
|
log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
181
181
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
182
182
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
183
|
-
var
|
|
183
|
+
var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
184
184
|
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
185
185
|
extends: ExtendsSchema.optional(),
|
|
186
186
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -1323,7 +1323,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
|
|
|
1323
1323
|
// ../config-tools/src/create-storm-config.ts
|
|
1324
1324
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1325
1325
|
var _static_cache = void 0;
|
|
1326
|
-
var
|
|
1326
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1327
1327
|
let result;
|
|
1328
1328
|
if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1329
1329
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1338,7 +1338,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
1338
1338
|
logLevel: "all"
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
1341
|
-
result = await
|
|
1341
|
+
result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
1342
1342
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1343
1343
|
} else {
|
|
1344
1344
|
result = _static_cache.data;
|
|
@@ -1354,7 +1354,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
1354
1354
|
data: result
|
|
1355
1355
|
};
|
|
1356
1356
|
return result;
|
|
1357
|
-
}, "
|
|
1357
|
+
}, "createStormWorkspaceConfig");
|
|
1358
1358
|
var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName, schema) => {
|
|
1359
1359
|
const extension_cache_key = {
|
|
1360
1360
|
extensionName
|
|
@@ -1369,19 +1369,19 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
1369
1369
|
_extension_cache.set(extension_cache_key, extension);
|
|
1370
1370
|
return extension;
|
|
1371
1371
|
}, "createConfigExtension");
|
|
1372
|
-
var
|
|
1373
|
-
const config = await
|
|
1372
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
1373
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1374
1374
|
setConfigEnv(config);
|
|
1375
1375
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1376
1376
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1377
1377
|
${formatLogMessage(config)}`, config);
|
|
1378
1378
|
}
|
|
1379
1379
|
return config;
|
|
1380
|
-
}, "
|
|
1380
|
+
}, "loadStormWorkspaceConfig");
|
|
1381
1381
|
|
|
1382
1382
|
// ../config-tools/src/get-config.ts
|
|
1383
1383
|
var getConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
|
|
1384
|
-
return
|
|
1384
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1385
1385
|
}, "getConfig");
|
|
1386
1386
|
|
|
1387
1387
|
// ../workspace-tools/src/base/base-executor.ts
|
|
@@ -1497,4 +1497,4 @@ var _isFunction2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value)
|
|
|
1497
1497
|
|
|
1498
1498
|
|
|
1499
1499
|
|
|
1500
|
-
exports.
|
|
1500
|
+
exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; 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,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTMSXVOPTjs = require('./chunk-TMSXVOPT.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/destroy/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkTMSXVOPTjs.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 _chunkTMSXVOPTjs = require('./chunk-TMSXVOPT.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkTMSXVOPTjs.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
|
|
3
|
+
var _chunkTMSXVOPTjs = require('./chunk-TMSXVOPT.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkTMSXVOPTjs.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|