@storm-software/workspace-tools 1.295.79 → 1.295.81
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 +35 -0
- package/config/base.json +20 -1
- package/config/recommended.json +20 -1
- package/dist/{chunk-2FQIDYBN.js → chunk-2CXXVFU4.js} +12 -12
- package/dist/{chunk-5M7Q5AGZ.js → chunk-2L7ICILU.js} +30 -30
- package/dist/{chunk-3ZYXVFDI.mjs → chunk-35ERFW7I.mjs} +2 -2
- package/dist/{chunk-HU3JD26C.mjs → chunk-35G4LHK2.mjs} +1 -1
- package/dist/{chunk-TEYNJ3L6.mjs → chunk-4AR5RJMF.mjs} +9 -3
- package/dist/{chunk-JINU7C4X.js → chunk-6HJ4EEBB.js} +2 -2
- package/dist/{chunk-IDQYPP4E.js → chunk-6IXJEWJR.js} +2 -2
- package/dist/{chunk-CSZ34LXS.mjs → chunk-7MM5MBEP.mjs} +1 -1
- package/dist/{chunk-GOCSQYEA.mjs → chunk-ALL63TSY.mjs} +2 -2
- package/dist/{chunk-24WGOY7M.js → chunk-AY3HOPOX.js} +2 -2
- package/dist/{chunk-HLULZNA6.mjs → chunk-BAYA5SVP.mjs} +1 -1
- package/dist/{chunk-KW6T252F.mjs → chunk-BT7OBRJT.mjs} +3 -3
- package/dist/{chunk-KSL6QUB7.js → chunk-CBVZ57E6.js} +21 -21
- package/dist/{chunk-CHHDG2MX.js → chunk-CQIILJEF.js} +10 -10
- package/dist/{chunk-X777ZFHU.js → chunk-DEP6TIXL.js} +5 -5
- package/dist/{chunk-KM43UGU6.mjs → chunk-DJZX3XBE.mjs} +2 -2
- package/dist/{chunk-75H7T5KM.mjs → chunk-EMX7LTEI.mjs} +2 -2
- package/dist/{chunk-CW4MH5E2.mjs → chunk-EQMVQ3I7.mjs} +2 -2
- package/dist/{chunk-L4SZWD3D.js → chunk-ETSIRKO5.js} +2 -2
- package/dist/{chunk-AJSJ2JR6.mjs → chunk-EYO6EPEG.mjs} +1 -1
- package/dist/{chunk-IPVDQCJ4.js → chunk-FFEJNAFP.js} +2 -2
- package/dist/{chunk-6ECSUXBH.mjs → chunk-FPNWNZUL.mjs} +2 -2
- package/dist/{chunk-42LESXB3.mjs → chunk-FQX7ZBQS.mjs} +1 -1
- package/dist/{chunk-AFZKYL2P.mjs → chunk-GCDDSEDG.mjs} +13 -21
- package/dist/{chunk-VSWADZIP.mjs → chunk-GED6QYLK.mjs} +1 -1
- package/dist/{chunk-F5HQPVFD.mjs → chunk-GTBTSMUH.mjs} +1 -1
- package/dist/{chunk-5QE6QZLL.js → chunk-GZA2CV3C.js} +9 -3
- package/dist/{chunk-5WFZQ5JS.mjs → chunk-HECOVC7R.mjs} +2 -2
- package/dist/{chunk-YZVCSH3T.mjs → chunk-IETUQQJT.mjs} +2 -2
- package/dist/{chunk-K2QPHBGO.js → chunk-IIFXLZEH.js} +6 -6
- package/dist/{chunk-35KAXAXF.js → chunk-JDDKEYTF.js} +34 -34
- package/dist/{chunk-OPW7VZL2.mjs → chunk-JPOHRWVM.mjs} +1 -1
- package/dist/{chunk-J2TZAZ76.js → chunk-LULOWPU2.js} +17 -17
- package/dist/{chunk-VGLDTD5U.mjs → chunk-MNA3AU4B.mjs} +1 -1
- package/dist/{chunk-Q5FLBXGL.js → chunk-NUGNYGBF.js} +4 -4
- package/dist/{chunk-WNPTYHA4.js → chunk-O7Z2YGFU.js} +5 -5
- package/dist/{chunk-BEZE4GFI.mjs → chunk-OBATTMGC.mjs} +2 -2
- package/dist/{chunk-RK2R4IGP.js → chunk-P56QF3XG.js} +2 -2
- package/dist/{chunk-BE6YVKCO.js → chunk-PB5565L7.js} +2 -2
- package/dist/{chunk-TFTJEDAM.mjs → chunk-PICVMVJQ.mjs} +4 -4
- package/dist/{chunk-HXRTQR3U.js → chunk-PRW5IUAC.js} +2 -2
- package/dist/{chunk-HE55HJHZ.mjs → chunk-QSNWB7A5.mjs} +1 -1
- package/dist/{chunk-TLWPXL7M.mjs → chunk-RCSUK5YZ.mjs} +2 -2
- package/dist/{chunk-MNFKXDV6.mjs → chunk-S2KOD2HL.mjs} +2 -2
- package/dist/{chunk-UIRPA76V.js → chunk-SGI4JCLV.js} +15 -23
- package/dist/{chunk-QKLKDDTU.js → chunk-THA4SGMV.js} +2 -2
- package/dist/{chunk-FSSGFERS.js → chunk-U5JPGO47.js} +2 -2
- package/dist/{chunk-XT7T25QQ.js → chunk-VC4FGY7P.js} +2 -2
- package/dist/{chunk-CHUFDTF4.js → chunk-WJ5AG2IU.js} +11 -11
- package/dist/{chunk-42RN7JZQ.mjs → chunk-WQUWUZZ4.mjs} +1 -1
- package/dist/{chunk-KMBE3TLK.js → chunk-WTWQAZUM.js} +4 -4
- package/dist/{chunk-OAST6ITX.mjs → chunk-X2UWPTFU.mjs} +1 -1
- package/dist/{chunk-FAMMSDNC.js → chunk-XNHWWPSK.js} +2 -2
- package/dist/{chunk-H75JKG5Z.mjs → chunk-YRGMZRC3.mjs} +4 -4
- package/dist/{chunk-7Y4HTTCH.js → chunk-ZYI527ZS.js} +2 -2
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +20 -20
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +9 -9
- package/dist/index.js +28 -28
- package/dist/index.mjs +28 -28
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +4 -4
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +4 -4
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +5 -5
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +4 -4
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +6 -6
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +5 -5
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +6 -6
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +5 -5
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +6 -6
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +5 -5
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +5 -5
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +5 -5
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +5 -5
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +5 -5
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +5 -5
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +6 -6
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +4 -4
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +5 -5
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +4 -4
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +11 -11
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkIIFXLZEHjs = require('./chunk-IIFXLZEH.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCBVZ57E6js = require('./chunk-CBVZ57E6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkCQIILJEFjs = require('./chunk-CQIILJEF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ var _chunkCHHDG2MXjs = require('./chunk-CHHDG2MX.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkGZA2CV3Cjs = require('./chunk-GZA2CV3C.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -30,12 +30,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
30
30
|
// ../esbuild/src/assets.ts
|
|
31
31
|
async function copyBuildAssets(context) {
|
|
32
32
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
33
|
-
|
|
33
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
34
34
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
35
35
|
context.workspaceConfig
|
|
36
36
|
);
|
|
37
|
-
const stopwatch =
|
|
38
|
-
await
|
|
37
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
38
|
+
await _chunkIIFXLZEHjs.copyAssets.call(void 0,
|
|
39
39
|
context.workspaceConfig,
|
|
40
40
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
41
41
|
context.outputPath,
|
|
@@ -103,8 +103,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
103
103
|
".woff2": "file"
|
|
104
104
|
},
|
|
105
105
|
banner: {
|
|
106
|
-
js:
|
|
107
|
-
css:
|
|
106
|
+
js: _chunkIIFXLZEHjs.DEFAULT_JS_BANNER,
|
|
107
|
+
css: _chunkIIFXLZEHjs.DEFAULT_CSS_BANNER
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
|
|
@@ -115,11 +115,11 @@ async function resolveContext(userOptions) {
|
|
|
115
115
|
if (!workspaceRoot) {
|
|
116
116
|
throw new Error("Cannot find Nx workspace root");
|
|
117
117
|
}
|
|
118
|
-
const workspaceConfig = await
|
|
118
|
+
const workspaceConfig = await _chunkCQIILJEFjs.getWorkspaceConfig.call(void 0, true, {
|
|
119
119
|
workspaceRoot: workspaceRoot.dir
|
|
120
120
|
});
|
|
121
|
-
|
|
122
|
-
const stopwatch =
|
|
121
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
122
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
123
123
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
124
124
|
exitOnError: true
|
|
125
125
|
});
|
|
@@ -150,7 +150,7 @@ async function resolveContext(userOptions) {
|
|
|
150
150
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
151
151
|
throw new Error("Cannot find package.json configuration");
|
|
152
152
|
}
|
|
153
|
-
const env =
|
|
153
|
+
const env = _chunkIIFXLZEHjs.getEnv.call(void 0, "esbuild", options);
|
|
154
154
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
155
155
|
const resolvedOptions = {
|
|
156
156
|
...options,
|
|
@@ -189,10 +189,10 @@ async function resolveContext(userOptions) {
|
|
|
189
189
|
};
|
|
190
190
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
191
191
|
if (context.options.verbose) {
|
|
192
|
-
|
|
192
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
193
193
|
` \u2699\uFE0F Build options resolved:
|
|
194
194
|
|
|
195
|
-
${
|
|
195
|
+
${_chunkGZA2CV3Cjs.formatLogMessage.call(void 0, context.options)}`,
|
|
196
196
|
workspaceConfig
|
|
197
197
|
);
|
|
198
198
|
}
|
|
@@ -205,8 +205,8 @@ ${_chunk5QE6QZLLjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
205
205
|
|
|
206
206
|
async function generatePackageJson(context) {
|
|
207
207
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
208
|
-
|
|
209
|
-
const stopwatch =
|
|
208
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
209
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
210
210
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
211
211
|
context.options.projectRoot,
|
|
212
212
|
"project.json"
|
|
@@ -226,13 +226,13 @@ async function generatePackageJson(context) {
|
|
|
226
226
|
if (!packageJson) {
|
|
227
227
|
throw new Error("Cannot find package.json configuration file");
|
|
228
228
|
}
|
|
229
|
-
packageJson = await
|
|
229
|
+
packageJson = await _chunkIIFXLZEHjs.addPackageDependencies.call(void 0,
|
|
230
230
|
context.workspaceConfig.workspaceRoot,
|
|
231
231
|
context.options.projectRoot,
|
|
232
232
|
context.projectName,
|
|
233
233
|
packageJson
|
|
234
234
|
);
|
|
235
|
-
packageJson = await
|
|
235
|
+
packageJson = await _chunkIIFXLZEHjs.addWorkspacePackageJsonFields.call(void 0,
|
|
236
236
|
context.workspaceConfig,
|
|
237
237
|
context.options.projectRoot,
|
|
238
238
|
context.sourceRoot,
|
|
@@ -333,12 +333,12 @@ async function generatePackageJson(context) {
|
|
|
333
333
|
var _tsup = require('tsup');
|
|
334
334
|
async function build(options) {
|
|
335
335
|
if (!options.silent) {
|
|
336
|
-
|
|
336
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
337
337
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
338
338
|
options.workspaceConfig
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
const stopwatch =
|
|
341
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
342
342
|
await _tsup.build.call(void 0, options);
|
|
343
343
|
if (!options.silent) {
|
|
344
344
|
stopwatch();
|
|
@@ -347,11 +347,11 @@ async function build(options) {
|
|
|
347
347
|
|
|
348
348
|
// ../esbuild/src/tsup.ts
|
|
349
349
|
async function executeTsup(context) {
|
|
350
|
-
|
|
350
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
351
351
|
` \u{1F680} Running ${context.options.name} build`,
|
|
352
352
|
context.workspaceConfig
|
|
353
353
|
);
|
|
354
|
-
const stopwatch =
|
|
354
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
355
355
|
await build({
|
|
356
356
|
...context.options,
|
|
357
357
|
outDir: context.options.distDir ? _chunkCQDBLKPFjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -365,17 +365,17 @@ async function executeTsup(context) {
|
|
|
365
365
|
async function reportResults(context) {
|
|
366
366
|
if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
|
|
367
367
|
if (context.result.warnings.length > 0) {
|
|
368
|
-
|
|
368
|
+
_chunkGZA2CV3Cjs.writeWarning.call(void 0,
|
|
369
369
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
370
370
|
context.workspaceConfig
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
|
-
|
|
373
|
+
_chunkGZA2CV3Cjs.writeSuccess.call(void 0,
|
|
374
374
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
375
375
|
context.workspaceConfig
|
|
376
376
|
);
|
|
377
377
|
} else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
|
|
378
|
-
|
|
378
|
+
_chunkGZA2CV3Cjs.writeError.call(void 0,
|
|
379
379
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
380
380
|
context.workspaceConfig
|
|
381
381
|
);
|
|
@@ -386,19 +386,19 @@ async function reportResults(context) {
|
|
|
386
386
|
}
|
|
387
387
|
async function cleanOutputPath(context) {
|
|
388
388
|
if (context.clean !== false && context.outputPath) {
|
|
389
|
-
|
|
389
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
390
390
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
391
391
|
context.workspaceConfig
|
|
392
392
|
);
|
|
393
|
-
const stopwatch =
|
|
393
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
394
394
|
await cleanDirectories(context.outputPath);
|
|
395
395
|
stopwatch();
|
|
396
396
|
}
|
|
397
397
|
return context;
|
|
398
398
|
}
|
|
399
399
|
async function build2(options) {
|
|
400
|
-
|
|
401
|
-
const stopwatch =
|
|
400
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, ` ${_chunkGZA2CV3Cjs.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
401
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
402
402
|
try {
|
|
403
403
|
const opts = Array.isArray(options) ? options : [options];
|
|
404
404
|
if (opts.length === 0) {
|
|
@@ -413,9 +413,9 @@ async function build2(options) {
|
|
|
413
413
|
executeTsup(context)
|
|
414
414
|
]);
|
|
415
415
|
await reportResults(context);
|
|
416
|
-
|
|
416
|
+
_chunkGZA2CV3Cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
417
417
|
} catch (error) {
|
|
418
|
-
|
|
418
|
+
_chunkGZA2CV3Cjs.writeFatal.call(void 0,
|
|
419
419
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
420
420
|
);
|
|
421
421
|
throw error;
|
|
@@ -426,7 +426,7 @@ async function build2(options) {
|
|
|
426
426
|
|
|
427
427
|
// src/executors/esbuild/executor.ts
|
|
428
428
|
async function esbuildExecutorFn(options, context, config) {
|
|
429
|
-
|
|
429
|
+
_chunkGZA2CV3Cjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
430
430
|
if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
|
|
431
431
|
throw new Error(
|
|
432
432
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -447,7 +447,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
447
447
|
success: true
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
var executor_default =
|
|
450
|
+
var executor_default = _chunkCBVZ57E6js.withRunExecutor.call(void 0,
|
|
451
451
|
"Storm ESBuild build",
|
|
452
452
|
esbuildExecutorFn,
|
|
453
453
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCQIILJEFjs = require('./chunk-CQIILJEF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkCHHDG2MXjs = require('./chunk-CHHDG2MX.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGZA2CV3Cjs = require('./chunk-GZA2CV3C.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -23,33 +23,33 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
23
23
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
`${
|
|
30
|
+
_chunkGZA2CV3Cjs.writeInfo.call(void 0,
|
|
31
|
+
`${_chunkGZA2CV3Cjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
32
32
|
|
|
33
33
|
`,
|
|
34
34
|
config
|
|
35
35
|
);
|
|
36
36
|
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
37
37
|
if (!generatorOptions.skipReadingConfig) {
|
|
38
|
-
|
|
38
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
39
39
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
40
40
|
- workspaceRoot: ${workspaceRoot}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
config = await
|
|
43
|
+
config = await _chunkCQIILJEFjs.getConfig.call(void 0, workspaceRoot);
|
|
44
44
|
}
|
|
45
45
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
46
|
-
|
|
46
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
47
47
|
options = await Promise.resolve(
|
|
48
48
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
49
49
|
);
|
|
50
|
-
|
|
50
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
_chunkGZA2CV3Cjs.writeTrace.call(void 0,
|
|
53
53
|
`Generator schema options \u2699\uFE0F
|
|
54
54
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
55
55
|
config
|
|
@@ -60,11 +60,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
60
60
|
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
61
61
|
);
|
|
62
62
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
63
|
-
|
|
63
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
64
64
|
await Promise.resolve(
|
|
65
65
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
66
66
|
);
|
|
67
|
-
|
|
67
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
68
68
|
}
|
|
69
69
|
const result = await Promise.resolve(
|
|
70
70
|
generatorFn(tree, tokenized, config)
|
|
@@ -79,21 +79,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
82
|
-
|
|
82
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
83
83
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
84
|
-
|
|
84
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
85
85
|
}
|
|
86
86
|
return () => {
|
|
87
|
-
|
|
87
|
+
_chunkGZA2CV3Cjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
88
88
|
`, config);
|
|
89
89
|
};
|
|
90
90
|
} catch (error) {
|
|
91
91
|
return () => {
|
|
92
|
-
|
|
92
|
+
_chunkGZA2CV3Cjs.writeFatal.call(void 0,
|
|
93
93
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
94
94
|
config
|
|
95
95
|
);
|
|
96
|
-
|
|
96
|
+
_chunkGZA2CV3Cjs.writeError.call(void 0,
|
|
97
97
|
`An exception was thrown in the generator's process
|
|
98
98
|
- Details: ${error.message}
|
|
99
99
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,9 +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 _chunkCBVZ57E6js = require('./chunk-CBVZ57E6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGZA2CV3Cjs = require('./chunk-GZA2CV3C.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -12,7 +12,7 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkGZA2CV3Cjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunkCBVZ57E6js.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkCBVZ57E6js = require('./chunk-CBVZ57E6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGZA2CV3Cjs = require('./chunk-GZA2CV3C.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkGZA2CV3Cjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkGZA2CV3Cjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkCBVZ57E6js.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-4VWDSVQJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ALL63TSY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
10
|
} from "./chunk-TBW5MCN6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GTBTSMUH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/generators/browser-library/generator.ts
|
|
16
16
|
import {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunk57OGFZNBjs = require('./chunk-57OGFZNB.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLULOWPU2js = require('./chunk-LULOWPU2.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
54
54
|
await _devkit.formatFiles.call(void 0, tree);
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkLULOWPU2js.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkGZA2CV3Cjs = require('./chunk-GZA2CV3C.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunkGZA2CV3Cjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BAYA5SVP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-35ERFW7I.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-35G4LHK2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
brandIcon,
|
|
17
17
|
getStopwatch,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
writeInfo,
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4AR5RJMF.mjs";
|
|
24
24
|
import {
|
|
25
25
|
findWorkspaceRoot
|
|
26
26
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCBVZ57E6js = require('./chunk-CBVZ57E6.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkCBVZ57E6js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-4VWDSVQJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ALL63TSY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
10
|
} from "./chunk-TBW5MCN6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GTBTSMUH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/generators/neutral-library/generator.ts
|
|
16
16
|
import {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-GKLFEOKK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
withRunExecutor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-35ERFW7I.mjs";
|
|
7
7
|
import {
|
|
8
8
|
writeDebug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4AR5RJMF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
correctPaths,
|
|
12
12
|
isAbsolute,
|