@storm-software/terraform-tools 0.66.171 → 0.66.172
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 +8 -0
- package/README.md +1 -1
- package/dist/{chunk-7ULPBW4A.js → chunk-4H5Q5QOJ.js} +159 -159
- package/dist/{chunk-QPDLMLY6.mjs → chunk-6OOVQVET.mjs} +17 -28
- package/dist/{chunk-WEEL45GL.mjs → chunk-CISK74IB.mjs} +1 -1
- package/dist/{chunk-RWVAHPJ6.js → chunk-EPUKT7Q3.js} +2 -2
- package/dist/{chunk-MQZZXQVS.mjs → chunk-F2UZQEKU.mjs} +1 -1
- package/dist/{chunk-NKM5JFF7.mjs → chunk-FNB6U7XT.mjs} +1 -1
- package/dist/{chunk-NEV5EM4I.mjs → chunk-IYRRG6RY.mjs} +1 -1
- package/dist/{chunk-HXWTDMNN.js → chunk-J2IP352Y.js} +2 -2
- package/dist/{chunk-SBCMWJ4P.js → chunk-NX6I7V6C.js} +17 -28
- package/dist/{chunk-ABSRL7WR.js → chunk-OFXBWSNE.js} +2 -2
- package/dist/{chunk-TRTID4SU.js → chunk-QM5NZBC6.js} +2 -2
- package/dist/{chunk-MTUYBKWP.mjs → chunk-VXTBM6CD.mjs} +2 -2
- package/dist/{chunk-RARHYCMS.mjs → chunk-W32GVXAC.mjs} +1 -1
- package/dist/{chunk-NKUWKRNN.mjs → chunk-Y2L7ETTJ.mjs} +1 -1
- package/dist/{chunk-OE4U353U.js → chunk-YCSFTFE3.js} +2 -2
- 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 _chunkNX6I7V6Cjs = require('./chunk-NX6I7V6C.js');
|
|
25
25
|
|
|
26
26
|
// src/generators/init/init.ts
|
|
27
27
|
var _devkit = require('@nx/devkit');
|
|
@@ -150,7 +150,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
150
150
|
const command = buildCargoCommand("build", options, context);
|
|
151
151
|
return await cargoCommand(context.root, ...command);
|
|
152
152
|
}
|
|
153
|
-
var executor_default =
|
|
153
|
+
var executor_default = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
154
154
|
"Cargo - Build",
|
|
155
155
|
cargoBuildExecutor,
|
|
156
156
|
{
|
|
@@ -170,7 +170,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
170
170
|
const command = buildCargoCommand("check", options, context);
|
|
171
171
|
return await cargoCommand(context.root, ...command);
|
|
172
172
|
}
|
|
173
|
-
var executor_default2 =
|
|
173
|
+
var executor_default2 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
174
174
|
"Cargo - Check",
|
|
175
175
|
cargoCheckExecutor,
|
|
176
176
|
{
|
|
@@ -189,7 +189,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
189
189
|
const command = buildCargoCommand("clippy", options, context);
|
|
190
190
|
return await cargoCommand(context.root, ...command);
|
|
191
191
|
}
|
|
192
|
-
var executor_default3 =
|
|
192
|
+
var executor_default3 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
193
193
|
"Cargo - Clippy",
|
|
194
194
|
cargoClippyExecutor,
|
|
195
195
|
{
|
|
@@ -212,7 +212,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
212
212
|
const command = buildCargoCommand("doc", options, context);
|
|
213
213
|
return await cargoCommand(context.root, ...command);
|
|
214
214
|
}
|
|
215
|
-
var executor_default4 =
|
|
215
|
+
var executor_default4 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
216
216
|
"Cargo - Doc",
|
|
217
217
|
cargoDocExecutor,
|
|
218
218
|
{
|
|
@@ -238,7 +238,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
238
238
|
const command = buildCargoCommand("fmt", options, context);
|
|
239
239
|
return await cargoCommand(context.root, ...command);
|
|
240
240
|
}
|
|
241
|
-
var executor_default5 =
|
|
241
|
+
var executor_default5 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
242
242
|
"Cargo - Format",
|
|
243
243
|
cargoFormatExecutor,
|
|
244
244
|
{
|
|
@@ -318,9 +318,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
318
318
|
output: "src/"
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0,
|
|
322
322
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
323
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
323
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkNX6I7V6Cjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
324
324
|
config
|
|
325
325
|
);
|
|
326
326
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -330,20 +330,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
330
330
|
assets: pendingAssets
|
|
331
331
|
});
|
|
332
332
|
await assetHandler.processAllAssetsOnce();
|
|
333
|
-
|
|
333
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
334
334
|
if (includeSrc === true) {
|
|
335
|
-
|
|
336
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
335
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
336
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
337
337
|
outputPath,
|
|
338
338
|
"src"
|
|
339
339
|
)}`,
|
|
340
340
|
config
|
|
341
341
|
);
|
|
342
342
|
const files = await _glob.glob.call(void 0, [
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
343
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
344
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
345
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
346
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
347
347
|
]);
|
|
348
348
|
await Promise.allSettled(
|
|
349
349
|
files.map(
|
|
@@ -398,7 +398,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
398
398
|
)) {
|
|
399
399
|
const projectNode = project.node;
|
|
400
400
|
if (projectNode.data.root) {
|
|
401
|
-
const projectPackageJsonPath =
|
|
401
|
+
const projectPackageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
402
402
|
workspaceRoot2,
|
|
403
403
|
projectNode.data.root,
|
|
404
404
|
"package.json"
|
|
@@ -416,11 +416,11 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
if (localPackages.length > 0) {
|
|
419
|
-
|
|
419
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0,
|
|
420
420
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
421
421
|
);
|
|
422
422
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
423
|
-
|
|
423
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
424
424
|
"utf8"
|
|
425
425
|
);
|
|
426
426
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -433,7 +433,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
433
433
|
}
|
|
434
434
|
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) => {
|
|
435
435
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
436
|
-
const depPackageJsonPath =
|
|
436
|
+
const depPackageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
437
437
|
workspaceRoot2,
|
|
438
438
|
projectConfigurations.projects[dep].root,
|
|
439
439
|
"package.json"
|
|
@@ -464,14 +464,14 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
464
464
|
return ret;
|
|
465
465
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
466
466
|
} else {
|
|
467
|
-
|
|
467
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
468
468
|
}
|
|
469
469
|
return packageJson;
|
|
470
470
|
};
|
|
471
471
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
472
|
-
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
472
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkNX6I7V6Cjs.findWorkspaceRoot.call(void 0, );
|
|
473
473
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
474
|
-
|
|
474
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
475
475
|
"utf8"
|
|
476
476
|
);
|
|
477
477
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -482,7 +482,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
482
482
|
if (distSrc.startsWith("/")) {
|
|
483
483
|
distSrc = distSrc.substring(1);
|
|
484
484
|
}
|
|
485
|
-
packageJson.source ??= `${
|
|
485
|
+
packageJson.source ??= `${_chunkNX6I7V6Cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
486
486
|
}
|
|
487
487
|
packageJson.files ??= ["dist/**/*"];
|
|
488
488
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -507,7 +507,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
507
507
|
packageJson.contributors = [packageJson.author];
|
|
508
508
|
}
|
|
509
509
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
510
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
510
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkNX6I7V6Cjs.joinPaths.call(void 0, "packages", projectName);
|
|
511
511
|
return packageJson;
|
|
512
512
|
};
|
|
513
513
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -561,11 +561,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
561
561
|
// ../esbuild/src/assets.ts
|
|
562
562
|
async function copyBuildAssets(context) {
|
|
563
563
|
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])) {
|
|
564
|
-
|
|
564
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
565
565
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
566
566
|
context.workspaceConfig
|
|
567
567
|
);
|
|
568
|
-
const stopwatch =
|
|
568
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
569
569
|
await copyAssets(
|
|
570
570
|
context.workspaceConfig,
|
|
571
571
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -646,15 +646,15 @@ async function resolveContext(userOptions) {
|
|
|
646
646
|
if (!workspaceRoot2) {
|
|
647
647
|
throw new Error("Cannot find Nx workspace root");
|
|
648
648
|
}
|
|
649
|
-
const workspaceConfig = await
|
|
649
|
+
const workspaceConfig = await _chunkNX6I7V6Cjs.getWorkspaceConfig.call(void 0, true, {
|
|
650
650
|
workspaceRoot: workspaceRoot2.dir
|
|
651
651
|
});
|
|
652
|
-
|
|
653
|
-
const stopwatch =
|
|
652
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
653
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
654
654
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
655
655
|
exitOnError: true
|
|
656
656
|
});
|
|
657
|
-
const projectJsonPath =
|
|
657
|
+
const projectJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
658
658
|
workspaceRoot2.dir,
|
|
659
659
|
projectRoot,
|
|
660
660
|
"project.json"
|
|
@@ -673,7 +673,7 @@ async function resolveContext(userOptions) {
|
|
|
673
673
|
}
|
|
674
674
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
675
675
|
options.name ??= projectName;
|
|
676
|
-
const packageJsonPath =
|
|
676
|
+
const packageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
677
677
|
workspaceRoot2.dir,
|
|
678
678
|
options.projectRoot,
|
|
679
679
|
"package.json"
|
|
@@ -685,7 +685,7 @@ async function resolveContext(userOptions) {
|
|
|
685
685
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
686
686
|
const resolvedOptions = {
|
|
687
687
|
...options,
|
|
688
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
688
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkNX6I7V6Cjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
689
689
|
metafile: userOptions.mode === "development",
|
|
690
690
|
clean: false,
|
|
691
691
|
env,
|
|
@@ -710,8 +710,8 @@ async function resolveContext(userOptions) {
|
|
|
710
710
|
projectConfigurations,
|
|
711
711
|
projectName,
|
|
712
712
|
projectGraph,
|
|
713
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
714
|
-
outputPath: resolvedOptions.outputPath ||
|
|
713
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkNX6I7V6Cjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
714
|
+
outputPath: resolvedOptions.outputPath || _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
715
715
|
workspaceConfig.workspaceRoot,
|
|
716
716
|
"dist",
|
|
717
717
|
resolvedOptions.projectRoot
|
|
@@ -720,10 +720,10 @@ async function resolveContext(userOptions) {
|
|
|
720
720
|
};
|
|
721
721
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
722
722
|
if (context.options.verbose) {
|
|
723
|
-
|
|
723
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
724
724
|
` \u2699\uFE0F Build options resolved:
|
|
725
725
|
|
|
726
|
-
${
|
|
726
|
+
${_chunkNX6I7V6Cjs.formatLogMessage.call(void 0, context.options)}`,
|
|
727
727
|
workspaceConfig
|
|
728
728
|
);
|
|
729
729
|
}
|
|
@@ -735,10 +735,10 @@ ${_chunkSBCMWJ4Pjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
735
735
|
|
|
736
736
|
|
|
737
737
|
async function generatePackageJson(context) {
|
|
738
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
739
|
-
|
|
740
|
-
const stopwatch =
|
|
741
|
-
const packageJsonPath =
|
|
738
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkNX6I7V6Cjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
739
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
740
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
741
|
+
const packageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
742
742
|
context.options.projectRoot,
|
|
743
743
|
"project.json"
|
|
744
744
|
);
|
|
@@ -746,7 +746,7 @@ async function generatePackageJson(context) {
|
|
|
746
746
|
throw new Error("Cannot find package.json configuration");
|
|
747
747
|
}
|
|
748
748
|
const packageJsonFile = await _promises2.default.readFile(
|
|
749
|
-
|
|
749
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
750
750
|
context.workspaceConfig.workspaceRoot,
|
|
751
751
|
context.options.projectRoot,
|
|
752
752
|
"package.json"
|
|
@@ -852,7 +852,7 @@ async function generatePackageJson(context) {
|
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
await _devkit.writeJsonFile.call(void 0,
|
|
855
|
-
|
|
855
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
856
856
|
packageJson
|
|
857
857
|
);
|
|
858
858
|
stopwatch();
|
|
@@ -864,12 +864,12 @@ async function generatePackageJson(context) {
|
|
|
864
864
|
var _tsup = require('tsup');
|
|
865
865
|
async function build(options) {
|
|
866
866
|
if (!options.silent) {
|
|
867
|
-
|
|
867
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
868
868
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
869
869
|
options.workspaceConfig
|
|
870
870
|
);
|
|
871
871
|
}
|
|
872
|
-
const stopwatch =
|
|
872
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
873
873
|
await _tsup.build.call(void 0, options);
|
|
874
874
|
if (!options.silent) {
|
|
875
875
|
stopwatch();
|
|
@@ -878,14 +878,14 @@ async function build(options) {
|
|
|
878
878
|
|
|
879
879
|
// ../esbuild/src/tsup.ts
|
|
880
880
|
async function executeTsup(context) {
|
|
881
|
-
|
|
881
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
882
882
|
` \u{1F680} Running ${context.options.name} build`,
|
|
883
883
|
context.workspaceConfig
|
|
884
884
|
);
|
|
885
|
-
const stopwatch =
|
|
885
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
886
886
|
await build({
|
|
887
887
|
...context.options,
|
|
888
|
-
outDir: context.options.distDir ?
|
|
888
|
+
outDir: context.options.distDir ? _chunkNX6I7V6Cjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
889
889
|
workspaceConfig: context.workspaceConfig
|
|
890
890
|
});
|
|
891
891
|
stopwatch();
|
|
@@ -896,17 +896,17 @@ async function executeTsup(context) {
|
|
|
896
896
|
async function reportResults(context) {
|
|
897
897
|
if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors, 'access', _38 => _38.length]) === 0) {
|
|
898
898
|
if (context.result.warnings.length > 0) {
|
|
899
|
-
|
|
899
|
+
_chunkNX6I7V6Cjs.writeWarning.call(void 0,
|
|
900
900
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
901
901
|
context.workspaceConfig
|
|
902
902
|
);
|
|
903
903
|
}
|
|
904
|
-
|
|
904
|
+
_chunkNX6I7V6Cjs.writeSuccess.call(void 0,
|
|
905
905
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
906
906
|
context.workspaceConfig
|
|
907
907
|
);
|
|
908
908
|
} 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) {
|
|
909
|
-
|
|
909
|
+
_chunkNX6I7V6Cjs.writeError.call(void 0,
|
|
910
910
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
911
911
|
context.workspaceConfig
|
|
912
912
|
);
|
|
@@ -917,19 +917,19 @@ async function reportResults(context) {
|
|
|
917
917
|
}
|
|
918
918
|
async function cleanOutputPath(context) {
|
|
919
919
|
if (context.clean !== false && context.outputPath) {
|
|
920
|
-
|
|
920
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
921
921
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
922
922
|
context.workspaceConfig
|
|
923
923
|
);
|
|
924
|
-
const stopwatch =
|
|
924
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
925
925
|
await cleanDirectories(context.outputPath);
|
|
926
926
|
stopwatch();
|
|
927
927
|
}
|
|
928
928
|
return context;
|
|
929
929
|
}
|
|
930
930
|
async function build2(options) {
|
|
931
|
-
|
|
932
|
-
const stopwatch =
|
|
931
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, ` ${_chunkNX6I7V6Cjs.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
932
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
933
933
|
try {
|
|
934
934
|
const opts = Array.isArray(options) ? options : [options];
|
|
935
935
|
if (opts.length === 0) {
|
|
@@ -944,9 +944,9 @@ async function build2(options) {
|
|
|
944
944
|
executeTsup(context)
|
|
945
945
|
]);
|
|
946
946
|
await reportResults(context);
|
|
947
|
-
|
|
947
|
+
_chunkNX6I7V6Cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
948
948
|
} catch (error) {
|
|
949
|
-
|
|
949
|
+
_chunkNX6I7V6Cjs.writeFatal.call(void 0,
|
|
950
950
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
951
951
|
);
|
|
952
952
|
throw error;
|
|
@@ -957,7 +957,7 @@ async function build2(options) {
|
|
|
957
957
|
|
|
958
958
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
959
959
|
async function esbuildExecutorFn(options, context, config) {
|
|
960
|
-
|
|
960
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
961
961
|
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])) {
|
|
962
962
|
throw new Error(
|
|
963
963
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -978,7 +978,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
978
978
|
success: true
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
var executor_default6 =
|
|
981
|
+
var executor_default6 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
982
982
|
"Storm ESBuild build",
|
|
983
983
|
esbuildExecutorFn,
|
|
984
984
|
{
|
|
@@ -999,7 +999,7 @@ var _jiti = require('jiti');
|
|
|
999
999
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
1000
1000
|
async function napiExecutor(options, context, config) {
|
|
1001
1001
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1002
|
-
fsCache: config.skipCache ? false :
|
|
1002
|
+
fsCache: config.skipCache ? false : _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1003
1003
|
config.workspaceRoot,
|
|
1004
1004
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1005
1005
|
"jiti"
|
|
@@ -1015,52 +1015,52 @@ async function napiExecutor(options, context, config) {
|
|
|
1015
1015
|
);
|
|
1016
1016
|
}
|
|
1017
1017
|
const projectRoot = _optionalChain([context, 'access', _61 => _61.projectGraph, 'optionalAccess', _62 => _62.nodes, 'access', _63 => _63[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _64 => _64.data, 'access', _65 => _65.root]);
|
|
1018
|
-
const packageJson =
|
|
1018
|
+
const packageJson = _chunkNX6I7V6Cjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
1019
1019
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
1020
1020
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
1021
1021
|
}
|
|
1022
1022
|
const napi = new NapiCli();
|
|
1023
1023
|
const normalizedOptions = { ...options };
|
|
1024
1024
|
const metadata = cargoMetadata();
|
|
1025
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) ||
|
|
1025
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) || _chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
1026
1026
|
normalizedOptions.outputDir = options.outputPath;
|
|
1027
1027
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
1028
1028
|
if (options.cwd) {
|
|
1029
|
-
normalizedOptions.cwd =
|
|
1029
|
+
normalizedOptions.cwd = _chunkNX6I7V6Cjs.correctPaths.call(void 0, options.cwd);
|
|
1030
1030
|
} else {
|
|
1031
|
-
const absoluteProjectRoot =
|
|
1032
|
-
|
|
1031
|
+
const absoluteProjectRoot = _chunkNX6I7V6Cjs.correctPaths.call(void 0,
|
|
1032
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
|
|
1033
1033
|
);
|
|
1034
1034
|
normalizedOptions.cwd = absoluteProjectRoot;
|
|
1035
1035
|
if (normalizedOptions.outputDir) {
|
|
1036
|
-
normalizedOptions.outputDir =
|
|
1036
|
+
normalizedOptions.outputDir = _chunkNX6I7V6Cjs.relative.call(void 0,
|
|
1037
1037
|
normalizedOptions.cwd,
|
|
1038
|
-
|
|
1039
|
-
|
|
1038
|
+
_chunkNX6I7V6Cjs.correctPaths.call(void 0,
|
|
1039
|
+
_chunkNX6I7V6Cjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
1040
1040
|
)
|
|
1041
1041
|
);
|
|
1042
1042
|
}
|
|
1043
1043
|
if (normalizedOptions.packageJsonPath) {
|
|
1044
|
-
normalizedOptions.packageJsonPath =
|
|
1044
|
+
normalizedOptions.packageJsonPath = _chunkNX6I7V6Cjs.relative.call(void 0,
|
|
1045
1045
|
normalizedOptions.cwd,
|
|
1046
|
-
|
|
1047
|
-
|
|
1046
|
+
_chunkNX6I7V6Cjs.correctPaths.call(void 0,
|
|
1047
|
+
_chunkNX6I7V6Cjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
1048
1048
|
)
|
|
1049
1049
|
);
|
|
1050
1050
|
}
|
|
1051
1051
|
if (normalizedOptions.configPath) {
|
|
1052
|
-
normalizedOptions.configPath =
|
|
1052
|
+
normalizedOptions.configPath = _chunkNX6I7V6Cjs.relative.call(void 0,
|
|
1053
1053
|
normalizedOptions.cwd,
|
|
1054
|
-
|
|
1055
|
-
|
|
1054
|
+
_chunkNX6I7V6Cjs.correctPaths.call(void 0,
|
|
1055
|
+
_chunkNX6I7V6Cjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
1056
1056
|
)
|
|
1057
1057
|
);
|
|
1058
1058
|
}
|
|
1059
1059
|
if (normalizedOptions.manifestPath) {
|
|
1060
|
-
normalizedOptions.manifestPath =
|
|
1060
|
+
normalizedOptions.manifestPath = _chunkNX6I7V6Cjs.relative.call(void 0,
|
|
1061
1061
|
normalizedOptions.cwd,
|
|
1062
|
-
|
|
1063
|
-
|
|
1062
|
+
_chunkNX6I7V6Cjs.correctPaths.call(void 0,
|
|
1063
|
+
_chunkNX6I7V6Cjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkNX6I7V6Cjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
1064
1064
|
)
|
|
1065
1065
|
);
|
|
1066
1066
|
}
|
|
@@ -1068,7 +1068,7 @@ async function napiExecutor(options, context, config) {
|
|
|
1068
1068
|
if (process.env.VERCEL) {
|
|
1069
1069
|
return { success: true };
|
|
1070
1070
|
}
|
|
1071
|
-
|
|
1071
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
1072
1072
|
`Normalized Napi Options:
|
|
1073
1073
|
packageJsonPath: ${normalizedOptions.packageJsonPath}
|
|
1074
1074
|
outputDir: ${normalizedOptions.outputDir}
|
|
@@ -1081,7 +1081,7 @@ cwd: ${normalizedOptions.cwd}`,
|
|
|
1081
1081
|
const { task } = await napi.build(normalizedOptions);
|
|
1082
1082
|
return { success: true, terminalOutput: await task };
|
|
1083
1083
|
}
|
|
1084
|
-
var executor_default7 =
|
|
1084
|
+
var executor_default7 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
1085
1085
|
"Napi - Build Bindings",
|
|
1086
1086
|
napiExecutor,
|
|
1087
1087
|
{
|
|
@@ -1229,14 +1229,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1229
1229
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1232
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1233
1233
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1234
1234
|
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,
|
|
1235
1235
|
_nullishCoalesce(_optionalChain([context, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context.projectName], 'optionalAccess', _77 => _77.root]), () => ( "./")),
|
|
1236
1236
|
"src"
|
|
1237
1237
|
)))
|
|
1238
1238
|
}).then((result) => {
|
|
1239
|
-
|
|
1239
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0,
|
|
1240
1240
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1241
1241
|
config
|
|
1242
1242
|
);
|
|
@@ -1245,7 +1245,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1245
1245
|
success: true
|
|
1246
1246
|
};
|
|
1247
1247
|
}
|
|
1248
|
-
var executor_default8 =
|
|
1248
|
+
var executor_default8 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
1249
1249
|
"Size-Limit Performance Test Executor",
|
|
1250
1250
|
sizeLimitExecutorFn,
|
|
1251
1251
|
{
|
|
@@ -1306,19 +1306,19 @@ function toTSDownFormat(format4) {
|
|
|
1306
1306
|
// ../tsdown/src/build.ts
|
|
1307
1307
|
var resolveOptions = async (userOptions) => {
|
|
1308
1308
|
const options = getDefaultOptions(userOptions);
|
|
1309
|
-
const workspaceRoot2 =
|
|
1309
|
+
const workspaceRoot2 = _chunkNX6I7V6Cjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1310
1310
|
if (!workspaceRoot2) {
|
|
1311
1311
|
throw new Error("Cannot find Nx workspace root");
|
|
1312
1312
|
}
|
|
1313
|
-
const workspaceConfig = await
|
|
1313
|
+
const workspaceConfig = await _chunkNX6I7V6Cjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1314
1314
|
workspaceRoot: workspaceRoot2
|
|
1315
1315
|
});
|
|
1316
|
-
|
|
1317
|
-
const stopwatch =
|
|
1316
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1317
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1318
1318
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1319
1319
|
exitOnError: true
|
|
1320
1320
|
});
|
|
1321
|
-
const projectJsonPath =
|
|
1321
|
+
const projectJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1322
1322
|
workspaceRoot2,
|
|
1323
1323
|
options.projectRoot,
|
|
1324
1324
|
"project.json"
|
|
@@ -1335,7 +1335,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1335
1335
|
"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."
|
|
1336
1336
|
);
|
|
1337
1337
|
}
|
|
1338
|
-
const packageJsonPath =
|
|
1338
|
+
const packageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1339
1339
|
workspaceRoot2,
|
|
1340
1340
|
options.projectRoot,
|
|
1341
1341
|
"package.json"
|
|
@@ -1344,13 +1344,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
1344
1344
|
throw new Error("Cannot find package.json configuration");
|
|
1345
1345
|
}
|
|
1346
1346
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
1347
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
1347
|
+
const sourceRoot = projectJson.sourceRoot || _chunkNX6I7V6Cjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
1348
1348
|
const result = {
|
|
1349
1349
|
name: projectName,
|
|
1350
1350
|
mode: "production",
|
|
1351
1351
|
target: DEFAULT_TARGET,
|
|
1352
1352
|
generatePackageJson: true,
|
|
1353
|
-
outDir:
|
|
1353
|
+
outDir: _chunkNX6I7V6Cjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
1354
1354
|
minify: !debug,
|
|
1355
1355
|
plugins: [],
|
|
1356
1356
|
assets: [],
|
|
@@ -1362,12 +1362,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
1362
1362
|
clean: false,
|
|
1363
1363
|
fixedExtension: true,
|
|
1364
1364
|
nodeProtocol: true,
|
|
1365
|
-
tsconfig:
|
|
1365
|
+
tsconfig: _chunkNX6I7V6Cjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
1366
1366
|
debug,
|
|
1367
1367
|
sourceRoot,
|
|
1368
1368
|
cwd: workspaceConfig.workspaceRoot,
|
|
1369
1369
|
entry: {
|
|
1370
|
-
["index"]:
|
|
1370
|
+
["index"]: _chunkNX6I7V6Cjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
1371
1371
|
},
|
|
1372
1372
|
workspace: true,
|
|
1373
1373
|
...options,
|
|
@@ -1386,15 +1386,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
1386
1386
|
return result;
|
|
1387
1387
|
};
|
|
1388
1388
|
async function generatePackageJson2(options) {
|
|
1389
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1390
|
-
|
|
1391
|
-
const stopwatch =
|
|
1392
|
-
const packageJsonPath =
|
|
1389
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkNX6I7V6Cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1390
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1391
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1392
|
+
const packageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1393
1393
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1394
1394
|
throw new Error("Cannot find package.json configuration");
|
|
1395
1395
|
}
|
|
1396
1396
|
const packageJsonFile = await _promises2.default.readFile(
|
|
1397
|
-
|
|
1397
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1398
1398
|
options.workspaceConfig.workspaceRoot,
|
|
1399
1399
|
options.projectRoot,
|
|
1400
1400
|
"package.json"
|
|
@@ -1456,14 +1456,14 @@ async function generatePackageJson2(options) {
|
|
|
1456
1456
|
},
|
|
1457
1457
|
packageJson.exports
|
|
1458
1458
|
);
|
|
1459
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1459
|
+
await _devkit.writeJsonFile.call(void 0, _chunkNX6I7V6Cjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
1460
1460
|
stopwatch();
|
|
1461
1461
|
}
|
|
1462
1462
|
return options;
|
|
1463
1463
|
}
|
|
1464
1464
|
async function executeTSDown(options) {
|
|
1465
|
-
|
|
1466
|
-
const stopwatch =
|
|
1465
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
1466
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
1467
1467
|
await _tsdown.build.call(void 0, {
|
|
1468
1468
|
...options,
|
|
1469
1469
|
entry: options.entry,
|
|
@@ -1473,11 +1473,11 @@ async function executeTSDown(options) {
|
|
|
1473
1473
|
return options;
|
|
1474
1474
|
}
|
|
1475
1475
|
async function copyBuildAssets2(options) {
|
|
1476
|
-
|
|
1476
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
1477
1477
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
1478
1478
|
options.workspaceConfig
|
|
1479
1479
|
);
|
|
1480
|
-
const stopwatch =
|
|
1480
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1481
1481
|
await copyAssets(
|
|
1482
1482
|
options.workspaceConfig,
|
|
1483
1483
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -1491,18 +1491,18 @@ async function copyBuildAssets2(options) {
|
|
|
1491
1491
|
return options;
|
|
1492
1492
|
}
|
|
1493
1493
|
async function reportResults2(options) {
|
|
1494
|
-
|
|
1494
|
+
_chunkNX6I7V6Cjs.writeSuccess.call(void 0,
|
|
1495
1495
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
1496
1496
|
options.workspaceConfig
|
|
1497
1497
|
);
|
|
1498
1498
|
}
|
|
1499
1499
|
async function cleanOutputPath2(options) {
|
|
1500
1500
|
if (options.clean !== false && options.workspaceConfig) {
|
|
1501
|
-
|
|
1501
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
1502
1502
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
1503
1503
|
options.workspaceConfig
|
|
1504
1504
|
);
|
|
1505
|
-
const stopwatch =
|
|
1505
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1506
1506
|
await cleanDirectories2(
|
|
1507
1507
|
options.name,
|
|
1508
1508
|
options.outDir,
|
|
@@ -1513,8 +1513,8 @@ async function cleanOutputPath2(options) {
|
|
|
1513
1513
|
return options;
|
|
1514
1514
|
}
|
|
1515
1515
|
async function build3(options) {
|
|
1516
|
-
|
|
1517
|
-
const stopwatch =
|
|
1516
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, ` ${_chunkNX6I7V6Cjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
1517
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1518
1518
|
try {
|
|
1519
1519
|
const opts = Array.isArray(options) ? options : [options];
|
|
1520
1520
|
if (opts.length === 0) {
|
|
@@ -1534,13 +1534,13 @@ async function build3(options) {
|
|
|
1534
1534
|
})
|
|
1535
1535
|
);
|
|
1536
1536
|
} else {
|
|
1537
|
-
|
|
1537
|
+
_chunkNX6I7V6Cjs.writeWarning.call(void 0,
|
|
1538
1538
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
1539
1539
|
);
|
|
1540
1540
|
}
|
|
1541
|
-
|
|
1541
|
+
_chunkNX6I7V6Cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1542
1542
|
} catch (error) {
|
|
1543
|
-
|
|
1543
|
+
_chunkNX6I7V6Cjs.writeFatal.call(void 0,
|
|
1544
1544
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1545
1545
|
);
|
|
1546
1546
|
throw error;
|
|
@@ -1551,7 +1551,7 @@ async function build3(options) {
|
|
|
1551
1551
|
|
|
1552
1552
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1553
1553
|
async function tsdownExecutorFn(options, context, config) {
|
|
1554
|
-
|
|
1554
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1555
1555
|
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])) {
|
|
1556
1556
|
throw new Error(
|
|
1557
1557
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1572,7 +1572,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1572
1572
|
success: true
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
|
-
var executor_default9 =
|
|
1575
|
+
var executor_default9 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
1576
1576
|
"Storm TSDown build",
|
|
1577
1577
|
tsdownExecutorFn,
|
|
1578
1578
|
{
|
|
@@ -1593,12 +1593,12 @@ var _fsextra = require('fs-extra');
|
|
|
1593
1593
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1594
1594
|
async function typiaExecutorFn(options, _, config) {
|
|
1595
1595
|
if (options.clean !== false) {
|
|
1596
|
-
|
|
1596
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1597
1597
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1598
1598
|
}
|
|
1599
1599
|
await Promise.all(
|
|
1600
1600
|
options.entry.map((entry) => {
|
|
1601
|
-
|
|
1601
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1602
1602
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1603
1603
|
input: entry,
|
|
1604
1604
|
output: options.outputPath,
|
|
@@ -1610,7 +1610,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1610
1610
|
success: true
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
var executor_default10 =
|
|
1613
|
+
var executor_default10 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
1614
1614
|
"Typia runtime validation generator",
|
|
1615
1615
|
typiaExecutorFn,
|
|
1616
1616
|
{
|
|
@@ -1631,7 +1631,7 @@ var executor_default10 = _chunkSBCMWJ4Pjs.withRunExecutor.call(void 0,
|
|
|
1631
1631
|
|
|
1632
1632
|
|
|
1633
1633
|
async function unbuildExecutorFn(options, context, config) {
|
|
1634
|
-
|
|
1634
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1635
1635
|
if (!_optionalChain([context, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1636
1636
|
throw new Error(
|
|
1637
1637
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1648,7 +1648,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1648
1648
|
);
|
|
1649
1649
|
}
|
|
1650
1650
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1651
|
-
fsCache: config.skipCache ? false :
|
|
1651
|
+
fsCache: config.skipCache ? false : _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1652
1652
|
config.workspaceRoot,
|
|
1653
1653
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1654
1654
|
"jiti"
|
|
@@ -1670,7 +1670,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1670
1670
|
{
|
|
1671
1671
|
stubOptions: {
|
|
1672
1672
|
jiti: {
|
|
1673
|
-
fsCache: config.skipCache ? false :
|
|
1673
|
+
fsCache: config.skipCache ? false : _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1674
1674
|
config.workspaceRoot,
|
|
1675
1675
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1676
1676
|
"jiti"
|
|
@@ -1699,7 +1699,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1699
1699
|
success: true
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
var executor_default11 =
|
|
1702
|
+
var executor_default11 = _chunkNX6I7V6Cjs.withRunExecutor.call(void 0,
|
|
1703
1703
|
"TypeScript Unbuild build",
|
|
1704
1704
|
unbuildExecutorFn,
|
|
1705
1705
|
{
|
|
@@ -1730,48 +1730,48 @@ var executor_default11 = _chunkSBCMWJ4Pjs.withRunExecutor.call(void 0,
|
|
|
1730
1730
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1731
1731
|
skipReadingConfig: false
|
|
1732
1732
|
}) => async (tree, _options) => {
|
|
1733
|
-
const stopwatch =
|
|
1733
|
+
const stopwatch = _chunkNX6I7V6Cjs.getStopwatch.call(void 0, name);
|
|
1734
1734
|
let options = _options;
|
|
1735
1735
|
let config;
|
|
1736
1736
|
try {
|
|
1737
|
-
|
|
1738
|
-
`${
|
|
1737
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0,
|
|
1738
|
+
`${_chunkNX6I7V6Cjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
1739
1739
|
|
|
1740
1740
|
`,
|
|
1741
1741
|
config
|
|
1742
1742
|
);
|
|
1743
|
-
const workspaceRoot2 =
|
|
1743
|
+
const workspaceRoot2 = _chunkNX6I7V6Cjs.findWorkspaceRoot.call(void 0, );
|
|
1744
1744
|
if (!generatorOptions.skipReadingConfig) {
|
|
1745
|
-
|
|
1745
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0,
|
|
1746
1746
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1747
1747
|
- workspaceRoot: ${workspaceRoot2}`,
|
|
1748
1748
|
config
|
|
1749
1749
|
);
|
|
1750
|
-
config = await
|
|
1750
|
+
config = await _chunkNX6I7V6Cjs.getConfig.call(void 0, workspaceRoot2);
|
|
1751
1751
|
}
|
|
1752
1752
|
if (_optionalChain([generatorOptions, 'optionalAccess', _96 => _96.hooks, 'optionalAccess', _97 => _97.applyDefaultOptions])) {
|
|
1753
|
-
|
|
1753
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1754
1754
|
options = await Promise.resolve(
|
|
1755
1755
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1756
1756
|
);
|
|
1757
|
-
|
|
1757
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1758
1758
|
}
|
|
1759
|
-
|
|
1759
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0,
|
|
1760
1760
|
`Generator schema options \u2699\uFE0F
|
|
1761
1761
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1762
1762
|
config
|
|
1763
1763
|
);
|
|
1764
|
-
const tokenized = await
|
|
1764
|
+
const tokenized = await _chunkNX6I7V6Cjs.applyWorkspaceTokens.call(void 0,
|
|
1765
1765
|
options,
|
|
1766
1766
|
{ workspaceRoot: tree.root, config },
|
|
1767
|
-
|
|
1767
|
+
_chunkNX6I7V6Cjs.applyWorkspaceBaseTokens
|
|
1768
1768
|
);
|
|
1769
1769
|
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.preProcess])) {
|
|
1770
|
-
|
|
1770
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1771
1771
|
await Promise.resolve(
|
|
1772
1772
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1773
1773
|
);
|
|
1774
|
-
|
|
1774
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1775
1775
|
}
|
|
1776
1776
|
const result = await Promise.resolve(
|
|
1777
1777
|
generatorFn(tree, tokenized, config)
|
|
@@ -1786,21 +1786,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
1788
|
if (_optionalChain([generatorOptions, 'optionalAccess', _109 => _109.hooks, 'optionalAccess', _110 => _110.postProcess])) {
|
|
1789
|
-
|
|
1789
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1790
1790
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1791
|
-
|
|
1791
|
+
_chunkNX6I7V6Cjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1792
1792
|
}
|
|
1793
1793
|
return () => {
|
|
1794
|
-
|
|
1794
|
+
_chunkNX6I7V6Cjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1795
1795
|
`, config);
|
|
1796
1796
|
};
|
|
1797
1797
|
} catch (error) {
|
|
1798
1798
|
return () => {
|
|
1799
|
-
|
|
1799
|
+
_chunkNX6I7V6Cjs.writeFatal.call(void 0,
|
|
1800
1800
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1801
1801
|
config
|
|
1802
1802
|
);
|
|
1803
|
-
|
|
1803
|
+
_chunkNX6I7V6Cjs.writeError.call(void 0,
|
|
1804
1804
|
`An exception was thrown in the generator's process
|
|
1805
1805
|
- Details: ${error.message}
|
|
1806
1806
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1866,16 +1866,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1866
1866
|
const projectConfig = {
|
|
1867
1867
|
root: normalized.directory,
|
|
1868
1868
|
projectType: "library",
|
|
1869
|
-
sourceRoot:
|
|
1869
|
+
sourceRoot: _chunkNX6I7V6Cjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1870
1870
|
targets: {
|
|
1871
1871
|
build: {
|
|
1872
1872
|
executor: options.buildExecutor,
|
|
1873
1873
|
outputs: ["{options.outputPath}"],
|
|
1874
1874
|
options: {
|
|
1875
|
-
entry: [
|
|
1875
|
+
entry: [_chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1876
1876
|
outputPath: getOutputPath(normalized),
|
|
1877
|
-
tsconfig:
|
|
1878
|
-
project:
|
|
1877
|
+
tsconfig: _chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1878
|
+
project: _chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1879
1879
|
defaultConfiguration: "production",
|
|
1880
1880
|
platform: "neutral",
|
|
1881
1881
|
assets: [
|
|
@@ -1932,7 +1932,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1932
1932
|
if (!normalized.importPath) {
|
|
1933
1933
|
normalized.importPath = normalized.name;
|
|
1934
1934
|
}
|
|
1935
|
-
const packageJsonPath =
|
|
1935
|
+
const packageJsonPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1936
1936
|
if (tree.exists(packageJsonPath)) {
|
|
1937
1937
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1938
1938
|
if (!normalized.importPath) {
|
|
@@ -1989,14 +1989,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1989
1989
|
}));
|
|
1990
1990
|
}
|
|
1991
1991
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1992
|
-
|
|
1992
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
1993
1993
|
normalized.projectRoot,
|
|
1994
1994
|
"./src",
|
|
1995
1995
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1996
1996
|
)
|
|
1997
1997
|
]);
|
|
1998
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1999
|
-
|
|
1998
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1999
|
+
_chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2000
2000
|
]);
|
|
2001
2001
|
if (tree.exists("package.json")) {
|
|
2002
2002
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2007,7 +2007,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2007
2007
|
description = packageJson.description;
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
|
-
const tsconfigPath =
|
|
2010
|
+
const tsconfigPath = _chunkNX6I7V6Cjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2011
2011
|
if (tree.exists(tsconfigPath)) {
|
|
2012
2012
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2013
2013
|
json.composite ??= true;
|
|
@@ -2035,7 +2035,7 @@ function getOutputPath(options) {
|
|
|
2035
2035
|
} else {
|
|
2036
2036
|
parts.push(options.projectRoot);
|
|
2037
2037
|
}
|
|
2038
|
-
return
|
|
2038
|
+
return _chunkNX6I7V6Cjs.joinPaths.call(void 0, ...parts);
|
|
2039
2039
|
}
|
|
2040
2040
|
function createProjectTsConfigJson(tree, options) {
|
|
2041
2041
|
const tsconfig = {
|
|
@@ -2043,7 +2043,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2043
2043
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
|
|
2044
2044
|
compilerOptions: {
|
|
2045
2045
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2046
|
-
outDir:
|
|
2046
|
+
outDir: _chunkNX6I7V6Cjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2047
2047
|
noEmit: true,
|
|
2048
2048
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
|
|
2049
2049
|
},
|
|
@@ -2061,7 +2061,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2061
2061
|
"src/**/*.test.ts"
|
|
2062
2062
|
]
|
|
2063
2063
|
};
|
|
2064
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2064
|
+
_devkit.writeJson.call(void 0, tree, _chunkNX6I7V6Cjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2065
2065
|
}
|
|
2066
2066
|
async function normalizeOptions(tree, options, config) {
|
|
2067
2067
|
let importPath = options.importPath;
|
|
@@ -2126,7 +2126,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2126
2126
|
|
|
2127
2127
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2128
2128
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2129
|
-
const filesDir =
|
|
2129
|
+
const filesDir = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
2130
2130
|
__dirname,
|
|
2131
2131
|
"src",
|
|
2132
2132
|
"generators",
|
|
@@ -2209,38 +2209,38 @@ var generator_default = withRunGenerator(
|
|
|
2209
2209
|
|
|
2210
2210
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
2211
2211
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2212
|
-
|
|
2212
|
+
_chunkNX6I7V6Cjs.writeInfo.call(void 0,
|
|
2213
2213
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
2214
2214
|
config
|
|
2215
2215
|
);
|
|
2216
|
-
|
|
2216
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0,
|
|
2217
2217
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2218
2218
|
config
|
|
2219
2219
|
);
|
|
2220
|
-
const jsonSchema = z.toJSONSchema(
|
|
2220
|
+
const jsonSchema = z.toJSONSchema(_chunkNX6I7V6Cjs.workspaceConfigSchema, {
|
|
2221
2221
|
target: "draft-7",
|
|
2222
|
-
metadata:
|
|
2222
|
+
metadata: _chunkNX6I7V6Cjs.schemaRegistry
|
|
2223
2223
|
});
|
|
2224
2224
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2225
2225
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
2226
2226
|
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.";
|
|
2227
|
-
|
|
2227
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2228
2228
|
if (!options.outputFile) {
|
|
2229
2229
|
throw new Error(
|
|
2230
2230
|
"The `outputFile` option is required. Please specify the output file path."
|
|
2231
2231
|
);
|
|
2232
2232
|
}
|
|
2233
2233
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2234
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => (
|
|
2234
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunkNX6I7V6Cjs.findWorkspaceRoot.call(void 0, ))),
|
|
2235
2235
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2236
2236
|
);
|
|
2237
|
-
|
|
2237
|
+
_chunkNX6I7V6Cjs.writeTrace.call(void 0,
|
|
2238
2238
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
2239
2239
|
config
|
|
2240
2240
|
);
|
|
2241
2241
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
2242
2242
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2243
|
-
|
|
2243
|
+
_chunkNX6I7V6Cjs.writeSuccess.call(void 0,
|
|
2244
2244
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
2245
2245
|
config
|
|
2246
2246
|
);
|
|
@@ -2296,7 +2296,7 @@ async function initGenerator(tree, schema) {
|
|
|
2296
2296
|
|
|
2297
2297
|
|
|
2298
2298
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2299
|
-
const filesDir =
|
|
2299
|
+
const filesDir = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
2300
2300
|
__dirname,
|
|
2301
2301
|
"src",
|
|
2302
2302
|
"generators",
|
|
@@ -2355,7 +2355,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2355
2355
|
|
|
2356
2356
|
|
|
2357
2357
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2358
|
-
const filesDir =
|
|
2358
|
+
const filesDir = _chunkNX6I7V6Cjs.joinPaths.call(void 0,
|
|
2359
2359
|
__dirname,
|
|
2360
2360
|
"src",
|
|
2361
2361
|
"generators",
|