@storm-software/workspace-tools 1.231.0 → 1.233.0
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 +40 -0
- package/README.md +1 -1
- package/dist/{chunk-DIPIPI7H.js → chunk-2AQPTJLC.js} +2 -2
- package/dist/{chunk-S7QZCTBR.js → chunk-4EO5ZWLS.js} +31 -31
- package/dist/{chunk-BXRWY5YI.mjs → chunk-5FCVQVIS.mjs} +3 -3
- package/dist/{chunk-PS2NPPRM.mjs → chunk-5FEFILUQ.mjs} +1 -1
- package/dist/{chunk-JXN5JXWD.mjs → chunk-5KPWW65X.mjs} +3 -3
- package/dist/{chunk-CXLDWFA3.js → chunk-5Q3LI7CF.js} +15 -15
- package/dist/{chunk-63CXRJMW.mjs → chunk-A4DWQQ6J.mjs} +1 -1
- package/dist/{chunk-22DNWOG2.js → chunk-AX4OFOSN.js} +7 -7
- package/dist/{chunk-LDCPNOWX.js → chunk-CDOWHRVE.js} +19 -19
- package/dist/{chunk-KNXGOGL5.mjs → chunk-DM2FMT3G.mjs} +2 -2
- package/dist/{chunk-3QS2VXIW.mjs → chunk-DNUDJEZX.mjs} +2 -2
- package/dist/{chunk-X7YSSPPZ.js → chunk-EECNVIFZ.js} +5 -5
- package/dist/{chunk-FAD3MJIO.mjs → chunk-FDI6QWNH.mjs} +1 -1
- package/dist/{chunk-I56CGXM6.js → chunk-FHRBHQ5D.js} +3 -3
- package/dist/{chunk-X7G7IR2C.mjs → chunk-FZ3N3UJ5.mjs} +3 -3
- package/dist/{chunk-IX2EZD3F.js → chunk-GRBZKMJI.js} +2 -2
- package/dist/{chunk-UENELRBB.mjs → chunk-GVBCN2FA.mjs} +4 -4
- package/dist/{chunk-4KC6BQY6.js → chunk-HIBDVUQ5.js} +3 -3
- package/dist/{chunk-LXPMDNMJ.js → chunk-JHP7QOI4.js} +51 -32
- package/dist/{chunk-6G34PMHG.js → chunk-L2KYX6WC.js} +3 -3
- package/dist/{chunk-AX2GAIC6.js → chunk-LEHZZU32.js} +3 -3
- package/dist/{chunk-LPWSHG6O.js → chunk-MA2QNKZ7.js} +2 -2
- package/dist/{chunk-45GU4HW2.js → chunk-MZ6IF3DO.js} +2 -2
- package/dist/{chunk-TAJBCIVO.mjs → chunk-NHSJQ3KY.mjs} +3 -3
- package/dist/{chunk-GFOMWTSR.mjs → chunk-OCXXIUSC.mjs} +1 -1
- package/dist/{chunk-PE2DD2SV.mjs → chunk-OE5KYONM.mjs} +1 -1
- package/dist/{chunk-E4RAOLUW.mjs → chunk-OFSUFHFM.mjs} +2 -2
- package/dist/{chunk-EI3PUSCC.js → chunk-OJV4NKCZ.js} +9 -9
- package/dist/{chunk-DDDV5CIY.js → chunk-QA6M5DEJ.js} +3 -3
- package/dist/{chunk-357OS575.mjs → chunk-QCAF5WDF.mjs} +2 -2
- package/dist/{chunk-S73VA7HH.mjs → chunk-QTW54PBD.mjs} +3 -3
- package/dist/{chunk-DLQLZTCZ.mjs → chunk-RXH7O5YP.mjs} +19 -1
- package/dist/{chunk-KKDGYFKY.mjs → chunk-SQHYP2JD.mjs} +3 -3
- package/dist/{chunk-VHTLAFRU.mjs → chunk-SZJOJ773.mjs} +3 -3
- package/dist/{chunk-IQU4KSXC.js → chunk-T2CG5RNT.js} +3 -3
- package/dist/{chunk-6S33LGZA.mjs → chunk-T5XCHBCB.mjs} +3 -3
- package/dist/{chunk-YMGOLNMM.mjs → chunk-TSTK2BD6.mjs} +25 -6
- package/dist/{chunk-NZMTUJGQ.mjs → chunk-UA7PFIEF.mjs} +3 -3
- package/dist/{chunk-TRTFGC6N.js → chunk-UPMKBKEN.js} +3 -3
- package/dist/{chunk-EDHSW6KA.js → chunk-VOPIMPWA.js} +12 -12
- package/dist/{chunk-UK7LZSMG.mjs → chunk-WKYE64AL.mjs} +7 -7
- package/dist/{chunk-INAG73GE.js → chunk-WPMFZECR.js} +19 -1
- package/dist/{chunk-AEHR536C.js → chunk-ZMA37UYA.js} +41 -41
- package/dist/{chunk-Y2IMY233.js → chunk-ZYC7FHCD.js} +5 -5
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +20 -20
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +13 -13
- package/dist/index.js +49 -49
- package/dist/index.mjs +66 -66
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +12 -12
- package/dist/src/base/index.mjs +14 -14
- package/dist/src/executors/cargo-build/executor.js +6 -6
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/executor.js +6 -6
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/executor.js +6 -6
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/executor.js +6 -6
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/executor.js +6 -6
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/npm-publish/executor.js +3 -3
- package/dist/src/executors/npm-publish/executor.mjs +2 -2
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +6 -6
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- 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/dist/src/plugins/rust/cargo-toml.js +3 -3
- package/dist/src/plugins/rust/cargo-toml.mjs +2 -2
- package/dist/src/plugins/rust/index.js +3 -3
- package/dist/src/plugins/rust/index.mjs +2 -2
- package/dist/src/utils/index.js +9 -9
- package/dist/src/utils/index.mjs +19 -19
- package/dist/src/utils/pnpm-deps-update.js +2 -2
- package/dist/src/utils/pnpm-deps-update.mjs +1 -1
- package/package.json +227 -1
- package/dist/{chunk-Z322IWWR.mjs → chunk-GZPCM2GI.mjs} +4 -4
- package/dist/{chunk-YESI2BBC.js → chunk-XONECYS4.js} +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
## 1.233.0 (2025-01-20)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **unbuild:** Added `jiti` to resolve the build module ([8f613f91](https://github.com/storm-software/storm-ops/commit/8f613f91))
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **untyped:** Resovle bundling issue with externals ([ff044ddf](https://github.com/storm-software/storm-ops/commit/ff044ddf))
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated prettier to 0.27.9
|
|
14
|
+
- Updated unbuild to 0.23.0
|
|
15
|
+
- Updated unbuild to 0.23.0
|
|
16
|
+
|
|
17
|
+
## 1.232.1 (2025-01-20)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **unbuild:** Update package to bundle the `unbuild` package for distribution ([d304c28d](https://github.com/storm-software/storm-ops/commit/d304c28d))
|
|
22
|
+
|
|
23
|
+
### 🧱 Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated esbuild to 0.19.1
|
|
26
|
+
- Updated unbuild to 0.22.1
|
|
27
|
+
- Updated unbuild to 0.22.1
|
|
28
|
+
- Updated tsdown to 0.20.1
|
|
29
|
+
|
|
30
|
+
## 1.232.0 (2025-01-20)
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- **build-tools:** Update helpers to use cached project graph ([ae202661](https://github.com/storm-software/storm-ops/commit/ae202661))
|
|
35
|
+
|
|
36
|
+
### 🧱 Updated Dependencies
|
|
37
|
+
|
|
38
|
+
- Updated unbuild to 0.22.0
|
|
39
|
+
- Updated unbuild to 0.22.0
|
|
40
|
+
|
|
1
41
|
## 1.231.0 (2025-01-20)
|
|
2
42
|
|
|
3
43
|
### Features
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5Q3LI7CFjs = require('./chunk-5Q3LI7CF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -70,7 +70,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
72
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
73
|
-
var generator_default =
|
|
73
|
+
var generator_default = _chunk5Q3LI7CFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
74
74
|
hooks: {
|
|
75
75
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
76
76
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkAX4OFOSNjs = require('./chunk-AX4OFOSN.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ var _chunkLDCPNOWXjs = require('./chunk-LDCPNOWX.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -37,8 +37,8 @@ var _tsdown = require('tsdown');
|
|
|
37
37
|
// ../tsdown/src/clean.ts
|
|
38
38
|
|
|
39
39
|
async function clean(name = "ESBuild", directory, config) {
|
|
40
|
-
|
|
41
|
-
const stopwatch =
|
|
40
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
41
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
42
42
|
await _node.hfs.deleteAll(directory);
|
|
43
43
|
stopwatch();
|
|
44
44
|
}
|
|
@@ -73,9 +73,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
73
73
|
if (!workspaceRoot) {
|
|
74
74
|
throw new Error("Cannot find Nx workspace root");
|
|
75
75
|
}
|
|
76
|
-
const config = await
|
|
77
|
-
|
|
78
|
-
const stopwatch =
|
|
76
|
+
const config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
77
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
78
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Build options resolution");
|
|
79
79
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
80
80
|
exitOnError: true
|
|
81
81
|
});
|
|
@@ -91,19 +91,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
91
91
|
}
|
|
92
92
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
93
93
|
options.name ??= `${projectName}-${options.format}`;
|
|
94
|
-
options.target ??=
|
|
94
|
+
options.target ??= _chunkAX4OFOSNjs.DEFAULT_TARGET;
|
|
95
95
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
96
96
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
97
97
|
throw new Error("Cannot find package.json configuration");
|
|
98
98
|
}
|
|
99
|
-
const env =
|
|
99
|
+
const env = _chunkAX4OFOSNjs.getEnv.call(void 0, "tsdown", options);
|
|
100
100
|
const result = {
|
|
101
101
|
...options,
|
|
102
102
|
config,
|
|
103
103
|
...userOptions,
|
|
104
104
|
tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
105
105
|
format: options.format || "cjs",
|
|
106
|
-
entryPoints: await
|
|
106
|
+
entryPoints: await _chunkAX4OFOSNjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
107
107
|
"./src/index.ts"
|
|
108
108
|
], userOptions.emitOnAll),
|
|
109
109
|
outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -114,7 +114,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
114
114
|
projectGraph,
|
|
115
115
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
116
116
|
minify: userOptions.minify || !userOptions.debug,
|
|
117
|
-
verbose: userOptions.verbose ||
|
|
117
|
+
verbose: userOptions.verbose || _chunkGRBZKMJIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
118
118
|
includeSrc: userOptions.includeSrc === true,
|
|
119
119
|
metafile: userOptions.metafile !== false,
|
|
120
120
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -149,8 +149,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
149
149
|
}, "resolveOptions");
|
|
150
150
|
async function generatePackageJson(options) {
|
|
151
151
|
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
152
|
-
|
|
153
|
-
const stopwatch =
|
|
152
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
153
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Write package.json file");
|
|
154
154
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
155
155
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
156
156
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -159,11 +159,11 @@ async function generatePackageJson(options) {
|
|
|
159
159
|
if (!packageJson) {
|
|
160
160
|
throw new Error("Cannot find package.json configuration file");
|
|
161
161
|
}
|
|
162
|
-
packageJson = await
|
|
163
|
-
packageJson = await
|
|
162
|
+
packageJson = await _chunkAX4OFOSNjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
163
|
+
packageJson = await _chunkAX4OFOSNjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
164
164
|
packageJson.exports ??= {};
|
|
165
165
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
166
|
-
packageJson.exports["."] ??=
|
|
166
|
+
packageJson.exports["."] ??= _chunkAX4OFOSNjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
|
|
167
167
|
let entryPoints = [
|
|
168
168
|
{
|
|
169
169
|
in: "./src/index.ts",
|
|
@@ -181,7 +181,7 @@ async function generatePackageJson(options) {
|
|
|
181
181
|
const split = entryPoint.out.split(".");
|
|
182
182
|
split.pop();
|
|
183
183
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
184
|
-
packageJson.exports[`./${entry}`] ??=
|
|
184
|
+
packageJson.exports[`./${entry}`] ??= _chunkAX4OFOSNjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -200,8 +200,8 @@ async function generatePackageJson(options) {
|
|
|
200
200
|
}
|
|
201
201
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
202
202
|
async function executeTSDown(options) {
|
|
203
|
-
|
|
204
|
-
const stopwatch =
|
|
203
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
204
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
205
205
|
await _tsdown.build.call(void 0, {
|
|
206
206
|
...options,
|
|
207
207
|
entry: options.entryPoints,
|
|
@@ -213,15 +213,15 @@ async function executeTSDown(options) {
|
|
|
213
213
|
}
|
|
214
214
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
215
215
|
async function copyBuildAssets(options) {
|
|
216
|
-
|
|
217
|
-
const stopwatch =
|
|
218
|
-
await
|
|
216
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
217
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
218
|
+
await _chunkAX4OFOSNjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
|
|
219
219
|
stopwatch();
|
|
220
220
|
return options;
|
|
221
221
|
}
|
|
222
222
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
223
223
|
async function reportResults(options) {
|
|
224
|
-
|
|
224
|
+
_chunkGRBZKMJIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
225
225
|
}
|
|
226
226
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
227
227
|
async function cleanOutputPath(options) {
|
|
@@ -232,8 +232,8 @@ async function cleanOutputPath(options) {
|
|
|
232
232
|
}
|
|
233
233
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
234
234
|
async function build(options) {
|
|
235
|
-
|
|
236
|
-
const stopwatch =
|
|
235
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
236
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
237
237
|
try {
|
|
238
238
|
const opts = Array.isArray(options) ? options : [
|
|
239
239
|
options
|
|
@@ -251,11 +251,11 @@ async function build(options) {
|
|
|
251
251
|
await reportResults(opt);
|
|
252
252
|
}));
|
|
253
253
|
} else {
|
|
254
|
-
|
|
254
|
+
_chunkGRBZKMJIjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
_chunkGRBZKMJIjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
257
257
|
} catch (error) {
|
|
258
|
-
|
|
258
|
+
_chunkGRBZKMJIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
259
259
|
throw error;
|
|
260
260
|
} finally {
|
|
261
261
|
stopwatch();
|
|
@@ -265,7 +265,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
265
265
|
|
|
266
266
|
// src/executors/tsdown/executor.ts
|
|
267
267
|
async function tsdownExecutorFn(options, context, config) {
|
|
268
|
-
|
|
268
|
+
_chunkGRBZKMJIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
269
269
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
270
270
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
271
271
|
}
|
|
@@ -282,7 +282,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
285
|
-
var executor_default =
|
|
285
|
+
var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
286
286
|
skipReadingConfig: false,
|
|
287
287
|
hooks: {
|
|
288
288
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-UENELRBB.mjs";
|
|
4
1
|
import {
|
|
5
2
|
buildCargoCommand,
|
|
6
3
|
cargoCommand
|
|
7
4
|
} from "./chunk-QZHIWK5Z.mjs";
|
|
5
|
+
import {
|
|
6
|
+
withRunExecutor
|
|
7
|
+
} from "./chunk-GVBCN2FA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-UENELRBB.mjs";
|
|
4
1
|
import {
|
|
5
2
|
buildCargoCommand,
|
|
6
3
|
cargoCommand
|
|
7
4
|
} from "./chunk-QZHIWK5Z.mjs";
|
|
5
|
+
import {
|
|
6
|
+
withRunExecutor
|
|
7
|
+
} from "./chunk-GVBCN2FA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -11,7 +11,7 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.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 = _chunkGRBZKMJIjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkGRBZKMJIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkGRBZKMJIjs.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 _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkGRBZKMJIjs.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 _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunk5CPYNJT2js.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkGRBZKMJIjs.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
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkGRBZKMJIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkGRBZKMJIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkGRBZKMJIjs.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
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -38,7 +38,7 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
38
38
|
var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
|
|
39
39
|
let rootDir = workspaceRoot;
|
|
40
40
|
if (!rootDir) {
|
|
41
|
-
const config = await
|
|
41
|
+
const config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, );
|
|
42
42
|
rootDir = config.workspaceRoot;
|
|
43
43
|
}
|
|
44
44
|
const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
@@ -103,13 +103,13 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
103
103
|
projectsConfigurations,
|
|
104
104
|
nxJsonConfiguration: nxJson,
|
|
105
105
|
cwd: config.workspaceRoot,
|
|
106
|
-
isVerbose:
|
|
106
|
+
isVerbose: _chunkGRBZKMJIjs.isVerbose.call(void 0, config.logLevel)
|
|
107
107
|
});
|
|
108
108
|
if (!result.success) {
|
|
109
109
|
throw new Error("The Build process failed trying to copy assets");
|
|
110
110
|
}
|
|
111
111
|
if (includeSrc === true) {
|
|
112
|
-
|
|
112
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
113
113
|
const files = await _glob.glob.call(void 0, [
|
|
114
114
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
115
115
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -147,7 +147,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
if (localPackages.length > 0) {
|
|
150
|
-
|
|
150
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
151
151
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
152
152
|
if (!ret[localPackage.name]) {
|
|
153
153
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -169,7 +169,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
169
169
|
return ret;
|
|
170
170
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
171
171
|
} else {
|
|
172
|
-
|
|
172
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
173
173
|
}
|
|
174
174
|
return packageJson;
|
|
175
175
|
}, "addPackageDependencies");
|
|
@@ -293,7 +293,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
293
293
|
results.push(...files.reduce((ret, filePath) => {
|
|
294
294
|
const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
|
|
295
295
|
if (result) {
|
|
296
|
-
|
|
296
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
297
297
|
if (!results.includes(result)) {
|
|
298
298
|
results.push(result);
|
|
299
299
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
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 _chunkBWFTYFWMjs = require('./chunk-BWFTYFWM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
@@ -11,10 +12,9 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -24,11 +24,11 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
24
24
|
|
|
25
25
|
// src/base/base-executor.ts
|
|
26
26
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
27
|
-
const stopwatch =
|
|
27
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, name);
|
|
28
28
|
let options = _options;
|
|
29
29
|
let config = {};
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
_chunkGRBZKMJIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
|
|
32
32
|
`, config);
|
|
33
33
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
34
34
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
@@ -39,20 +39,20 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
39
39
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
40
40
|
config.workspaceRoot = workspaceRoot;
|
|
41
41
|
if (!executorOptions.skipReadingConfig) {
|
|
42
|
-
|
|
42
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
45
45
|
- sourceRoot: ${sourceRoot}
|
|
46
46
|
- projectName: ${projectName}
|
|
47
47
|
`, config);
|
|
48
|
-
config = await
|
|
48
|
+
config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
49
49
|
}
|
|
50
50
|
if (_optionalChain([executorOptions, 'optionalAccess', _15 => _15.hooks, 'optionalAccess', _16 => _16.applyDefaultOptions])) {
|
|
51
|
-
|
|
51
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
52
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
-
|
|
53
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
56
56
|
${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
57
57
|
const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
|
|
58
58
|
config,
|
|
@@ -64,9 +64,9 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
|
|
|
64
64
|
...executorOptions
|
|
65
65
|
}, _chunkBWFTYFWMjs.applyWorkspaceExecutorTokens);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _19 => _19.next]))) {
|
|
@@ -76,26 +76,26 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _20 => _20.error, 'optionalAccess', _21 => _21.message]) && typeof _optionalChain([result, 'optionalAccess', _22 => _22.error, 'optionalAccess', _23 => _23.message]) === "string" && _optionalChain([result, 'optionalAccess', _24 => _24.error, 'optionalAccess', _25 => _25.name]) && typeof _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.name]) === "string")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkGRBZKMJIjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _28 => _28.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _29 => _29.hooks, 'optionalAccess', _30 => _30.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkGRBZKMJIjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunkGRBZKMJIjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkGRBZKMJIjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|
|
@@ -509,7 +509,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
509
509
|
envName: fileName?.toUpperCase(),
|
|
510
510
|
jitiOptions: {
|
|
511
511
|
debug: false,
|
|
512
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "
|
|
512
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
513
513
|
},
|
|
514
514
|
...options
|
|
515
515
|
});
|
|
@@ -521,7 +521,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
521
521
|
envName: fileName?.toUpperCase(),
|
|
522
522
|
jitiOptions: {
|
|
523
523
|
debug: false,
|
|
524
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "
|
|
524
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
525
525
|
},
|
|
526
526
|
configFile: fileName,
|
|
527
527
|
...options
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.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
|
+
_chunkGRBZKMJIjs.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
|
+
_chunkGRBZKMJIjs.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 = _chunkCDOWHRVEjs.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) => {
|