@storm-software/workspace-tools 1.247.4 → 1.247.6
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 +16 -0
- package/README.md +1 -1
- package/dist/{chunk-QFCNCC63.js → chunk-3OROMSFD.js} +2 -2
- package/dist/{chunk-DZ2NJWF5.js → chunk-76D4P6YQ.js} +31 -31
- package/dist/{chunk-YHV3GYYF.mjs → chunk-7DDXDUF3.mjs} +1 -1
- package/dist/{chunk-B45G6F7W.js → chunk-BJK4LIZW.js} +20 -20
- package/dist/{chunk-UJI6V343.mjs → chunk-C773DCF3.mjs} +3 -3
- package/dist/{chunk-OAK6MWRR.js → chunk-CJDYI6SP.js} +2 -2
- package/dist/{chunk-WF6C7DN5.mjs → chunk-FZ7XOB5X.mjs} +1 -1
- package/dist/{chunk-2LIE7SJ3.mjs → chunk-G3UMUILK.mjs} +1 -1
- package/dist/{chunk-LBXVOPGN.js → chunk-GDHD4LIX.js} +4 -4
- package/dist/{chunk-OPCR4RQ6.mjs → chunk-GDLIB6OQ.mjs} +2 -2
- package/dist/{chunk-VAJQZGLE.js → chunk-HGLKHBCY.js} +2 -2
- package/dist/{chunk-Q4MSBQL2.mjs → chunk-HIJLTEQJ.mjs} +1 -1
- package/dist/{chunk-EPZT247P.mjs → chunk-HLIO3W3D.mjs} +1 -1
- package/dist/{chunk-PQQYCAXU.js → chunk-HYTPWYZI.js} +2 -2
- package/dist/{chunk-DVR7HEPK.js → chunk-IDQTSO3Z.js} +6 -6
- package/dist/{chunk-PVOXD4Y5.mjs → chunk-IKU6KFBV.mjs} +2 -2
- package/dist/{chunk-MOPEW5LB.js → chunk-JQSRI7HM.js} +2 -2
- package/dist/{chunk-VBYEJNI3.js → chunk-K2JR6RSF.js} +11 -11
- package/dist/{chunk-YK676R5F.mjs → chunk-KCTEA3CC.mjs} +2 -2
- package/dist/{chunk-LTVP4D6L.mjs → chunk-KF7N7257.mjs} +1 -1
- package/dist/{chunk-6CEFGRYS.js → chunk-KHNJH7JQ.js} +2 -2
- package/dist/{chunk-CQQYEOYM.mjs → chunk-KO35WWRE.mjs} +1 -1
- package/dist/{chunk-WKADE4GR.js → chunk-L7CTAQFR.js} +41 -41
- package/dist/{chunk-R6RTCWUK.mjs → chunk-LV7XJZRR.mjs} +1 -1
- package/dist/{chunk-DCCYPAYI.mjs → chunk-MNDO5WKT.mjs} +3 -3
- package/dist/{chunk-4AJFP7HM.js → chunk-NIO6FDIN.js} +15 -15
- package/dist/{chunk-B5YTVDRU.js → chunk-NNGBY52Z.js} +2 -2
- package/dist/{chunk-5CXC7ITO.js → chunk-OMDJO7Q6.js} +9 -9
- package/dist/{chunk-FK4EENJP.js → chunk-Q3VF5VUQ.js} +5 -5
- package/dist/{chunk-ASEIWESJ.mjs → chunk-QOUVCULF.mjs} +1 -1
- package/dist/{chunk-3IY2B44Z.mjs → chunk-QYC3WESC.mjs} +1 -1
- package/dist/{chunk-E52NPVHL.mjs → chunk-SI24L44V.mjs} +1 -1
- package/dist/{chunk-AHTDYOCZ.mjs → chunk-TKBY73FG.mjs} +8 -9
- package/dist/{chunk-H7GRZIKQ.mjs → chunk-V6H25SQW.mjs} +1 -1
- package/dist/{chunk-QCJPOJJX.js → chunk-VFASKAEJ.js} +5 -5
- package/dist/{chunk-B35FE6QC.mjs → chunk-WC2TNJLN.mjs} +2 -2
- package/dist/{chunk-INPRKZFL.mjs → chunk-WSYDQJ6Y.mjs} +1 -1
- package/dist/{chunk-S7P6NIFH.js → chunk-XI7X3WOB.js} +2 -2
- package/dist/{chunk-BRWRLQDC.js → chunk-YYGYJ6RD.js} +8 -9
- package/dist/{chunk-VBROJHZZ.js → chunk-ZDHYVC5E.js} +2 -2
- package/dist/executors.js +14 -14
- package/dist/executors.mjs +16 -16
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.js +21 -21
- package/dist/index.mjs +23 -23
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkYYGYJ6RDjs = require('./chunk-YYGYJ6RD.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
248
248
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
249
249
|
var _semver3 = require('semver');
|
|
250
250
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
251
|
-
|
|
251
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
256
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
257
|
-
|
|
257
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
260
|
-
|
|
259
|
+
config = await _chunkYYGYJ6RDjs.getConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunkYYGYJ6RDjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|
|
263
263
|
if (options.specifier) {
|
|
@@ -307,9 +307,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
307
307
|
}
|
|
308
308
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
309
309
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
310
|
-
|
|
310
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
311
311
|
}, "log");
|
|
312
|
-
|
|
312
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
313
313
|
let packageName;
|
|
314
314
|
let currentVersionFromDisk;
|
|
315
315
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
await _devkit.formatFiles.call(void 0, tree);
|
|
586
|
-
|
|
586
|
+
_chunkYYGYJ6RDjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
587
587
|
`, config);
|
|
588
588
|
return {
|
|
589
589
|
data: versionData,
|
|
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
617
617
|
}, "callback")
|
|
618
618
|
};
|
|
619
619
|
} catch (error) {
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
_chunkYYGYJ6RDjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
621
|
+
_chunkYYGYJ6RDjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
622
622
|
- Details: ${error.message}
|
|
623
623
|
- Stacktrace: ${error.stack}`, config);
|
|
624
624
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V6H25SQW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
StormConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TKBY73FG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-C5YDISDP.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBJK4LIZWjs = require('./chunk-BJK4LIZW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkBJK4LIZWjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkIDQTSO3Zjs = require('./chunk-IDQTSO3Z.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBJK4LIZWjs = require('./chunk-BJK4LIZW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ var _chunkB45G6F7Wjs = require('./chunk-B45G6F7W.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkYYGYJ6RDjs = require('./chunk-YYGYJ6RD.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -331,7 +331,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
331
331
|
setup(build4) {
|
|
332
332
|
build4.onEnd((result) => {
|
|
333
333
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
334
|
-
|
|
334
|
+
_chunkYYGYJ6RDjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
335
335
|
${result.errors.map((error) => error.text).join("\n")}
|
|
336
336
|
|
|
337
337
|
`, resolvedOptions.config);
|
|
@@ -440,7 +440,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
440
440
|
localBuild: true
|
|
441
441
|
});
|
|
442
442
|
if (extractorResult.succeeded === false) {
|
|
443
|
-
|
|
443
|
+
_chunkYYGYJ6RDjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
444
444
|
throw new Error("API Extractor completed with errors");
|
|
445
445
|
}
|
|
446
446
|
}
|
|
@@ -489,7 +489,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDepen
|
|
|
489
489
|
|
|
490
490
|
// ../esbuild/src/config.ts
|
|
491
491
|
var getOutputExtensionMap = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, pkgType) => {
|
|
492
|
-
return options.outExtension ? options.outExtension(options.format, pkgType) :
|
|
492
|
+
return options.outExtension ? options.outExtension(options.format, pkgType) : _chunkIDQTSO3Zjs.getOutExtension.call(void 0, options.format, pkgType);
|
|
493
493
|
}, "getOutputExtensionMap");
|
|
494
494
|
var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
495
495
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
@@ -537,7 +537,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
537
537
|
".woff": "file",
|
|
538
538
|
".woff2": "file"
|
|
539
539
|
},
|
|
540
|
-
banner:
|
|
540
|
+
banner: _chunkIDQTSO3Zjs.DEFAULT_COMPILED_BANNER
|
|
541
541
|
};
|
|
542
542
|
|
|
543
543
|
// ../esbuild/src/plugins/deps-check.ts
|
|
@@ -619,8 +619,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
619
619
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
620
620
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
621
621
|
});
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
_chunkYYGYJ6RDjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
623
|
+
_chunkYYGYJ6RDjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
624
624
|
if (filteredMissingDeps.length > 0) {
|
|
625
625
|
throw new Error(`Missing dependencies detected - please install them:
|
|
626
626
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -714,9 +714,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
714
714
|
if (!workspaceRoot) {
|
|
715
715
|
throw new Error("Cannot find Nx workspace root");
|
|
716
716
|
}
|
|
717
|
-
const config = await
|
|
718
|
-
|
|
719
|
-
const stopwatch =
|
|
717
|
+
const config = await _chunkYYGYJ6RDjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
718
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
719
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, "Build options resolution");
|
|
720
720
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
721
721
|
exitOnError: true
|
|
722
722
|
});
|
|
@@ -733,7 +733,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
733
733
|
}
|
|
734
734
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
735
735
|
options.name ??= `${projectName}-${options.format}`;
|
|
736
|
-
options.target ??=
|
|
736
|
+
options.target ??= _chunkIDQTSO3Zjs.DEFAULT_TARGET;
|
|
737
737
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
738
738
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
739
739
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -741,7 +741,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
741
741
|
const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
|
|
742
742
|
const packageJson = JSON.parse(packageJsonFile);
|
|
743
743
|
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
744
|
-
const env =
|
|
744
|
+
const env = _chunkIDQTSO3Zjs.getEnv.call(void 0, "esbuild", options);
|
|
745
745
|
const result = {
|
|
746
746
|
...options,
|
|
747
747
|
config,
|
|
@@ -761,7 +761,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
761
761
|
...userOptions,
|
|
762
762
|
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
763
763
|
format: options.format || "cjs",
|
|
764
|
-
entryPoints: await
|
|
764
|
+
entryPoints: await _chunkIDQTSO3Zjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
765
765
|
"./src/index.ts"
|
|
766
766
|
], userOptions.emitOnAll),
|
|
767
767
|
outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -772,7 +772,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
772
772
|
projectGraph,
|
|
773
773
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
774
774
|
minify: userOptions.minify || !userOptions.debug,
|
|
775
|
-
verbose: userOptions.verbose ||
|
|
775
|
+
verbose: userOptions.verbose || _chunkYYGYJ6RDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
776
776
|
includeSrc: userOptions.includeSrc === true,
|
|
777
777
|
metafile: userOptions.metafile !== false,
|
|
778
778
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -786,8 +786,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
786
786
|
outExtension,
|
|
787
787
|
footer: userOptions.footer,
|
|
788
788
|
banner: {
|
|
789
|
-
js: options.banner ||
|
|
790
|
-
css: options.banner ||
|
|
789
|
+
js: options.banner || _chunkIDQTSO3Zjs.DEFAULT_COMPILED_BANNER,
|
|
790
|
+
css: options.banner || _chunkIDQTSO3Zjs.DEFAULT_COMPILED_BANNER
|
|
791
791
|
},
|
|
792
792
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
793
793
|
treeShaking: options.format === "esm",
|
|
@@ -819,8 +819,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
819
819
|
}, "resolveOptions");
|
|
820
820
|
async function generatePackageJson(context2) {
|
|
821
821
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
822
|
-
|
|
823
|
-
const stopwatch =
|
|
822
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
823
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, "Write package.json file");
|
|
824
824
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
825
825
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
826
826
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -830,11 +830,11 @@ async function generatePackageJson(context2) {
|
|
|
830
830
|
if (!packageJson) {
|
|
831
831
|
throw new Error("Cannot find package.json configuration file");
|
|
832
832
|
}
|
|
833
|
-
packageJson = await
|
|
834
|
-
packageJson = await
|
|
833
|
+
packageJson = await _chunkIDQTSO3Zjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
834
|
+
packageJson = await _chunkIDQTSO3Zjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
835
835
|
packageJson.exports ??= {};
|
|
836
836
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
837
|
-
packageJson.exports["."] ??=
|
|
837
|
+
packageJson.exports["."] ??= _chunkIDQTSO3Zjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
838
838
|
let entryPoints = [
|
|
839
839
|
{
|
|
840
840
|
in: "./src/index.ts",
|
|
@@ -852,7 +852,7 @@ async function generatePackageJson(context2) {
|
|
|
852
852
|
const split = entryPoint.out.split(".");
|
|
853
853
|
split.pop();
|
|
854
854
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
855
|
-
packageJson.exports[`./${entry}`] ??=
|
|
855
|
+
packageJson.exports[`./${entry}`] ??= _chunkIDQTSO3Zjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -890,8 +890,8 @@ async function generateContext(getOptions) {
|
|
|
890
890
|
}
|
|
891
891
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
892
892
|
async function executeEsBuild(context2) {
|
|
893
|
-
|
|
894
|
-
const stopwatch =
|
|
893
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
894
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
895
895
|
if (process.env.WATCH === "true") {
|
|
896
896
|
const ctx = await esbuild2.context(context2.options);
|
|
897
897
|
watch(ctx, context2.options);
|
|
@@ -907,9 +907,9 @@ async function executeEsBuild(context2) {
|
|
|
907
907
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
908
908
|
async function copyBuildAssets(context2) {
|
|
909
909
|
if (_optionalChain([context2, 'access', _26 => _26.result, 'optionalAccess', _27 => _27.errors, 'access', _28 => _28.length]) === 0) {
|
|
910
|
-
|
|
911
|
-
const stopwatch =
|
|
912
|
-
await
|
|
910
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
911
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
912
|
+
await _chunkIDQTSO3Zjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
913
913
|
stopwatch();
|
|
914
914
|
}
|
|
915
915
|
return context2;
|
|
@@ -918,9 +918,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
918
918
|
async function reportResults(context2) {
|
|
919
919
|
if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
|
|
920
920
|
if (context2.result.warnings.length > 0) {
|
|
921
|
-
|
|
921
|
+
_chunkYYGYJ6RDjs.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);
|
|
922
922
|
}
|
|
923
|
-
|
|
923
|
+
_chunkYYGYJ6RDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -956,8 +956,8 @@ async function dependencyCheck(options) {
|
|
|
956
956
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
957
957
|
async function cleanOutputPath(context2) {
|
|
958
958
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
959
|
-
|
|
960
|
-
const stopwatch =
|
|
959
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
960
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
961
961
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
962
962
|
stopwatch();
|
|
963
963
|
}
|
|
@@ -965,8 +965,8 @@ async function cleanOutputPath(context2) {
|
|
|
965
965
|
}
|
|
966
966
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
967
967
|
async function build3(options) {
|
|
968
|
-
|
|
969
|
-
const stopwatch =
|
|
968
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
969
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
970
970
|
try {
|
|
971
971
|
const opts = Array.isArray(options) ? options : [
|
|
972
972
|
options
|
|
@@ -976,9 +976,9 @@ async function build3(options) {
|
|
|
976
976
|
}
|
|
977
977
|
void transduce.async(opts, dependencyCheck);
|
|
978
978
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
979
|
-
|
|
979
|
+
_chunkYYGYJ6RDjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
980
980
|
} catch (error) {
|
|
981
|
-
|
|
981
|
+
_chunkYYGYJ6RDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
982
982
|
throw error;
|
|
983
983
|
} finally {
|
|
984
984
|
stopwatch();
|
|
@@ -1006,9 +1006,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1006
1006
|
return context2.rebuild();
|
|
1007
1007
|
});
|
|
1008
1008
|
if (rebuildResult instanceof Error) {
|
|
1009
|
-
|
|
1009
|
+
_chunkYYGYJ6RDjs.writeError.call(void 0, rebuildResult.message);
|
|
1010
1010
|
}
|
|
1011
|
-
|
|
1011
|
+
_chunkYYGYJ6RDjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1012
1012
|
}, 10);
|
|
1013
1013
|
changeWatcher.on("change", fastRebuild);
|
|
1014
1014
|
return void 0;
|
|
@@ -1016,7 +1016,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1016
1016
|
|
|
1017
1017
|
// src/executors/esbuild/executor.ts
|
|
1018
1018
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1019
|
-
|
|
1019
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1020
1020
|
if (!_optionalChain([context2, 'access', _32 => _32.projectsConfigurations, 'optionalAccess', _33 => _33.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _34 => _34.projectsConfigurations, 'access', _35 => _35.projects, 'access', _36 => _36[context2.projectName], 'optionalAccess', _37 => _37.root])) {
|
|
1021
1021
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1022
1022
|
}
|
|
@@ -1033,7 +1033,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
1035
1035
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1036
|
-
var executor_default =
|
|
1036
|
+
var executor_default = _chunkBJK4LIZWjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1037
1037
|
skipReadingConfig: false,
|
|
1038
1038
|
hooks: {
|
|
1039
1039
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getEntryPoints,
|
|
9
9
|
getEnv,
|
|
10
10
|
getOutExtension
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-G3UMUILK.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withRunExecutor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KF7N7257.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getConfig,
|
|
17
17
|
getStopwatch,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TKBY73FG.mjs";
|
|
27
27
|
import {
|
|
28
28
|
joinPaths
|
|
29
29
|
} from "./chunk-KZJCDAOU.mjs";
|
|
@@ -11,7 +11,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYYGYJ6RDjs = require('./chunk-YYGYJ6RD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkYYGYJ6RDjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
37
|
-
config = await
|
|
37
|
+
config = await _chunkYYGYJ6RDjs.getConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkYYGYJ6RDjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
45
45
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
46
46
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunkUALZJZUKjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
54
54
|
}
|
|
55
55
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
56
56
|
if (result) {
|
|
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
66
|
-
|
|
66
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkYYGYJ6RDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkYYGYJ6RDjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkYYGYJ6RDjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkYYGYJ6RDjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
78
78
|
- Details: ${error.message}
|
|
79
79
|
- Stacktrace: ${error.stack}`, config);
|
|
80
80
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNIO6FDINjs = require('./chunk-NIO6FDIN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -45,7 +45,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunkNIO6FDINjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
49
49
|
hooks: {
|
|
50
50
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
51
51
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNIO6FDINjs = require('./chunk-NIO6FDIN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkYYGYJ6RDjs = require('./chunk-YYGYJ6RD.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkYYGYJ6RDjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkYYGYJ6RDjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkYYGYJ6RDjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunkYYGYJ6RDjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkYYGYJ6RDjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkNIO6FDINjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBJK4LIZWjs = require('./chunk-BJK4LIZW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYYGYJ6RDjs = require('./chunk-YYGYJ6RD.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkYYGYJ6RDjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkBJK4LIZWjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|