@storm-software/terraform-tools 0.54.45 → 0.54.46
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 +7 -0
- package/README.md +1 -1
- package/dist/{chunk-MFSX2K6C.js → chunk-O3P3PRAI.js} +113 -92
- package/dist/{chunk-X3Q4UFXB.mjs → chunk-XXGHGWME.mjs} +81 -60
- 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
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.54.46](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.46) (2025-04-07)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([1ac4c6ad4](https://github.com/storm-software/storm-ops/commit/1ac4c6ad4))
|
|
11
|
+
|
|
5
12
|
## [0.54.45](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.45) (2025-04-04)
|
|
6
13
|
|
|
7
14
|
### 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 -->
|
|
@@ -453,57 +453,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
453
453
|
|
|
454
454
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
455
455
|
|
|
456
|
-
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
457
|
-
const workspaceRoot3 = config.workspaceRoot || _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, );
|
|
458
|
-
const entryPoints = [];
|
|
459
|
-
if (entry) {
|
|
460
|
-
if (typeof entry === "string") {
|
|
461
|
-
entryPoints.push(entry);
|
|
462
|
-
} else if (Array.isArray(entry)) {
|
|
463
|
-
entryPoints.push(...entry);
|
|
464
|
-
} else {
|
|
465
|
-
entryPoints.push(...Object.values(entry));
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
if (emitOnAll) {
|
|
469
|
-
entryPoints.push(_chunkOFLYCEQVjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
470
|
-
}
|
|
471
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
472
|
-
const paths = [];
|
|
473
|
-
if (entryPoint.includes("*")) {
|
|
474
|
-
const files = await _glob.glob.call(void 0, entryPoint, {
|
|
475
|
-
withFileTypes: true,
|
|
476
|
-
ignore: [
|
|
477
|
-
"**/node_modules/**"
|
|
478
|
-
]
|
|
479
|
-
});
|
|
480
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
481
|
-
const result = _chunkOFLYCEQVjs.correctPaths.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, projectRoot), ""));
|
|
482
|
-
if (result) {
|
|
483
|
-
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkOFLYCEQVjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
484
|
-
if (!paths.includes(result)) {
|
|
485
|
-
paths.push(result);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
return ret;
|
|
489
|
-
}, []));
|
|
490
|
-
} else {
|
|
491
|
-
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
492
|
-
if (!paths.includes(entryPoint)) {
|
|
493
|
-
paths.push(entryPoint);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
return paths;
|
|
497
|
-
}));
|
|
498
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
499
|
-
result.forEach((res) => {
|
|
500
|
-
if (res && !ret.includes(res)) {
|
|
501
|
-
ret.push(res);
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
return ret;
|
|
505
|
-
}, []);
|
|
506
|
-
}, "getEntryPoints");
|
|
507
456
|
|
|
508
457
|
// ../build-tools/src/utilities/get-env.ts
|
|
509
458
|
var getEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (builder, options) => {
|
|
@@ -927,10 +876,10 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
927
876
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
928
877
|
await _chunkOFLYCEQVjs.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
929
878
|
}
|
|
930
|
-
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
879
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && _optionalChain([resolvedOptions, 'access', _44 => _44.entryPoints, 'access', _45 => _45[0], 'optionalAccess', _46 => _46.in]) && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
931
880
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
932
881
|
const typeOutDir = resolvedOptions.outdir;
|
|
933
|
-
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
882
|
+
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
934
883
|
const bundlePath = _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
935
884
|
let dtsPath;
|
|
936
885
|
if (_fs.existsSync.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
@@ -953,7 +902,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
953
902
|
function getTypeDependencyPackageName(npmPackage) {
|
|
954
903
|
if (npmPackage.startsWith("@")) {
|
|
955
904
|
const [scope, name] = npmPackage.split("/");
|
|
956
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
905
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _47 => _47.slice, 'call', _48 => _48(1)])}__${name}`;
|
|
957
906
|
}
|
|
958
907
|
return `@types/${npmPackage}`;
|
|
959
908
|
}
|
|
@@ -1121,6 +1070,84 @@ var shebangRenderer = {
|
|
|
1121
1070
|
}
|
|
1122
1071
|
};
|
|
1123
1072
|
|
|
1073
|
+
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1074
|
+
|
|
1075
|
+
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1076
|
+
const workspaceRoot3 = config.workspaceRoot || _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, );
|
|
1077
|
+
const entryPoints = [];
|
|
1078
|
+
if (entry) {
|
|
1079
|
+
if (typeof entry === "string") {
|
|
1080
|
+
entryPoints.push({
|
|
1081
|
+
in: entry,
|
|
1082
|
+
out: entry
|
|
1083
|
+
});
|
|
1084
|
+
} else if (Array.isArray(entry)) {
|
|
1085
|
+
entryPoints.push(...entry.map((entry2) => ({
|
|
1086
|
+
in: entry2,
|
|
1087
|
+
out: entry2
|
|
1088
|
+
})));
|
|
1089
|
+
} else {
|
|
1090
|
+
entryPoints.push(...Object.entries(entry).map(([key, value]) => {
|
|
1091
|
+
if (typeof value === "string") {
|
|
1092
|
+
return {
|
|
1093
|
+
in: key,
|
|
1094
|
+
out: value
|
|
1095
|
+
};
|
|
1096
|
+
} else {
|
|
1097
|
+
return {
|
|
1098
|
+
in: key,
|
|
1099
|
+
out: key
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
}));
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
if (emitOnAll) {
|
|
1106
|
+
entryPoints.push({
|
|
1107
|
+
in: _chunkOFLYCEQVjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
1108
|
+
out: _chunkOFLYCEQVjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1112
|
+
const paths = [];
|
|
1113
|
+
if (entryPoint.in.includes("*")) {
|
|
1114
|
+
const files = await _glob.glob.call(void 0, entryPoint.in, {
|
|
1115
|
+
withFileTypes: true,
|
|
1116
|
+
ignore: [
|
|
1117
|
+
"**/node_modules/**"
|
|
1118
|
+
]
|
|
1119
|
+
});
|
|
1120
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
1121
|
+
const result = _chunkOFLYCEQVjs.correctPaths.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1122
|
+
if (result) {
|
|
1123
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkOFLYCEQVjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1124
|
+
if (!paths.some((p) => p.in === result)) {
|
|
1125
|
+
paths.push({
|
|
1126
|
+
in: result,
|
|
1127
|
+
out: entryPoint.out.replace(entryPoint.in, result)
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
return ret;
|
|
1132
|
+
}, []));
|
|
1133
|
+
} else {
|
|
1134
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
1135
|
+
if (!paths.some((p) => p.in === entryPoint.in)) {
|
|
1136
|
+
paths.push(entryPoint);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
return paths;
|
|
1140
|
+
}));
|
|
1141
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
1142
|
+
result.forEach((res) => {
|
|
1143
|
+
if (res && !ret.some((p) => p.in === res.in)) {
|
|
1144
|
+
ret.push(res);
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
return ret;
|
|
1148
|
+
}, []);
|
|
1149
|
+
}, "getEntryPoints");
|
|
1150
|
+
|
|
1124
1151
|
// ../esbuild/src/utilities/helpers.ts
|
|
1125
1152
|
function handleSync(fn) {
|
|
1126
1153
|
try {
|
|
@@ -1169,7 +1196,7 @@ function pipeSync(fn, ...fns) {
|
|
|
1169
1196
|
return (...args) => {
|
|
1170
1197
|
let result = fn(...args);
|
|
1171
1198
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1172
|
-
result = _optionalChain([fns, 'access',
|
|
1199
|
+
result = _optionalChain([fns, 'access', _49 => _49[i], 'optionalCall', _50 => _50(result)]);
|
|
1173
1200
|
}
|
|
1174
1201
|
return result;
|
|
1175
1202
|
};
|
|
@@ -1179,7 +1206,7 @@ function pipeAsync(fn, ...fns) {
|
|
|
1179
1206
|
return async (...args) => {
|
|
1180
1207
|
let result = await fn(...args);
|
|
1181
1208
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1182
|
-
result = await _optionalChain([fns, 'access',
|
|
1209
|
+
result = await _optionalChain([fns, 'access', _51 => _51[i], 'optionalCall', _52 => _52(result)]);
|
|
1183
1210
|
}
|
|
1184
1211
|
return result;
|
|
1185
1212
|
};
|
|
@@ -1209,7 +1236,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1209
1236
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1210
1237
|
const projectName = projectJson.name;
|
|
1211
1238
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1212
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1239
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _53 => _53.projects, 'optionalAccess', _54 => _54[projectName]])) {
|
|
1213
1240
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
1214
1241
|
}
|
|
1215
1242
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -1315,19 +1342,13 @@ async function generatePackageJson(context2) {
|
|
|
1315
1342
|
packageJson.exports ??= {};
|
|
1316
1343
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
1317
1344
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
1318
|
-
|
|
1345
|
+
const entryPoints = [
|
|
1319
1346
|
{
|
|
1320
1347
|
in: "./src/index.ts",
|
|
1321
1348
|
out: "./src/index.ts"
|
|
1322
1349
|
}
|
|
1323
1350
|
];
|
|
1324
1351
|
if (context2.options.entryPoints) {
|
|
1325
|
-
if (Array.isArray(context2.options.entryPoints)) {
|
|
1326
|
-
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1327
|
-
in: entryPoint,
|
|
1328
|
-
out: _chunkOFLYCEQVjs.correctPaths.call(void 0, entryPoint.replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, context2.options.config.workspaceRoot), "").replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, context2.options.projectRoot), ""))
|
|
1329
|
-
} : entryPoint);
|
|
1330
|
-
}
|
|
1331
1352
|
for (const entryPoint of entryPoints) {
|
|
1332
1353
|
const split = entryPoint.out.split(".");
|
|
1333
1354
|
split.pop();
|
|
@@ -1423,7 +1444,7 @@ ${_chunkOFLYCEQVjs.formatLogMessage.call(void 0, {
|
|
|
1423
1444
|
}
|
|
1424
1445
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1425
1446
|
async function copyBuildAssets(context2) {
|
|
1426
|
-
if (_optionalChain([context2, 'access',
|
|
1447
|
+
if (_optionalChain([context2, 'access', _55 => _55.result, 'optionalAccess', _56 => _56.errors, 'access', _57 => _57.length]) === 0) {
|
|
1427
1448
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1428
1449
|
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1429
1450
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -1433,7 +1454,7 @@ async function copyBuildAssets(context2) {
|
|
|
1433
1454
|
}
|
|
1434
1455
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1435
1456
|
async function reportResults(context2) {
|
|
1436
|
-
if (_optionalChain([context2, 'access',
|
|
1457
|
+
if (_optionalChain([context2, 'access', _58 => _58.result, 'optionalAccess', _59 => _59.errors, 'access', _60 => _60.length]) === 0) {
|
|
1437
1458
|
if (context2.result.warnings.length > 0) {
|
|
1438
1459
|
_chunkOFLYCEQVjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1439
1460
|
}
|
|
@@ -1534,14 +1555,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1534
1555
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1535
1556
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1536
1557
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1537
|
-
if (!_optionalChain([context2, 'access',
|
|
1558
|
+
if (!_optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'optionalAccess', _62 => _62.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _63 => _63.projectsConfigurations, 'access', _64 => _64.projects, 'access', _65 => _65[context2.projectName], 'optionalAccess', _66 => _66.root])) {
|
|
1538
1559
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1539
1560
|
}
|
|
1540
1561
|
await build3({
|
|
1541
1562
|
...options,
|
|
1542
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1563
|
+
projectRoot: _optionalChain([context2, 'access', _67 => _67.projectsConfigurations, 'access', _68 => _68.projects, 'optionalAccess', _69 => _69[context2.projectName], 'access', _70 => _70.root]),
|
|
1543
1564
|
projectName: context2.projectName,
|
|
1544
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1565
|
+
sourceRoot: _optionalChain([context2, 'access', _71 => _71.projectsConfigurations, 'access', _72 => _72.projects, 'optionalAccess', _73 => _73[context2.projectName], 'optionalAccess', _74 => _74.sourceRoot]),
|
|
1545
1566
|
format: options.format,
|
|
1546
1567
|
platform: options.format
|
|
1547
1568
|
});
|
|
@@ -1584,7 +1605,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1584
1605
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1585
1606
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1586
1607
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
1587
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
1608
|
+
if (!_optionalChain([context2, 'optionalAccess', _75 => _75.projectName]) || !_optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'optionalAccess', _77 => _77.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1588
1609
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1589
1610
|
}
|
|
1590
1611
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -1593,7 +1614,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1593
1614
|
_esbuild3.default,
|
|
1594
1615
|
_esbuildwhy2.default
|
|
1595
1616
|
], {
|
|
1596
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
1617
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'access', _80 => _80[context2.projectName], 'optionalAccess', _81 => _81.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'access', _84 => _84[context2.projectName], 'optionalAccess', _85 => _85.root]), () => ( "./")), "src")))
|
|
1597
1618
|
}).then((result) => {
|
|
1598
1619
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1599
1620
|
});
|
|
@@ -1652,7 +1673,7 @@ var executor_default8 = _chunkOFLYCEQVjs.withRunExecutor.call(void 0, "Typia run
|
|
|
1652
1673
|
var _jiti = require('jiti');
|
|
1653
1674
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1654
1675
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1655
|
-
if (!_optionalChain([context2, 'access',
|
|
1676
|
+
if (!_optionalChain([context2, 'access', _86 => _86.projectsConfigurations, 'optionalAccess', _87 => _87.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1656
1677
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1657
1678
|
}
|
|
1658
1679
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -1735,7 +1756,7 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
|
|
|
1735
1756
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1736
1757
|
config = await _chunkOFLYCEQVjs.getConfig.call(void 0, workspaceRoot3);
|
|
1737
1758
|
}
|
|
1738
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1759
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _88 => _88.hooks, 'optionalAccess', _89 => _89.applyDefaultOptions])) {
|
|
1739
1760
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1740
1761
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1741
1762
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
@@ -1746,22 +1767,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1746
1767
|
workspaceRoot: tree.root,
|
|
1747
1768
|
config
|
|
1748
1769
|
}, _chunkOFLYCEQVjs.applyWorkspaceBaseTokens);
|
|
1749
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1770
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _90 => _90.hooks, 'optionalAccess', _91 => _91.preProcess])) {
|
|
1750
1771
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1751
1772
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1752
1773
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1753
1774
|
}
|
|
1754
1775
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1755
1776
|
if (result) {
|
|
1756
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
1777
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _92 => _92.error, 'optionalAccess', _93 => _93.message]) && typeof _optionalChain([result, 'optionalAccess', _94 => _94.error, 'optionalAccess', _95 => _95.message]) === "string" && _optionalChain([result, 'optionalAccess', _96 => _96.error, 'optionalAccess', _97 => _97.name]) && typeof _optionalChain([result, 'optionalAccess', _98 => _98.error, 'optionalAccess', _99 => _99.name]) === "string") {
|
|
1757
1778
|
throw new Error(`The ${name} generator failed to run`, {
|
|
1758
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1779
|
+
cause: _optionalChain([result, 'optionalAccess', _100 => _100.error])
|
|
1759
1780
|
});
|
|
1760
1781
|
} else if (result.success && result.data) {
|
|
1761
1782
|
return result;
|
|
1762
1783
|
}
|
|
1763
1784
|
}
|
|
1764
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1785
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _101 => _101.hooks, 'optionalAccess', _102 => _102.postProcess])) {
|
|
1765
1786
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1766
1787
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1767
1788
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -1927,15 +1948,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1927
1948
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
1928
1949
|
let repository = {
|
|
1929
1950
|
type: "github",
|
|
1930
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
1951
|
+
url: _optionalChain([config, 'optionalAccess', _103 => _103.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _104 => _104.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _105 => _105.namespace]) || _optionalChain([config, 'optionalAccess', _106 => _106.name]) || "repository"}.git`
|
|
1931
1952
|
};
|
|
1932
1953
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
1933
1954
|
if (tree.exists("package.json")) {
|
|
1934
1955
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
1935
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1956
|
+
if (_optionalChain([packageJson, 'optionalAccess', _107 => _107.repository])) {
|
|
1936
1957
|
repository = packageJson.repository;
|
|
1937
1958
|
}
|
|
1938
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1959
|
+
if (_optionalChain([packageJson, 'optionalAccess', _108 => _108.description])) {
|
|
1939
1960
|
description = packageJson.description;
|
|
1940
1961
|
}
|
|
1941
1962
|
}
|
|
@@ -1990,9 +2011,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1990
2011
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
1991
2012
|
...json,
|
|
1992
2013
|
pnpm: {
|
|
1993
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2014
|
+
..._optionalChain([json, 'optionalAccess', _109 => _109.pnpm]),
|
|
1994
2015
|
overrides: {
|
|
1995
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2016
|
+
..._optionalChain([json, 'optionalAccess', _110 => _110.pnpm, 'optionalAccess', _111 => _111.overrides]),
|
|
1996
2017
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1997
2018
|
}
|
|
1998
2019
|
}
|
|
@@ -2006,10 +2027,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2006
2027
|
]);
|
|
2007
2028
|
if (tree.exists("package.json")) {
|
|
2008
2029
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2009
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2030
|
+
if (_optionalChain([packageJson, 'optionalAccess', _112 => _112.repository])) {
|
|
2010
2031
|
repository = packageJson.repository;
|
|
2011
2032
|
}
|
|
2012
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2033
|
+
if (_optionalChain([packageJson, 'optionalAccess', _113 => _113.description])) {
|
|
2013
2034
|
description = packageJson.description;
|
|
2014
2035
|
}
|
|
2015
2036
|
}
|
|
@@ -2057,24 +2078,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
2057
2078
|
function createProjectTsConfigJson(tree, options) {
|
|
2058
2079
|
const tsconfig = {
|
|
2059
2080
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2060
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2081
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _114 => _114.tsconfigOptions]), () => ( {})),
|
|
2061
2082
|
compilerOptions: {
|
|
2062
2083
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2063
2084
|
outDir: _chunkOFLYCEQVjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2064
2085
|
noEmit: true,
|
|
2065
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2086
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _115 => _115.tsconfigOptions, 'optionalAccess', _116 => _116.compilerOptions]), () => ( {}))
|
|
2066
2087
|
},
|
|
2067
2088
|
files: [
|
|
2068
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2089
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _117 => _117.tsconfigOptions, 'optionalAccess', _118 => _118.files]), () => ( []))
|
|
2069
2090
|
],
|
|
2070
2091
|
include: [
|
|
2071
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2092
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _119 => _119.tsconfigOptions, 'optionalAccess', _120 => _120.include]), () => ( [])),
|
|
2072
2093
|
"src/**/*.ts",
|
|
2073
2094
|
"src/**/*.js",
|
|
2074
2095
|
"bin/**/*"
|
|
2075
2096
|
],
|
|
2076
2097
|
exclude: [
|
|
2077
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2098
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _121 => _121.tsconfigOptions, 'optionalAccess', _122 => _122.exclude]), () => ( [])),
|
|
2078
2099
|
"jest.config.ts",
|
|
2079
2100
|
"src/**/*.spec.ts",
|
|
2080
2101
|
"src/**/*.test.ts"
|
|
@@ -2085,8 +2106,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2085
2106
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2086
2107
|
async function normalizeOptions(tree, options, config) {
|
|
2087
2108
|
let importPath = options.importPath;
|
|
2088
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2089
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2109
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _123 => _123.namespace])) {
|
|
2110
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _124 => _124.namespace])}/${options.name}`;
|
|
2090
2111
|
}
|
|
2091
2112
|
if (options.publishable) {
|
|
2092
2113
|
if (!importPath) {
|
|
@@ -2218,7 +2239,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2218
2239
|
name: "StormWorkspaceConfiguration"
|
|
2219
2240
|
});
|
|
2220
2241
|
_chunkOFLYCEQVjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2221
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2242
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _125 => _125.workspaceRoot]), () => ( _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _126 => _126.outputFile, 'optionalAccess', _127 => _127.startsWith, 'call', _128 => _128("./")]) ? "" : "./");
|
|
2222
2243
|
_chunkOFLYCEQVjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2223
2244
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2224
2245
|
spaces: 2
|
|
@@ -454,57 +454,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projec
|
|
|
454
454
|
|
|
455
455
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
456
456
|
import { glob as glob2 } from "glob";
|
|
457
|
-
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
458
|
-
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
459
|
-
const entryPoints = [];
|
|
460
|
-
if (entry) {
|
|
461
|
-
if (typeof entry === "string") {
|
|
462
|
-
entryPoints.push(entry);
|
|
463
|
-
} else if (Array.isArray(entry)) {
|
|
464
|
-
entryPoints.push(...entry);
|
|
465
|
-
} else {
|
|
466
|
-
entryPoints.push(...Object.values(entry));
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
if (emitOnAll) {
|
|
470
|
-
entryPoints.push(joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
471
|
-
}
|
|
472
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
473
|
-
const paths = [];
|
|
474
|
-
if (entryPoint.includes("*")) {
|
|
475
|
-
const files = await glob2(entryPoint, {
|
|
476
|
-
withFileTypes: true,
|
|
477
|
-
ignore: [
|
|
478
|
-
"**/node_modules/**"
|
|
479
|
-
]
|
|
480
|
-
});
|
|
481
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
482
|
-
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
483
|
-
if (result) {
|
|
484
|
-
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
485
|
-
if (!paths.includes(result)) {
|
|
486
|
-
paths.push(result);
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
return ret;
|
|
490
|
-
}, []));
|
|
491
|
-
} else {
|
|
492
|
-
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
493
|
-
if (!paths.includes(entryPoint)) {
|
|
494
|
-
paths.push(entryPoint);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
return paths;
|
|
498
|
-
}));
|
|
499
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
500
|
-
result.forEach((res) => {
|
|
501
|
-
if (res && !ret.includes(res)) {
|
|
502
|
-
ret.push(res);
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
return ret;
|
|
506
|
-
}, []);
|
|
507
|
-
}, "getEntryPoints");
|
|
508
457
|
|
|
509
458
|
// ../build-tools/src/utilities/get-env.ts
|
|
510
459
|
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
@@ -928,10 +877,10 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
928
877
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
929
878
|
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
930
879
|
}
|
|
931
|
-
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
880
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0]?.in && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
932
881
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
933
882
|
const typeOutDir = resolvedOptions.outdir;
|
|
934
|
-
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
883
|
+
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
935
884
|
const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
|
|
936
885
|
let dtsPath;
|
|
937
886
|
if (existsSync3(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
@@ -1122,6 +1071,84 @@ var shebangRenderer = {
|
|
|
1122
1071
|
}
|
|
1123
1072
|
};
|
|
1124
1073
|
|
|
1074
|
+
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1075
|
+
import { glob as glob3 } from "glob";
|
|
1076
|
+
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1077
|
+
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
1078
|
+
const entryPoints = [];
|
|
1079
|
+
if (entry) {
|
|
1080
|
+
if (typeof entry === "string") {
|
|
1081
|
+
entryPoints.push({
|
|
1082
|
+
in: entry,
|
|
1083
|
+
out: entry
|
|
1084
|
+
});
|
|
1085
|
+
} else if (Array.isArray(entry)) {
|
|
1086
|
+
entryPoints.push(...entry.map((entry2) => ({
|
|
1087
|
+
in: entry2,
|
|
1088
|
+
out: entry2
|
|
1089
|
+
})));
|
|
1090
|
+
} else {
|
|
1091
|
+
entryPoints.push(...Object.entries(entry).map(([key, value]) => {
|
|
1092
|
+
if (typeof value === "string") {
|
|
1093
|
+
return {
|
|
1094
|
+
in: key,
|
|
1095
|
+
out: value
|
|
1096
|
+
};
|
|
1097
|
+
} else {
|
|
1098
|
+
return {
|
|
1099
|
+
in: key,
|
|
1100
|
+
out: key
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
}));
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
if (emitOnAll) {
|
|
1107
|
+
entryPoints.push({
|
|
1108
|
+
in: joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
1109
|
+
out: joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1113
|
+
const paths = [];
|
|
1114
|
+
if (entryPoint.in.includes("*")) {
|
|
1115
|
+
const files = await glob3(entryPoint.in, {
|
|
1116
|
+
withFileTypes: true,
|
|
1117
|
+
ignore: [
|
|
1118
|
+
"**/node_modules/**"
|
|
1119
|
+
]
|
|
1120
|
+
});
|
|
1121
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
1122
|
+
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
1123
|
+
if (result) {
|
|
1124
|
+
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
1125
|
+
if (!paths.some((p) => p.in === result)) {
|
|
1126
|
+
paths.push({
|
|
1127
|
+
in: result,
|
|
1128
|
+
out: entryPoint.out.replace(entryPoint.in, result)
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
return ret;
|
|
1133
|
+
}, []));
|
|
1134
|
+
} else {
|
|
1135
|
+
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
1136
|
+
if (!paths.some((p) => p.in === entryPoint.in)) {
|
|
1137
|
+
paths.push(entryPoint);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
return paths;
|
|
1141
|
+
}));
|
|
1142
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
1143
|
+
result.forEach((res) => {
|
|
1144
|
+
if (res && !ret.some((p) => p.in === res.in)) {
|
|
1145
|
+
ret.push(res);
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
return ret;
|
|
1149
|
+
}, []);
|
|
1150
|
+
}, "getEntryPoints");
|
|
1151
|
+
|
|
1125
1152
|
// ../esbuild/src/utilities/helpers.ts
|
|
1126
1153
|
function handleSync(fn) {
|
|
1127
1154
|
try {
|
|
@@ -1316,19 +1343,13 @@ async function generatePackageJson(context2) {
|
|
|
1316
1343
|
packageJson.exports ??= {};
|
|
1317
1344
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
1318
1345
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
1319
|
-
|
|
1346
|
+
const entryPoints = [
|
|
1320
1347
|
{
|
|
1321
1348
|
in: "./src/index.ts",
|
|
1322
1349
|
out: "./src/index.ts"
|
|
1323
1350
|
}
|
|
1324
1351
|
];
|
|
1325
1352
|
if (context2.options.entryPoints) {
|
|
1326
|
-
if (Array.isArray(context2.options.entryPoints)) {
|
|
1327
|
-
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1328
|
-
in: entryPoint,
|
|
1329
|
-
out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
|
|
1330
|
-
} : entryPoint);
|
|
1331
|
-
}
|
|
1332
1353
|
for (const entryPoint of entryPoints) {
|
|
1333
1354
|
const split = entryPoint.out.split(".");
|
|
1334
1355
|
split.pop();
|
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 _chunkO3P3PRAIjs = require('./chunk-O3P3PRAI.js');
|
|
5
5
|
require('./chunk-OFLYCEQV.js');
|
|
6
6
|
require('./chunk-3GQAWCBQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGenerator =
|
|
9
|
+
exports.initGenerator = _chunkO3P3PRAIjs.initGenerator;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ require('./chunk-N54F7ABF.js');
|
|
|
5
5
|
require('./chunk-N2YKXZ5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkO3P3PRAIjs = require('./chunk-O3P3PRAI.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 = _chunkO3P3PRAIjs.initGenerator; exports.withTerraformExecutor = _chunkAWKDJF6Sjs.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 _chunkO3P3PRAIjs = require('../../../chunk-O3P3PRAI.js');
|
|
5
5
|
require('../../../chunk-OFLYCEQV.js');
|
|
6
6
|
require('../../../chunk-3GQAWCBQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkO3P3PRAIjs.init_default; exports.initGenerator = _chunkO3P3PRAIjs.initGenerator;
|