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