@storm-software/terraform-tools 0.66.81 → 0.66.83
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/dist/{chunk-BYMZHOCC.js → chunk-7XVRK5WD.js} +164 -160
- package/dist/{chunk-DQLLLQ3W.js → chunk-CAIQR7GN.js} +63 -29
- package/dist/{chunk-TBA2JJ4J.mjs → chunk-CCVXBG6L.mjs} +11 -7
- package/dist/{chunk-3FDOVLTY.js → chunk-CSYTB2N7.js} +2 -2
- package/dist/{chunk-6FYSEZWH.mjs → chunk-D4U46GWE.mjs} +1 -1
- package/dist/{chunk-J57WHN7L.mjs → chunk-EOOFQKYU.mjs} +1 -1
- package/dist/{chunk-E4ESQN5K.js → chunk-JS3EKPPV.js} +2 -2
- package/dist/{chunk-JFUM7ZZB.mjs → chunk-N2PWQQSE.mjs} +1 -1
- package/dist/{chunk-SAKJKPCQ.js → chunk-OHTE4UWL.js} +2 -2
- package/dist/{chunk-3IRIVVDV.mjs → chunk-PH7BX4DL.mjs} +36 -2
- package/dist/{chunk-DZ42ZKYZ.mjs → chunk-TZ3XK5DI.mjs} +1 -1
- package/dist/{chunk-6ETHBIXV.js → chunk-UIV26GY2.js} +2 -2
- package/dist/{chunk-523C2S52.mjs → chunk-XGSETPII.mjs} +1 -1
- package/dist/{chunk-YYE5IN55.js → chunk-YLEMDXGU.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.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 +4 -4
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
var _chunkCAIQR7GNjs = require('./chunk-CAIQR7GN.js');
|
|
24
25
|
|
|
25
26
|
// src/generators/init/init.ts
|
|
26
27
|
var _devkit = require('@nx/devkit');
|
|
@@ -147,7 +148,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
147
148
|
const command = buildCargoCommand("build", options, context);
|
|
148
149
|
return await cargoCommand(context.root, ...command);
|
|
149
150
|
}
|
|
150
|
-
var executor_default =
|
|
151
|
+
var executor_default = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
151
152
|
"Cargo - Build",
|
|
152
153
|
cargoBuildExecutor,
|
|
153
154
|
{
|
|
@@ -167,7 +168,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
167
168
|
const command = buildCargoCommand("check", options, context);
|
|
168
169
|
return await cargoCommand(context.root, ...command);
|
|
169
170
|
}
|
|
170
|
-
var executor_default2 =
|
|
171
|
+
var executor_default2 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
171
172
|
"Cargo - Check",
|
|
172
173
|
cargoCheckExecutor,
|
|
173
174
|
{
|
|
@@ -186,7 +187,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
186
187
|
const command = buildCargoCommand("clippy", options, context);
|
|
187
188
|
return await cargoCommand(context.root, ...command);
|
|
188
189
|
}
|
|
189
|
-
var executor_default3 =
|
|
190
|
+
var executor_default3 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
190
191
|
"Cargo - Clippy",
|
|
191
192
|
cargoClippyExecutor,
|
|
192
193
|
{
|
|
@@ -209,7 +210,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
209
210
|
const command = buildCargoCommand("doc", options, context);
|
|
210
211
|
return await cargoCommand(context.root, ...command);
|
|
211
212
|
}
|
|
212
|
-
var executor_default4 =
|
|
213
|
+
var executor_default4 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
213
214
|
"Cargo - Doc",
|
|
214
215
|
cargoDocExecutor,
|
|
215
216
|
{
|
|
@@ -235,7 +236,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
235
236
|
const command = buildCargoCommand("fmt", options, context);
|
|
236
237
|
return await cargoCommand(context.root, ...command);
|
|
237
238
|
}
|
|
238
|
-
var executor_default5 =
|
|
239
|
+
var executor_default5 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
239
240
|
"Cargo - Format",
|
|
240
241
|
cargoFormatExecutor,
|
|
241
242
|
{
|
|
@@ -260,12 +261,12 @@ var LARGE_BUFFER = 1024 * 1e6;
|
|
|
260
261
|
// ../build-tools/src/config.ts
|
|
261
262
|
var DEFAULT_JS_BANNER = `
|
|
262
263
|
// ---------------------------------------
|
|
263
|
-
// \
|
|
264
|
+
// \u{1F5F2} Built by Storm Software
|
|
264
265
|
// ---------------------------------------
|
|
265
266
|
`;
|
|
266
267
|
var DEFAULT_CSS_BANNER = `
|
|
267
268
|
/* ---------------------------------------
|
|
268
|
-
\
|
|
269
|
+
\u{1F5F2} Built by Storm Software
|
|
269
270
|
--------------------------------------- */
|
|
270
271
|
`;
|
|
271
272
|
var DEFAULT_ENVIRONMENT = "production";
|
|
@@ -315,9 +316,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
315
316
|
output: "src/"
|
|
316
317
|
});
|
|
317
318
|
}
|
|
318
|
-
|
|
319
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0,
|
|
319
320
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
320
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
321
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkCAIQR7GNjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
321
322
|
config
|
|
322
323
|
);
|
|
323
324
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -327,20 +328,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
327
328
|
assets: pendingAssets
|
|
328
329
|
});
|
|
329
330
|
await assetHandler.processAllAssetsOnce();
|
|
330
|
-
|
|
331
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
331
332
|
if (includeSrc === true) {
|
|
332
|
-
|
|
333
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
333
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
334
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
334
335
|
outputPath,
|
|
335
336
|
"src"
|
|
336
337
|
)}`,
|
|
337
338
|
config
|
|
338
339
|
);
|
|
339
340
|
const files = await _glob.glob.call(void 0, [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
341
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
342
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
343
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
344
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
344
345
|
]);
|
|
345
346
|
await Promise.allSettled(
|
|
346
347
|
files.map(
|
|
@@ -395,7 +396,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
395
396
|
)) {
|
|
396
397
|
const projectNode = project.node;
|
|
397
398
|
if (projectNode.data.root) {
|
|
398
|
-
const projectPackageJsonPath =
|
|
399
|
+
const projectPackageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
399
400
|
workspaceRoot2,
|
|
400
401
|
projectNode.data.root,
|
|
401
402
|
"package.json"
|
|
@@ -413,11 +414,11 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
416
|
if (localPackages.length > 0) {
|
|
416
|
-
|
|
417
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0,
|
|
417
418
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
418
419
|
);
|
|
419
420
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
420
|
-
|
|
421
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
421
422
|
"utf8"
|
|
422
423
|
);
|
|
423
424
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -430,7 +431,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
430
431
|
}
|
|
431
432
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _13 => _13.projects, 'optionalAccess', _14 => _14[projectName2], 'access', _15 => _15.implicitDependencies, 'optionalAccess', _16 => _16.reduce, 'call', _17 => _17((ret, dep) => {
|
|
432
433
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
433
|
-
const depPackageJsonPath =
|
|
434
|
+
const depPackageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
434
435
|
workspaceRoot2,
|
|
435
436
|
projectConfigurations.projects[dep].root,
|
|
436
437
|
"package.json"
|
|
@@ -461,14 +462,14 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
461
462
|
return ret;
|
|
462
463
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
463
464
|
} else {
|
|
464
|
-
|
|
465
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
465
466
|
}
|
|
466
467
|
return packageJson;
|
|
467
468
|
};
|
|
468
469
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
469
|
-
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
470
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkCAIQR7GNjs.findWorkspaceRoot.call(void 0, );
|
|
470
471
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
471
|
-
|
|
472
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
472
473
|
"utf8"
|
|
473
474
|
);
|
|
474
475
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -479,7 +480,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
479
480
|
if (distSrc.startsWith("/")) {
|
|
480
481
|
distSrc = distSrc.substring(1);
|
|
481
482
|
}
|
|
482
|
-
packageJson.source ??= `${
|
|
483
|
+
packageJson.source ??= `${_chunkCAIQR7GNjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
483
484
|
}
|
|
484
485
|
packageJson.files ??= ["dist/**/*"];
|
|
485
486
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -504,7 +505,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
504
505
|
packageJson.contributors = [packageJson.author];
|
|
505
506
|
}
|
|
506
507
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
507
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
508
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkCAIQR7GNjs.joinPaths.call(void 0, "packages", projectName);
|
|
508
509
|
return packageJson;
|
|
509
510
|
};
|
|
510
511
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -558,11 +559,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
558
559
|
// ../esbuild/src/assets.ts
|
|
559
560
|
async function copyBuildAssets(context) {
|
|
560
561
|
if (!_optionalChain([context, 'access', _28 => _28.result, 'optionalAccess', _29 => _29.errors, 'access', _30 => _30.length]) && _optionalChain([context, 'access', _31 => _31.options, 'access', _32 => _32.assets, 'optionalAccess', _33 => _33.length])) {
|
|
561
|
-
|
|
562
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
562
563
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
563
564
|
context.workspaceConfig
|
|
564
565
|
);
|
|
565
|
-
const stopwatch =
|
|
566
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
566
567
|
await copyAssets(
|
|
567
568
|
context.workspaceConfig,
|
|
568
569
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -643,15 +644,15 @@ async function resolveContext(userOptions) {
|
|
|
643
644
|
if (!workspaceRoot2) {
|
|
644
645
|
throw new Error("Cannot find Nx workspace root");
|
|
645
646
|
}
|
|
646
|
-
const workspaceConfig = await
|
|
647
|
+
const workspaceConfig = await _chunkCAIQR7GNjs.getWorkspaceConfig.call(void 0, true, {
|
|
647
648
|
workspaceRoot: workspaceRoot2.dir
|
|
648
649
|
});
|
|
649
|
-
|
|
650
|
-
const stopwatch =
|
|
650
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
651
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, "Build options resolution");
|
|
651
652
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
652
653
|
exitOnError: true
|
|
653
654
|
});
|
|
654
|
-
const projectJsonPath =
|
|
655
|
+
const projectJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
655
656
|
workspaceRoot2.dir,
|
|
656
657
|
projectRoot,
|
|
657
658
|
"project.json"
|
|
@@ -670,7 +671,7 @@ async function resolveContext(userOptions) {
|
|
|
670
671
|
}
|
|
671
672
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
672
673
|
options.name ??= projectName;
|
|
673
|
-
const packageJsonPath =
|
|
674
|
+
const packageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
674
675
|
workspaceRoot2.dir,
|
|
675
676
|
options.projectRoot,
|
|
676
677
|
"package.json"
|
|
@@ -682,7 +683,7 @@ async function resolveContext(userOptions) {
|
|
|
682
683
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
683
684
|
const resolvedOptions = {
|
|
684
685
|
...options,
|
|
685
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
686
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkCAIQR7GNjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
686
687
|
metafile: userOptions.mode === "development",
|
|
687
688
|
clean: false,
|
|
688
689
|
env,
|
|
@@ -707,8 +708,8 @@ async function resolveContext(userOptions) {
|
|
|
707
708
|
projectConfigurations,
|
|
708
709
|
projectName,
|
|
709
710
|
projectGraph,
|
|
710
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
711
|
-
outputPath: resolvedOptions.outputPath ||
|
|
711
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkCAIQR7GNjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
712
|
+
outputPath: resolvedOptions.outputPath || _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
712
713
|
workspaceConfig.workspaceRoot,
|
|
713
714
|
"dist",
|
|
714
715
|
resolvedOptions.projectRoot
|
|
@@ -717,10 +718,10 @@ async function resolveContext(userOptions) {
|
|
|
717
718
|
};
|
|
718
719
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
719
720
|
if (context.options.verbose) {
|
|
720
|
-
|
|
721
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
721
722
|
` \u2699\uFE0F Build options resolved:
|
|
722
723
|
|
|
723
|
-
${
|
|
724
|
+
${_chunkCAIQR7GNjs.formatLogMessage.call(void 0, context.options)}`,
|
|
724
725
|
workspaceConfig
|
|
725
726
|
);
|
|
726
727
|
}
|
|
@@ -732,10 +733,10 @@ ${_chunkDQLLLQ3Wjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
732
733
|
|
|
733
734
|
|
|
734
735
|
async function generatePackageJson(context) {
|
|
735
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
736
|
-
|
|
737
|
-
const stopwatch =
|
|
738
|
-
const packageJsonPath =
|
|
736
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCAIQR7GNjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
737
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
738
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, "Write package.json file");
|
|
739
|
+
const packageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
739
740
|
context.options.projectRoot,
|
|
740
741
|
"project.json"
|
|
741
742
|
);
|
|
@@ -743,7 +744,7 @@ async function generatePackageJson(context) {
|
|
|
743
744
|
throw new Error("Cannot find package.json configuration");
|
|
744
745
|
}
|
|
745
746
|
const packageJsonFile = await _promises2.default.readFile(
|
|
746
|
-
|
|
747
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
747
748
|
context.workspaceConfig.workspaceRoot,
|
|
748
749
|
context.options.projectRoot,
|
|
749
750
|
"package.json"
|
|
@@ -849,7 +850,7 @@ async function generatePackageJson(context) {
|
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
852
|
await _devkit.writeJsonFile.call(void 0,
|
|
852
|
-
|
|
853
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
853
854
|
packageJson
|
|
854
855
|
);
|
|
855
856
|
stopwatch();
|
|
@@ -861,12 +862,12 @@ async function generatePackageJson(context) {
|
|
|
861
862
|
var _tsup = require('tsup');
|
|
862
863
|
async function build(options) {
|
|
863
864
|
if (!options.silent) {
|
|
864
|
-
|
|
865
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
865
866
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
866
867
|
options.workspaceConfig
|
|
867
868
|
);
|
|
868
869
|
}
|
|
869
|
-
const stopwatch =
|
|
870
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
870
871
|
await _tsup.build.call(void 0, options);
|
|
871
872
|
if (!options.silent) {
|
|
872
873
|
stopwatch();
|
|
@@ -875,14 +876,14 @@ async function build(options) {
|
|
|
875
876
|
|
|
876
877
|
// ../esbuild/src/tsup.ts
|
|
877
878
|
async function executeTsup(context) {
|
|
878
|
-
|
|
879
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
879
880
|
` \u{1F680} Running ${context.options.name} build`,
|
|
880
881
|
context.workspaceConfig
|
|
881
882
|
);
|
|
882
|
-
const stopwatch =
|
|
883
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
883
884
|
await build({
|
|
884
885
|
...context.options,
|
|
885
|
-
outDir: context.options.distDir ?
|
|
886
|
+
outDir: context.options.distDir ? _chunkCAIQR7GNjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
886
887
|
workspaceConfig: context.workspaceConfig
|
|
887
888
|
});
|
|
888
889
|
stopwatch();
|
|
@@ -893,17 +894,17 @@ async function executeTsup(context) {
|
|
|
893
894
|
async function reportResults(context) {
|
|
894
895
|
if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors, 'access', _38 => _38.length]) === 0) {
|
|
895
896
|
if (context.result.warnings.length > 0) {
|
|
896
|
-
|
|
897
|
+
_chunkCAIQR7GNjs.writeWarning.call(void 0,
|
|
897
898
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
898
899
|
context.workspaceConfig
|
|
899
900
|
);
|
|
900
901
|
}
|
|
901
|
-
|
|
902
|
+
_chunkCAIQR7GNjs.writeSuccess.call(void 0,
|
|
902
903
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
903
904
|
context.workspaceConfig
|
|
904
905
|
);
|
|
905
906
|
} else if (_optionalChain([context, 'access', _39 => _39.result, 'optionalAccess', _40 => _40.errors]) && _optionalChain([context, 'access', _41 => _41.result, 'optionalAccess', _42 => _42.errors, 'access', _43 => _43.length]) > 0) {
|
|
906
|
-
|
|
907
|
+
_chunkCAIQR7GNjs.writeError.call(void 0,
|
|
907
908
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
908
909
|
context.workspaceConfig
|
|
909
910
|
);
|
|
@@ -914,19 +915,19 @@ async function reportResults(context) {
|
|
|
914
915
|
}
|
|
915
916
|
async function cleanOutputPath(context) {
|
|
916
917
|
if (context.clean !== false && context.outputPath) {
|
|
917
|
-
|
|
918
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
918
919
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
919
920
|
context.workspaceConfig
|
|
920
921
|
);
|
|
921
|
-
const stopwatch =
|
|
922
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
922
923
|
await cleanDirectories(context.outputPath);
|
|
923
924
|
stopwatch();
|
|
924
925
|
}
|
|
925
926
|
return context;
|
|
926
927
|
}
|
|
927
928
|
async function build2(options) {
|
|
928
|
-
|
|
929
|
-
const stopwatch =
|
|
929
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, ` ${_chunkCAIQR7GNjs.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
930
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
930
931
|
try {
|
|
931
932
|
const opts = Array.isArray(options) ? options : [options];
|
|
932
933
|
if (opts.length === 0) {
|
|
@@ -941,9 +942,9 @@ async function build2(options) {
|
|
|
941
942
|
executeTsup(context)
|
|
942
943
|
]);
|
|
943
944
|
await reportResults(context);
|
|
944
|
-
|
|
945
|
+
_chunkCAIQR7GNjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
945
946
|
} catch (error) {
|
|
946
|
-
|
|
947
|
+
_chunkCAIQR7GNjs.writeFatal.call(void 0,
|
|
947
948
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
948
949
|
);
|
|
949
950
|
throw error;
|
|
@@ -954,7 +955,7 @@ async function build2(options) {
|
|
|
954
955
|
|
|
955
956
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
956
957
|
async function esbuildExecutorFn(options, context, config) {
|
|
957
|
-
|
|
958
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
958
959
|
if (!_optionalChain([context, 'access', _44 => _44.projectsConfigurations, 'optionalAccess', _45 => _45.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _46 => _46.projectsConfigurations, 'access', _47 => _47.projects, 'access', _48 => _48[context.projectName], 'optionalAccess', _49 => _49.root])) {
|
|
959
960
|
throw new Error(
|
|
960
961
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -975,7 +976,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
975
976
|
success: true
|
|
976
977
|
};
|
|
977
978
|
}
|
|
978
|
-
var executor_default6 =
|
|
979
|
+
var executor_default6 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
979
980
|
"Storm ESBuild build",
|
|
980
981
|
esbuildExecutorFn,
|
|
981
982
|
{
|
|
@@ -996,7 +997,7 @@ var _jiti = require('jiti');
|
|
|
996
997
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
997
998
|
async function napiExecutor(options, context, config) {
|
|
998
999
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
999
|
-
fsCache: config.skipCache ? false :
|
|
1000
|
+
fsCache: config.skipCache ? false : _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1000
1001
|
config.workspaceRoot,
|
|
1001
1002
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1002
1003
|
"jiti"
|
|
@@ -1012,53 +1013,53 @@ async function napiExecutor(options, context, config) {
|
|
|
1012
1013
|
);
|
|
1013
1014
|
}
|
|
1014
1015
|
const projectRoot = _optionalChain([context, 'access', _61 => _61.projectGraph, 'optionalAccess', _62 => _62.nodes, 'access', _63 => _63[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _64 => _64.data, 'access', _65 => _65.root]);
|
|
1015
|
-
const packageJson =
|
|
1016
|
+
const packageJson = _chunkCAIQR7GNjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
1016
1017
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
1017
1018
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
1018
1019
|
}
|
|
1019
1020
|
const napi = new NapiCli();
|
|
1020
1021
|
const normalizedOptions = { ...options };
|
|
1021
1022
|
const metadata = cargoMetadata();
|
|
1022
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) ||
|
|
1023
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) || _chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
1023
1024
|
normalizedOptions.outputDir = options.outputPath;
|
|
1024
1025
|
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
1025
1026
|
if (options.cwd) {
|
|
1026
|
-
normalizedOptions.cwd =
|
|
1027
|
+
normalizedOptions.cwd = _chunkCAIQR7GNjs.correctPaths.call(void 0, options.cwd);
|
|
1027
1028
|
} else {
|
|
1028
|
-
normalizedOptions.cwd =
|
|
1029
|
-
const absoluteProjectRoot =
|
|
1029
|
+
normalizedOptions.cwd = _chunkCAIQR7GNjs.correctPaths.call(void 0, projectRoot);
|
|
1030
|
+
const absoluteProjectRoot = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1030
1031
|
config.workspaceRoot,
|
|
1031
1032
|
projectRoot || "."
|
|
1032
1033
|
);
|
|
1033
1034
|
if (normalizedOptions.outputDir) {
|
|
1034
|
-
normalizedOptions.outputDir =
|
|
1035
|
+
normalizedOptions.outputDir = _chunkCAIQR7GNjs.relative.call(void 0,
|
|
1035
1036
|
absoluteProjectRoot,
|
|
1036
|
-
|
|
1037
|
-
|
|
1037
|
+
_chunkCAIQR7GNjs.correctPaths.call(void 0,
|
|
1038
|
+
_chunkCAIQR7GNjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
1038
1039
|
)
|
|
1039
1040
|
);
|
|
1040
1041
|
}
|
|
1041
1042
|
if (normalizedOptions.packageJsonPath) {
|
|
1042
|
-
normalizedOptions.packageJsonPath =
|
|
1043
|
+
normalizedOptions.packageJsonPath = _chunkCAIQR7GNjs.relative.call(void 0,
|
|
1043
1044
|
absoluteProjectRoot,
|
|
1044
|
-
|
|
1045
|
-
|
|
1045
|
+
_chunkCAIQR7GNjs.correctPaths.call(void 0,
|
|
1046
|
+
_chunkCAIQR7GNjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
1046
1047
|
)
|
|
1047
1048
|
);
|
|
1048
1049
|
}
|
|
1049
1050
|
if (normalizedOptions.configPath) {
|
|
1050
|
-
normalizedOptions.configPath =
|
|
1051
|
+
normalizedOptions.configPath = _chunkCAIQR7GNjs.relative.call(void 0,
|
|
1051
1052
|
absoluteProjectRoot,
|
|
1052
|
-
|
|
1053
|
-
|
|
1053
|
+
_chunkCAIQR7GNjs.correctPaths.call(void 0,
|
|
1054
|
+
_chunkCAIQR7GNjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
1054
1055
|
)
|
|
1055
1056
|
);
|
|
1056
1057
|
}
|
|
1057
1058
|
if (normalizedOptions.manifestPath) {
|
|
1058
|
-
normalizedOptions.manifestPath =
|
|
1059
|
+
normalizedOptions.manifestPath = _chunkCAIQR7GNjs.relative.call(void 0,
|
|
1059
1060
|
absoluteProjectRoot,
|
|
1060
|
-
|
|
1061
|
-
|
|
1061
|
+
_chunkCAIQR7GNjs.correctPaths.call(void 0,
|
|
1062
|
+
_chunkCAIQR7GNjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkCAIQR7GNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
1062
1063
|
)
|
|
1063
1064
|
);
|
|
1064
1065
|
}
|
|
@@ -1069,7 +1070,7 @@ async function napiExecutor(options, context, config) {
|
|
|
1069
1070
|
const { task } = await napi.build(normalizedOptions);
|
|
1070
1071
|
return { success: true, terminalOutput: await task };
|
|
1071
1072
|
}
|
|
1072
|
-
var executor_default7 =
|
|
1073
|
+
var executor_default7 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
1073
1074
|
"Napi - Build Bindings",
|
|
1074
1075
|
napiExecutor,
|
|
1075
1076
|
{
|
|
@@ -1217,14 +1218,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1217
1218
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1218
1219
|
);
|
|
1219
1220
|
}
|
|
1220
|
-
|
|
1221
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1221
1222
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1222
1223
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _70 => _70.projectsConfigurations, 'access', _71 => _71.projects, 'access', _72 => _72[context.projectName], 'optionalAccess', _73 => _73.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1223
1224
|
_nullishCoalesce(_optionalChain([context, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context.projectName], 'optionalAccess', _77 => _77.root]), () => ( "./")),
|
|
1224
1225
|
"src"
|
|
1225
1226
|
)))
|
|
1226
1227
|
}).then((result) => {
|
|
1227
|
-
|
|
1228
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0,
|
|
1228
1229
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1229
1230
|
config
|
|
1230
1231
|
);
|
|
@@ -1233,7 +1234,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1233
1234
|
success: true
|
|
1234
1235
|
};
|
|
1235
1236
|
}
|
|
1236
|
-
var executor_default8 =
|
|
1237
|
+
var executor_default8 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
1237
1238
|
"Size-Limit Performance Test Executor",
|
|
1238
1239
|
sizeLimitExecutorFn,
|
|
1239
1240
|
{
|
|
@@ -1294,19 +1295,19 @@ function toTSDownFormat(format4) {
|
|
|
1294
1295
|
// ../tsdown/src/build.ts
|
|
1295
1296
|
var resolveOptions = async (userOptions) => {
|
|
1296
1297
|
const options = getDefaultOptions(userOptions);
|
|
1297
|
-
const workspaceRoot2 =
|
|
1298
|
+
const workspaceRoot2 = _chunkCAIQR7GNjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1298
1299
|
if (!workspaceRoot2) {
|
|
1299
1300
|
throw new Error("Cannot find Nx workspace root");
|
|
1300
1301
|
}
|
|
1301
|
-
const workspaceConfig = await
|
|
1302
|
+
const workspaceConfig = await _chunkCAIQR7GNjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1302
1303
|
workspaceRoot: workspaceRoot2
|
|
1303
1304
|
});
|
|
1304
|
-
|
|
1305
|
-
const stopwatch =
|
|
1305
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1306
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1306
1307
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1307
1308
|
exitOnError: true
|
|
1308
1309
|
});
|
|
1309
|
-
const projectJsonPath =
|
|
1310
|
+
const projectJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1310
1311
|
workspaceRoot2,
|
|
1311
1312
|
options.projectRoot,
|
|
1312
1313
|
"project.json"
|
|
@@ -1323,7 +1324,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1323
1324
|
"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."
|
|
1324
1325
|
);
|
|
1325
1326
|
}
|
|
1326
|
-
const packageJsonPath =
|
|
1327
|
+
const packageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1327
1328
|
workspaceRoot2,
|
|
1328
1329
|
options.projectRoot,
|
|
1329
1330
|
"package.json"
|
|
@@ -1332,13 +1333,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
1332
1333
|
throw new Error("Cannot find package.json configuration");
|
|
1333
1334
|
}
|
|
1334
1335
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
1335
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
1336
|
+
const sourceRoot = projectJson.sourceRoot || _chunkCAIQR7GNjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
1336
1337
|
const result = {
|
|
1337
1338
|
name: projectName,
|
|
1338
1339
|
mode: "production",
|
|
1339
1340
|
target: DEFAULT_TARGET,
|
|
1340
1341
|
generatePackageJson: true,
|
|
1341
|
-
outDir:
|
|
1342
|
+
outDir: _chunkCAIQR7GNjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
1342
1343
|
minify: !debug,
|
|
1343
1344
|
plugins: [],
|
|
1344
1345
|
assets: [],
|
|
@@ -1350,12 +1351,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
1350
1351
|
clean: false,
|
|
1351
1352
|
fixedExtension: true,
|
|
1352
1353
|
nodeProtocol: true,
|
|
1353
|
-
tsconfig:
|
|
1354
|
+
tsconfig: _chunkCAIQR7GNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
1354
1355
|
debug,
|
|
1355
1356
|
sourceRoot,
|
|
1356
1357
|
cwd: workspaceConfig.workspaceRoot,
|
|
1357
1358
|
entry: {
|
|
1358
|
-
["index"]:
|
|
1359
|
+
["index"]: _chunkCAIQR7GNjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
1359
1360
|
},
|
|
1360
1361
|
workspace: true,
|
|
1361
1362
|
...options,
|
|
@@ -1374,15 +1375,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
1374
1375
|
return result;
|
|
1375
1376
|
};
|
|
1376
1377
|
async function generatePackageJson2(options) {
|
|
1377
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1378
|
-
|
|
1379
|
-
const stopwatch =
|
|
1380
|
-
const packageJsonPath =
|
|
1378
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCAIQR7GNjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1379
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1380
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1381
|
+
const packageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1381
1382
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1382
1383
|
throw new Error("Cannot find package.json configuration");
|
|
1383
1384
|
}
|
|
1384
1385
|
const packageJsonFile = await _promises2.default.readFile(
|
|
1385
|
-
|
|
1386
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1386
1387
|
options.workspaceConfig.workspaceRoot,
|
|
1387
1388
|
options.projectRoot,
|
|
1388
1389
|
"package.json"
|
|
@@ -1444,14 +1445,14 @@ async function generatePackageJson2(options) {
|
|
|
1444
1445
|
},
|
|
1445
1446
|
packageJson.exports
|
|
1446
1447
|
);
|
|
1447
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1448
|
+
await _devkit.writeJsonFile.call(void 0, _chunkCAIQR7GNjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
1448
1449
|
stopwatch();
|
|
1449
1450
|
}
|
|
1450
1451
|
return options;
|
|
1451
1452
|
}
|
|
1452
1453
|
async function executeTSDown(options) {
|
|
1453
|
-
|
|
1454
|
-
const stopwatch =
|
|
1454
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
1455
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
1455
1456
|
await _tsdown.build.call(void 0, {
|
|
1456
1457
|
...options,
|
|
1457
1458
|
entry: options.entry,
|
|
@@ -1461,11 +1462,11 @@ async function executeTSDown(options) {
|
|
|
1461
1462
|
return options;
|
|
1462
1463
|
}
|
|
1463
1464
|
async function copyBuildAssets2(options) {
|
|
1464
|
-
|
|
1465
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
1465
1466
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
1466
1467
|
options.workspaceConfig
|
|
1467
1468
|
);
|
|
1468
|
-
const stopwatch =
|
|
1469
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1469
1470
|
await copyAssets(
|
|
1470
1471
|
options.workspaceConfig,
|
|
1471
1472
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -1479,18 +1480,18 @@ async function copyBuildAssets2(options) {
|
|
|
1479
1480
|
return options;
|
|
1480
1481
|
}
|
|
1481
1482
|
async function reportResults2(options) {
|
|
1482
|
-
|
|
1483
|
+
_chunkCAIQR7GNjs.writeSuccess.call(void 0,
|
|
1483
1484
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
1484
1485
|
options.workspaceConfig
|
|
1485
1486
|
);
|
|
1486
1487
|
}
|
|
1487
1488
|
async function cleanOutputPath2(options) {
|
|
1488
1489
|
if (options.clean !== false && options.workspaceConfig) {
|
|
1489
|
-
|
|
1490
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
1490
1491
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
1491
1492
|
options.workspaceConfig
|
|
1492
1493
|
);
|
|
1493
|
-
const stopwatch =
|
|
1494
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1494
1495
|
await cleanDirectories2(
|
|
1495
1496
|
options.name,
|
|
1496
1497
|
options.outDir,
|
|
@@ -1501,8 +1502,8 @@ async function cleanOutputPath2(options) {
|
|
|
1501
1502
|
return options;
|
|
1502
1503
|
}
|
|
1503
1504
|
async function build3(options) {
|
|
1504
|
-
|
|
1505
|
-
const stopwatch =
|
|
1505
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, ` ${_chunkCAIQR7GNjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
1506
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1506
1507
|
try {
|
|
1507
1508
|
const opts = Array.isArray(options) ? options : [options];
|
|
1508
1509
|
if (opts.length === 0) {
|
|
@@ -1522,13 +1523,13 @@ async function build3(options) {
|
|
|
1522
1523
|
})
|
|
1523
1524
|
);
|
|
1524
1525
|
} else {
|
|
1525
|
-
|
|
1526
|
+
_chunkCAIQR7GNjs.writeWarning.call(void 0,
|
|
1526
1527
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
1527
1528
|
);
|
|
1528
1529
|
}
|
|
1529
|
-
|
|
1530
|
+
_chunkCAIQR7GNjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1530
1531
|
} catch (error) {
|
|
1531
|
-
|
|
1532
|
+
_chunkCAIQR7GNjs.writeFatal.call(void 0,
|
|
1532
1533
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1533
1534
|
);
|
|
1534
1535
|
throw error;
|
|
@@ -1539,7 +1540,7 @@ async function build3(options) {
|
|
|
1539
1540
|
|
|
1540
1541
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1541
1542
|
async function tsdownExecutorFn(options, context, config) {
|
|
1542
|
-
|
|
1543
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1543
1544
|
if (!_optionalChain([context, 'access', _80 => _80.projectsConfigurations, 'optionalAccess', _81 => _81.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'access', _84 => _84[context.projectName], 'optionalAccess', _85 => _85.root])) {
|
|
1544
1545
|
throw new Error(
|
|
1545
1546
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1560,7 +1561,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1560
1561
|
success: true
|
|
1561
1562
|
};
|
|
1562
1563
|
}
|
|
1563
|
-
var executor_default9 =
|
|
1564
|
+
var executor_default9 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
1564
1565
|
"Storm TSDown build",
|
|
1565
1566
|
tsdownExecutorFn,
|
|
1566
1567
|
{
|
|
@@ -1581,12 +1582,12 @@ var _fsextra = require('fs-extra');
|
|
|
1581
1582
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1582
1583
|
async function typiaExecutorFn(options, _, config) {
|
|
1583
1584
|
if (options.clean !== false) {
|
|
1584
|
-
|
|
1585
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1585
1586
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1586
1587
|
}
|
|
1587
1588
|
await Promise.all(
|
|
1588
1589
|
options.entry.map((entry) => {
|
|
1589
|
-
|
|
1590
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1590
1591
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1591
1592
|
input: entry,
|
|
1592
1593
|
output: options.outputPath,
|
|
@@ -1598,7 +1599,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1598
1599
|
success: true
|
|
1599
1600
|
};
|
|
1600
1601
|
}
|
|
1601
|
-
var executor_default10 =
|
|
1602
|
+
var executor_default10 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
1602
1603
|
"Typia runtime validation generator",
|
|
1603
1604
|
typiaExecutorFn,
|
|
1604
1605
|
{
|
|
@@ -1619,7 +1620,7 @@ var executor_default10 = _chunkDQLLLQ3Wjs.withRunExecutor.call(void 0,
|
|
|
1619
1620
|
|
|
1620
1621
|
|
|
1621
1622
|
async function unbuildExecutorFn(options, context, config) {
|
|
1622
|
-
|
|
1623
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1623
1624
|
if (!_optionalChain([context, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1624
1625
|
throw new Error(
|
|
1625
1626
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1636,7 +1637,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1636
1637
|
);
|
|
1637
1638
|
}
|
|
1638
1639
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1639
|
-
fsCache: config.skipCache ? false :
|
|
1640
|
+
fsCache: config.skipCache ? false : _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1640
1641
|
config.workspaceRoot,
|
|
1641
1642
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1642
1643
|
"jiti"
|
|
@@ -1658,7 +1659,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1658
1659
|
{
|
|
1659
1660
|
stubOptions: {
|
|
1660
1661
|
jiti: {
|
|
1661
|
-
fsCache: config.skipCache ? false :
|
|
1662
|
+
fsCache: config.skipCache ? false : _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1662
1663
|
config.workspaceRoot,
|
|
1663
1664
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1664
1665
|
"jiti"
|
|
@@ -1687,7 +1688,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1687
1688
|
success: true
|
|
1688
1689
|
};
|
|
1689
1690
|
}
|
|
1690
|
-
var executor_default11 =
|
|
1691
|
+
var executor_default11 = _chunkCAIQR7GNjs.withRunExecutor.call(void 0,
|
|
1691
1692
|
"TypeScript Unbuild build",
|
|
1692
1693
|
unbuildExecutorFn,
|
|
1693
1694
|
{
|
|
@@ -1718,45 +1719,48 @@ var executor_default11 = _chunkDQLLLQ3Wjs.withRunExecutor.call(void 0,
|
|
|
1718
1719
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1719
1720
|
skipReadingConfig: false
|
|
1720
1721
|
}) => async (tree, _options) => {
|
|
1721
|
-
const stopwatch =
|
|
1722
|
+
const stopwatch = _chunkCAIQR7GNjs.getStopwatch.call(void 0, name);
|
|
1722
1723
|
let options = _options;
|
|
1723
1724
|
let config;
|
|
1724
1725
|
try {
|
|
1725
|
-
|
|
1726
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0,
|
|
1727
|
+
`${_chunkCAIQR7GNjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
1726
1728
|
|
|
1727
|
-
`,
|
|
1728
|
-
|
|
1729
|
+
`,
|
|
1730
|
+
config
|
|
1731
|
+
);
|
|
1732
|
+
const workspaceRoot2 = _chunkCAIQR7GNjs.findWorkspaceRoot.call(void 0, );
|
|
1729
1733
|
if (!generatorOptions.skipReadingConfig) {
|
|
1730
|
-
|
|
1734
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0,
|
|
1731
1735
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1732
1736
|
- workspaceRoot: ${workspaceRoot2}`,
|
|
1733
1737
|
config
|
|
1734
1738
|
);
|
|
1735
|
-
config = await
|
|
1739
|
+
config = await _chunkCAIQR7GNjs.getConfig.call(void 0, workspaceRoot2);
|
|
1736
1740
|
}
|
|
1737
1741
|
if (_optionalChain([generatorOptions, 'optionalAccess', _96 => _96.hooks, 'optionalAccess', _97 => _97.applyDefaultOptions])) {
|
|
1738
|
-
|
|
1742
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1739
1743
|
options = await Promise.resolve(
|
|
1740
1744
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1741
1745
|
);
|
|
1742
|
-
|
|
1746
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1743
1747
|
}
|
|
1744
|
-
|
|
1748
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0,
|
|
1745
1749
|
`Generator schema options \u2699\uFE0F
|
|
1746
1750
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1747
1751
|
config
|
|
1748
1752
|
);
|
|
1749
|
-
const tokenized = await
|
|
1753
|
+
const tokenized = await _chunkCAIQR7GNjs.applyWorkspaceTokens.call(void 0,
|
|
1750
1754
|
options,
|
|
1751
1755
|
{ workspaceRoot: tree.root, config },
|
|
1752
|
-
|
|
1756
|
+
_chunkCAIQR7GNjs.applyWorkspaceBaseTokens
|
|
1753
1757
|
);
|
|
1754
1758
|
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.preProcess])) {
|
|
1755
|
-
|
|
1759
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1756
1760
|
await Promise.resolve(
|
|
1757
1761
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1758
1762
|
);
|
|
1759
|
-
|
|
1763
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1760
1764
|
}
|
|
1761
1765
|
const result = await Promise.resolve(
|
|
1762
1766
|
generatorFn(tree, tokenized, config)
|
|
@@ -1771,21 +1775,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1771
1775
|
}
|
|
1772
1776
|
}
|
|
1773
1777
|
if (_optionalChain([generatorOptions, 'optionalAccess', _109 => _109.hooks, 'optionalAccess', _110 => _110.postProcess])) {
|
|
1774
|
-
|
|
1778
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1775
1779
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1776
|
-
|
|
1780
|
+
_chunkCAIQR7GNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1777
1781
|
}
|
|
1778
1782
|
return () => {
|
|
1779
|
-
|
|
1783
|
+
_chunkCAIQR7GNjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1780
1784
|
`, config);
|
|
1781
1785
|
};
|
|
1782
1786
|
} catch (error) {
|
|
1783
1787
|
return () => {
|
|
1784
|
-
|
|
1788
|
+
_chunkCAIQR7GNjs.writeFatal.call(void 0,
|
|
1785
1789
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1786
1790
|
config
|
|
1787
1791
|
);
|
|
1788
|
-
|
|
1792
|
+
_chunkCAIQR7GNjs.writeError.call(void 0,
|
|
1789
1793
|
`An exception was thrown in the generator's process
|
|
1790
1794
|
- Details: ${error.message}
|
|
1791
1795
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1851,16 +1855,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1851
1855
|
const projectConfig = {
|
|
1852
1856
|
root: normalized.directory,
|
|
1853
1857
|
projectType: "library",
|
|
1854
|
-
sourceRoot:
|
|
1858
|
+
sourceRoot: _chunkCAIQR7GNjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1855
1859
|
targets: {
|
|
1856
1860
|
build: {
|
|
1857
1861
|
executor: options.buildExecutor,
|
|
1858
1862
|
outputs: ["{options.outputPath}"],
|
|
1859
1863
|
options: {
|
|
1860
|
-
entry: [
|
|
1864
|
+
entry: [_chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1861
1865
|
outputPath: getOutputPath(normalized),
|
|
1862
|
-
tsconfig:
|
|
1863
|
-
project:
|
|
1866
|
+
tsconfig: _chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1867
|
+
project: _chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1864
1868
|
defaultConfiguration: "production",
|
|
1865
1869
|
platform: "neutral",
|
|
1866
1870
|
assets: [
|
|
@@ -1917,7 +1921,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1917
1921
|
if (!normalized.importPath) {
|
|
1918
1922
|
normalized.importPath = normalized.name;
|
|
1919
1923
|
}
|
|
1920
|
-
const packageJsonPath =
|
|
1924
|
+
const packageJsonPath = _chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1921
1925
|
if (tree.exists(packageJsonPath)) {
|
|
1922
1926
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1923
1927
|
if (!normalized.importPath) {
|
|
@@ -1974,14 +1978,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1974
1978
|
}));
|
|
1975
1979
|
}
|
|
1976
1980
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1977
|
-
|
|
1981
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
1978
1982
|
normalized.projectRoot,
|
|
1979
1983
|
"./src",
|
|
1980
1984
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1981
1985
|
)
|
|
1982
1986
|
]);
|
|
1983
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1984
|
-
|
|
1987
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1988
|
+
_chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1985
1989
|
]);
|
|
1986
1990
|
if (tree.exists("package.json")) {
|
|
1987
1991
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1992,7 +1996,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1992
1996
|
description = packageJson.description;
|
|
1993
1997
|
}
|
|
1994
1998
|
}
|
|
1995
|
-
const tsconfigPath =
|
|
1999
|
+
const tsconfigPath = _chunkCAIQR7GNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1996
2000
|
if (tree.exists(tsconfigPath)) {
|
|
1997
2001
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1998
2002
|
json.composite ??= true;
|
|
@@ -2020,7 +2024,7 @@ function getOutputPath(options) {
|
|
|
2020
2024
|
} else {
|
|
2021
2025
|
parts.push(options.projectRoot);
|
|
2022
2026
|
}
|
|
2023
|
-
return
|
|
2027
|
+
return _chunkCAIQR7GNjs.joinPaths.call(void 0, ...parts);
|
|
2024
2028
|
}
|
|
2025
2029
|
function createProjectTsConfigJson(tree, options) {
|
|
2026
2030
|
const tsconfig = {
|
|
@@ -2028,7 +2032,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2028
2032
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
|
|
2029
2033
|
compilerOptions: {
|
|
2030
2034
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2031
|
-
outDir:
|
|
2035
|
+
outDir: _chunkCAIQR7GNjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2032
2036
|
noEmit: true,
|
|
2033
2037
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
|
|
2034
2038
|
},
|
|
@@ -2046,7 +2050,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2046
2050
|
"src/**/*.test.ts"
|
|
2047
2051
|
]
|
|
2048
2052
|
};
|
|
2049
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2053
|
+
_devkit.writeJson.call(void 0, tree, _chunkCAIQR7GNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2050
2054
|
}
|
|
2051
2055
|
async function normalizeOptions(tree, options, config) {
|
|
2052
2056
|
let importPath = options.importPath;
|
|
@@ -2111,7 +2115,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2111
2115
|
|
|
2112
2116
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2113
2117
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2114
|
-
const filesDir =
|
|
2118
|
+
const filesDir = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
2115
2119
|
__dirname,
|
|
2116
2120
|
"src",
|
|
2117
2121
|
"generators",
|
|
@@ -2194,38 +2198,38 @@ var generator_default = withRunGenerator(
|
|
|
2194
2198
|
|
|
2195
2199
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
2196
2200
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2197
|
-
|
|
2201
|
+
_chunkCAIQR7GNjs.writeInfo.call(void 0,
|
|
2198
2202
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
2199
2203
|
config
|
|
2200
2204
|
);
|
|
2201
|
-
|
|
2205
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0,
|
|
2202
2206
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2203
2207
|
config
|
|
2204
2208
|
);
|
|
2205
|
-
const jsonSchema = z.toJSONSchema(
|
|
2209
|
+
const jsonSchema = z.toJSONSchema(_chunkCAIQR7GNjs.workspaceConfigSchema, {
|
|
2206
2210
|
target: "draft-7",
|
|
2207
|
-
metadata:
|
|
2211
|
+
metadata: _chunkCAIQR7GNjs.schemaRegistry
|
|
2208
2212
|
});
|
|
2209
2213
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2210
2214
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
2211
2215
|
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
2212
|
-
|
|
2216
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2213
2217
|
if (!options.outputFile) {
|
|
2214
2218
|
throw new Error(
|
|
2215
2219
|
"The `outputFile` option is required. Please specify the output file path."
|
|
2216
2220
|
);
|
|
2217
2221
|
}
|
|
2218
2222
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2219
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => (
|
|
2223
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunkCAIQR7GNjs.findWorkspaceRoot.call(void 0, ))),
|
|
2220
2224
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2221
2225
|
);
|
|
2222
|
-
|
|
2226
|
+
_chunkCAIQR7GNjs.writeTrace.call(void 0,
|
|
2223
2227
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
2224
2228
|
config
|
|
2225
2229
|
);
|
|
2226
2230
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
2227
2231
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2228
|
-
|
|
2232
|
+
_chunkCAIQR7GNjs.writeSuccess.call(void 0,
|
|
2229
2233
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
2230
2234
|
config
|
|
2231
2235
|
);
|
|
@@ -2281,7 +2285,7 @@ async function initGenerator(tree, schema) {
|
|
|
2281
2285
|
|
|
2282
2286
|
|
|
2283
2287
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2284
|
-
const filesDir =
|
|
2288
|
+
const filesDir = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
2285
2289
|
__dirname,
|
|
2286
2290
|
"src",
|
|
2287
2291
|
"generators",
|
|
@@ -2340,7 +2344,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2340
2344
|
|
|
2341
2345
|
|
|
2342
2346
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2343
|
-
const filesDir =
|
|
2347
|
+
const filesDir = _chunkCAIQR7GNjs.joinPaths.call(void 0,
|
|
2344
2348
|
__dirname,
|
|
2345
2349
|
"src",
|
|
2346
2350
|
"generators",
|