@storm-software/terraform-tools 0.54.45 → 0.54.47
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-X3Q4UFXB.mjs → chunk-5N5TZBI4.mjs} +83 -70
- package/dist/{chunk-MFSX2K6C.js → chunk-LXFC75RI.js} +115 -102
- 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,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.54.47](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.47) (2025-04-08)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([082eec9a5](https://github.com/storm-software/storm-ops/commit/082eec9a5))
|
|
11
|
+
|
|
12
|
+
## [0.54.46](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.46) (2025-04-07)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([1ac4c6ad4](https://github.com/storm-software/storm-ops/commit/1ac4c6ad4))
|
|
18
|
+
|
|
5
19
|
## [0.54.45](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.45) (2025-04-04)
|
|
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 -->
|
|
@@ -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: value,
|
|
1095
|
+
out: key
|
|
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,23 +1343,9 @@ 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
|
-
|
|
1320
|
-
{
|
|
1321
|
-
|
|
1322
|
-
out: "./src/index.ts"
|
|
1323
|
-
}
|
|
1324
|
-
];
|
|
1325
|
-
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
|
-
for (const entryPoint of entryPoints) {
|
|
1333
|
-
const split = entryPoint.out.split(".");
|
|
1334
|
-
split.pop();
|
|
1335
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
1346
|
+
for (const entryPoint of context2.options.entryPoints) {
|
|
1347
|
+
if (entryPoint.out) {
|
|
1348
|
+
const entry = entryPoint.out.replaceAll("\\", "/").replaceAll(/^(\.\/)*/, "").replace(/\.([cm])?[jt]s(x)?$/, "");
|
|
1336
1349
|
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
1337
1350
|
}
|
|
1338
1351
|
}
|
|
@@ -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: value,
|
|
1094
|
+
out: key
|
|
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,23 +1342,9 @@ 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
|
-
|
|
1319
|
-
{
|
|
1320
|
-
|
|
1321
|
-
out: "./src/index.ts"
|
|
1322
|
-
}
|
|
1323
|
-
];
|
|
1324
|
-
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
|
-
for (const entryPoint of entryPoints) {
|
|
1332
|
-
const split = entryPoint.out.split(".");
|
|
1333
|
-
split.pop();
|
|
1334
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
1345
|
+
for (const entryPoint of context2.options.entryPoints) {
|
|
1346
|
+
if (entryPoint.out) {
|
|
1347
|
+
const entry = entryPoint.out.replaceAll("\\", "/").replaceAll(/^(\.\/)*/, "").replace(/\.([cm])?[jt]s(x)?$/, "");
|
|
1335
1348
|
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
1336
1349
|
}
|
|
1337
1350
|
}
|
|
@@ -1423,7 +1436,7 @@ ${_chunkOFLYCEQVjs.formatLogMessage.call(void 0, {
|
|
|
1423
1436
|
}
|
|
1424
1437
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1425
1438
|
async function copyBuildAssets(context2) {
|
|
1426
|
-
if (_optionalChain([context2, 'access',
|
|
1439
|
+
if (_optionalChain([context2, 'access', _55 => _55.result, 'optionalAccess', _56 => _56.errors, 'access', _57 => _57.length]) === 0) {
|
|
1427
1440
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1428
1441
|
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1429
1442
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -1433,7 +1446,7 @@ async function copyBuildAssets(context2) {
|
|
|
1433
1446
|
}
|
|
1434
1447
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1435
1448
|
async function reportResults(context2) {
|
|
1436
|
-
if (_optionalChain([context2, 'access',
|
|
1449
|
+
if (_optionalChain([context2, 'access', _58 => _58.result, 'optionalAccess', _59 => _59.errors, 'access', _60 => _60.length]) === 0) {
|
|
1437
1450
|
if (context2.result.warnings.length > 0) {
|
|
1438
1451
|
_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
1452
|
}
|
|
@@ -1534,14 +1547,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1534
1547
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1535
1548
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1536
1549
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1537
|
-
if (!_optionalChain([context2, 'access',
|
|
1550
|
+
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
1551
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1539
1552
|
}
|
|
1540
1553
|
await build3({
|
|
1541
1554
|
...options,
|
|
1542
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1555
|
+
projectRoot: _optionalChain([context2, 'access', _67 => _67.projectsConfigurations, 'access', _68 => _68.projects, 'optionalAccess', _69 => _69[context2.projectName], 'access', _70 => _70.root]),
|
|
1543
1556
|
projectName: context2.projectName,
|
|
1544
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1557
|
+
sourceRoot: _optionalChain([context2, 'access', _71 => _71.projectsConfigurations, 'access', _72 => _72.projects, 'optionalAccess', _73 => _73[context2.projectName], 'optionalAccess', _74 => _74.sourceRoot]),
|
|
1545
1558
|
format: options.format,
|
|
1546
1559
|
platform: options.format
|
|
1547
1560
|
});
|
|
@@ -1584,7 +1597,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1584
1597
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1585
1598
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1586
1599
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
1587
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
1600
|
+
if (!_optionalChain([context2, 'optionalAccess', _75 => _75.projectName]) || !_optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'optionalAccess', _77 => _77.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1588
1601
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1589
1602
|
}
|
|
1590
1603
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -1593,7 +1606,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1593
1606
|
_esbuild3.default,
|
|
1594
1607
|
_esbuildwhy2.default
|
|
1595
1608
|
], {
|
|
1596
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
1609
|
+
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
1610
|
}).then((result) => {
|
|
1598
1611
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1599
1612
|
});
|
|
@@ -1652,7 +1665,7 @@ var executor_default8 = _chunkOFLYCEQVjs.withRunExecutor.call(void 0, "Typia run
|
|
|
1652
1665
|
var _jiti = require('jiti');
|
|
1653
1666
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1654
1667
|
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1655
|
-
if (!_optionalChain([context2, 'access',
|
|
1668
|
+
if (!_optionalChain([context2, 'access', _86 => _86.projectsConfigurations, 'optionalAccess', _87 => _87.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1656
1669
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1657
1670
|
}
|
|
1658
1671
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -1735,7 +1748,7 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
|
|
|
1735
1748
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1736
1749
|
config = await _chunkOFLYCEQVjs.getConfig.call(void 0, workspaceRoot3);
|
|
1737
1750
|
}
|
|
1738
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1751
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _88 => _88.hooks, 'optionalAccess', _89 => _89.applyDefaultOptions])) {
|
|
1739
1752
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1740
1753
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1741
1754
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
@@ -1746,22 +1759,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1746
1759
|
workspaceRoot: tree.root,
|
|
1747
1760
|
config
|
|
1748
1761
|
}, _chunkOFLYCEQVjs.applyWorkspaceBaseTokens);
|
|
1749
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1762
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _90 => _90.hooks, 'optionalAccess', _91 => _91.preProcess])) {
|
|
1750
1763
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1751
1764
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1752
1765
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1753
1766
|
}
|
|
1754
1767
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1755
1768
|
if (result) {
|
|
1756
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
1769
|
+
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
1770
|
throw new Error(`The ${name} generator failed to run`, {
|
|
1758
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1771
|
+
cause: _optionalChain([result, 'optionalAccess', _100 => _100.error])
|
|
1759
1772
|
});
|
|
1760
1773
|
} else if (result.success && result.data) {
|
|
1761
1774
|
return result;
|
|
1762
1775
|
}
|
|
1763
1776
|
}
|
|
1764
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1777
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _101 => _101.hooks, 'optionalAccess', _102 => _102.postProcess])) {
|
|
1765
1778
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1766
1779
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1767
1780
|
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -1927,15 +1940,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1927
1940
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
1928
1941
|
let repository = {
|
|
1929
1942
|
type: "github",
|
|
1930
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
1943
|
+
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
1944
|
};
|
|
1932
1945
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
1933
1946
|
if (tree.exists("package.json")) {
|
|
1934
1947
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
1935
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1948
|
+
if (_optionalChain([packageJson, 'optionalAccess', _107 => _107.repository])) {
|
|
1936
1949
|
repository = packageJson.repository;
|
|
1937
1950
|
}
|
|
1938
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1951
|
+
if (_optionalChain([packageJson, 'optionalAccess', _108 => _108.description])) {
|
|
1939
1952
|
description = packageJson.description;
|
|
1940
1953
|
}
|
|
1941
1954
|
}
|
|
@@ -1990,9 +2003,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1990
2003
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
1991
2004
|
...json,
|
|
1992
2005
|
pnpm: {
|
|
1993
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2006
|
+
..._optionalChain([json, 'optionalAccess', _109 => _109.pnpm]),
|
|
1994
2007
|
overrides: {
|
|
1995
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2008
|
+
..._optionalChain([json, 'optionalAccess', _110 => _110.pnpm, 'optionalAccess', _111 => _111.overrides]),
|
|
1996
2009
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1997
2010
|
}
|
|
1998
2011
|
}
|
|
@@ -2006,10 +2019,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2006
2019
|
]);
|
|
2007
2020
|
if (tree.exists("package.json")) {
|
|
2008
2021
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2009
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2022
|
+
if (_optionalChain([packageJson, 'optionalAccess', _112 => _112.repository])) {
|
|
2010
2023
|
repository = packageJson.repository;
|
|
2011
2024
|
}
|
|
2012
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2025
|
+
if (_optionalChain([packageJson, 'optionalAccess', _113 => _113.description])) {
|
|
2013
2026
|
description = packageJson.description;
|
|
2014
2027
|
}
|
|
2015
2028
|
}
|
|
@@ -2057,24 +2070,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
2057
2070
|
function createProjectTsConfigJson(tree, options) {
|
|
2058
2071
|
const tsconfig = {
|
|
2059
2072
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2060
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2073
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _114 => _114.tsconfigOptions]), () => ( {})),
|
|
2061
2074
|
compilerOptions: {
|
|
2062
2075
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2063
2076
|
outDir: _chunkOFLYCEQVjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2064
2077
|
noEmit: true,
|
|
2065
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2078
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _115 => _115.tsconfigOptions, 'optionalAccess', _116 => _116.compilerOptions]), () => ( {}))
|
|
2066
2079
|
},
|
|
2067
2080
|
files: [
|
|
2068
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2081
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _117 => _117.tsconfigOptions, 'optionalAccess', _118 => _118.files]), () => ( []))
|
|
2069
2082
|
],
|
|
2070
2083
|
include: [
|
|
2071
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2084
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _119 => _119.tsconfigOptions, 'optionalAccess', _120 => _120.include]), () => ( [])),
|
|
2072
2085
|
"src/**/*.ts",
|
|
2073
2086
|
"src/**/*.js",
|
|
2074
2087
|
"bin/**/*"
|
|
2075
2088
|
],
|
|
2076
2089
|
exclude: [
|
|
2077
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2090
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _121 => _121.tsconfigOptions, 'optionalAccess', _122 => _122.exclude]), () => ( [])),
|
|
2078
2091
|
"jest.config.ts",
|
|
2079
2092
|
"src/**/*.spec.ts",
|
|
2080
2093
|
"src/**/*.test.ts"
|
|
@@ -2085,8 +2098,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2085
2098
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2086
2099
|
async function normalizeOptions(tree, options, config) {
|
|
2087
2100
|
let importPath = options.importPath;
|
|
2088
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2089
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2101
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _123 => _123.namespace])) {
|
|
2102
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _124 => _124.namespace])}/${options.name}`;
|
|
2090
2103
|
}
|
|
2091
2104
|
if (options.publishable) {
|
|
2092
2105
|
if (!importPath) {
|
|
@@ -2218,7 +2231,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2218
2231
|
name: "StormWorkspaceConfiguration"
|
|
2219
2232
|
});
|
|
2220
2233
|
_chunkOFLYCEQVjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2221
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2234
|
+
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
2235
|
_chunkOFLYCEQVjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2223
2236
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2224
2237
|
spaces: 2
|
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 _chunkLXFC75RIjs = require('./chunk-LXFC75RI.js');
|
|
5
5
|
require('./chunk-OFLYCEQV.js');
|
|
6
6
|
require('./chunk-3GQAWCBQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGenerator =
|
|
9
|
+
exports.initGenerator = _chunkLXFC75RIjs.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 _chunkLXFC75RIjs = require('./chunk-LXFC75RI.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 = _chunkLXFC75RIjs.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 _chunkLXFC75RIjs = require('../../../chunk-LXFC75RI.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 = _chunkLXFC75RIjs.init_default; exports.initGenerator = _chunkLXFC75RIjs.initGenerator;
|