@storm-software/terraform-tools 0.66.244 → 0.66.246
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 +20 -0
- package/README.md +1 -1
- package/dist/{chunk-R5XIKR4N.js → chunk-A6WNSDR7.js} +16 -16
- package/dist/{chunk-4VBGWC4H.mjs → chunk-ABYTODGS.mjs} +16 -16
- package/dist/{chunk-OLNQZPR5.js → chunk-BGDEJKQP.js} +2 -2
- package/dist/{chunk-GAFNKKUS.js → chunk-BOLIQGHH.js} +2 -2
- package/dist/{chunk-LOBDSG5J.js → chunk-ICC3T7HV.js} +159 -159
- package/dist/{chunk-64HH3MBZ.mjs → chunk-LITP5RJ4.mjs} +1 -1
- package/dist/{chunk-UTVJ6ZSK.mjs → chunk-MH7PQUPL.mjs} +1 -1
- package/dist/{chunk-24Z5KXVZ.mjs → chunk-NEH3N2A3.mjs} +1 -1
- package/dist/{chunk-6DBM53SK.mjs → chunk-P4PQWAMH.mjs} +1 -1
- package/dist/{chunk-4N5WLYTZ.js → chunk-PPWYTBXH.js} +2 -2
- package/dist/{chunk-IW7ZBGDG.js → chunk-QQOA6GG4.js} +2 -2
- package/dist/{chunk-AUBPSCQU.mjs → chunk-SURKEZID.mjs} +1 -1
- package/dist/{chunk-UBJZ522U.js → chunk-SVHLNLWI.js} +2 -2
- package/dist/{chunk-IKAF4VFS.mjs → chunk-VEA5XEHB.mjs} +1 -1
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +5 -5
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkA6WNSDR7js = require('./chunk-A6WNSDR7.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 = _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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} -> ${_chunkA6WNSDR7js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
324
324
|
config
|
|
325
325
|
);
|
|
326
326
|
const assetHandler = new (0, _copyassetshandlerjs.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0,
|
|
336
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
344
|
+
_chunkA6WNSDR7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
345
|
+
_chunkA6WNSDR7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
346
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 : _chunkA6WNSDR7js.findWorkspaceRoot.call(void 0, );
|
|
473
473
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
474
|
-
|
|
474
|
+
_chunkA6WNSDR7js.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 ??= `${_chunkA6WNSDR7js.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 : _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 _chunkA6WNSDR7js.getWorkspaceConfig.call(void 0, true, {
|
|
650
650
|
workspaceRoot: workspaceRoot2.dir
|
|
651
651
|
});
|
|
652
|
-
|
|
653
|
-
const stopwatch =
|
|
652
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
653
|
+
const stopwatch = _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 : _chunkA6WNSDR7js.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 || _chunkA6WNSDR7js.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
714
|
+
outputPath: resolvedOptions.outputPath || _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0,
|
|
724
724
|
` \u2699\uFE0F Build options resolved:
|
|
725
725
|
|
|
726
|
-
${
|
|
726
|
+
${_chunkA6WNSDR7js.formatLogMessage.call(void 0, context.options)}`,
|
|
727
727
|
workspaceConfig
|
|
728
728
|
);
|
|
729
729
|
}
|
|
@@ -735,10 +735,10 @@ ${_chunkR5XIKR4Njs.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, _chunkA6WNSDR7js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
739
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
740
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, "Write package.json file");
|
|
741
|
+
const packageJsonPath = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 ? _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, ` ${_chunkA6WNSDR7js.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
932
|
+
const stopwatch = _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
948
948
|
} catch (error) {
|
|
949
|
-
|
|
949
|
+
_chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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 : _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.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]) || _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.correctPaths.call(void 0, options.cwd);
|
|
1030
1030
|
} else {
|
|
1031
|
-
const absoluteProjectRoot =
|
|
1032
|
-
|
|
1031
|
+
const absoluteProjectRoot = _chunkA6WNSDR7js.correctPaths.call(void 0,
|
|
1032
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.relative.call(void 0,
|
|
1037
1037
|
normalizedOptions.cwd,
|
|
1038
|
-
|
|
1039
|
-
|
|
1038
|
+
_chunkA6WNSDR7js.correctPaths.call(void 0,
|
|
1039
|
+
_chunkA6WNSDR7js.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.relative.call(void 0,
|
|
1045
1045
|
normalizedOptions.cwd,
|
|
1046
|
-
|
|
1047
|
-
|
|
1046
|
+
_chunkA6WNSDR7js.correctPaths.call(void 0,
|
|
1047
|
+
_chunkA6WNSDR7js.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.relative.call(void 0,
|
|
1053
1053
|
normalizedOptions.cwd,
|
|
1054
|
-
|
|
1055
|
-
|
|
1054
|
+
_chunkA6WNSDR7js.correctPaths.call(void 0,
|
|
1055
|
+
_chunkA6WNSDR7js.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.relative.call(void 0,
|
|
1061
1061
|
normalizedOptions.cwd,
|
|
1062
|
-
|
|
1063
|
-
|
|
1062
|
+
_chunkA6WNSDR7js.correctPaths.call(void 0,
|
|
1063
|
+
_chunkA6WNSDR7js.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkA6WNSDR7js.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
|
+
_chunkA6WNSDR7js.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 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
1085
1085
|
"Napi - Build Bindings",
|
|
1086
1086
|
napiExecutor,
|
|
1087
1087
|
{
|
|
@@ -1234,14 +1234,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1234
1234
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1235
1235
|
);
|
|
1236
1236
|
}
|
|
1237
|
-
|
|
1237
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1238
1238
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1239
1239
|
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,
|
|
1240
1240
|
_nullishCoalesce(_optionalChain([context, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context.projectName], 'optionalAccess', _77 => _77.root]), () => ( "./")),
|
|
1241
1241
|
"src"
|
|
1242
1242
|
)))
|
|
1243
1243
|
}).then((result) => {
|
|
1244
|
-
|
|
1244
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0,
|
|
1245
1245
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1246
1246
|
config
|
|
1247
1247
|
);
|
|
@@ -1250,7 +1250,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1250
1250
|
success: true
|
|
1251
1251
|
};
|
|
1252
1252
|
}
|
|
1253
|
-
var executor_default8 =
|
|
1253
|
+
var executor_default8 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
1254
1254
|
"Size-Limit Performance Test Executor",
|
|
1255
1255
|
sizeLimitExecutorFn,
|
|
1256
1256
|
{
|
|
@@ -1311,19 +1311,19 @@ function toTSDownFormat(format4) {
|
|
|
1311
1311
|
// ../tsdown/src/build.ts
|
|
1312
1312
|
var resolveOptions = async (userOptions) => {
|
|
1313
1313
|
const options = getDefaultOptions(userOptions);
|
|
1314
|
-
const workspaceRoot2 =
|
|
1314
|
+
const workspaceRoot2 = _chunkA6WNSDR7js.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1315
1315
|
if (!workspaceRoot2) {
|
|
1316
1316
|
throw new Error("Cannot find Nx workspace root");
|
|
1317
1317
|
}
|
|
1318
|
-
const workspaceConfig = await
|
|
1318
|
+
const workspaceConfig = await _chunkA6WNSDR7js.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1319
1319
|
workspaceRoot: workspaceRoot2
|
|
1320
1320
|
});
|
|
1321
|
-
|
|
1322
|
-
const stopwatch =
|
|
1321
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1322
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, "Build options resolution");
|
|
1323
1323
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1324
1324
|
exitOnError: true
|
|
1325
1325
|
});
|
|
1326
|
-
const projectJsonPath =
|
|
1326
|
+
const projectJsonPath = _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
1327
1327
|
workspaceRoot2,
|
|
1328
1328
|
options.projectRoot,
|
|
1329
1329
|
"project.json"
|
|
@@ -1340,7 +1340,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1340
1340
|
"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."
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
const packageJsonPath =
|
|
1343
|
+
const packageJsonPath = _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
1344
1344
|
workspaceRoot2,
|
|
1345
1345
|
options.projectRoot,
|
|
1346
1346
|
"package.json"
|
|
@@ -1349,13 +1349,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
1349
1349
|
throw new Error("Cannot find package.json configuration");
|
|
1350
1350
|
}
|
|
1351
1351
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
1352
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
1352
|
+
const sourceRoot = projectJson.sourceRoot || _chunkA6WNSDR7js.joinPaths.call(void 0, options.projectRoot, "src");
|
|
1353
1353
|
const result = {
|
|
1354
1354
|
name: projectName,
|
|
1355
1355
|
mode: "production",
|
|
1356
1356
|
target: DEFAULT_TARGET,
|
|
1357
1357
|
generatePackageJson: true,
|
|
1358
|
-
outDir:
|
|
1358
|
+
outDir: _chunkA6WNSDR7js.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
1359
1359
|
minify: !debug,
|
|
1360
1360
|
plugins: [],
|
|
1361
1361
|
assets: [],
|
|
@@ -1366,12 +1366,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
1366
1366
|
clean: false,
|
|
1367
1367
|
fixedExtension: true,
|
|
1368
1368
|
nodeProtocol: true,
|
|
1369
|
-
tsconfig:
|
|
1369
|
+
tsconfig: _chunkA6WNSDR7js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
1370
1370
|
debug,
|
|
1371
1371
|
sourceRoot,
|
|
1372
1372
|
cwd: workspaceConfig.workspaceRoot,
|
|
1373
1373
|
entry: {
|
|
1374
|
-
["index"]:
|
|
1374
|
+
["index"]: _chunkA6WNSDR7js.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
1375
1375
|
},
|
|
1376
1376
|
workspace: true,
|
|
1377
1377
|
...options,
|
|
@@ -1390,15 +1390,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
1390
1390
|
return result;
|
|
1391
1391
|
};
|
|
1392
1392
|
async function generatePackageJson2(options) {
|
|
1393
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1394
|
-
|
|
1395
|
-
const stopwatch =
|
|
1396
|
-
const packageJsonPath =
|
|
1393
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkA6WNSDR7js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1394
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1395
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, "Write package.json file");
|
|
1396
|
+
const packageJsonPath = _chunkA6WNSDR7js.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1397
1397
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1398
1398
|
throw new Error("Cannot find package.json configuration");
|
|
1399
1399
|
}
|
|
1400
1400
|
const packageJsonFile = await _promises2.default.readFile(
|
|
1401
|
-
|
|
1401
|
+
_chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
1402
1402
|
options.workspaceConfig.workspaceRoot,
|
|
1403
1403
|
options.projectRoot,
|
|
1404
1404
|
"package.json"
|
|
@@ -1460,14 +1460,14 @@ async function generatePackageJson2(options) {
|
|
|
1460
1460
|
},
|
|
1461
1461
|
packageJson.exports
|
|
1462
1462
|
);
|
|
1463
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1463
|
+
await _devkit.writeJsonFile.call(void 0, _chunkA6WNSDR7js.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
1464
1464
|
stopwatch();
|
|
1465
1465
|
}
|
|
1466
1466
|
return options;
|
|
1467
1467
|
}
|
|
1468
1468
|
async function executeTSDown(options) {
|
|
1469
|
-
|
|
1470
|
-
const stopwatch =
|
|
1469
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
1470
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, `${options.name} build`);
|
|
1471
1471
|
await _tsdown.build.call(void 0, {
|
|
1472
1472
|
...options,
|
|
1473
1473
|
entry: options.entry,
|
|
@@ -1477,11 +1477,11 @@ async function executeTSDown(options) {
|
|
|
1477
1477
|
return options;
|
|
1478
1478
|
}
|
|
1479
1479
|
async function copyBuildAssets2(options) {
|
|
1480
|
-
|
|
1480
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0,
|
|
1481
1481
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
1482
1482
|
options.workspaceConfig
|
|
1483
1483
|
);
|
|
1484
|
-
const stopwatch =
|
|
1484
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1485
1485
|
await copyAssets(
|
|
1486
1486
|
options.workspaceConfig,
|
|
1487
1487
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -1495,18 +1495,18 @@ async function copyBuildAssets2(options) {
|
|
|
1495
1495
|
return options;
|
|
1496
1496
|
}
|
|
1497
1497
|
async function reportResults2(options) {
|
|
1498
|
-
|
|
1498
|
+
_chunkA6WNSDR7js.writeSuccess.call(void 0,
|
|
1499
1499
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
1500
1500
|
options.workspaceConfig
|
|
1501
1501
|
);
|
|
1502
1502
|
}
|
|
1503
1503
|
async function cleanOutputPath2(options) {
|
|
1504
1504
|
if (options.clean !== false && options.workspaceConfig) {
|
|
1505
|
-
|
|
1505
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0,
|
|
1506
1506
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
1507
1507
|
options.workspaceConfig
|
|
1508
1508
|
);
|
|
1509
|
-
const stopwatch =
|
|
1509
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1510
1510
|
await cleanDirectories2(
|
|
1511
1511
|
options.name,
|
|
1512
1512
|
options.outDir,
|
|
@@ -1517,8 +1517,8 @@ async function cleanOutputPath2(options) {
|
|
|
1517
1517
|
return options;
|
|
1518
1518
|
}
|
|
1519
1519
|
async function build3(options) {
|
|
1520
|
-
|
|
1521
|
-
const stopwatch =
|
|
1520
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, ` ${_chunkA6WNSDR7js.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
1521
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1522
1522
|
try {
|
|
1523
1523
|
const opts = Array.isArray(options) ? options : [options];
|
|
1524
1524
|
if (opts.length === 0) {
|
|
@@ -1538,13 +1538,13 @@ async function build3(options) {
|
|
|
1538
1538
|
})
|
|
1539
1539
|
);
|
|
1540
1540
|
} else {
|
|
1541
|
-
|
|
1541
|
+
_chunkA6WNSDR7js.writeWarning.call(void 0,
|
|
1542
1542
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
1543
1543
|
);
|
|
1544
1544
|
}
|
|
1545
|
-
|
|
1545
|
+
_chunkA6WNSDR7js.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1546
1546
|
} catch (error) {
|
|
1547
|
-
|
|
1547
|
+
_chunkA6WNSDR7js.writeFatal.call(void 0,
|
|
1548
1548
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1549
1549
|
);
|
|
1550
1550
|
throw error;
|
|
@@ -1555,7 +1555,7 @@ async function build3(options) {
|
|
|
1555
1555
|
|
|
1556
1556
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1557
1557
|
async function tsdownExecutorFn(options, context, config) {
|
|
1558
|
-
|
|
1558
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1559
1559
|
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])) {
|
|
1560
1560
|
throw new Error(
|
|
1561
1561
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1576,7 +1576,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1576
1576
|
success: true
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
|
-
var executor_default9 =
|
|
1579
|
+
var executor_default9 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
1580
1580
|
"Storm TSDown build",
|
|
1581
1581
|
tsdownExecutorFn,
|
|
1582
1582
|
{
|
|
@@ -1597,12 +1597,12 @@ var _fsextra = require('fs-extra');
|
|
|
1597
1597
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1598
1598
|
async function typiaExecutorFn(options, _, config) {
|
|
1599
1599
|
if (options.clean !== false) {
|
|
1600
|
-
|
|
1600
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1601
1601
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1602
1602
|
}
|
|
1603
1603
|
await Promise.all(
|
|
1604
1604
|
options.entry.map((entry) => {
|
|
1605
|
-
|
|
1605
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1606
1606
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1607
1607
|
input: entry,
|
|
1608
1608
|
output: options.outputPath,
|
|
@@ -1614,7 +1614,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1614
1614
|
success: true
|
|
1615
1615
|
};
|
|
1616
1616
|
}
|
|
1617
|
-
var executor_default10 =
|
|
1617
|
+
var executor_default10 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
1618
1618
|
"Typia runtime validation generator",
|
|
1619
1619
|
typiaExecutorFn,
|
|
1620
1620
|
{
|
|
@@ -1635,7 +1635,7 @@ var executor_default10 = _chunkR5XIKR4Njs.withRunExecutor.call(void 0,
|
|
|
1635
1635
|
|
|
1636
1636
|
|
|
1637
1637
|
async function unbuildExecutorFn(options, context, config) {
|
|
1638
|
-
|
|
1638
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1639
1639
|
if (!_optionalChain([context, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1640
1640
|
throw new Error(
|
|
1641
1641
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1652,7 +1652,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1652
1652
|
);
|
|
1653
1653
|
}
|
|
1654
1654
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1655
|
-
fsCache: config.skipCache ? false :
|
|
1655
|
+
fsCache: config.skipCache ? false : _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
1656
1656
|
config.workspaceRoot,
|
|
1657
1657
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1658
1658
|
"jiti"
|
|
@@ -1674,7 +1674,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1674
1674
|
{
|
|
1675
1675
|
stubOptions: {
|
|
1676
1676
|
jiti: {
|
|
1677
|
-
fsCache: config.skipCache ? false :
|
|
1677
|
+
fsCache: config.skipCache ? false : _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
1678
1678
|
config.workspaceRoot,
|
|
1679
1679
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1680
1680
|
"jiti"
|
|
@@ -1703,7 +1703,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1703
1703
|
success: true
|
|
1704
1704
|
};
|
|
1705
1705
|
}
|
|
1706
|
-
var executor_default11 =
|
|
1706
|
+
var executor_default11 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
1707
1707
|
"TypeScript Unbuild build",
|
|
1708
1708
|
unbuildExecutorFn,
|
|
1709
1709
|
{
|
|
@@ -1734,48 +1734,48 @@ var executor_default11 = _chunkR5XIKR4Njs.withRunExecutor.call(void 0,
|
|
|
1734
1734
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1735
1735
|
skipReadingConfig: false
|
|
1736
1736
|
}) => async (tree, _options) => {
|
|
1737
|
-
const stopwatch =
|
|
1737
|
+
const stopwatch = _chunkA6WNSDR7js.getStopwatch.call(void 0, name);
|
|
1738
1738
|
let options = _options;
|
|
1739
1739
|
let config;
|
|
1740
1740
|
try {
|
|
1741
|
-
|
|
1742
|
-
`${
|
|
1741
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0,
|
|
1742
|
+
`${_chunkA6WNSDR7js.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
1743
1743
|
|
|
1744
1744
|
`,
|
|
1745
1745
|
config
|
|
1746
1746
|
);
|
|
1747
|
-
const workspaceRoot2 =
|
|
1747
|
+
const workspaceRoot2 = _chunkA6WNSDR7js.findWorkspaceRoot.call(void 0, );
|
|
1748
1748
|
if (!generatorOptions.skipReadingConfig) {
|
|
1749
|
-
|
|
1749
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0,
|
|
1750
1750
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1751
1751
|
- workspaceRoot: ${workspaceRoot2}`,
|
|
1752
1752
|
config
|
|
1753
1753
|
);
|
|
1754
|
-
config = await
|
|
1754
|
+
config = await _chunkA6WNSDR7js.getConfig.call(void 0, workspaceRoot2);
|
|
1755
1755
|
}
|
|
1756
1756
|
if (_optionalChain([generatorOptions, 'optionalAccess', _96 => _96.hooks, 'optionalAccess', _97 => _97.applyDefaultOptions])) {
|
|
1757
|
-
|
|
1757
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1758
1758
|
options = await Promise.resolve(
|
|
1759
1759
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1760
1760
|
);
|
|
1761
|
-
|
|
1761
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1762
1762
|
}
|
|
1763
|
-
|
|
1763
|
+
_chunkA6WNSDR7js.writeTrace.call(void 0,
|
|
1764
1764
|
`Generator schema options \u2699\uFE0F
|
|
1765
1765
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1766
1766
|
config
|
|
1767
1767
|
);
|
|
1768
|
-
const tokenized = await
|
|
1768
|
+
const tokenized = await _chunkA6WNSDR7js.applyWorkspaceTokens.call(void 0,
|
|
1769
1769
|
options,
|
|
1770
1770
|
{ workspaceRoot: tree.root, config },
|
|
1771
|
-
|
|
1771
|
+
_chunkA6WNSDR7js.applyWorkspaceBaseTokens
|
|
1772
1772
|
);
|
|
1773
1773
|
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.preProcess])) {
|
|
1774
|
-
|
|
1774
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1775
1775
|
await Promise.resolve(
|
|
1776
1776
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1777
1777
|
);
|
|
1778
|
-
|
|
1778
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1779
1779
|
}
|
|
1780
1780
|
const result = await Promise.resolve(
|
|
1781
1781
|
generatorFn(tree, tokenized, config)
|
|
@@ -1790,21 +1790,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
if (_optionalChain([generatorOptions, 'optionalAccess', _109 => _109.hooks, 'optionalAccess', _110 => _110.postProcess])) {
|
|
1793
|
-
|
|
1793
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1794
1794
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1795
|
-
|
|
1795
|
+
_chunkA6WNSDR7js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1796
1796
|
}
|
|
1797
1797
|
return () => {
|
|
1798
|
-
|
|
1798
|
+
_chunkA6WNSDR7js.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1799
1799
|
`, config);
|
|
1800
1800
|
};
|
|
1801
1801
|
} catch (error) {
|
|
1802
1802
|
return () => {
|
|
1803
|
-
|
|
1803
|
+
_chunkA6WNSDR7js.writeFatal.call(void 0,
|
|
1804
1804
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1805
1805
|
config
|
|
1806
1806
|
);
|
|
1807
|
-
|
|
1807
|
+
_chunkA6WNSDR7js.writeError.call(void 0,
|
|
1808
1808
|
`An exception was thrown in the generator's process
|
|
1809
1809
|
- Details: ${error.message}
|
|
1810
1810
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1870,16 +1870,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1870
1870
|
const projectConfig = {
|
|
1871
1871
|
root: normalized.directory,
|
|
1872
1872
|
projectType: "library",
|
|
1873
|
-
sourceRoot:
|
|
1873
|
+
sourceRoot: _chunkA6WNSDR7js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1874
1874
|
targets: {
|
|
1875
1875
|
build: {
|
|
1876
1876
|
executor: options.buildExecutor,
|
|
1877
1877
|
outputs: ["{options.outputPath}"],
|
|
1878
1878
|
options: {
|
|
1879
|
-
entry: [
|
|
1879
|
+
entry: [_chunkA6WNSDR7js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1880
1880
|
outputPath: getOutputPath(normalized),
|
|
1881
|
-
tsconfig:
|
|
1882
|
-
project:
|
|
1881
|
+
tsconfig: _chunkA6WNSDR7js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1882
|
+
project: _chunkA6WNSDR7js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1883
1883
|
defaultConfiguration: "production",
|
|
1884
1884
|
platform: "neutral",
|
|
1885
1885
|
assets: [
|
|
@@ -1936,7 +1936,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1936
1936
|
if (!normalized.importPath) {
|
|
1937
1937
|
normalized.importPath = normalized.name;
|
|
1938
1938
|
}
|
|
1939
|
-
const packageJsonPath =
|
|
1939
|
+
const packageJsonPath = _chunkA6WNSDR7js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1940
1940
|
if (tree.exists(packageJsonPath)) {
|
|
1941
1941
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1942
1942
|
if (!normalized.importPath) {
|
|
@@ -1993,14 +1993,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1993
1993
|
}));
|
|
1994
1994
|
}
|
|
1995
1995
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1996
|
-
|
|
1996
|
+
_chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
1997
1997
|
normalized.projectRoot,
|
|
1998
1998
|
"./src",
|
|
1999
1999
|
`index.${normalized.js ? "js" : "ts"}`
|
|
2000
2000
|
)
|
|
2001
2001
|
]);
|
|
2002
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2003
|
-
|
|
2002
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkA6WNSDR7js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
2003
|
+
_chunkA6WNSDR7js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2004
2004
|
]);
|
|
2005
2005
|
if (tree.exists("package.json")) {
|
|
2006
2006
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2011,7 +2011,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2011
2011
|
description = packageJson.description;
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
|
-
const tsconfigPath =
|
|
2014
|
+
const tsconfigPath = _chunkA6WNSDR7js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2015
2015
|
if (tree.exists(tsconfigPath)) {
|
|
2016
2016
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2017
2017
|
json.composite ??= true;
|
|
@@ -2039,7 +2039,7 @@ function getOutputPath(options) {
|
|
|
2039
2039
|
} else {
|
|
2040
2040
|
parts.push(options.projectRoot);
|
|
2041
2041
|
}
|
|
2042
|
-
return
|
|
2042
|
+
return _chunkA6WNSDR7js.joinPaths.call(void 0, ...parts);
|
|
2043
2043
|
}
|
|
2044
2044
|
function createProjectTsConfigJson(tree, options) {
|
|
2045
2045
|
const tsconfig = {
|
|
@@ -2047,7 +2047,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2047
2047
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
|
|
2048
2048
|
compilerOptions: {
|
|
2049
2049
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2050
|
-
outDir:
|
|
2050
|
+
outDir: _chunkA6WNSDR7js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2051
2051
|
noEmit: true,
|
|
2052
2052
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
|
|
2053
2053
|
},
|
|
@@ -2065,7 +2065,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2065
2065
|
"src/**/*.test.ts"
|
|
2066
2066
|
]
|
|
2067
2067
|
};
|
|
2068
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2068
|
+
_devkit.writeJson.call(void 0, tree, _chunkA6WNSDR7js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2069
2069
|
}
|
|
2070
2070
|
async function normalizeOptions(tree, options, config) {
|
|
2071
2071
|
let importPath = options.importPath;
|
|
@@ -2130,7 +2130,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2130
2130
|
|
|
2131
2131
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2132
2132
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2133
|
-
const filesDir =
|
|
2133
|
+
const filesDir = _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
2134
2134
|
__dirname,
|
|
2135
2135
|
"src",
|
|
2136
2136
|
"generators",
|
|
@@ -2213,38 +2213,38 @@ var generator_default = withRunGenerator(
|
|
|
2213
2213
|
|
|
2214
2214
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
2215
2215
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2216
|
-
|
|
2216
|
+
_chunkA6WNSDR7js.writeInfo.call(void 0,
|
|
2217
2217
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
2218
2218
|
config
|
|
2219
2219
|
);
|
|
2220
|
-
|
|
2220
|
+
_chunkA6WNSDR7js.writeTrace.call(void 0,
|
|
2221
2221
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2222
2222
|
config
|
|
2223
2223
|
);
|
|
2224
|
-
const jsonSchema = z.toJSONSchema(
|
|
2224
|
+
const jsonSchema = z.toJSONSchema(_chunkA6WNSDR7js.workspaceConfigSchema, {
|
|
2225
2225
|
target: "draft-7",
|
|
2226
|
-
metadata:
|
|
2226
|
+
metadata: _chunkA6WNSDR7js.schemaRegistry
|
|
2227
2227
|
});
|
|
2228
2228
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2229
2229
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
2230
2230
|
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.";
|
|
2231
|
-
|
|
2231
|
+
_chunkA6WNSDR7js.writeTrace.call(void 0, jsonSchema, config);
|
|
2232
2232
|
if (!options.outputFile) {
|
|
2233
2233
|
throw new Error(
|
|
2234
2234
|
"The `outputFile` option is required. Please specify the output file path."
|
|
2235
2235
|
);
|
|
2236
2236
|
}
|
|
2237
2237
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2238
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => (
|
|
2238
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunkA6WNSDR7js.findWorkspaceRoot.call(void 0, ))),
|
|
2239
2239
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2240
2240
|
);
|
|
2241
|
-
|
|
2241
|
+
_chunkA6WNSDR7js.writeTrace.call(void 0,
|
|
2242
2242
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
2243
2243
|
config
|
|
2244
2244
|
);
|
|
2245
2245
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
2246
2246
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2247
|
-
|
|
2247
|
+
_chunkA6WNSDR7js.writeSuccess.call(void 0,
|
|
2248
2248
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
2249
2249
|
config
|
|
2250
2250
|
);
|
|
@@ -2300,7 +2300,7 @@ async function initGenerator(tree, schema) {
|
|
|
2300
2300
|
|
|
2301
2301
|
|
|
2302
2302
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2303
|
-
const filesDir =
|
|
2303
|
+
const filesDir = _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
2304
2304
|
__dirname,
|
|
2305
2305
|
"src",
|
|
2306
2306
|
"generators",
|
|
@@ -2359,7 +2359,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2359
2359
|
|
|
2360
2360
|
|
|
2361
2361
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2362
|
-
const filesDir =
|
|
2362
|
+
const filesDir = _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
2363
2363
|
__dirname,
|
|
2364
2364
|
"src",
|
|
2365
2365
|
"generators",
|