@storm-software/terraform-tools 0.47.1 → 0.48.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.
- package/CHANGELOG.md +11 -0
- package/dist/{chunk-YLTIJRR5.js → chunk-72FEODKN.js} +18 -11
- package/dist/{chunk-W4CCHPMY.mjs → chunk-LKPBZPSA.mjs} +22 -15
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/init.js +2 -2
- package/dist/src/generators/init/init.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.48.0 (2025-01-20)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Added additional entry points to the package ([0322ac48](https://github.com/storm-software/storm-ops/commit/0322ac48))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated workspace-tools to 1.230.0
|
|
10
|
+
- Updated workspace-tools to 1.230.0
|
|
11
|
+
|
|
1
12
|
## 0.47.1 (2025-01-20)
|
|
2
13
|
|
|
3
14
|
### Bug Fixes
|
|
@@ -1962,6 +1962,7 @@ var executor_default9 = _chunkJNBNKAGFjs.withRunExecutor.call(void 0, "Typia run
|
|
|
1962
1962
|
|
|
1963
1963
|
|
|
1964
1964
|
|
|
1965
|
+
|
|
1965
1966
|
var _unbuild = require('unbuild');
|
|
1966
1967
|
|
|
1967
1968
|
// ../unbuild/src/clean.ts
|
|
@@ -1969,7 +1970,10 @@ var _unbuild = require('unbuild');
|
|
|
1969
1970
|
async function clean3(name = "Unbuild", directory, config) {
|
|
1970
1971
|
_chunkJNBNKAGFjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
1971
1972
|
const stopwatch = _chunkJNBNKAGFjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
1972
|
-
await
|
|
1973
|
+
await _promises.rm.call(void 0, directory, {
|
|
1974
|
+
recursive: true,
|
|
1975
|
+
force: true
|
|
1976
|
+
});
|
|
1973
1977
|
stopwatch();
|
|
1974
1978
|
}
|
|
1975
1979
|
_chunk3GQAWCBQjs.__name.call(void 0, clean3, "clean");
|
|
@@ -2154,28 +2158,30 @@ async function resolveOptions3(options) {
|
|
|
2154
2158
|
exitOnError: true
|
|
2155
2159
|
});
|
|
2156
2160
|
const projectJsonPath = _chunkJNBNKAGFjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot, "project.json");
|
|
2157
|
-
if (!
|
|
2161
|
+
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
2158
2162
|
throw new Error("Cannot find project.json configuration");
|
|
2159
2163
|
}
|
|
2160
|
-
const
|
|
2164
|
+
const projectJsonContent = await _promises.readFile.call(void 0, projectJsonPath, "utf8");
|
|
2165
|
+
const projectJson = JSON.parse(projectJsonContent);
|
|
2161
2166
|
const projectName = projectJson.name;
|
|
2162
2167
|
const packageJsonPath = _chunkJNBNKAGFjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "package.json");
|
|
2163
|
-
if (!
|
|
2168
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2164
2169
|
throw new Error("Cannot find package.json configuration");
|
|
2165
2170
|
}
|
|
2166
|
-
const
|
|
2171
|
+
const packageJsonContent = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
2172
|
+
const packageJson = JSON.parse(packageJsonContent);
|
|
2167
2173
|
let tsconfig = options.tsconfig;
|
|
2168
2174
|
if (!tsconfig) {
|
|
2169
2175
|
tsconfig = _chunkJNBNKAGFjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json");
|
|
2170
2176
|
}
|
|
2171
|
-
if (!
|
|
2177
|
+
if (!_fs.existsSync.call(void 0, tsconfig)) {
|
|
2172
2178
|
throw new Error("Cannot find tsconfig.json configuration");
|
|
2173
2179
|
}
|
|
2174
2180
|
let sourceRoot = projectJson.sourceRoot;
|
|
2175
2181
|
if (!sourceRoot) {
|
|
2176
2182
|
sourceRoot = _chunkJNBNKAGFjs.joinPaths.call(void 0, projectRoot, "src");
|
|
2177
2183
|
}
|
|
2178
|
-
if (!
|
|
2184
|
+
if (!_fs.existsSync.call(void 0, sourceRoot)) {
|
|
2179
2185
|
throw new Error("Cannot find sourceRoot directory");
|
|
2180
2186
|
}
|
|
2181
2187
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -2302,17 +2308,18 @@ async function resolveOptions3(options) {
|
|
|
2302
2308
|
}
|
|
2303
2309
|
_chunk3GQAWCBQjs.__name.call(void 0, resolveOptions3, "resolveOptions");
|
|
2304
2310
|
async function generatePackageJson3(options) {
|
|
2305
|
-
if (options.generatePackageJson !== false &&
|
|
2311
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJNBNKAGFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
2306
2312
|
_chunkJNBNKAGFjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
2307
2313
|
const stopwatch = _chunkJNBNKAGFjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2308
2314
|
const packageJsonPath = _chunkJNBNKAGFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
2309
|
-
if (!
|
|
2315
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2310
2316
|
throw new Error("Cannot find package.json configuration");
|
|
2311
2317
|
}
|
|
2312
|
-
let
|
|
2313
|
-
if (!
|
|
2318
|
+
let packageJsonContent = await _promises.readFile.call(void 0, _chunkJNBNKAGFjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
2319
|
+
if (!packageJsonContent) {
|
|
2314
2320
|
throw new Error("Cannot find package.json configuration file");
|
|
2315
2321
|
}
|
|
2322
|
+
let packageJson = JSON.parse(packageJsonContent);
|
|
2316
2323
|
packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
2317
2324
|
packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
2318
2325
|
packageJson = await addPackageJsonExports(options.sourceRoot, packageJson);
|
|
@@ -1956,21 +1956,25 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
1956
1956
|
});
|
|
1957
1957
|
|
|
1958
1958
|
// ../unbuild/src/build.ts
|
|
1959
|
-
import { hfs as hfs10 } from "@humanfs/node";
|
|
1960
1959
|
import { createProjectGraphAsync as createProjectGraphAsync6, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph5, writeJsonFile as writeJsonFile3 } from "@nx/devkit";
|
|
1961
1960
|
import { getHelperDependency as getHelperDependency2, HelperDependency as HelperDependency2 } from "@nx/js";
|
|
1962
1961
|
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies3 } from "@nx/js/src/utils/buildable-libs-utils";
|
|
1963
1962
|
import defu3 from "defu";
|
|
1963
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
1964
|
+
import { readFile as readFile2 } from "node:fs/promises";
|
|
1964
1965
|
import { relative as relative4 } from "node:path";
|
|
1965
1966
|
import { findWorkspaceRoot as findWorkspaceRoot4 } from "nx/src/utils/find-workspace-root";
|
|
1966
1967
|
import { build as unbuild } from "unbuild";
|
|
1967
1968
|
|
|
1968
1969
|
// ../unbuild/src/clean.ts
|
|
1969
|
-
import {
|
|
1970
|
+
import { rm } from "node:fs/promises";
|
|
1970
1971
|
async function clean3(name = "Unbuild", directory, config) {
|
|
1971
1972
|
writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
1972
1973
|
const stopwatch = getStopwatch(`${name} output clean`);
|
|
1973
|
-
await
|
|
1974
|
+
await rm(directory, {
|
|
1975
|
+
recursive: true,
|
|
1976
|
+
force: true
|
|
1977
|
+
});
|
|
1974
1978
|
stopwatch();
|
|
1975
1979
|
}
|
|
1976
1980
|
__name(clean3, "clean");
|
|
@@ -2155,28 +2159,30 @@ async function resolveOptions3(options) {
|
|
|
2155
2159
|
exitOnError: true
|
|
2156
2160
|
});
|
|
2157
2161
|
const projectJsonPath = joinPaths(config.workspaceRoot, projectRoot, "project.json");
|
|
2158
|
-
if (!
|
|
2162
|
+
if (!existsSync2(projectJsonPath)) {
|
|
2159
2163
|
throw new Error("Cannot find project.json configuration");
|
|
2160
2164
|
}
|
|
2161
|
-
const
|
|
2165
|
+
const projectJsonContent = await readFile2(projectJsonPath, "utf8");
|
|
2166
|
+
const projectJson = JSON.parse(projectJsonContent);
|
|
2162
2167
|
const projectName = projectJson.name;
|
|
2163
2168
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "package.json");
|
|
2164
|
-
if (!
|
|
2169
|
+
if (!existsSync2(packageJsonPath)) {
|
|
2165
2170
|
throw new Error("Cannot find package.json configuration");
|
|
2166
2171
|
}
|
|
2167
|
-
const
|
|
2172
|
+
const packageJsonContent = await readFile2(packageJsonPath, "utf8");
|
|
2173
|
+
const packageJson = JSON.parse(packageJsonContent);
|
|
2168
2174
|
let tsconfig = options.tsconfig;
|
|
2169
2175
|
if (!tsconfig) {
|
|
2170
2176
|
tsconfig = joinPaths(workspaceRoot3.dir, projectRoot, "tsconfig.json");
|
|
2171
2177
|
}
|
|
2172
|
-
if (!
|
|
2178
|
+
if (!existsSync2(tsconfig)) {
|
|
2173
2179
|
throw new Error("Cannot find tsconfig.json configuration");
|
|
2174
2180
|
}
|
|
2175
2181
|
let sourceRoot = projectJson.sourceRoot;
|
|
2176
2182
|
if (!sourceRoot) {
|
|
2177
2183
|
sourceRoot = joinPaths(projectRoot, "src");
|
|
2178
2184
|
}
|
|
2179
|
-
if (!
|
|
2185
|
+
if (!existsSync2(sourceRoot)) {
|
|
2180
2186
|
throw new Error("Cannot find sourceRoot directory");
|
|
2181
2187
|
}
|
|
2182
2188
|
const projectConfigurations = readProjectsConfigurationFromProjectGraph5(projectGraph);
|
|
@@ -2303,17 +2309,18 @@ async function resolveOptions3(options) {
|
|
|
2303
2309
|
}
|
|
2304
2310
|
__name(resolveOptions3, "resolveOptions");
|
|
2305
2311
|
async function generatePackageJson3(options) {
|
|
2306
|
-
if (options.generatePackageJson !== false &&
|
|
2312
|
+
if (options.generatePackageJson !== false && existsSync2(joinPaths(options.projectRoot, "package.json"))) {
|
|
2307
2313
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
|
|
2308
2314
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2309
2315
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2310
|
-
if (!
|
|
2316
|
+
if (!existsSync2(packageJsonPath)) {
|
|
2311
2317
|
throw new Error("Cannot find package.json configuration");
|
|
2312
2318
|
}
|
|
2313
|
-
let
|
|
2314
|
-
if (!
|
|
2319
|
+
let packageJsonContent = await readFile2(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
2320
|
+
if (!packageJsonContent) {
|
|
2315
2321
|
throw new Error("Cannot find package.json configuration file");
|
|
2316
2322
|
}
|
|
2323
|
+
let packageJson = JSON.parse(packageJsonContent);
|
|
2317
2324
|
packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
2318
2325
|
packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
2319
2326
|
packageJson = await addPackageJsonExports(options.sourceRoot, packageJson);
|
|
@@ -3895,7 +3902,7 @@ import { names as names5 } from "@nx/devkit";
|
|
|
3895
3902
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
3896
3903
|
|
|
3897
3904
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
3898
|
-
import { existsSync as
|
|
3905
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
3899
3906
|
import { join as join2 } from "node:path";
|
|
3900
3907
|
import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "nx/src/devkit-exports";
|
|
3901
3908
|
import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
|
|
@@ -3910,7 +3917,7 @@ var PNPM_LOCK_PATH = join2(workspaceRoot2, PNPM_LOCK_FILE);
|
|
|
3910
3917
|
|
|
3911
3918
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3912
3919
|
import { joinPathFragments as joinPathFragments10, readJsonFile as readJsonFile2 } from "@nx/devkit";
|
|
3913
|
-
import { existsSync as
|
|
3920
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
3914
3921
|
|
|
3915
3922
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
3916
3923
|
import transform2 from "typia/lib/transform";
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk72FEODKNjs = require('./chunk-72FEODKN.js');
|
|
5
5
|
require('./chunk-JNBNKAGF.js');
|
|
6
6
|
require('./chunk-3GQAWCBQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGenerator =
|
|
9
|
+
exports.initGenerator = _chunk72FEODKNjs.initGenerator;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ require('./chunk-SIQ2JL7E.js');
|
|
|
5
5
|
require('./chunk-N2YKXZ5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk72FEODKNjs = require('./chunk-72FEODKN.js');
|
|
9
9
|
require('./chunk-GUQOEBFW.js');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -20,4 +20,4 @@ require('./chunk-3GQAWCBQ.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator =
|
|
23
|
+
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk72FEODKNjs.initGenerator; exports.withTerraformExecutor = _chunkAOTMRUKUjs.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk72FEODKNjs = require('../../../chunk-72FEODKN.js');
|
|
5
5
|
require('../../../chunk-JNBNKAGF.js');
|
|
6
6
|
require('../../../chunk-3GQAWCBQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunk72FEODKNjs.init_default; exports.initGenerator = _chunk72FEODKNjs.initGenerator;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@storm-software/terraform-tools","version":"0.
|
|
1
|
+
{"name":"@storm-software/terraform-tools","version":"0.48.0","description":"Tools for managing Terraform infrastructure within a Nx workspace.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/terraform-tools"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"license":"Apache-2.0","private":false,"main":"dist/index.js","module":"dist/index.mjs","exports":{"./package.json":"./package.json","./docs/*":"./docs/*","./migrations.json":"./migrations.json","./executors.json":"./executors.json","./executors/*/schema.json":"./dist/src/executors/*/schema.json","./generators.json":"./generators.json","./generators/*/schema.json":"./dist/src/generators/*/schema.json",".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./index":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./executors":{"import":{"types":"./dist/executors.d.mts","default":"./dist/executors.mjs"},"require":{"types":"./dist/executors.d.ts","default":"./dist/executors.js"},"default":{"types":"./dist/executors.d.ts","default":"./dist/executors.js"}},"./generators":{"import":{"types":"./dist/generators.d.mts","default":"./dist/generators.mjs"},"require":{"types":"./dist/generators.d.ts","default":"./dist/generators.js"},"default":{"types":"./dist/generators.d.ts","default":"./dist/generators.js"}},"./base":{"import":{"types":"./dist/src/base/index.d.mts","default":"./dist/src/base/index.mjs"},"require":{"types":"./dist/src/base/index.d.ts","default":"./dist/src/base/index.js"},"default":{"types":"./dist/src/base/index.d.ts","default":"./dist/src/base/index.js"}},"./base/*":{"import":{"types":"./dist/src/base/*.d.mts","default":"./dist/src/base/*.mjs"},"require":{"types":"./dist/src/base/*.d.ts","default":"./dist/src/base/*.js"},"default":{"types":"./dist/src/base/*.d.ts","default":"./dist/src/base/*.js"}},"./executors/*/executor.js":"./dist/src/executors/*/executor.js","./generators/*/init.js":"./dist/src/generators/*/init.js"},"typings":"dist/index.d.ts","keywords":["iac","infrastructure","monorepo","storm","storm-ops","storm-stack","sullivanpj","terraform"],"peerDependencies":{"@nx/devkit":"^20.3.1","@storm-software/workspace-tools":"workspace:*","nx":"^20.3.1"},"peerDependenciesMeta":{"@nx/devkit":{"optional":false},"@storm-software/workspace-tools":{"optional":false},"nx":{"optional":false}},"dependencies":{"@storm-software/workspace-tools":"1.230.0","shelljs":"^0.8.5","tslib":"^2.6.3"},"devDependencies":{"@nx/devkit":"^20.3.1","@types/node":"^22.10.2","nx":"^20.3.1","tsup":"8.3.5","untyped":"^1.5.2"},"publishConfig":{"access":"public"},"executors":"./executors.json","generators":"./generators.json"}
|