@storm-software/terraform-tools 0.53.7 → 0.53.9
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 +22 -0
- package/README.md +1 -1
- package/dist/{chunk-2YZ3MY7Z.js → chunk-5SJJD7T2.js} +3 -3
- package/dist/{chunk-OAZ3OJPI.js → chunk-ARUOVAUX.js} +11 -5
- package/dist/{chunk-YFYQLHFW.mjs → chunk-FESDU63B.mjs} +1 -1
- package/dist/{chunk-BDNXCOYM.js → chunk-HVVQCDLX.js} +2 -2
- package/dist/{chunk-QYC5T3J3.js → chunk-IILCY4K6.js} +2 -2
- package/dist/{chunk-P4DYHSWV.js → chunk-JGEEK7WZ.js} +2 -2
- package/dist/{chunk-FAMG3LBJ.mjs → chunk-JSGMKYAJ.mjs} +1 -1
- package/dist/{chunk-JMMGQ3VC.mjs → chunk-L2PJ2IP6.mjs} +1 -1
- package/dist/{chunk-COZQPQN4.mjs → chunk-MZ27JZT5.mjs} +16 -10
- package/dist/{chunk-M7TZCVBI.mjs → chunk-RMJZBNHR.mjs} +1 -1
- package/dist/{chunk-CHBZMKLY.mjs → chunk-S2CDMFT4.mjs} +7 -1
- package/dist/{chunk-C3AET6N7.js → chunk-SWGZ2GWF.js} +151 -145
- package/dist/{chunk-ODKOOHVU.mjs → chunk-XW6C32ZW.mjs} +1 -1
- package/dist/{chunk-ZIUAOW5J.js → chunk-YF7XYL2D.js} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.d.mts +2 -2
- package/dist/src/base/terraform-executor.d.ts +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkARUOVAUXjs = require('./chunk-ARUOVAUX.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -158,7 +158,7 @@ async function cargoBuildExecutor(options, context2) {
|
|
|
158
158
|
return await cargoCommand(...command);
|
|
159
159
|
}
|
|
160
160
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
161
|
-
var executor_default =
|
|
161
|
+
var executor_default = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
162
162
|
skipReadingConfig: false,
|
|
163
163
|
hooks: {
|
|
164
164
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -175,7 +175,7 @@ async function cargoCheckExecutor(options, context2) {
|
|
|
175
175
|
return await cargoCommand(...command);
|
|
176
176
|
}
|
|
177
177
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
178
|
-
var executor_default2 =
|
|
178
|
+
var executor_default2 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
179
179
|
skipReadingConfig: false,
|
|
180
180
|
hooks: {
|
|
181
181
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -191,7 +191,7 @@ async function cargoClippyExecutor(options, context2) {
|
|
|
191
191
|
return await cargoCommand(...command);
|
|
192
192
|
}
|
|
193
193
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
194
|
-
var executor_default3 =
|
|
194
|
+
var executor_default3 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
195
195
|
skipReadingConfig: false,
|
|
196
196
|
hooks: {
|
|
197
197
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -212,7 +212,7 @@ async function cargoDocExecutor(options, context2) {
|
|
|
212
212
|
return await cargoCommand(...command);
|
|
213
213
|
}
|
|
214
214
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
215
|
-
var executor_default4 =
|
|
215
|
+
var executor_default4 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
216
216
|
skipReadingConfig: false,
|
|
217
217
|
hooks: {
|
|
218
218
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -235,7 +235,7 @@ async function cargoFormatExecutor(options, context2) {
|
|
|
235
235
|
return await cargoCommand(...command);
|
|
236
236
|
}
|
|
237
237
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
238
|
-
var executor_default5 =
|
|
238
|
+
var executor_default5 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
239
239
|
skipReadingConfig: false,
|
|
240
240
|
hooks: {
|
|
241
241
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -317,8 +317,8 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
317
317
|
output: "src/"
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
|
|
321
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
320
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
321
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkARUOVAUXjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
322
322
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
323
323
|
projectDir: projectRoot,
|
|
324
324
|
rootDir: config.workspaceRoot,
|
|
@@ -327,12 +327,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
327
327
|
});
|
|
328
328
|
await assetHandler.processAllAssetsOnce();
|
|
329
329
|
if (includeSrc === true) {
|
|
330
|
-
|
|
330
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkARUOVAUXjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
331
331
|
const files = await _glob.glob.call(void 0, [
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
333
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
334
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
335
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
336
336
|
]);
|
|
337
337
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
338
338
|
|
|
@@ -354,7 +354,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
354
354
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
355
355
|
const projectNode = project.node;
|
|
356
356
|
if (projectNode.data.root) {
|
|
357
|
-
const projectPackageJsonPath =
|
|
357
|
+
const projectPackageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
358
358
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
359
359
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
360
360
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -365,7 +365,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
if (localPackages.length > 0) {
|
|
368
|
-
|
|
368
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
369
369
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
370
370
|
if (!ret[localPackage.name]) {
|
|
371
371
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -387,13 +387,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
387
387
|
return ret;
|
|
388
388
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
389
389
|
} else {
|
|
390
|
-
|
|
390
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
391
391
|
}
|
|
392
392
|
return packageJson;
|
|
393
393
|
}, "addPackageDependencies");
|
|
394
394
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
395
|
-
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot :
|
|
396
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
395
|
+
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkARUOVAUXjs.findWorkspaceRoot.call(void 0, );
|
|
396
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
397
397
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
398
398
|
packageJson.type ??= "module";
|
|
399
399
|
packageJson.sideEffects ??= false;
|
|
@@ -402,7 +402,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
402
402
|
if (distSrc.startsWith("/")) {
|
|
403
403
|
distSrc = distSrc.substring(1);
|
|
404
404
|
}
|
|
405
|
-
packageJson.source ??= `${
|
|
405
|
+
packageJson.source ??= `${_chunkARUOVAUXjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
406
406
|
}
|
|
407
407
|
packageJson.files ??= [
|
|
408
408
|
"dist/**/*"
|
|
@@ -433,7 +433,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
433
433
|
];
|
|
434
434
|
}
|
|
435
435
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
436
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
436
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkARUOVAUXjs.joinPaths.call(void 0, "packages", projectName);
|
|
437
437
|
return packageJson;
|
|
438
438
|
}, "addWorkspacePackageJsonFields");
|
|
439
439
|
var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -460,7 +460,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
460
460
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
461
461
|
|
|
462
462
|
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
463
|
-
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot :
|
|
463
|
+
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkARUOVAUXjs.findWorkspaceRoot.call(void 0, );
|
|
464
464
|
const entryPoints = [];
|
|
465
465
|
if (entry) {
|
|
466
466
|
if (Array.isArray(entry)) {
|
|
@@ -472,7 +472,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
if (emitOnAll) {
|
|
475
|
-
entryPoints.push(
|
|
475
|
+
entryPoints.push(_chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
476
476
|
}
|
|
477
477
|
const results = [];
|
|
478
478
|
for (const entryPoint in entryPoints) {
|
|
@@ -481,9 +481,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
481
481
|
withFileTypes: true
|
|
482
482
|
});
|
|
483
483
|
results.push(...files.reduce((ret, filePath) => {
|
|
484
|
-
const result =
|
|
484
|
+
const result = _chunkARUOVAUXjs.correctPaths.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkARUOVAUXjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkARUOVAUXjs.correctPaths.call(void 0, projectRoot), ""));
|
|
485
485
|
if (result) {
|
|
486
|
-
|
|
486
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkARUOVAUXjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
487
487
|
if (!results.includes(result)) {
|
|
488
488
|
results.push(result);
|
|
489
489
|
}
|
|
@@ -693,8 +693,8 @@ var RendererEngine = class {
|
|
|
693
693
|
// ../esbuild/src/clean.ts
|
|
694
694
|
|
|
695
695
|
async function clean(name = "ESBuild", directory, config) {
|
|
696
|
-
|
|
697
|
-
const stopwatch =
|
|
696
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
697
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
698
698
|
await _node.hfs.deleteAll(directory);
|
|
699
699
|
stopwatch();
|
|
700
700
|
}
|
|
@@ -815,7 +815,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
815
815
|
setup(build5) {
|
|
816
816
|
build5.onEnd((result) => {
|
|
817
817
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
818
|
-
|
|
818
|
+
_chunkARUOVAUXjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
819
819
|
${result.errors.map((error) => error.text).join("\n")}
|
|
820
820
|
|
|
821
821
|
`, resolvedOptions.config);
|
|
@@ -850,7 +850,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
|
850
850
|
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
851
851
|
name: "storm:resolve-paths",
|
|
852
852
|
setup(build5) {
|
|
853
|
-
const parentTsConfig = build5.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0,
|
|
853
|
+
const parentTsConfig = build5.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
854
854
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
855
855
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
856
856
|
build5.onResolve({
|
|
@@ -873,7 +873,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
|
|
|
873
873
|
|
|
874
874
|
var _apiextractor = require('@microsoft/api-extractor');
|
|
875
875
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
876
|
-
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0,
|
|
876
|
+
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
877
877
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
878
878
|
p,
|
|
879
879
|
getTypeDependencyPackageName(p)
|
|
@@ -909,13 +909,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
909
909
|
},
|
|
910
910
|
dtsRollup: {
|
|
911
911
|
enabled: true,
|
|
912
|
-
untrimmedFilePath:
|
|
912
|
+
untrimmedFilePath: _chunkARUOVAUXjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
913
913
|
},
|
|
914
914
|
tsdocMetadata: {
|
|
915
915
|
enabled: false
|
|
916
916
|
}
|
|
917
917
|
},
|
|
918
|
-
packageJsonFullPath:
|
|
918
|
+
packageJsonFullPath: _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
919
919
|
configObjectFullPath: void 0
|
|
920
920
|
});
|
|
921
921
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -923,7 +923,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
923
923
|
localBuild: true
|
|
924
924
|
});
|
|
925
925
|
if (extractorResult.succeeded === false) {
|
|
926
|
-
|
|
926
|
+
_chunkARUOVAUXjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
927
927
|
throw new Error("API Extractor completed with errors");
|
|
928
928
|
}
|
|
929
929
|
}
|
|
@@ -936,18 +936,18 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
936
936
|
}
|
|
937
937
|
build5.onStart(async () => {
|
|
938
938
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
939
|
-
await
|
|
939
|
+
await _chunkARUOVAUXjs.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
940
940
|
}
|
|
941
941
|
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
942
942
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
943
943
|
const typeOutDir = resolvedOptions.outdir;
|
|
944
944
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
945
|
-
const bundlePath =
|
|
945
|
+
const bundlePath = _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
946
946
|
let dtsPath;
|
|
947
|
-
if (await _node.hfs.isFile(
|
|
948
|
-
dtsPath =
|
|
949
|
-
} else if (await _node.hfs.isFile(
|
|
950
|
-
dtsPath =
|
|
947
|
+
if (await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
948
|
+
dtsPath = _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
949
|
+
} else if (await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
950
|
+
dtsPath = _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
951
951
|
}
|
|
952
952
|
const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
953
953
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -1102,8 +1102,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
1102
1102
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
1103
1103
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
1104
1104
|
});
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
_chunkARUOVAUXjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
1106
|
+
_chunkARUOVAUXjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
1107
1107
|
if (filteredMissingDeps.length > 0) {
|
|
1108
1108
|
throw new Error(`Missing dependencies detected - please install them:
|
|
1109
1109
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1197,13 +1197,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1197
1197
|
if (!workspaceRoot3) {
|
|
1198
1198
|
throw new Error("Cannot find Nx workspace root");
|
|
1199
1199
|
}
|
|
1200
|
-
const config = await
|
|
1201
|
-
|
|
1202
|
-
const stopwatch =
|
|
1200
|
+
const config = await _chunkARUOVAUXjs.getConfig.call(void 0, workspaceRoot3.dir);
|
|
1201
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1202
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1203
1203
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1204
1204
|
exitOnError: true
|
|
1205
1205
|
});
|
|
1206
|
-
const projectJsonPath =
|
|
1206
|
+
const projectJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1207
1207
|
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
1208
1208
|
throw new Error("Cannot find project.json configuration");
|
|
1209
1209
|
}
|
|
@@ -1216,7 +1216,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1216
1216
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1217
1217
|
options.name ??= `${projectName}-${options.format}`;
|
|
1218
1218
|
options.target ??= DEFAULT_TARGET;
|
|
1219
|
-
const packageJsonPath =
|
|
1219
|
+
const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1220
1220
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1221
1221
|
throw new Error("Cannot find package.json configuration");
|
|
1222
1222
|
}
|
|
@@ -1240,20 +1240,20 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1240
1240
|
".node"
|
|
1241
1241
|
],
|
|
1242
1242
|
...userOptions,
|
|
1243
|
-
tsconfig:
|
|
1243
|
+
tsconfig: _chunkARUOVAUXjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1244
1244
|
format: options.format || "cjs",
|
|
1245
1245
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
1246
1246
|
"./src/index.ts"
|
|
1247
1247
|
], userOptions.emitOnAll),
|
|
1248
|
-
outdir: userOptions.outputPath ||
|
|
1248
|
+
outdir: userOptions.outputPath || _chunkARUOVAUXjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
1249
1249
|
plugins: [],
|
|
1250
1250
|
name: userOptions.name || projectName,
|
|
1251
1251
|
projectConfigurations,
|
|
1252
1252
|
projectName,
|
|
1253
1253
|
projectGraph,
|
|
1254
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1254
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkARUOVAUXjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
1255
1255
|
minify: userOptions.minify || !userOptions.debug,
|
|
1256
|
-
verbose: userOptions.verbose ||
|
|
1256
|
+
verbose: userOptions.verbose || _chunkARUOVAUXjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1257
1257
|
includeSrc: userOptions.includeSrc === true,
|
|
1258
1258
|
metafile: userOptions.metafile !== false,
|
|
1259
1259
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1289,8 +1289,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1289
1289
|
}, {})
|
|
1290
1290
|
},
|
|
1291
1291
|
inject: [
|
|
1292
|
-
options.format === "cjs" && options.injectShims ?
|
|
1293
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
1292
|
+
options.format === "cjs" && options.injectShims ? _chunkARUOVAUXjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
1293
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkARUOVAUXjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
|
|
1294
1294
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
1295
1295
|
].filter(Boolean)
|
|
1296
1296
|
};
|
|
@@ -1299,14 +1299,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1299
1299
|
return result;
|
|
1300
1300
|
}, "resolveOptions");
|
|
1301
1301
|
async function generatePackageJson(context2) {
|
|
1302
|
-
if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(
|
|
1303
|
-
|
|
1304
|
-
const stopwatch =
|
|
1305
|
-
const packageJsonPath =
|
|
1302
|
+
if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1303
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1304
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1305
|
+
const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1306
1306
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1307
1307
|
throw new Error("Cannot find package.json configuration");
|
|
1308
1308
|
}
|
|
1309
|
-
let packageJson = await _node.hfs.json(
|
|
1309
|
+
let packageJson = await _node.hfs.json(_chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
|
|
1310
1310
|
if (!packageJson) {
|
|
1311
1311
|
throw new Error("Cannot find package.json configuration file");
|
|
1312
1312
|
}
|
|
@@ -1344,7 +1344,7 @@ async function generatePackageJson(context2) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
return ret;
|
|
1346
1346
|
}, packageJson.exports);
|
|
1347
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1347
|
+
await _devkit.writeJsonFile.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
1348
1348
|
stopwatch();
|
|
1349
1349
|
}
|
|
1350
1350
|
return context2;
|
|
@@ -1370,8 +1370,8 @@ async function generateContext(getOptions) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1372
1372
|
async function executeEsBuild(context2) {
|
|
1373
|
-
|
|
1374
|
-
const stopwatch =
|
|
1373
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1374
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1375
1375
|
if (process.env.WATCH === "true") {
|
|
1376
1376
|
const ctx = await esbuild2.context(context2.options);
|
|
1377
1377
|
watch(ctx, context2.options);
|
|
@@ -1387,8 +1387,8 @@ async function executeEsBuild(context2) {
|
|
|
1387
1387
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1388
1388
|
async function copyBuildAssets(context2) {
|
|
1389
1389
|
if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
|
|
1390
|
-
|
|
1391
|
-
const stopwatch =
|
|
1390
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1391
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1392
1392
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1393
1393
|
stopwatch();
|
|
1394
1394
|
}
|
|
@@ -1398,9 +1398,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1398
1398
|
async function reportResults(context2) {
|
|
1399
1399
|
if (_optionalChain([context2, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
|
|
1400
1400
|
if (context2.result.warnings.length > 0) {
|
|
1401
|
-
|
|
1401
|
+
_chunkARUOVAUXjs.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);
|
|
1402
1402
|
}
|
|
1403
|
-
|
|
1403
|
+
_chunkARUOVAUXjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1442,8 +1442,8 @@ async function cleanOutputPath(context2) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1444
1444
|
async function build3(options) {
|
|
1445
|
-
|
|
1446
|
-
const stopwatch =
|
|
1445
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1446
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1447
1447
|
try {
|
|
1448
1448
|
const opts = Array.isArray(options) ? options : [
|
|
1449
1449
|
options
|
|
@@ -1453,9 +1453,9 @@ async function build3(options) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
void transduce.async(opts, dependencyCheck);
|
|
1455
1455
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1456
|
-
|
|
1456
|
+
_chunkARUOVAUXjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1457
1457
|
} catch (error) {
|
|
1458
|
-
|
|
1458
|
+
_chunkARUOVAUXjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
1459
1459
|
throw error;
|
|
1460
1460
|
} finally {
|
|
1461
1461
|
stopwatch();
|
|
@@ -1483,9 +1483,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1483
1483
|
return context2.rebuild();
|
|
1484
1484
|
});
|
|
1485
1485
|
if (rebuildResult instanceof Error) {
|
|
1486
|
-
|
|
1486
|
+
_chunkARUOVAUXjs.writeError.call(void 0, rebuildResult.message);
|
|
1487
1487
|
}
|
|
1488
|
-
|
|
1488
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1489
1489
|
}, 10);
|
|
1490
1490
|
changeWatcher.on("change", fastRebuild);
|
|
1491
1491
|
return void 0;
|
|
@@ -1493,7 +1493,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1493
1493
|
|
|
1494
1494
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1495
1495
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1496
|
-
|
|
1496
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1497
1497
|
if (!_optionalChain([context2, 'access', _35 => _35.projectsConfigurations, 'optionalAccess', _36 => _36.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _37 => _37.projectsConfigurations, 'access', _38 => _38.projects, 'access', _39 => _39[context2.projectName], 'optionalAccess', _40 => _40.root])) {
|
|
1498
1498
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1499
1499
|
}
|
|
@@ -1510,7 +1510,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
1512
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1513
|
-
var executor_default6 =
|
|
1513
|
+
var executor_default6 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1514
1514
|
skipReadingConfig: false,
|
|
1515
1515
|
hooks: {
|
|
1516
1516
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1547,7 +1547,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1547
1547
|
if (!_optionalChain([context2, 'optionalAccess', _49 => _49.projectName]) || !_optionalChain([context2, 'access', _50 => _50.projectsConfigurations, 'optionalAccess', _51 => _51.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1548
1548
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1549
1549
|
}
|
|
1550
|
-
|
|
1550
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
1551
1551
|
_sizelimit2.default.call(void 0, [
|
|
1552
1552
|
_file2.default,
|
|
1553
1553
|
_esbuild3.default,
|
|
@@ -1555,14 +1555,14 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1555
1555
|
], {
|
|
1556
1556
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _52 => _52.projectsConfigurations, 'access', _53 => _53.projects, 'access', _54 => _54[context2.projectName], 'optionalAccess', _55 => _55.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _56 => _56.projectsConfigurations, 'access', _57 => _57.projects, 'access', _58 => _58[context2.projectName], 'optionalAccess', _59 => _59.root]), () => ( "./")), "src")))
|
|
1557
1557
|
}).then((result) => {
|
|
1558
|
-
|
|
1558
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1559
1559
|
});
|
|
1560
1560
|
return {
|
|
1561
1561
|
success: true
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
1564
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
1565
|
-
var executor_default7 =
|
|
1565
|
+
var executor_default7 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
1566
1566
|
skipReadingConfig: false,
|
|
1567
1567
|
hooks: {
|
|
1568
1568
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1581,8 +1581,8 @@ var _tsdown = require('tsdown');
|
|
|
1581
1581
|
// ../tsdown/src/clean.ts
|
|
1582
1582
|
|
|
1583
1583
|
async function clean2(name = "ESBuild", directory, config) {
|
|
1584
|
-
|
|
1585
|
-
const stopwatch =
|
|
1584
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
1585
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
1586
1586
|
await _node.hfs.deleteAll(directory);
|
|
1587
1587
|
stopwatch();
|
|
1588
1588
|
}
|
|
@@ -1617,13 +1617,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1617
1617
|
if (!workspaceRoot3) {
|
|
1618
1618
|
throw new Error("Cannot find Nx workspace root");
|
|
1619
1619
|
}
|
|
1620
|
-
const config = await
|
|
1621
|
-
|
|
1622
|
-
const stopwatch =
|
|
1620
|
+
const config = await _chunkARUOVAUXjs.getConfig.call(void 0, workspaceRoot3.dir);
|
|
1621
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1622
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1623
1623
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1624
1624
|
exitOnError: true
|
|
1625
1625
|
});
|
|
1626
|
-
const projectJsonPath =
|
|
1626
|
+
const projectJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1627
1627
|
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
1628
1628
|
throw new Error("Cannot find project.json configuration");
|
|
1629
1629
|
}
|
|
@@ -1636,7 +1636,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1636
1636
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
1637
1637
|
options.name ??= `${projectName}-${options.format}`;
|
|
1638
1638
|
options.target ??= DEFAULT_TARGET;
|
|
1639
|
-
const packageJsonPath =
|
|
1639
|
+
const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1640
1640
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1641
1641
|
throw new Error("Cannot find package.json configuration");
|
|
1642
1642
|
}
|
|
@@ -1645,20 +1645,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1645
1645
|
...options,
|
|
1646
1646
|
config,
|
|
1647
1647
|
...userOptions,
|
|
1648
|
-
tsconfig:
|
|
1648
|
+
tsconfig: _chunkARUOVAUXjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1649
1649
|
format: options.format || "cjs",
|
|
1650
1650
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
1651
1651
|
"./src/index.ts"
|
|
1652
1652
|
], userOptions.emitOnAll),
|
|
1653
|
-
outdir: userOptions.outputPath ||
|
|
1653
|
+
outdir: userOptions.outputPath || _chunkARUOVAUXjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
1654
1654
|
plugins: [],
|
|
1655
1655
|
name: userOptions.name || projectName,
|
|
1656
1656
|
projectConfigurations,
|
|
1657
1657
|
projectName,
|
|
1658
1658
|
projectGraph,
|
|
1659
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1659
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkARUOVAUXjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
1660
1660
|
minify: userOptions.minify || !userOptions.debug,
|
|
1661
|
-
verbose: userOptions.verbose ||
|
|
1661
|
+
verbose: userOptions.verbose || _chunkARUOVAUXjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1662
1662
|
includeSrc: userOptions.includeSrc === true,
|
|
1663
1663
|
metafile: userOptions.metafile !== false,
|
|
1664
1664
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1692,14 +1692,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1692
1692
|
return result;
|
|
1693
1693
|
}, "resolveOptions");
|
|
1694
1694
|
async function generatePackageJson2(options) {
|
|
1695
|
-
if (options.generatePackageJson !== false && await _node.hfs.isFile(
|
|
1696
|
-
|
|
1697
|
-
const stopwatch =
|
|
1698
|
-
const packageJsonPath =
|
|
1695
|
+
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1696
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
1697
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1698
|
+
const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1699
1699
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1700
1700
|
throw new Error("Cannot find package.json configuration");
|
|
1701
1701
|
}
|
|
1702
|
-
let packageJson = await _node.hfs.json(
|
|
1702
|
+
let packageJson = await _node.hfs.json(_chunkARUOVAUXjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
|
|
1703
1703
|
if (!packageJson) {
|
|
1704
1704
|
throw new Error("Cannot find package.json configuration file");
|
|
1705
1705
|
}
|
|
@@ -1737,15 +1737,15 @@ async function generatePackageJson2(options) {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
return ret;
|
|
1739
1739
|
}, packageJson.exports);
|
|
1740
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1740
|
+
await _devkit.writeJsonFile.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
1741
1741
|
stopwatch();
|
|
1742
1742
|
}
|
|
1743
1743
|
return options;
|
|
1744
1744
|
}
|
|
1745
1745
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
|
|
1746
1746
|
async function executeTSDown(options) {
|
|
1747
|
-
|
|
1748
|
-
const stopwatch =
|
|
1747
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
1748
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
1749
1749
|
await _tsdown.build.call(void 0, {
|
|
1750
1750
|
...options,
|
|
1751
1751
|
entry: options.entryPoints,
|
|
@@ -1757,15 +1757,15 @@ async function executeTSDown(options) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
1759
1759
|
async function copyBuildAssets2(options) {
|
|
1760
|
-
|
|
1761
|
-
const stopwatch =
|
|
1760
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
1761
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1762
1762
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
1763
1763
|
stopwatch();
|
|
1764
1764
|
return options;
|
|
1765
1765
|
}
|
|
1766
1766
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
|
|
1767
1767
|
async function reportResults2(options) {
|
|
1768
|
-
|
|
1768
|
+
_chunkARUOVAUXjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
1769
1769
|
}
|
|
1770
1770
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults2, "reportResults");
|
|
1771
1771
|
async function cleanOutputPath2(options) {
|
|
@@ -1776,8 +1776,8 @@ async function cleanOutputPath2(options) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
|
|
1778
1778
|
async function build4(options) {
|
|
1779
|
-
|
|
1780
|
-
const stopwatch =
|
|
1779
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1780
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1781
1781
|
try {
|
|
1782
1782
|
const opts = Array.isArray(options) ? options : [
|
|
1783
1783
|
options
|
|
@@ -1795,11 +1795,11 @@ async function build4(options) {
|
|
|
1795
1795
|
await reportResults2(opt);
|
|
1796
1796
|
}));
|
|
1797
1797
|
} else {
|
|
1798
|
-
|
|
1798
|
+
_chunkARUOVAUXjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
1799
1799
|
}
|
|
1800
|
-
|
|
1800
|
+
_chunkARUOVAUXjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1801
1801
|
} catch (error) {
|
|
1802
|
-
|
|
1802
|
+
_chunkARUOVAUXjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
1803
1803
|
throw error;
|
|
1804
1804
|
} finally {
|
|
1805
1805
|
stopwatch();
|
|
@@ -1809,7 +1809,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build4, "build");
|
|
|
1809
1809
|
|
|
1810
1810
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1811
1811
|
async function tsdownExecutorFn(options, context2, config) {
|
|
1812
|
-
|
|
1812
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
1813
1813
|
if (!_optionalChain([context2, 'access', _62 => _62.projectsConfigurations, 'optionalAccess', _63 => _63.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _64 => _64.projectsConfigurations, 'access', _65 => _65.projects, 'access', _66 => _66[context2.projectName], 'optionalAccess', _67 => _67.root])) {
|
|
1814
1814
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1815
1815
|
}
|
|
@@ -1826,7 +1826,7 @@ async function tsdownExecutorFn(options, context2, config) {
|
|
|
1826
1826
|
};
|
|
1827
1827
|
}
|
|
1828
1828
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
1829
|
-
var executor_default8 =
|
|
1829
|
+
var executor_default8 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
1830
1830
|
skipReadingConfig: false,
|
|
1831
1831
|
hooks: {
|
|
1832
1832
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1845,11 +1845,11 @@ var _fsextra = require('fs-extra');
|
|
|
1845
1845
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1846
1846
|
async function typiaExecutorFn(options, _, config) {
|
|
1847
1847
|
if (options.clean !== false) {
|
|
1848
|
-
|
|
1848
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1849
1849
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1850
1850
|
}
|
|
1851
1851
|
await Promise.all(options.entry.map((entry) => {
|
|
1852
|
-
|
|
1852
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1853
1853
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1854
1854
|
input: entry,
|
|
1855
1855
|
output: options.outputPath,
|
|
@@ -1861,7 +1861,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1861
1861
|
};
|
|
1862
1862
|
}
|
|
1863
1863
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
1864
|
-
var executor_default9 =
|
|
1864
|
+
var executor_default9 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
1865
1865
|
skipReadingConfig: false,
|
|
1866
1866
|
hooks: {
|
|
1867
1867
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1880,7 +1880,7 @@ var executor_default9 = _chunkOAZ3OJPIjs.withRunExecutor.call(void 0, "Typia run
|
|
|
1880
1880
|
|
|
1881
1881
|
var _jiti = require('jiti');
|
|
1882
1882
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1883
|
-
|
|
1883
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1884
1884
|
if (!_optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'optionalAccess', _77 => _77.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1885
1885
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1886
1886
|
}
|
|
@@ -1891,7 +1891,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1891
1891
|
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
1892
1892
|
}
|
|
1893
1893
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1894
|
-
fsCache: config.skipCache ? false :
|
|
1894
|
+
fsCache: config.skipCache ? false : _chunkARUOVAUXjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
1895
1895
|
interopDefault: true
|
|
1896
1896
|
});
|
|
1897
1897
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -1928,7 +1928,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1928
1928
|
};
|
|
1929
1929
|
}
|
|
1930
1930
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
1931
|
-
var executor_default10 =
|
|
1931
|
+
var executor_default10 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
1932
1932
|
skipReadingConfig: false,
|
|
1933
1933
|
hooks: {
|
|
1934
1934
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1952,34 +1952,34 @@ var executor_default10 = _chunkOAZ3OJPIjs.withRunExecutor.call(void 0, "TypeScri
|
|
|
1952
1952
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
1953
1953
|
skipReadingConfig: false
|
|
1954
1954
|
}) => async (tree, _options) => {
|
|
1955
|
-
const stopwatch =
|
|
1955
|
+
const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, name);
|
|
1956
1956
|
let options = _options;
|
|
1957
1957
|
let config;
|
|
1958
1958
|
try {
|
|
1959
|
-
|
|
1959
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1960
1960
|
|
|
1961
1961
|
`, config);
|
|
1962
|
-
const workspaceRoot3 =
|
|
1962
|
+
const workspaceRoot3 = _chunkARUOVAUXjs.findWorkspaceRoot.call(void 0, );
|
|
1963
1963
|
if (!generatorOptions.skipReadingConfig) {
|
|
1964
|
-
|
|
1964
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
1965
1965
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1966
|
-
config = await
|
|
1966
|
+
config = await _chunkARUOVAUXjs.getConfig.call(void 0, workspaceRoot3);
|
|
1967
1967
|
}
|
|
1968
1968
|
if (_optionalChain([generatorOptions, 'optionalAccess', _78 => _78.hooks, 'optionalAccess', _79 => _79.applyDefaultOptions])) {
|
|
1969
|
-
|
|
1969
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1970
1970
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1971
|
-
|
|
1971
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1972
1972
|
}
|
|
1973
|
-
|
|
1973
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
1974
1974
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
1975
|
-
const tokenized = await
|
|
1975
|
+
const tokenized = await _chunkARUOVAUXjs.applyWorkspaceTokens.call(void 0, options, {
|
|
1976
1976
|
workspaceRoot: tree.root,
|
|
1977
1977
|
config
|
|
1978
|
-
},
|
|
1978
|
+
}, _chunkARUOVAUXjs.applyWorkspaceBaseTokens);
|
|
1979
1979
|
if (_optionalChain([generatorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.preProcess])) {
|
|
1980
|
-
|
|
1980
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1981
1981
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1982
|
-
|
|
1982
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1983
1983
|
}
|
|
1984
1984
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1985
1985
|
if (result) {
|
|
@@ -1992,18 +1992,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
1994
|
if (_optionalChain([generatorOptions, 'optionalAccess', _91 => _91.hooks, 'optionalAccess', _92 => _92.postProcess])) {
|
|
1995
|
-
|
|
1995
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1996
1996
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1997
|
-
|
|
1997
|
+
_chunkARUOVAUXjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1998
1998
|
}
|
|
1999
1999
|
return () => {
|
|
2000
|
-
|
|
2000
|
+
_chunkARUOVAUXjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
2001
2001
|
`, config);
|
|
2002
2002
|
};
|
|
2003
2003
|
} catch (error) {
|
|
2004
2004
|
return () => {
|
|
2005
|
-
|
|
2006
|
-
|
|
2005
|
+
_chunkARUOVAUXjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
2006
|
+
_chunkARUOVAUXjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
2007
2007
|
- Details: ${error.message}
|
|
2008
2008
|
- Stacktrace: ${error.stack}`, config);
|
|
2009
2009
|
};
|
|
@@ -2105,7 +2105,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2105
2105
|
const projectConfig = {
|
|
2106
2106
|
root: options.directory,
|
|
2107
2107
|
projectType: "library",
|
|
2108
|
-
sourceRoot:
|
|
2108
|
+
sourceRoot: _chunkARUOVAUXjs.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
|
|
2109
2109
|
targets: {
|
|
2110
2110
|
build: {
|
|
2111
2111
|
executor: schema.buildExecutor,
|
|
@@ -2114,11 +2114,11 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2114
2114
|
],
|
|
2115
2115
|
options: {
|
|
2116
2116
|
entry: [
|
|
2117
|
-
|
|
2117
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
|
|
2118
2118
|
],
|
|
2119
2119
|
outputPath: getOutputPath(options),
|
|
2120
|
-
tsconfig:
|
|
2121
|
-
project:
|
|
2120
|
+
tsconfig: _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
2121
|
+
project: _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
2122
2122
|
defaultConfiguration: "production",
|
|
2123
2123
|
platform: "neutral",
|
|
2124
2124
|
assets: [
|
|
@@ -2172,7 +2172,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2172
2172
|
if (!options.importPath) {
|
|
2173
2173
|
options.importPath = options.name;
|
|
2174
2174
|
}
|
|
2175
|
-
const packageJsonPath =
|
|
2175
|
+
const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json");
|
|
2176
2176
|
if (tree.exists(packageJsonPath)) {
|
|
2177
2177
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
2178
2178
|
if (!options.importPath) {
|
|
@@ -2229,10 +2229,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2229
2229
|
}));
|
|
2230
2230
|
}
|
|
2231
2231
|
_js.addTsConfigPath.call(void 0, tree, options.importPath, [
|
|
2232
|
-
|
|
2232
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
|
|
2233
2233
|
]);
|
|
2234
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2235
|
-
|
|
2234
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkARUOVAUXjs.joinPaths.call(void 0, options.importPath, "/*"), [
|
|
2235
|
+
_chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
|
|
2236
2236
|
]);
|
|
2237
2237
|
if (tree.exists("package.json")) {
|
|
2238
2238
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2243,7 +2243,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2243
2243
|
description = packageJson.description;
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
const tsconfigPath =
|
|
2246
|
+
const tsconfigPath = _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
|
|
2247
2247
|
if (tree.exists(tsconfigPath)) {
|
|
2248
2248
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2249
2249
|
json.composite ??= true;
|
|
@@ -2281,7 +2281,7 @@ function getOutputPath(options) {
|
|
|
2281
2281
|
} else {
|
|
2282
2282
|
parts.push(options.projectRoot);
|
|
2283
2283
|
}
|
|
2284
|
-
return
|
|
2284
|
+
return _chunkARUOVAUXjs.joinPaths.call(void 0, ...parts);
|
|
2285
2285
|
}
|
|
2286
2286
|
_chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2287
2287
|
function createProjectTsConfigJson(tree, options) {
|
|
@@ -2290,7 +2290,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2290
2290
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _104 => _104.tsconfigOptions]), () => ( {})),
|
|
2291
2291
|
compilerOptions: {
|
|
2292
2292
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2293
|
-
outDir:
|
|
2293
|
+
outDir: _chunkARUOVAUXjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2294
2294
|
noEmit: true,
|
|
2295
2295
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _105 => _105.tsconfigOptions, 'optionalAccess', _106 => _106.compilerOptions]), () => ( {}))
|
|
2296
2296
|
},
|
|
@@ -2310,7 +2310,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2310
2310
|
"src/**/*.test.ts"
|
|
2311
2311
|
]
|
|
2312
2312
|
};
|
|
2313
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2313
|
+
_devkit.writeJson.call(void 0, tree, _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2314
2314
|
}
|
|
2315
2315
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2316
2316
|
async function normalizeOptions(tree, options) {
|
|
@@ -2436,19 +2436,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
2436
2436
|
|
|
2437
2437
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
2438
2438
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
2439
|
+
_chunkARUOVAUXjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
2440
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
2441
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkARUOVAUXjs.StormConfigSchema, {
|
|
2442
2442
|
name: "StormWorkspaceConfiguration"
|
|
2443
2443
|
});
|
|
2444
|
-
|
|
2445
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _113 => _113.workspaceRoot]), () => (
|
|
2446
|
-
|
|
2444
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2445
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _113 => _113.workspaceRoot]), () => ( _chunkARUOVAUXjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _114 => _114.outputFile, 'optionalAccess', _115 => _115.startsWith, 'call', _116 => _116("./")]) ? "" : "./");
|
|
2446
|
+
_chunkARUOVAUXjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2447
2447
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2448
2448
|
spaces: 2
|
|
2449
2449
|
});
|
|
2450
2450
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2451
|
-
|
|
2451
|
+
_chunkARUOVAUXjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
2452
2452
|
return {
|
|
2453
2453
|
success: true
|
|
2454
2454
|
};
|
|
@@ -3422,6 +3422,12 @@ var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FI
|
|
|
3422
3422
|
|
|
3423
3423
|
|
|
3424
3424
|
|
|
3425
|
+
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
3426
|
+
|
|
3427
|
+
|
|
3428
|
+
|
|
3429
|
+
|
|
3430
|
+
|
|
3425
3431
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
3426
3432
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
3427
3433
|
|