@storm-software/workspace-tools 1.264.23 → 1.264.24
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 +9 -0
- package/README.md +1 -1
- package/dist/{chunk-IWTY5YHA.js → chunk-26KLH7BI.js} +4 -4
- package/dist/{chunk-H7R5WWWN.mjs → chunk-32XQSY3C.mjs} +2 -2
- package/dist/{chunk-IVVMLTAZ.mjs → chunk-4LIIIWIV.mjs} +1 -1
- package/dist/{chunk-YEAEA7VH.js → chunk-5DQCVP4N.js} +5 -5
- package/dist/{chunk-VIYVUTPL.mjs → chunk-7P2LGXFI.mjs} +1 -1
- package/dist/{chunk-JGBWUIDB.js → chunk-7YVMI4XM.js} +2 -2
- package/dist/{chunk-SYVKCVS5.js → chunk-ACBRXFBB.js} +2 -2
- package/dist/{chunk-JIEME4DE.mjs → chunk-AVC6Y5IR.mjs} +1 -1
- package/dist/{chunk-2VGQHNUI.mjs → chunk-CD3W3HIC.mjs} +2 -2
- package/dist/{chunk-PKZ57ZT3.mjs → chunk-CIHS3V6E.mjs} +1 -1
- package/dist/{chunk-7D54ET5P.js → chunk-DNYOACHD.js} +11 -11
- package/dist/{chunk-3CMQVIZF.js → chunk-E4TBRQDJ.js} +2 -2
- package/dist/{chunk-OOKKGQYY.mjs → chunk-FCGFBNCJ.mjs} +1 -1
- package/dist/{chunk-LCEW4RCH.mjs → chunk-GGSDFI6U.mjs} +2 -2
- package/dist/{chunk-S672NL5L.js → chunk-IPBHTVKW.js} +2 -2
- package/dist/{chunk-2JMPJLUY.mjs → chunk-IQQERPIV.mjs} +1 -1
- package/dist/{chunk-HAR2JAKF.js → chunk-JCJHSN67.js} +5 -5
- package/dist/{chunk-WKHNKMGG.mjs → chunk-JWFYDYKI.mjs} +1 -1
- package/dist/{chunk-XL2QCC3O.mjs → chunk-KQMGKHXU.mjs} +2 -2
- package/dist/{chunk-GIHDKGOW.js → chunk-LRLMU4QV.js} +2 -2
- package/dist/{chunk-ACGR2DGA.mjs → chunk-MMPXE2KD.mjs} +1 -1
- package/dist/{chunk-WSYNUVFE.js → chunk-N4STCLGJ.js} +9 -9
- package/dist/{chunk-ZQM46HJL.mjs → chunk-NODM27UV.mjs} +18 -2
- package/dist/{chunk-2JSGLAYY.js → chunk-NQ4W3N7O.js} +15 -15
- package/dist/{chunk-W6XC45WY.js → chunk-P6PFHXHQ.js} +20 -20
- package/dist/{chunk-CO3WS2F5.mjs → chunk-P7UUSOFW.mjs} +1 -1
- package/dist/{chunk-6TELW6SY.mjs → chunk-PHVGSPP3.mjs} +1 -1
- package/dist/{chunk-Q2HDALQQ.js → chunk-QPJ4XTDX.js} +2 -2
- package/dist/{chunk-Z7QQFXLC.js → chunk-SKMT7WD5.js} +18 -2
- package/dist/{chunk-5HKVKVGO.js → chunk-T42YSSIT.js} +43 -43
- package/dist/{chunk-Y4DQH7H3.mjs → chunk-UMFP6PYU.mjs} +1 -1
- package/dist/{chunk-B7OV5XTN.js → chunk-USJX4BPD.js} +2 -2
- package/dist/{chunk-UBQVODWE.mjs → chunk-VTRSAQHO.mjs} +1 -1
- package/dist/{chunk-KZEIFYBW.mjs → chunk-YDDVJHQ4.mjs} +11 -11
- package/dist/{chunk-D2B7RMJY.js → chunk-Z2GBHTLH.js} +2 -2
- package/dist/{chunk-OE5D5OX2.js → chunk-ZGMV4YJL.js} +2 -2
- package/dist/{executor-Cfnvj_UD.d.ts → executor-21QQWs8J.d.ts} +1 -1
- package/dist/{executor-Z5RZ_Cc7.d.ts → executor-BD4gkr4O.d.ts} +1 -1
- package/dist/{executor-Bl_R7eWL.d.mts → executor-BYcX7bg8.d.mts} +1 -1
- package/dist/{executor-CkpY6Cn6.d.ts → executor-BvnlpAbd.d.ts} +1 -1
- package/dist/{executor-jhLTqjwT.d.ts → executor-CLYItx2J.d.ts} +1 -1
- package/dist/{executor-D7Jon7YZ.d.mts → executor-CsTGaThv.d.mts} +1 -1
- package/dist/{executor-CQREXH1r.d.mts → executor-DpaKJJUo.d.mts} +1 -1
- package/dist/{executor-FnV7Zyhi.d.mts → executor-FYb5cygt.d.mts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +14 -14
- package/dist/executors.mjs +16 -16
- package/dist/{generator-m71zZSnI.d.ts → generator-BMY6LGPc.d.ts} +1 -1
- package/dist/{generator-CDN_7s1G.d.mts → generator-BPz6wkk9.d.mts} +2 -2
- package/dist/{generator-BzokTeDK.d.ts → generator-BXJFXwbk.d.ts} +2 -2
- package/dist/{generator-Cp27CDI2.d.mts → generator-Bw4on8nq.d.mts} +2 -2
- package/dist/{generator-DYKOkcwS.d.mts → generator-D3Kl6o6G.d.mts} +2 -2
- package/dist/{generator-DewOeQFs.d.ts → generator-D4IATDWn.d.ts} +2 -2
- package/dist/{generator-D2sZ7Ie-.d.ts → generator-DPRJ4mde.d.ts} +2 -2
- package/dist/{generator-DpjwOis-.d.ts → generator-EapPsEII.d.ts} +2 -2
- package/dist/{generator-DWD1hj3X.d.ts → generator-UGJuBE-5.d.ts} +1 -1
- package/dist/{generator-hhjMvDQ2.d.mts → generator-UekCwik8.d.mts} +1 -1
- package/dist/{generator-ciGwzWek.d.mts → generator-_OZvHhIS.d.mts} +1 -1
- package/dist/{generator-BxNcUEBh.d.mts → generator-gUQuyamW.d.mts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +12 -12
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +22 -22
- package/dist/index.mjs +27 -27
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +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.d.mts +2 -2
- package/dist/src/base/index.d.ts +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.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- 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.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +4 -4
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- 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.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +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.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-DK9-a60Q.d.mts → types-C3URiht7.d.mts} +20 -2
- package/dist/{types-DK9-a60Q.d.ts → types-C3URiht7.d.ts} +20 -2
- package/dist/{types-DvN-p7Ms.d.ts → types-CUnUfpKk.d.ts} +1 -1
- package/dist/{types-CbF567tH.d.mts → types-dNjhGseA.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkSKMT7WD5js = require('./chunk-SKMT7WD5.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunkSKMT7WD5js.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunkSKMT7WD5js.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunkSKMT7WD5js.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunkSKMT7WD5js.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkSKMT7WD5js.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', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkSKMT7WD5js.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', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkSKMT7WD5js.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
|
+
_chunkSKMT7WD5js.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkSKMT7WD5js.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 {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.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 = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -142,6 +142,10 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
142
142
|
log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
143
143
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
144
144
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
145
|
+
var errorConfigSchema = _zod2.default.object({
|
|
146
|
+
codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
147
|
+
url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
148
|
+
}).describe("The workspace's error config used during the error process");
|
|
145
149
|
var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
146
150
|
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
147
151
|
extends: ExtendsSchema.optional(),
|
|
@@ -160,6 +164,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
160
164
|
bot: WorkspaceBotConfigSchema,
|
|
161
165
|
release: WorkspaceReleaseConfigSchema,
|
|
162
166
|
account: WorkspaceAccountConfigSchema,
|
|
167
|
+
error: errorConfigSchema,
|
|
163
168
|
mode: _zod2.default.enum([
|
|
164
169
|
"development",
|
|
165
170
|
"staging",
|
|
@@ -310,7 +315,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
310
315
|
license,
|
|
311
316
|
homepage,
|
|
312
317
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
313
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
318
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
319
|
+
error: {
|
|
320
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
321
|
+
}
|
|
314
322
|
};
|
|
315
323
|
}, "getDefaultConfig");
|
|
316
324
|
|
|
@@ -624,6 +632,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
624
632
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
625
633
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
626
634
|
},
|
|
635
|
+
error: {
|
|
636
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
637
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
638
|
+
},
|
|
627
639
|
account: {
|
|
628
640
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
629
641
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -797,6 +809,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
797
809
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
798
810
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
799
811
|
}
|
|
812
|
+
if (config.error) {
|
|
813
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
814
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
815
|
+
}
|
|
800
816
|
if (config.release) {
|
|
801
817
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
802
818
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -927,7 +943,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
927
943
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
928
944
|
}
|
|
929
945
|
if (config.registry.container) {
|
|
930
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
946
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
931
947
|
}
|
|
932
948
|
}
|
|
933
949
|
if (config.logLevel) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ var _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSKMT7WD5js = require('./chunk-SKMT7WD5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -83,7 +83,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
83
83
|
output: "src/"
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
87
87
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
88
88
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
89
89
|
projectDir: projectRoot,
|
|
@@ -93,7 +93,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
93
93
|
});
|
|
94
94
|
await assetHandler.processAllAssetsOnce();
|
|
95
95
|
if (includeSrc === true) {
|
|
96
|
-
|
|
96
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
97
97
|
const files = await _glob.glob.call(void 0, [
|
|
98
98
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
99
99
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -132,7 +132,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
if (localPackages.length > 0) {
|
|
135
|
-
|
|
135
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
136
136
|
const projectJsonFile = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
137
137
|
const projectJson = JSON.parse(projectJsonFile);
|
|
138
138
|
const projectName2 = projectJson.name;
|
|
@@ -166,7 +166,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
166
166
|
return ret;
|
|
167
167
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
168
168
|
} else {
|
|
169
|
-
|
|
169
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
170
170
|
}
|
|
171
171
|
return packageJson;
|
|
172
172
|
}, "addPackageDependencies");
|
|
@@ -264,7 +264,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
264
264
|
paths.push(...files.reduce((ret, filePath) => {
|
|
265
265
|
const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
|
|
266
266
|
if (result) {
|
|
267
|
-
|
|
267
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
268
268
|
if (!paths.includes(result)) {
|
|
269
269
|
paths.push(result);
|
|
270
270
|
}
|
|
@@ -272,10 +272,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
272
272
|
return ret;
|
|
273
273
|
}, []));
|
|
274
274
|
} else {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
paths.push(result);
|
|
275
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
276
|
+
if (!paths.includes(entryPoint)) {
|
|
277
|
+
paths.push(entryPoint);
|
|
279
278
|
}
|
|
280
279
|
}
|
|
281
280
|
return paths;
|
|
@@ -588,7 +587,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
588
587
|
setup(build4) {
|
|
589
588
|
build4.onEnd((result) => {
|
|
590
589
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
591
|
-
|
|
590
|
+
_chunkSKMT7WD5js.writeError.call(void 0, `The following errors occurred during the build:
|
|
592
591
|
${result.errors.map((error) => error.text).join("\n")}
|
|
593
592
|
|
|
594
593
|
`, resolvedOptions.config);
|
|
@@ -697,7 +696,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
697
696
|
localBuild: true
|
|
698
697
|
});
|
|
699
698
|
if (extractorResult.succeeded === false) {
|
|
700
|
-
|
|
699
|
+
_chunkSKMT7WD5js.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
701
700
|
throw new Error("API Extractor completed with errors");
|
|
702
701
|
}
|
|
703
702
|
}
|
|
@@ -885,8 +884,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
885
884
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
886
885
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
887
886
|
});
|
|
888
|
-
|
|
889
|
-
|
|
887
|
+
_chunkSKMT7WD5js.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
888
|
+
_chunkSKMT7WD5js.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
890
889
|
if (filteredMissingDeps.length > 0) {
|
|
891
890
|
throw new Error(`Missing dependencies detected - please install them:
|
|
892
891
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -980,9 +979,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
980
979
|
if (!workspaceRoot) {
|
|
981
980
|
throw new Error("Cannot find Nx workspace root");
|
|
982
981
|
}
|
|
983
|
-
const config = await
|
|
984
|
-
|
|
985
|
-
const stopwatch =
|
|
982
|
+
const config = await _chunkSKMT7WD5js.getConfig.call(void 0, workspaceRoot.dir);
|
|
983
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
984
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, "Build options resolution");
|
|
986
985
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
987
986
|
exitOnError: true
|
|
988
987
|
});
|
|
@@ -1019,7 +1018,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1019
1018
|
...userOptions,
|
|
1020
1019
|
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1021
1020
|
format: options.format || "cjs",
|
|
1022
|
-
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")),
|
|
1021
|
+
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
|
|
1023
1022
|
outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
|
|
1024
1023
|
distDir: userOptions.distDir || "dist",
|
|
1025
1024
|
plugins: [],
|
|
@@ -1029,12 +1028,11 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1029
1028
|
projectGraph,
|
|
1030
1029
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
1031
1030
|
minify: userOptions.minify || !userOptions.debug,
|
|
1032
|
-
verbose: userOptions.verbose ||
|
|
1031
|
+
verbose: userOptions.verbose || _chunkSKMT7WD5js.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1033
1032
|
includeSrc: userOptions.includeSrc === true,
|
|
1034
1033
|
metafile: userOptions.metafile !== false,
|
|
1035
1034
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
1036
1035
|
clean: userOptions.clean !== false,
|
|
1037
|
-
emitOnAll: userOptions.emitOnAll === true,
|
|
1038
1036
|
assets: _nullishCoalesce(userOptions.assets, () => ( [])),
|
|
1039
1037
|
injectShims: userOptions.injectShims !== true,
|
|
1040
1038
|
bundle: userOptions.bundle !== false,
|
|
@@ -1085,8 +1083,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1085
1083
|
}, "resolveOptions");
|
|
1086
1084
|
async function generatePackageJson(context2) {
|
|
1087
1085
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1088
|
-
|
|
1089
|
-
const stopwatch =
|
|
1086
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1087
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, "Write package.json file");
|
|
1090
1088
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1091
1089
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1092
1090
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -1111,7 +1109,7 @@ async function generatePackageJson(context2) {
|
|
|
1111
1109
|
if (Array.isArray(context2.options.entryPoints)) {
|
|
1112
1110
|
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1113
1111
|
in: entryPoint,
|
|
1114
|
-
out: entryPoint
|
|
1112
|
+
out: _chunkJTAXCQX6js.correctPaths.call(void 0, entryPoint.replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, context2.options.config.workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, context2.options.projectRoot), ""))
|
|
1115
1113
|
} : entryPoint);
|
|
1116
1114
|
}
|
|
1117
1115
|
for (const entryPoint of entryPoints) {
|
|
@@ -1159,8 +1157,8 @@ async function generateContext(getOptions) {
|
|
|
1159
1157
|
}
|
|
1160
1158
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1161
1159
|
async function executeEsBuild(context2) {
|
|
1162
|
-
|
|
1163
|
-
const stopwatch =
|
|
1160
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1161
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1164
1162
|
if (process.env.STORM_WATCH) {
|
|
1165
1163
|
const ctx = await esbuild2.context(context2.options);
|
|
1166
1164
|
watch(ctx, context2.options);
|
|
@@ -1182,7 +1180,6 @@ async function executeEsBuild(context2) {
|
|
|
1182
1180
|
delete options.clean;
|
|
1183
1181
|
delete options.debug;
|
|
1184
1182
|
delete options.generatePackageJson;
|
|
1185
|
-
delete options.emitOnAll;
|
|
1186
1183
|
delete options.distDir;
|
|
1187
1184
|
delete options.includeSrc;
|
|
1188
1185
|
delete options.verbose;
|
|
@@ -1194,8 +1191,11 @@ async function executeEsBuild(context2) {
|
|
|
1194
1191
|
delete options.config;
|
|
1195
1192
|
delete options.injectShims;
|
|
1196
1193
|
delete options.external;
|
|
1197
|
-
|
|
1198
|
-
${
|
|
1194
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1195
|
+
${_chunkSKMT7WD5js.formatLogMessage.call(void 0, {
|
|
1196
|
+
...options,
|
|
1197
|
+
define: "<Hidden>"
|
|
1198
|
+
})}`, context2.options.config);
|
|
1199
1199
|
const result = await esbuild2.build(options);
|
|
1200
1200
|
await esbuild2.stop();
|
|
1201
1201
|
if (result.metafile) {
|
|
@@ -1208,8 +1208,8 @@ ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}`, context2.options.co
|
|
|
1208
1208
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1209
1209
|
async function copyBuildAssets(context2) {
|
|
1210
1210
|
if (_optionalChain([context2, 'access', _49 => _49.result, 'optionalAccess', _50 => _50.errors, 'access', _51 => _51.length]) === 0) {
|
|
1211
|
-
|
|
1212
|
-
const stopwatch =
|
|
1211
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1212
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1213
1213
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1214
1214
|
stopwatch();
|
|
1215
1215
|
}
|
|
@@ -1219,9 +1219,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1219
1219
|
async function reportResults(context2) {
|
|
1220
1220
|
if (_optionalChain([context2, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
|
|
1221
1221
|
if (context2.result.warnings.length > 0) {
|
|
1222
|
-
|
|
1222
|
+
_chunkSKMT7WD5js.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);
|
|
1223
1223
|
}
|
|
1224
|
-
|
|
1224
|
+
_chunkSKMT7WD5js.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1257,8 +1257,8 @@ async function dependencyCheck(options) {
|
|
|
1257
1257
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1258
1258
|
async function cleanOutputPath(context2) {
|
|
1259
1259
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1260
|
-
|
|
1261
|
-
const stopwatch =
|
|
1260
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
1261
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
1262
1262
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1263
1263
|
stopwatch();
|
|
1264
1264
|
}
|
|
@@ -1266,8 +1266,8 @@ async function cleanOutputPath(context2) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1268
1268
|
async function build3(options) {
|
|
1269
|
-
|
|
1270
|
-
const stopwatch =
|
|
1269
|
+
_chunkSKMT7WD5js.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1270
|
+
const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1271
1271
|
try {
|
|
1272
1272
|
const opts = Array.isArray(options) ? options : [
|
|
1273
1273
|
options
|
|
@@ -1277,9 +1277,9 @@ async function build3(options) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
void transduce.async(opts, dependencyCheck);
|
|
1279
1279
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1280
|
-
|
|
1280
|
+
_chunkSKMT7WD5js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1281
1281
|
} catch (error) {
|
|
1282
|
-
|
|
1282
|
+
_chunkSKMT7WD5js.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1283
1283
|
throw error;
|
|
1284
1284
|
} finally {
|
|
1285
1285
|
stopwatch();
|
|
@@ -1307,9 +1307,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1307
1307
|
return context2.rebuild();
|
|
1308
1308
|
});
|
|
1309
1309
|
if (rebuildResult instanceof Error) {
|
|
1310
|
-
|
|
1310
|
+
_chunkSKMT7WD5js.writeError.call(void 0, rebuildResult.message);
|
|
1311
1311
|
}
|
|
1312
|
-
|
|
1312
|
+
_chunkSKMT7WD5js.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1313
1313
|
}, 10);
|
|
1314
1314
|
changeWatcher.on("change", fastRebuild);
|
|
1315
1315
|
return void 0;
|
|
@@ -1317,7 +1317,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1317
1317
|
|
|
1318
1318
|
// src/executors/esbuild/executor.ts
|
|
1319
1319
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1320
|
-
|
|
1320
|
+
_chunkSKMT7WD5js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1321
1321
|
if (!_optionalChain([context2, 'access', _55 => _55.projectsConfigurations, 'optionalAccess', _56 => _56.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _57 => _57.projectsConfigurations, 'access', _58 => _58.projects, 'access', _59 => _59[context2.projectName], 'optionalAccess', _60 => _60.root])) {
|
|
1322
1322
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1323
1323
|
}
|
|
@@ -1334,7 +1334,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1337
|
-
var executor_default =
|
|
1337
|
+
var executor_default = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1338
1338
|
skipReadingConfig: false,
|
|
1339
1339
|
hooks: {
|
|
1340
1340
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNQ4W3N7Ojs = require('./chunk-NQ4W3N7O.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -229,7 +229,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
229
229
|
return null;
|
|
230
230
|
}
|
|
231
231
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
232
|
-
var generator_default =
|
|
232
|
+
var generator_default = _chunkNQ4W3N7Ojs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7P2LGXFI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
formatLogMessage,
|
|
6
6
|
getConfig,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace,
|
|
15
15
|
writeWarning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NODM27UV.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-FR3YQN55.mjs";
|
|
@@ -273,10 +273,9 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
|
|
|
273
273
|
return ret;
|
|
274
274
|
}, []));
|
|
275
275
|
} else {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
paths.push(result);
|
|
276
|
+
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
277
|
+
if (!paths.includes(entryPoint)) {
|
|
278
|
+
paths.push(entryPoint);
|
|
280
279
|
}
|
|
281
280
|
}
|
|
282
281
|
return paths;
|
|
@@ -1020,7 +1019,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1020
1019
|
...userOptions,
|
|
1021
1020
|
tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1022
1021
|
format: options.format || "cjs",
|
|
1023
|
-
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts",
|
|
1022
|
+
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", false),
|
|
1024
1023
|
outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
|
|
1025
1024
|
distDir: userOptions.distDir || "dist",
|
|
1026
1025
|
plugins: [],
|
|
@@ -1035,7 +1034,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1035
1034
|
metafile: userOptions.metafile !== false,
|
|
1036
1035
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
1037
1036
|
clean: userOptions.clean !== false,
|
|
1038
|
-
emitOnAll: userOptions.emitOnAll === true,
|
|
1039
1037
|
assets: userOptions.assets ?? [],
|
|
1040
1038
|
injectShims: userOptions.injectShims !== true,
|
|
1041
1039
|
bundle: userOptions.bundle !== false,
|
|
@@ -1112,7 +1110,7 @@ async function generatePackageJson(context2) {
|
|
|
1112
1110
|
if (Array.isArray(context2.options.entryPoints)) {
|
|
1113
1111
|
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1114
1112
|
in: entryPoint,
|
|
1115
|
-
out: entryPoint
|
|
1113
|
+
out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
|
|
1116
1114
|
} : entryPoint);
|
|
1117
1115
|
}
|
|
1118
1116
|
for (const entryPoint of entryPoints) {
|
|
@@ -1183,7 +1181,6 @@ async function executeEsBuild(context2) {
|
|
|
1183
1181
|
delete options.clean;
|
|
1184
1182
|
delete options.debug;
|
|
1185
1183
|
delete options.generatePackageJson;
|
|
1186
|
-
delete options.emitOnAll;
|
|
1187
1184
|
delete options.distDir;
|
|
1188
1185
|
delete options.includeSrc;
|
|
1189
1186
|
delete options.verbose;
|
|
@@ -1196,7 +1193,10 @@ async function executeEsBuild(context2) {
|
|
|
1196
1193
|
delete options.injectShims;
|
|
1197
1194
|
delete options.external;
|
|
1198
1195
|
writeTrace(`Run esbuild (${context2.options.name}) with the following options:
|
|
1199
|
-
${formatLogMessage(
|
|
1196
|
+
${formatLogMessage({
|
|
1197
|
+
...options,
|
|
1198
|
+
define: "<Hidden>"
|
|
1199
|
+
})}`, context2.options.config);
|
|
1200
1200
|
const result = await esbuild2.build(options);
|
|
1201
1201
|
await esbuild2.stop();
|
|
1202
1202
|
if (result.metafile) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -20,7 +20,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
20
20
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
21
21
|
}
|
|
22
22
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
23
|
-
var executor_default =
|
|
23
|
+
var executor_default = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
24
24
|
skipReadingConfig: false,
|
|
25
25
|
hooks: {
|
|
26
26
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNQ4W3N7Ojs = require('./chunk-NQ4W3N7O.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 = _chunkNQ4W3N7Ojs.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,6 +1,6 @@
|
|
|
1
1
|
import * as _nx_devkit from '@nx/devkit';
|
|
2
2
|
import { ExecutorContext } from '@nx/devkit';
|
|
3
|
-
import { S as StormWorkspaceConfig } from './types-
|
|
3
|
+
import { S as StormWorkspaceConfig } from './types-C3URiht7.js';
|
|
4
4
|
|
|
5
5
|
// Generated by @storm-software/untyped
|
|
6
6
|
// Do not edit this file directly
|