@storm-software/terraform-tools 0.52.0 → 0.52.1
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 +11 -0
- package/README.md +1 -1
- package/dist/{chunk-24GEJIKK.js → chunk-5J6DENCU.js} +210 -215
- package/dist/{chunk-RN6UUJRU.mjs → chunk-7URDMDS7.mjs} +1 -1
- package/dist/{chunk-HFEQN3NL.js → chunk-CJ4NNPZP.js} +2 -2
- package/dist/{chunk-L3W5NLSN.js → chunk-DFJELNNO.js} +2 -2
- package/dist/{chunk-7OAEVGV3.js → chunk-GK3245WN.js} +3 -3
- package/dist/{chunk-VKA4AOSX.js → chunk-JIPJCCPH.js} +2 -2
- package/dist/{chunk-HTBODFT6.mjs → chunk-KJYJUNDY.mjs} +1 -1
- package/dist/{chunk-AN6TJFDI.mjs → chunk-PCBBHDHD.mjs} +1 -1
- package/dist/{chunk-PU7ULQHZ.mjs → chunk-PNST6H5V.mjs} +1 -1
- package/dist/{chunk-YX6ZIWFA.js → chunk-S3PQ6E47.js} +15 -8
- package/dist/{chunk-EQY3LNPR.js → chunk-SUZ23ERM.js} +2 -2
- package/dist/{chunk-CX6K23RM.mjs → chunk-TFP2FPZB.mjs} +15 -8
- package/dist/{chunk-NV54O4LW.mjs → chunk-XQXP5BJI.mjs} +1 -1
- package/dist/{chunk-J2F7VR5H.mjs → chunk-ZKOE2OCL.mjs} +19 -24
- 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 +2 -2
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkS3PQ6E47js = require('./chunk-S3PQ6E47.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -158,7 +158,7 @@ async function cargoBuildExecutor(options, context2) {
|
|
|
158
158
|
return await cargoCommand(...command);
|
|
159
159
|
}
|
|
160
160
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
161
|
-
var executor_default =
|
|
161
|
+
var executor_default = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
162
162
|
skipReadingConfig: false,
|
|
163
163
|
hooks: {
|
|
164
164
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -175,7 +175,7 @@ async function cargoCheckExecutor(options, context2) {
|
|
|
175
175
|
return await cargoCommand(...command);
|
|
176
176
|
}
|
|
177
177
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
178
|
-
var executor_default2 =
|
|
178
|
+
var executor_default2 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
179
179
|
skipReadingConfig: false,
|
|
180
180
|
hooks: {
|
|
181
181
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -191,7 +191,7 @@ async function cargoClippyExecutor(options, context2) {
|
|
|
191
191
|
return await cargoCommand(...command);
|
|
192
192
|
}
|
|
193
193
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
194
|
-
var executor_default3 =
|
|
194
|
+
var executor_default3 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
195
195
|
skipReadingConfig: false,
|
|
196
196
|
hooks: {
|
|
197
197
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -212,7 +212,7 @@ async function cargoDocExecutor(options, context2) {
|
|
|
212
212
|
return await cargoCommand(...command);
|
|
213
213
|
}
|
|
214
214
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
215
|
-
var executor_default4 =
|
|
215
|
+
var executor_default4 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
216
216
|
skipReadingConfig: false,
|
|
217
217
|
hooks: {
|
|
218
218
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -235,7 +235,7 @@ async function cargoFormatExecutor(options, context2) {
|
|
|
235
235
|
return await cargoCommand(...command);
|
|
236
236
|
}
|
|
237
237
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
238
|
-
var executor_default5 =
|
|
238
|
+
var executor_default5 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
239
239
|
skipReadingConfig: false,
|
|
240
240
|
hooks: {
|
|
241
241
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -299,10 +299,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
|
|
|
299
299
|
var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot3) => {
|
|
300
300
|
let rootDir = workspaceRoot3;
|
|
301
301
|
if (!rootDir) {
|
|
302
|
-
const config = await
|
|
302
|
+
const config = await _chunkS3PQ6E47js.loadStormConfig.call(void 0, );
|
|
303
303
|
rootDir = config.workspaceRoot;
|
|
304
304
|
}
|
|
305
|
-
const nxJsonPath =
|
|
305
|
+
const nxJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, rootDir, "nx.json");
|
|
306
306
|
if (!_fs.existsSync.call(void 0, nxJsonPath)) {
|
|
307
307
|
throw new Error("Cannot find project.json configuration");
|
|
308
308
|
}
|
|
@@ -313,27 +313,23 @@ var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (w
|
|
|
313
313
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
314
314
|
var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
315
315
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
316
|
+
pendingAssets.push({
|
|
317
|
+
input: projectRoot,
|
|
318
|
+
glob: "*.md",
|
|
319
|
+
output: "."
|
|
320
|
+
});
|
|
321
|
+
pendingAssets.push({
|
|
322
|
+
input: config.workspaceRoot,
|
|
323
|
+
glob: "LICENSE",
|
|
324
|
+
output: "."
|
|
325
|
+
});
|
|
323
326
|
if (generatePackageJson3 === false) {
|
|
324
327
|
pendingAssets.push({
|
|
325
|
-
input:
|
|
328
|
+
input: projectRoot,
|
|
326
329
|
glob: "package.json",
|
|
327
330
|
output: "."
|
|
328
331
|
});
|
|
329
332
|
}
|
|
330
|
-
if (!_optionalChain([pendingAssets, 'optionalAccess', _8 => _8.some, 'call', _9 => _9((asset) => _optionalChain([asset, 'optionalAccess', _10 => _10.glob]) === "LICENSE")])) {
|
|
331
|
-
pendingAssets.push({
|
|
332
|
-
input: "",
|
|
333
|
-
glob: "LICENSE",
|
|
334
|
-
output: "."
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
333
|
if (includeSrc === true) {
|
|
338
334
|
pendingAssets.push({
|
|
339
335
|
input: sourceRoot,
|
|
@@ -344,12 +340,12 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
344
340
|
const nxJson = readNxConfig(config.workspaceRoot);
|
|
345
341
|
const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
346
342
|
const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
347
|
-
if (!_optionalChain([projectsConfigurations, 'optionalAccess',
|
|
343
|
+
if (!_optionalChain([projectsConfigurations, 'optionalAccess', _5 => _5.projects, 'optionalAccess', _6 => _6[projectName]])) {
|
|
348
344
|
throw new Error("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.");
|
|
349
345
|
}
|
|
350
|
-
const buildTarget = _optionalChain([projectsConfigurations, 'access',
|
|
346
|
+
const buildTarget = _optionalChain([projectsConfigurations, 'access', _7 => _7.projects, 'access', _8 => _8[projectName], 'access', _9 => _9.targets, 'optionalAccess', _10 => _10.build]);
|
|
351
347
|
if (!buildTarget) {
|
|
352
|
-
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${
|
|
348
|
+
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkS3PQ6E47js.joinPaths.call(void 0, projectRoot, "project.json")}`);
|
|
353
349
|
}
|
|
354
350
|
const result = await _js.copyAssets.call(void 0, {
|
|
355
351
|
assets,
|
|
@@ -364,18 +360,18 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
364
360
|
projectsConfigurations,
|
|
365
361
|
nxJsonConfiguration: nxJson,
|
|
366
362
|
cwd: config.workspaceRoot,
|
|
367
|
-
isVerbose:
|
|
363
|
+
isVerbose: _chunkS3PQ6E47js.isVerbose.call(void 0, config.logLevel)
|
|
368
364
|
});
|
|
369
365
|
if (!result.success) {
|
|
370
366
|
throw new Error("The Build process failed trying to copy assets");
|
|
371
367
|
}
|
|
372
368
|
if (includeSrc === true) {
|
|
373
|
-
|
|
369
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkS3PQ6E47js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
374
370
|
const files = await _glob.glob.call(void 0, [
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
371
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
372
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
373
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
374
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
379
375
|
]);
|
|
380
376
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
381
377
|
|
|
@@ -397,7 +393,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
397
393
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
398
394
|
const projectNode = project.node;
|
|
399
395
|
if (projectNode.data.root) {
|
|
400
|
-
const projectPackageJsonPath =
|
|
396
|
+
const projectPackageJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
401
397
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
402
398
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
403
399
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -408,7 +404,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
408
404
|
}
|
|
409
405
|
}
|
|
410
406
|
if (localPackages.length > 0) {
|
|
411
|
-
|
|
407
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
412
408
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
413
409
|
if (!ret[localPackage.name]) {
|
|
414
410
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -430,13 +426,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
430
426
|
return ret;
|
|
431
427
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
432
428
|
} else {
|
|
433
|
-
|
|
429
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
434
430
|
}
|
|
435
431
|
return packageJson;
|
|
436
432
|
}, "addPackageDependencies");
|
|
437
433
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
438
|
-
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot :
|
|
439
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
434
|
+
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkS3PQ6E47js.findWorkspaceRoot.call(void 0, );
|
|
435
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
440
436
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
441
437
|
packageJson.type ??= "module";
|
|
442
438
|
packageJson.sideEffects ??= false;
|
|
@@ -445,7 +441,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
445
441
|
if (distSrc.startsWith("/")) {
|
|
446
442
|
distSrc = distSrc.substring(1);
|
|
447
443
|
}
|
|
448
|
-
packageJson.source ??= `${
|
|
444
|
+
packageJson.source ??= `${_chunkS3PQ6E47js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
449
445
|
}
|
|
450
446
|
packageJson.files ??= [
|
|
451
447
|
"dist/**/*"
|
|
@@ -476,7 +472,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
476
472
|
];
|
|
477
473
|
}
|
|
478
474
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
479
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
475
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkS3PQ6E47js.joinPaths.call(void 0, "packages", projectName);
|
|
480
476
|
return packageJson;
|
|
481
477
|
}, "addWorkspacePackageJsonFields");
|
|
482
478
|
var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -503,7 +499,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
503
499
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
504
500
|
|
|
505
501
|
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
506
|
-
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot :
|
|
502
|
+
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkS3PQ6E47js.findWorkspaceRoot.call(void 0, );
|
|
507
503
|
const entryPoints = [];
|
|
508
504
|
if (entry) {
|
|
509
505
|
if (Array.isArray(entry)) {
|
|
@@ -515,7 +511,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
515
511
|
}
|
|
516
512
|
}
|
|
517
513
|
if (emitOnAll) {
|
|
518
|
-
entryPoints.push(
|
|
514
|
+
entryPoints.push(_chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
519
515
|
}
|
|
520
516
|
const results = [];
|
|
521
517
|
for (const entryPoint in entryPoints) {
|
|
@@ -524,9 +520,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
524
520
|
withFileTypes: true
|
|
525
521
|
});
|
|
526
522
|
results.push(...files.reduce((ret, filePath) => {
|
|
527
|
-
const result =
|
|
523
|
+
const result = _chunkS3PQ6E47js.correctPaths.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkS3PQ6E47js.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkS3PQ6E47js.correctPaths.call(void 0, projectRoot), ""));
|
|
528
524
|
if (result) {
|
|
529
|
-
|
|
525
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkS3PQ6E47js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
530
526
|
if (!results.includes(result)) {
|
|
531
527
|
results.push(result);
|
|
532
528
|
}
|
|
@@ -654,15 +650,15 @@ var RendererEngine = class {
|
|
|
654
650
|
if (!relativePath.startsWith("\\\\?\\")) {
|
|
655
651
|
relativePath = relativePath.replace(/\\/g, "/");
|
|
656
652
|
}
|
|
657
|
-
const meta = _optionalChain([metafile, 'optionalAccess',
|
|
653
|
+
const meta = _optionalChain([metafile, 'optionalAccess', _11 => _11.outputs, 'access', _12 => _12[relativePath]]);
|
|
658
654
|
return {
|
|
659
655
|
type: "chunk",
|
|
660
656
|
path: file.path,
|
|
661
657
|
code: file.text,
|
|
662
|
-
map: _optionalChain([outputFiles, 'access',
|
|
663
|
-
entryPoint: _optionalChain([meta, 'optionalAccess',
|
|
664
|
-
exports: _optionalChain([meta, 'optionalAccess',
|
|
665
|
-
imports: _optionalChain([meta, 'optionalAccess',
|
|
658
|
+
map: _optionalChain([outputFiles, 'access', _13 => _13.find, 'call', _14 => _14((f) => f.path === `${file.path}.map`), 'optionalAccess', _15 => _15.text]),
|
|
659
|
+
entryPoint: _optionalChain([meta, 'optionalAccess', _16 => _16.entryPoint]),
|
|
660
|
+
exports: _optionalChain([meta, 'optionalAccess', _17 => _17.exports]),
|
|
661
|
+
imports: _optionalChain([meta, 'optionalAccess', _18 => _18.imports])
|
|
666
662
|
};
|
|
667
663
|
} else {
|
|
668
664
|
return {
|
|
@@ -732,8 +728,8 @@ var RendererEngine = class {
|
|
|
732
728
|
// ../esbuild/src/clean.ts
|
|
733
729
|
|
|
734
730
|
async function clean(name = "ESBuild", directory, config) {
|
|
735
|
-
|
|
736
|
-
const stopwatch =
|
|
731
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
732
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, `${name} output clean`);
|
|
737
733
|
await _node.hfs.deleteAll(directory);
|
|
738
734
|
stopwatch();
|
|
739
735
|
}
|
|
@@ -745,7 +741,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
745
741
|
name: "storm:esm-split-code-to-cjs",
|
|
746
742
|
setup(build5) {
|
|
747
743
|
build5.onEnd(async (result) => {
|
|
748
|
-
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access',
|
|
744
|
+
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metafile, 'optionalAccess', _20 => _20.outputs]), () => ( {})));
|
|
749
745
|
const jsFiles = outFiles.filter((f) => f.endsWith("js"));
|
|
750
746
|
await esbuild.build({
|
|
751
747
|
outdir: resolvedOptions.outdir,
|
|
@@ -854,7 +850,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
854
850
|
setup(build5) {
|
|
855
851
|
build5.onEnd((result) => {
|
|
856
852
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
857
|
-
|
|
853
|
+
_chunkS3PQ6E47js.writeError.call(void 0, `The following errors occurred during the build:
|
|
858
854
|
${result.errors.map((error) => error.text).join("\n")}
|
|
859
855
|
|
|
860
856
|
`, resolvedOptions.config);
|
|
@@ -867,7 +863,7 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
867
863
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
868
864
|
|
|
869
865
|
function resolvePathsConfig(options, cwd) {
|
|
870
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
866
|
+
if (_optionalChain([options, 'optionalAccess', _21 => _21.compilerOptions, 'optionalAccess', _22 => _22.paths])) {
|
|
871
867
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
872
868
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
873
869
|
return [
|
|
@@ -889,13 +885,13 @@ _chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
|
889
885
|
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
890
886
|
name: "storm:resolve-paths",
|
|
891
887
|
setup(build5) {
|
|
892
|
-
const parentTsConfig = build5.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0,
|
|
888
|
+
const parentTsConfig = build5.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
893
889
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
894
890
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
895
891
|
build5.onResolve({
|
|
896
892
|
filter: packagesRegex
|
|
897
893
|
}, (args) => {
|
|
898
|
-
if (_optionalChain([build5, 'access',
|
|
894
|
+
if (_optionalChain([build5, 'access', _23 => _23.initialOptions, 'access', _24 => _24.external, 'optionalAccess', _25 => _25.includes, 'call', _26 => _26(args.path)])) {
|
|
899
895
|
return {
|
|
900
896
|
path: args.path,
|
|
901
897
|
external: true
|
|
@@ -912,7 +908,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
|
|
|
912
908
|
|
|
913
909
|
var _apiextractor = require('@microsoft/api-extractor');
|
|
914
910
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
915
|
-
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0,
|
|
911
|
+
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
916
912
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
917
913
|
p,
|
|
918
914
|
getTypeDependencyPackageName(p)
|
|
@@ -948,13 +944,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
948
944
|
},
|
|
949
945
|
dtsRollup: {
|
|
950
946
|
enabled: true,
|
|
951
|
-
untrimmedFilePath:
|
|
947
|
+
untrimmedFilePath: _chunkS3PQ6E47js.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
952
948
|
},
|
|
953
949
|
tsdocMetadata: {
|
|
954
950
|
enabled: false
|
|
955
951
|
}
|
|
956
952
|
},
|
|
957
|
-
packageJsonFullPath:
|
|
953
|
+
packageJsonFullPath: _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
958
954
|
configObjectFullPath: void 0
|
|
959
955
|
});
|
|
960
956
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -962,7 +958,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
962
958
|
localBuild: true
|
|
963
959
|
});
|
|
964
960
|
if (extractorResult.succeeded === false) {
|
|
965
|
-
|
|
961
|
+
_chunkS3PQ6E47js.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
966
962
|
throw new Error("API Extractor completed with errors");
|
|
967
963
|
}
|
|
968
964
|
}
|
|
@@ -975,18 +971,18 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
975
971
|
}
|
|
976
972
|
build5.onStart(async () => {
|
|
977
973
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
978
|
-
await
|
|
974
|
+
await _chunkS3PQ6E47js.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
979
975
|
}
|
|
980
976
|
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
981
977
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
982
978
|
const typeOutDir = resolvedOptions.outdir;
|
|
983
979
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
984
|
-
const bundlePath =
|
|
980
|
+
const bundlePath = _chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
985
981
|
let dtsPath;
|
|
986
|
-
if (await _node.hfs.isFile(
|
|
987
|
-
dtsPath =
|
|
988
|
-
} else if (await _node.hfs.isFile(
|
|
989
|
-
dtsPath =
|
|
982
|
+
if (await _node.hfs.isFile(_chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
983
|
+
dtsPath = _chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
984
|
+
} else if (await _node.hfs.isFile(_chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
985
|
+
dtsPath = _chunkS3PQ6E47js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
990
986
|
}
|
|
991
987
|
const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
992
988
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -1003,7 +999,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
1003
999
|
function getTypeDependencyPackageName(npmPackage) {
|
|
1004
1000
|
if (npmPackage.startsWith("@")) {
|
|
1005
1001
|
const [scope, name] = npmPackage.split("/");
|
|
1006
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
1002
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _27 => _27.slice, 'call', _28 => _28(1)])}__${name}`;
|
|
1007
1003
|
}
|
|
1008
1004
|
return `@types/${npmPackage}`;
|
|
1009
1005
|
}
|
|
@@ -1141,8 +1137,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
1141
1137
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
1142
1138
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
1143
1139
|
});
|
|
1144
|
-
|
|
1145
|
-
|
|
1140
|
+
_chunkS3PQ6E47js.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
1141
|
+
_chunkS3PQ6E47js.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
1146
1142
|
if (filteredMissingDeps.length > 0) {
|
|
1147
1143
|
throw new Error(`Missing dependencies detected - please install them:
|
|
1148
1144
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1210,7 +1206,7 @@ function pipeSync(fn, ...fns) {
|
|
|
1210
1206
|
return (...args) => {
|
|
1211
1207
|
let result = fn(...args);
|
|
1212
1208
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1213
|
-
result = _optionalChain([fns, 'access',
|
|
1209
|
+
result = _optionalChain([fns, 'access', _29 => _29[i], 'optionalCall', _30 => _30(result)]);
|
|
1214
1210
|
}
|
|
1215
1211
|
return result;
|
|
1216
1212
|
};
|
|
@@ -1220,7 +1216,7 @@ function pipeAsync(fn, ...fns) {
|
|
|
1220
1216
|
return async (...args) => {
|
|
1221
1217
|
let result = await fn(...args);
|
|
1222
1218
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1223
|
-
result = await _optionalChain([fns, 'access',
|
|
1219
|
+
result = await _optionalChain([fns, 'access', _31 => _31[i], 'optionalCall', _32 => _32(result)]);
|
|
1224
1220
|
}
|
|
1225
1221
|
return result;
|
|
1226
1222
|
};
|
|
@@ -1236,26 +1232,26 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1236
1232
|
if (!workspaceRoot3) {
|
|
1237
1233
|
throw new Error("Cannot find Nx workspace root");
|
|
1238
1234
|
}
|
|
1239
|
-
const config = await
|
|
1240
|
-
|
|
1241
|
-
const stopwatch =
|
|
1235
|
+
const config = await _chunkS3PQ6E47js.loadStormConfig.call(void 0, workspaceRoot3.dir);
|
|
1236
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1237
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, "Build options resolution");
|
|
1242
1238
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1243
1239
|
exitOnError: true
|
|
1244
1240
|
});
|
|
1245
|
-
const projectJsonPath =
|
|
1241
|
+
const projectJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1246
1242
|
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
1247
1243
|
throw new Error("Cannot find project.json configuration");
|
|
1248
1244
|
}
|
|
1249
1245
|
const projectJson = await _node.hfs.json(projectJsonPath);
|
|
1250
1246
|
const projectName = projectJson.name;
|
|
1251
1247
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1252
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1248
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _33 => _33.projects, 'optionalAccess', _34 => _34[projectName]])) {
|
|
1253
1249
|
throw new Error("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.");
|
|
1254
1250
|
}
|
|
1255
1251
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1256
1252
|
options.name ??= `${projectName}-${options.format}`;
|
|
1257
1253
|
options.target ??= DEFAULT_TARGET;
|
|
1258
|
-
const packageJsonPath =
|
|
1254
|
+
const packageJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1259
1255
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1260
1256
|
throw new Error("Cannot find package.json configuration");
|
|
1261
1257
|
}
|
|
@@ -1279,20 +1275,20 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1279
1275
|
".node"
|
|
1280
1276
|
],
|
|
1281
1277
|
...userOptions,
|
|
1282
|
-
tsconfig:
|
|
1278
|
+
tsconfig: _chunkS3PQ6E47js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1283
1279
|
format: options.format || "cjs",
|
|
1284
1280
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
1285
1281
|
"./src/index.ts"
|
|
1286
1282
|
], userOptions.emitOnAll),
|
|
1287
|
-
outdir: userOptions.outputPath ||
|
|
1283
|
+
outdir: userOptions.outputPath || _chunkS3PQ6E47js.joinPaths.call(void 0, "dist", projectRoot),
|
|
1288
1284
|
plugins: [],
|
|
1289
1285
|
name: userOptions.name || projectName,
|
|
1290
1286
|
projectConfigurations,
|
|
1291
1287
|
projectName,
|
|
1292
1288
|
projectGraph,
|
|
1293
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1289
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkS3PQ6E47js.joinPaths.call(void 0, projectRoot, "src"),
|
|
1294
1290
|
minify: userOptions.minify || !userOptions.debug,
|
|
1295
|
-
verbose: userOptions.verbose ||
|
|
1291
|
+
verbose: userOptions.verbose || _chunkS3PQ6E47js.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1296
1292
|
includeSrc: userOptions.includeSrc === true,
|
|
1297
1293
|
metafile: userOptions.metafile !== false,
|
|
1298
1294
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1328,8 +1324,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1328
1324
|
}, {})
|
|
1329
1325
|
},
|
|
1330
1326
|
inject: [
|
|
1331
|
-
options.format === "cjs" && options.injectShims ?
|
|
1332
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
1327
|
+
options.format === "cjs" && options.injectShims ? _chunkS3PQ6E47js.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
1328
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkS3PQ6E47js.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
|
|
1333
1329
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
1334
1330
|
].filter(Boolean)
|
|
1335
1331
|
};
|
|
@@ -1338,14 +1334,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1338
1334
|
return result;
|
|
1339
1335
|
}, "resolveOptions");
|
|
1340
1336
|
async function generatePackageJson(context2) {
|
|
1341
|
-
if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(
|
|
1342
|
-
|
|
1343
|
-
const stopwatch =
|
|
1344
|
-
const packageJsonPath =
|
|
1337
|
+
if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkS3PQ6E47js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1338
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1339
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, "Write package.json file");
|
|
1340
|
+
const packageJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1345
1341
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1346
1342
|
throw new Error("Cannot find package.json configuration");
|
|
1347
1343
|
}
|
|
1348
|
-
let packageJson = await _node.hfs.json(
|
|
1344
|
+
let packageJson = await _node.hfs.json(_chunkS3PQ6E47js.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
|
|
1349
1345
|
if (!packageJson) {
|
|
1350
1346
|
throw new Error("Cannot find package.json configuration file");
|
|
1351
1347
|
}
|
|
@@ -1383,7 +1379,7 @@ async function generatePackageJson(context2) {
|
|
|
1383
1379
|
}
|
|
1384
1380
|
return ret;
|
|
1385
1381
|
}, packageJson.exports);
|
|
1386
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1382
|
+
await _devkit.writeJsonFile.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
1387
1383
|
stopwatch();
|
|
1388
1384
|
}
|
|
1389
1385
|
return context2;
|
|
@@ -1409,8 +1405,8 @@ async function generateContext(getOptions) {
|
|
|
1409
1405
|
}
|
|
1410
1406
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1411
1407
|
async function executeEsBuild(context2) {
|
|
1412
|
-
|
|
1413
|
-
const stopwatch =
|
|
1408
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1409
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1414
1410
|
if (process.env.WATCH === "true") {
|
|
1415
1411
|
const ctx = await esbuild2.context(context2.options);
|
|
1416
1412
|
watch(ctx, context2.options);
|
|
@@ -1425,9 +1421,9 @@ async function executeEsBuild(context2) {
|
|
|
1425
1421
|
}
|
|
1426
1422
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1427
1423
|
async function copyBuildAssets(context2) {
|
|
1428
|
-
if (_optionalChain([context2, 'access',
|
|
1429
|
-
|
|
1430
|
-
const stopwatch =
|
|
1424
|
+
if (_optionalChain([context2, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors, 'access', _37 => _37.length]) === 0) {
|
|
1425
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1426
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1431
1427
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
|
|
1432
1428
|
stopwatch();
|
|
1433
1429
|
}
|
|
@@ -1435,11 +1431,11 @@ async function copyBuildAssets(context2) {
|
|
|
1435
1431
|
}
|
|
1436
1432
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1437
1433
|
async function reportResults(context2) {
|
|
1438
|
-
if (_optionalChain([context2, 'access',
|
|
1434
|
+
if (_optionalChain([context2, 'access', _38 => _38.result, 'optionalAccess', _39 => _39.errors, 'access', _40 => _40.length]) === 0) {
|
|
1439
1435
|
if (context2.result.warnings.length > 0) {
|
|
1440
|
-
|
|
1436
|
+
_chunkS3PQ6E47js.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1441
1437
|
}
|
|
1442
|
-
|
|
1438
|
+
_chunkS3PQ6E47js.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1443
1439
|
}
|
|
1444
1440
|
}
|
|
1445
1441
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1481,8 +1477,8 @@ async function cleanOutputPath(context2) {
|
|
|
1481
1477
|
}
|
|
1482
1478
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1483
1479
|
async function build3(options) {
|
|
1484
|
-
|
|
1485
|
-
const stopwatch =
|
|
1480
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1481
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1486
1482
|
try {
|
|
1487
1483
|
const opts = Array.isArray(options) ? options : [
|
|
1488
1484
|
options
|
|
@@ -1492,9 +1488,9 @@ async function build3(options) {
|
|
|
1492
1488
|
}
|
|
1493
1489
|
void transduce.async(opts, dependencyCheck);
|
|
1494
1490
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1495
|
-
|
|
1491
|
+
_chunkS3PQ6E47js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1496
1492
|
} catch (error) {
|
|
1497
|
-
|
|
1493
|
+
_chunkS3PQ6E47js.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
1498
1494
|
throw error;
|
|
1499
1495
|
} finally {
|
|
1500
1496
|
stopwatch();
|
|
@@ -1522,9 +1518,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1522
1518
|
return context2.rebuild();
|
|
1523
1519
|
});
|
|
1524
1520
|
if (rebuildResult instanceof Error) {
|
|
1525
|
-
|
|
1521
|
+
_chunkS3PQ6E47js.writeError.call(void 0, rebuildResult.message);
|
|
1526
1522
|
}
|
|
1527
|
-
|
|
1523
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1528
1524
|
}, 10);
|
|
1529
1525
|
changeWatcher.on("change", fastRebuild);
|
|
1530
1526
|
return void 0;
|
|
@@ -1532,15 +1528,15 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1532
1528
|
|
|
1533
1529
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1534
1530
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1535
|
-
|
|
1536
|
-
if (!_optionalChain([context2, 'access',
|
|
1531
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1532
|
+
if (!_optionalChain([context2, 'access', _41 => _41.projectsConfigurations, 'optionalAccess', _42 => _42.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _43 => _43.projectsConfigurations, 'access', _44 => _44.projects, 'access', _45 => _45[context2.projectName], 'optionalAccess', _46 => _46.root])) {
|
|
1537
1533
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1538
1534
|
}
|
|
1539
1535
|
await build3({
|
|
1540
1536
|
...options,
|
|
1541
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1537
|
+
projectRoot: _optionalChain([context2, 'access', _47 => _47.projectsConfigurations, 'access', _48 => _48.projects, 'optionalAccess', _49 => _49[context2.projectName], 'access', _50 => _50.root]),
|
|
1542
1538
|
projectName: context2.projectName,
|
|
1543
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1539
|
+
sourceRoot: _optionalChain([context2, 'access', _51 => _51.projectsConfigurations, 'access', _52 => _52.projects, 'optionalAccess', _53 => _53[context2.projectName], 'optionalAccess', _54 => _54.sourceRoot]),
|
|
1544
1540
|
format: options.format,
|
|
1545
1541
|
platform: options.format
|
|
1546
1542
|
});
|
|
@@ -1549,7 +1545,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1549
1545
|
};
|
|
1550
1546
|
}
|
|
1551
1547
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1552
|
-
var executor_default6 =
|
|
1548
|
+
var executor_default6 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1553
1549
|
skipReadingConfig: false,
|
|
1554
1550
|
hooks: {
|
|
1555
1551
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1583,25 +1579,25 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1583
1579
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1584
1580
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1585
1581
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
1586
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
1582
|
+
if (!_optionalChain([context2, 'optionalAccess', _55 => _55.projectName]) || !_optionalChain([context2, 'access', _56 => _56.projectsConfigurations, 'optionalAccess', _57 => _57.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1587
1583
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1588
1584
|
}
|
|
1589
|
-
|
|
1585
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
1590
1586
|
_sizelimit2.default.call(void 0, [
|
|
1591
1587
|
_file2.default,
|
|
1592
1588
|
_esbuild3.default,
|
|
1593
1589
|
_esbuildwhy2.default
|
|
1594
1590
|
], {
|
|
1595
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
1591
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _58 => _58.projectsConfigurations, 'access', _59 => _59.projects, 'access', _60 => _60[context2.projectName], 'optionalAccess', _61 => _61.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _62 => _62.projectsConfigurations, 'access', _63 => _63.projects, 'access', _64 => _64[context2.projectName], 'optionalAccess', _65 => _65.root]), () => ( "./")), "src")))
|
|
1596
1592
|
}).then((result) => {
|
|
1597
|
-
|
|
1593
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1598
1594
|
});
|
|
1599
1595
|
return {
|
|
1600
1596
|
success: true
|
|
1601
1597
|
};
|
|
1602
1598
|
}
|
|
1603
1599
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
1604
|
-
var executor_default7 =
|
|
1600
|
+
var executor_default7 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
1605
1601
|
skipReadingConfig: false,
|
|
1606
1602
|
hooks: {
|
|
1607
1603
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1620,8 +1616,8 @@ var _tsdown = require('tsdown');
|
|
|
1620
1616
|
// ../tsdown/src/clean.ts
|
|
1621
1617
|
|
|
1622
1618
|
async function clean2(name = "ESBuild", directory, config) {
|
|
1623
|
-
|
|
1624
|
-
const stopwatch =
|
|
1619
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
1620
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, `${name} output clean`);
|
|
1625
1621
|
await _node.hfs.deleteAll(directory);
|
|
1626
1622
|
stopwatch();
|
|
1627
1623
|
}
|
|
@@ -1656,26 +1652,26 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1656
1652
|
if (!workspaceRoot3) {
|
|
1657
1653
|
throw new Error("Cannot find Nx workspace root");
|
|
1658
1654
|
}
|
|
1659
|
-
const config = await
|
|
1660
|
-
|
|
1661
|
-
const stopwatch =
|
|
1655
|
+
const config = await _chunkS3PQ6E47js.loadStormConfig.call(void 0, workspaceRoot3.dir);
|
|
1656
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1657
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, "Build options resolution");
|
|
1662
1658
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1663
1659
|
exitOnError: true
|
|
1664
1660
|
});
|
|
1665
|
-
const projectJsonPath =
|
|
1661
|
+
const projectJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1666
1662
|
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
1667
1663
|
throw new Error("Cannot find project.json configuration");
|
|
1668
1664
|
}
|
|
1669
1665
|
const projectJson = await _node.hfs.json(projectJsonPath);
|
|
1670
1666
|
const projectName = projectJson.name;
|
|
1671
1667
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1672
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1668
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _66 => _66.projects, 'optionalAccess', _67 => _67[projectName]])) {
|
|
1673
1669
|
throw new Error("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.");
|
|
1674
1670
|
}
|
|
1675
1671
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
1676
1672
|
options.name ??= `${projectName}-${options.format}`;
|
|
1677
1673
|
options.target ??= DEFAULT_TARGET;
|
|
1678
|
-
const packageJsonPath =
|
|
1674
|
+
const packageJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1679
1675
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1680
1676
|
throw new Error("Cannot find package.json configuration");
|
|
1681
1677
|
}
|
|
@@ -1684,20 +1680,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1684
1680
|
...options,
|
|
1685
1681
|
config,
|
|
1686
1682
|
...userOptions,
|
|
1687
|
-
tsconfig:
|
|
1683
|
+
tsconfig: _chunkS3PQ6E47js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1688
1684
|
format: options.format || "cjs",
|
|
1689
1685
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
1690
1686
|
"./src/index.ts"
|
|
1691
1687
|
], userOptions.emitOnAll),
|
|
1692
|
-
outdir: userOptions.outputPath ||
|
|
1688
|
+
outdir: userOptions.outputPath || _chunkS3PQ6E47js.joinPaths.call(void 0, "dist", projectRoot),
|
|
1693
1689
|
plugins: [],
|
|
1694
1690
|
name: userOptions.name || projectName,
|
|
1695
1691
|
projectConfigurations,
|
|
1696
1692
|
projectName,
|
|
1697
1693
|
projectGraph,
|
|
1698
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1694
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkS3PQ6E47js.joinPaths.call(void 0, projectRoot, "src"),
|
|
1699
1695
|
minify: userOptions.minify || !userOptions.debug,
|
|
1700
|
-
verbose: userOptions.verbose ||
|
|
1696
|
+
verbose: userOptions.verbose || _chunkS3PQ6E47js.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1701
1697
|
includeSrc: userOptions.includeSrc === true,
|
|
1702
1698
|
metafile: userOptions.metafile !== false,
|
|
1703
1699
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1731,14 +1727,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1731
1727
|
return result;
|
|
1732
1728
|
}, "resolveOptions");
|
|
1733
1729
|
async function generatePackageJson2(options) {
|
|
1734
|
-
if (options.generatePackageJson !== false && await _node.hfs.isFile(
|
|
1735
|
-
|
|
1736
|
-
const stopwatch =
|
|
1737
|
-
const packageJsonPath =
|
|
1730
|
+
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1731
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
1732
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, "Write package.json file");
|
|
1733
|
+
const packageJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1738
1734
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
1739
1735
|
throw new Error("Cannot find package.json configuration");
|
|
1740
1736
|
}
|
|
1741
|
-
let packageJson = await _node.hfs.json(
|
|
1737
|
+
let packageJson = await _node.hfs.json(_chunkS3PQ6E47js.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
|
|
1742
1738
|
if (!packageJson) {
|
|
1743
1739
|
throw new Error("Cannot find package.json configuration file");
|
|
1744
1740
|
}
|
|
@@ -1776,15 +1772,15 @@ async function generatePackageJson2(options) {
|
|
|
1776
1772
|
}
|
|
1777
1773
|
return ret;
|
|
1778
1774
|
}, packageJson.exports);
|
|
1779
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1775
|
+
await _devkit.writeJsonFile.call(void 0, _chunkS3PQ6E47js.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
1780
1776
|
stopwatch();
|
|
1781
1777
|
}
|
|
1782
1778
|
return options;
|
|
1783
1779
|
}
|
|
1784
1780
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
|
|
1785
1781
|
async function executeTSDown(options) {
|
|
1786
|
-
|
|
1787
|
-
const stopwatch =
|
|
1782
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
1783
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, `${options.name} build`);
|
|
1788
1784
|
await _tsdown.build.call(void 0, {
|
|
1789
1785
|
...options,
|
|
1790
1786
|
entry: options.entryPoints,
|
|
@@ -1796,15 +1792,15 @@ async function executeTSDown(options) {
|
|
|
1796
1792
|
}
|
|
1797
1793
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
1798
1794
|
async function copyBuildAssets2(options) {
|
|
1799
|
-
|
|
1800
|
-
const stopwatch =
|
|
1795
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
1796
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1801
1797
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
|
|
1802
1798
|
stopwatch();
|
|
1803
1799
|
return options;
|
|
1804
1800
|
}
|
|
1805
1801
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
|
|
1806
1802
|
async function reportResults2(options) {
|
|
1807
|
-
|
|
1803
|
+
_chunkS3PQ6E47js.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
1808
1804
|
}
|
|
1809
1805
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults2, "reportResults");
|
|
1810
1806
|
async function cleanOutputPath2(options) {
|
|
@@ -1815,8 +1811,8 @@ async function cleanOutputPath2(options) {
|
|
|
1815
1811
|
}
|
|
1816
1812
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
|
|
1817
1813
|
async function build4(options) {
|
|
1818
|
-
|
|
1819
|
-
const stopwatch =
|
|
1814
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1815
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1820
1816
|
try {
|
|
1821
1817
|
const opts = Array.isArray(options) ? options : [
|
|
1822
1818
|
options
|
|
@@ -1834,11 +1830,11 @@ async function build4(options) {
|
|
|
1834
1830
|
await reportResults2(opt);
|
|
1835
1831
|
}));
|
|
1836
1832
|
} else {
|
|
1837
|
-
|
|
1833
|
+
_chunkS3PQ6E47js.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
1838
1834
|
}
|
|
1839
|
-
|
|
1835
|
+
_chunkS3PQ6E47js.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1840
1836
|
} catch (error) {
|
|
1841
|
-
|
|
1837
|
+
_chunkS3PQ6E47js.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
1842
1838
|
throw error;
|
|
1843
1839
|
} finally {
|
|
1844
1840
|
stopwatch();
|
|
@@ -1848,15 +1844,15 @@ _chunk3GQAWCBQjs.__name.call(void 0, build4, "build");
|
|
|
1848
1844
|
|
|
1849
1845
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1850
1846
|
async function tsdownExecutorFn(options, context2, config) {
|
|
1851
|
-
|
|
1852
|
-
if (!_optionalChain([context2, 'access',
|
|
1847
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
1848
|
+
if (!_optionalChain([context2, 'access', _68 => _68.projectsConfigurations, 'optionalAccess', _69 => _69.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _70 => _70.projectsConfigurations, 'access', _71 => _71.projects, 'access', _72 => _72[context2.projectName], 'optionalAccess', _73 => _73.root])) {
|
|
1853
1849
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1854
1850
|
}
|
|
1855
1851
|
await build4({
|
|
1856
1852
|
...options,
|
|
1857
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1853
|
+
projectRoot: _optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'optionalAccess', _76 => _76[context2.projectName], 'access', _77 => _77.root]),
|
|
1858
1854
|
projectName: context2.projectName,
|
|
1859
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1855
|
+
sourceRoot: _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'optionalAccess', _80 => _80[context2.projectName], 'optionalAccess', _81 => _81.sourceRoot]),
|
|
1860
1856
|
format: options.format,
|
|
1861
1857
|
platform: options.platform
|
|
1862
1858
|
});
|
|
@@ -1865,7 +1861,7 @@ async function tsdownExecutorFn(options, context2, config) {
|
|
|
1865
1861
|
};
|
|
1866
1862
|
}
|
|
1867
1863
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
1868
|
-
var executor_default8 =
|
|
1864
|
+
var executor_default8 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
1869
1865
|
skipReadingConfig: false,
|
|
1870
1866
|
hooks: {
|
|
1871
1867
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1884,11 +1880,11 @@ var _fsextra = require('fs-extra');
|
|
|
1884
1880
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1885
1881
|
async function typiaExecutorFn(options, _, config) {
|
|
1886
1882
|
if (options.clean !== false) {
|
|
1887
|
-
|
|
1883
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1888
1884
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1889
1885
|
}
|
|
1890
1886
|
await Promise.all(options.entry.map((entry) => {
|
|
1891
|
-
|
|
1887
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1892
1888
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1893
1889
|
input: entry,
|
|
1894
1890
|
output: options.outputPath,
|
|
@@ -1900,7 +1896,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1900
1896
|
};
|
|
1901
1897
|
}
|
|
1902
1898
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
1903
|
-
var executor_default9 =
|
|
1899
|
+
var executor_default9 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
1904
1900
|
skipReadingConfig: false,
|
|
1905
1901
|
hooks: {
|
|
1906
1902
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1919,20 +1915,20 @@ var executor_default9 = _chunkYX6ZIWFAjs.withRunExecutor.call(void 0, "Typia run
|
|
|
1919
1915
|
|
|
1920
1916
|
var _jiti = require('jiti');
|
|
1921
1917
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1922
|
-
|
|
1923
|
-
if (!_optionalChain([context2, 'access',
|
|
1918
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1919
|
+
if (!_optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'optionalAccess', _83 => _83.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _84 => _84.projectsConfigurations, 'access', _85 => _85.projects, 'access', _86 => _86[context2.projectName], 'optionalAccess', _87 => _87.root])) {
|
|
1924
1920
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1925
1921
|
}
|
|
1926
1922
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1927
|
-
fsCache: config.skipCache ? false :
|
|
1923
|
+
fsCache: config.skipCache ? false : _chunkS3PQ6E47js.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
1928
1924
|
interopDefault: true
|
|
1929
1925
|
});
|
|
1930
1926
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
1931
1927
|
await stormUnbuild.build(_defu.defu.call(void 0, {
|
|
1932
1928
|
...options,
|
|
1933
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1929
|
+
projectRoot: _optionalChain([context2, 'access', _88 => _88.projectsConfigurations, 'access', _89 => _89.projects, 'optionalAccess', _90 => _90[context2.projectName], 'access', _91 => _91.root]),
|
|
1934
1930
|
projectName: context2.projectName,
|
|
1935
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1931
|
+
sourceRoot: _optionalChain([context2, 'access', _92 => _92.projectsConfigurations, 'access', _93 => _93.projects, 'optionalAccess', _94 => _94[context2.projectName], 'optionalAccess', _95 => _95.sourceRoot]),
|
|
1936
1932
|
platform: options.platform,
|
|
1937
1933
|
name: context2.projectName
|
|
1938
1934
|
}, {
|
|
@@ -1967,10 +1963,13 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1967
1963
|
};
|
|
1968
1964
|
}
|
|
1969
1965
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
1970
|
-
var executor_default10 =
|
|
1966
|
+
var executor_default10 = _chunkS3PQ6E47js.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
1971
1967
|
skipReadingConfig: false,
|
|
1972
1968
|
hooks: {
|
|
1973
1969
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
1970
|
+
options.debug ??= false;
|
|
1971
|
+
options.treeShaking ??= true;
|
|
1972
|
+
options.platform ??= "neutral";
|
|
1974
1973
|
options.entry ??= [
|
|
1975
1974
|
"{sourceRoot}"
|
|
1976
1975
|
];
|
|
@@ -1988,58 +1987,58 @@ var executor_default10 = _chunkYX6ZIWFAjs.withRunExecutor.call(void 0, "TypeScri
|
|
|
1988
1987
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
1989
1988
|
skipReadingConfig: false
|
|
1990
1989
|
}) => async (tree, _options) => {
|
|
1991
|
-
const stopwatch =
|
|
1990
|
+
const stopwatch = _chunkS3PQ6E47js.getStopwatch.call(void 0, name);
|
|
1992
1991
|
let options = _options;
|
|
1993
1992
|
let config;
|
|
1994
1993
|
try {
|
|
1995
|
-
|
|
1994
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1996
1995
|
|
|
1997
1996
|
`, config);
|
|
1998
|
-
const workspaceRoot3 =
|
|
1997
|
+
const workspaceRoot3 = _chunkS3PQ6E47js.findWorkspaceRoot.call(void 0, );
|
|
1999
1998
|
if (!generatorOptions.skipReadingConfig) {
|
|
2000
|
-
|
|
1999
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
2001
2000
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
2002
|
-
config = await
|
|
2001
|
+
config = await _chunkS3PQ6E47js.loadStormConfig.call(void 0, workspaceRoot3);
|
|
2003
2002
|
}
|
|
2004
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2005
|
-
|
|
2003
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _96 => _96.hooks, 'optionalAccess', _97 => _97.applyDefaultOptions])) {
|
|
2004
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
2006
2005
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
2007
|
-
|
|
2006
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
2008
2007
|
}
|
|
2009
|
-
|
|
2008
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
2010
2009
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
2011
|
-
const tokenized = await
|
|
2010
|
+
const tokenized = await _chunkS3PQ6E47js.applyWorkspaceTokens.call(void 0, options, {
|
|
2012
2011
|
workspaceRoot: tree.root,
|
|
2013
2012
|
config
|
|
2014
|
-
},
|
|
2015
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2016
|
-
|
|
2013
|
+
}, _chunkS3PQ6E47js.applyWorkspaceBaseTokens);
|
|
2014
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.preProcess])) {
|
|
2015
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
2017
2016
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
2018
|
-
|
|
2017
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
2019
2018
|
}
|
|
2020
2019
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
2021
2020
|
if (result) {
|
|
2022
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
2021
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _100 => _100.error, 'optionalAccess', _101 => _101.message]) && typeof _optionalChain([result, 'optionalAccess', _102 => _102.error, 'optionalAccess', _103 => _103.message]) === "string" && _optionalChain([result, 'optionalAccess', _104 => _104.error, 'optionalAccess', _105 => _105.name]) && typeof _optionalChain([result, 'optionalAccess', _106 => _106.error, 'optionalAccess', _107 => _107.name]) === "string") {
|
|
2023
2022
|
throw new Error(`The ${name} generator failed to run`, {
|
|
2024
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
2023
|
+
cause: _optionalChain([result, 'optionalAccess', _108 => _108.error])
|
|
2025
2024
|
});
|
|
2026
2025
|
} else if (result.success && result.data) {
|
|
2027
2026
|
return result;
|
|
2028
2027
|
}
|
|
2029
2028
|
}
|
|
2030
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2031
|
-
|
|
2029
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _109 => _109.hooks, 'optionalAccess', _110 => _110.postProcess])) {
|
|
2030
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
2032
2031
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
2033
|
-
|
|
2032
|
+
_chunkS3PQ6E47js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
2034
2033
|
}
|
|
2035
2034
|
return () => {
|
|
2036
|
-
|
|
2035
|
+
_chunkS3PQ6E47js.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
2037
2036
|
`, config);
|
|
2038
2037
|
};
|
|
2039
2038
|
} catch (error) {
|
|
2040
2039
|
return () => {
|
|
2041
|
-
|
|
2042
|
-
|
|
2040
|
+
_chunkS3PQ6E47js.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
2041
|
+
_chunkS3PQ6E47js.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
2043
2042
|
- Details: ${error.message}
|
|
2044
2043
|
- Stacktrace: ${error.stack}`, config);
|
|
2045
2044
|
};
|
|
@@ -2141,7 +2140,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2141
2140
|
const projectConfig = {
|
|
2142
2141
|
root: options.directory,
|
|
2143
2142
|
projectType: "library",
|
|
2144
|
-
sourceRoot:
|
|
2143
|
+
sourceRoot: _chunkS3PQ6E47js.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
|
|
2145
2144
|
targets: {
|
|
2146
2145
|
build: {
|
|
2147
2146
|
executor: schema.buildExecutor,
|
|
@@ -2150,11 +2149,11 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2150
2149
|
],
|
|
2151
2150
|
options: {
|
|
2152
2151
|
entry: [
|
|
2153
|
-
|
|
2152
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
|
|
2154
2153
|
],
|
|
2155
2154
|
outputPath: getOutputPath(options),
|
|
2156
|
-
tsconfig:
|
|
2157
|
-
project:
|
|
2155
|
+
tsconfig: _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
2156
|
+
project: _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
2158
2157
|
defaultConfiguration: "production",
|
|
2159
2158
|
platform: "neutral",
|
|
2160
2159
|
assets: [
|
|
@@ -2193,22 +2192,22 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2193
2192
|
_devkit.addProjectConfiguration.call(void 0, tree, options.name, projectConfig);
|
|
2194
2193
|
let repository = {
|
|
2195
2194
|
type: "github",
|
|
2196
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
2195
|
+
url: _optionalChain([config, 'optionalAccess', _111 => _111.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _112 => _112.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _113 => _113.namespace]) || _optionalChain([config, 'optionalAccess', _114 => _114.name]) || "repository"}.git`
|
|
2197
2196
|
};
|
|
2198
2197
|
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2199
2198
|
if (tree.exists("package.json")) {
|
|
2200
2199
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2201
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2200
|
+
if (_optionalChain([packageJson, 'optionalAccess', _115 => _115.repository])) {
|
|
2202
2201
|
repository = packageJson.repository;
|
|
2203
2202
|
}
|
|
2204
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2203
|
+
if (_optionalChain([packageJson, 'optionalAccess', _116 => _116.description])) {
|
|
2205
2204
|
description = packageJson.description;
|
|
2206
2205
|
}
|
|
2207
2206
|
}
|
|
2208
2207
|
if (!options.importPath) {
|
|
2209
2208
|
options.importPath = options.name;
|
|
2210
2209
|
}
|
|
2211
|
-
const packageJsonPath =
|
|
2210
|
+
const packageJsonPath = _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "package.json");
|
|
2212
2211
|
if (tree.exists(packageJsonPath)) {
|
|
2213
2212
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
2214
2213
|
if (!options.importPath) {
|
|
@@ -2256,30 +2255,30 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2256
2255
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
2257
2256
|
...json,
|
|
2258
2257
|
pnpm: {
|
|
2259
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2258
|
+
..._optionalChain([json, 'optionalAccess', _117 => _117.pnpm]),
|
|
2260
2259
|
overrides: {
|
|
2261
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2260
|
+
..._optionalChain([json, 'optionalAccess', _118 => _118.pnpm, 'optionalAccess', _119 => _119.overrides]),
|
|
2262
2261
|
[_nullishCoalesce(options.importPath, () => ( ""))]: "workspace:*"
|
|
2263
2262
|
}
|
|
2264
2263
|
}
|
|
2265
2264
|
}));
|
|
2266
2265
|
}
|
|
2267
2266
|
_js.addTsConfigPath.call(void 0, tree, options.importPath, [
|
|
2268
|
-
|
|
2267
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
|
|
2269
2268
|
]);
|
|
2270
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2271
|
-
|
|
2269
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkS3PQ6E47js.joinPaths.call(void 0, options.importPath, "/*"), [
|
|
2270
|
+
_chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
|
|
2272
2271
|
]);
|
|
2273
2272
|
if (tree.exists("package.json")) {
|
|
2274
2273
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2275
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2274
|
+
if (_optionalChain([packageJson, 'optionalAccess', _120 => _120.repository])) {
|
|
2276
2275
|
repository = packageJson.repository;
|
|
2277
2276
|
}
|
|
2278
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2277
|
+
if (_optionalChain([packageJson, 'optionalAccess', _121 => _121.description])) {
|
|
2279
2278
|
description = packageJson.description;
|
|
2280
2279
|
}
|
|
2281
2280
|
}
|
|
2282
|
-
const tsconfigPath =
|
|
2281
|
+
const tsconfigPath = _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
|
|
2283
2282
|
if (tree.exists(tsconfigPath)) {
|
|
2284
2283
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2285
2284
|
json.composite ??= true;
|
|
@@ -2317,36 +2316,36 @@ function getOutputPath(options) {
|
|
|
2317
2316
|
} else {
|
|
2318
2317
|
parts.push(options.projectRoot);
|
|
2319
2318
|
}
|
|
2320
|
-
return
|
|
2319
|
+
return _chunkS3PQ6E47js.joinPaths.call(void 0, ...parts);
|
|
2321
2320
|
}
|
|
2322
2321
|
_chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2323
2322
|
function createProjectTsConfigJson(tree, options) {
|
|
2324
2323
|
const tsconfig = {
|
|
2325
2324
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2326
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2325
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _122 => _122.tsconfigOptions]), () => ( {})),
|
|
2327
2326
|
compilerOptions: {
|
|
2328
2327
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2329
|
-
outDir:
|
|
2328
|
+
outDir: _chunkS3PQ6E47js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2330
2329
|
noEmit: true,
|
|
2331
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2330
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _123 => _123.tsconfigOptions, 'optionalAccess', _124 => _124.compilerOptions]), () => ( {}))
|
|
2332
2331
|
},
|
|
2333
2332
|
files: [
|
|
2334
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2333
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions, 'optionalAccess', _126 => _126.files]), () => ( []))
|
|
2335
2334
|
],
|
|
2336
2335
|
include: [
|
|
2337
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2336
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _127 => _127.tsconfigOptions, 'optionalAccess', _128 => _128.include]), () => ( [])),
|
|
2338
2337
|
"src/**/*.ts",
|
|
2339
2338
|
"src/**/*.js",
|
|
2340
2339
|
"bin/**/*"
|
|
2341
2340
|
],
|
|
2342
2341
|
exclude: [
|
|
2343
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2342
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.tsconfigOptions, 'optionalAccess', _130 => _130.exclude]), () => ( [])),
|
|
2344
2343
|
"jest.config.ts",
|
|
2345
2344
|
"src/**/*.spec.ts",
|
|
2346
2345
|
"src/**/*.test.ts"
|
|
2347
2346
|
]
|
|
2348
2347
|
};
|
|
2349
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2348
|
+
_devkit.writeJson.call(void 0, tree, _chunkS3PQ6E47js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2350
2349
|
}
|
|
2351
2350
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2352
2351
|
async function normalizeOptions(tree, options) {
|
|
@@ -2472,19 +2471,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
2472
2471
|
|
|
2473
2472
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
2474
2473
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
2474
|
+
_chunkS3PQ6E47js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
2475
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
2476
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkS3PQ6E47js.StormConfigSchema, {
|
|
2478
2477
|
name: "StormWorkspaceConfiguration"
|
|
2479
2478
|
});
|
|
2480
|
-
|
|
2481
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2482
|
-
|
|
2479
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, jsonSchema, config);
|
|
2480
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _131 => _131.workspaceRoot]), () => ( _chunkS3PQ6E47js.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _132 => _132.outputFile, 'optionalAccess', _133 => _133.startsWith, 'call', _134 => _134("./")]) ? "" : "./");
|
|
2481
|
+
_chunkS3PQ6E47js.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2483
2482
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2484
2483
|
spaces: 2
|
|
2485
2484
|
});
|
|
2486
2485
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2487
|
-
|
|
2486
|
+
_chunkS3PQ6E47js.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
2488
2487
|
return {
|
|
2489
2488
|
success: true
|
|
2490
2489
|
};
|
|
@@ -3025,32 +3024,28 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
3025
3024
|
title: "Bundle",
|
|
3026
3025
|
type: "boolean",
|
|
3027
3026
|
description: "Bundle the output"
|
|
3028
|
-
}
|
|
3029
|
-
$default: false
|
|
3027
|
+
}
|
|
3030
3028
|
},
|
|
3031
3029
|
minify: {
|
|
3032
3030
|
$schema: {
|
|
3033
3031
|
title: "Minify",
|
|
3034
3032
|
type: "boolean",
|
|
3035
3033
|
description: "Minify the output"
|
|
3036
|
-
}
|
|
3037
|
-
$default: false
|
|
3034
|
+
}
|
|
3038
3035
|
},
|
|
3039
3036
|
debug: {
|
|
3040
3037
|
$schema: {
|
|
3041
3038
|
title: "Debug",
|
|
3042
3039
|
type: "boolean",
|
|
3043
3040
|
description: "Debug the output"
|
|
3044
|
-
}
|
|
3045
|
-
$default: false
|
|
3041
|
+
}
|
|
3046
3042
|
},
|
|
3047
3043
|
sourcemap: {
|
|
3048
3044
|
$schema: {
|
|
3049
3045
|
title: "Sourcemap",
|
|
3050
3046
|
type: "boolean",
|
|
3051
3047
|
description: "Generate a sourcemap"
|
|
3052
|
-
}
|
|
3053
|
-
$default: false
|
|
3048
|
+
}
|
|
3054
3049
|
},
|
|
3055
3050
|
silent: {
|
|
3056
3051
|
$schema: {
|