@storm-software/projen 0.9.31 → 0.9.32
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 +95 -42
- package/README.md +7 -7
- package/dist/{chunk-TKYNU6LX.js → chunk-3DQG66DJ.js} +7 -7
- package/dist/chunk-3Y6AMHJ5.js +6 -0
- package/dist/{chunk-D7E6PO7R.js → chunk-KWEYIJCM.js} +760 -774
- package/dist/{chunk-2QLFDU35.mjs → chunk-M432POFH.mjs} +1 -1
- package/dist/{chunk-Y44MTSI7.mjs → chunk-MC42JFGZ.mjs} +2 -2
- package/dist/{chunk-ZXG4IN2I.mjs → chunk-RQVK53ZU.mjs} +395 -409
- package/dist/{chunk-TGOBVO4I.mjs → chunk-TTG4YCRZ.mjs} +1 -1
- package/dist/{chunk-SETAUINA.js → chunk-WTMG7MTK.js} +2 -2
- package/dist/{chunk-574Q4AGO.mjs → chunk-WXKORI6N.mjs} +1 -1
- package/dist/{chunk-EKZ5PM52.js → chunk-Z2UXMCUY.js} +3 -3
- package/dist/generators.d.mts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/{index-C9MVcMz_.d.mts → index-Dx_XVEzo.d.mts} +64 -0
- package/dist/{index-C9MVcMz_.d.ts → index-Dx_XVEzo.d.ts} +64 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +17 -17
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.d.mts +1 -1
- package/dist/src/generators/init/generator.d.ts +1 -1
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +6 -6
- package/dist/chunk-TTGWXSDC.js +0 -6
|
@@ -1,39 +1,39 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3DQG66DJjs = require('./chunk-3DQG66DJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkWTMG7MTKjs = require('./chunk-WTMG7MTK.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _devkit = require('@nx/devkit');
|
|
14
14
|
|
|
15
15
|
// ../workspace-tools/index.ts
|
|
16
|
-
|
|
16
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/executors.ts
|
|
19
|
-
|
|
19
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
|
|
21
21
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
22
|
-
|
|
22
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// ../workspace-tools/src/base/base-executor.ts
|
|
25
|
-
|
|
25
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
28
|
-
|
|
28
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
var _c12 = require('c12');
|
|
30
30
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/logger/console.ts
|
|
33
|
-
|
|
33
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
34
34
|
|
|
35
35
|
// ../config-tools/src/types.ts
|
|
36
|
-
|
|
36
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
var LogLevel = {
|
|
38
38
|
SILENT: 0,
|
|
39
39
|
FATAL: 10,
|
|
@@ -58,23 +58,38 @@ var LogLevelLabel = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
61
|
-
|
|
61
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
62
62
|
|
|
63
63
|
// ../config/src/index.ts
|
|
64
|
-
|
|
64
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
65
65
|
|
|
66
66
|
// ../config/src/constants.ts
|
|
67
|
-
|
|
67
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
68
68
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
69
69
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
70
|
+
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
70
71
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
71
72
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
73
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
74
|
+
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
75
|
+
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
76
|
+
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
77
|
+
var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
78
|
+
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
79
|
+
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
80
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
81
|
+
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
82
|
+
|
|
83
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
84
|
+
|
|
85
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
86
|
+
`;
|
|
72
87
|
|
|
73
88
|
// ../config/src/define-config.ts
|
|
74
|
-
|
|
89
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
75
90
|
|
|
76
91
|
// ../config/src/schema.ts
|
|
77
|
-
|
|
92
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
78
93
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
79
94
|
var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
80
95
|
var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
@@ -160,9 +175,22 @@ var ColorConfigMapSchema = _zod2.default.union([
|
|
|
160
175
|
var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
161
176
|
var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
162
177
|
var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
163
|
-
name: _zod2.default.string().trim().default("
|
|
178
|
+
name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
164
179
|
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
165
180
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
181
|
+
var WorkspaceReleaseConfigSchema = _zod2.default.object({
|
|
182
|
+
banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
183
|
+
header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
184
|
+
footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
185
|
+
}).describe("The workspace's release config used during the release process");
|
|
186
|
+
var WorkspaceAccountConfigSchema = _zod2.default.object({
|
|
187
|
+
twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
188
|
+
discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
189
|
+
telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
190
|
+
slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
191
|
+
medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
192
|
+
github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
193
|
+
}).describe("The workspace's account config used to store various social media links");
|
|
166
194
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
167
195
|
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
168
196
|
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -182,10 +210,13 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
182
210
|
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
183
211
|
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
184
212
|
licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
213
|
+
contact: _zod2.default.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
|
|
185
214
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
186
215
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
187
216
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
188
217
|
bot: WorkspaceBotConfigSchema,
|
|
218
|
+
release: WorkspaceReleaseConfigSchema,
|
|
219
|
+
account: WorkspaceAccountConfigSchema,
|
|
189
220
|
mode: _zod2.default.enum([
|
|
190
221
|
"development",
|
|
191
222
|
"staging",
|
|
@@ -222,7 +253,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
222
253
|
}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");
|
|
223
254
|
|
|
224
255
|
// ../config/src/types.ts
|
|
225
|
-
|
|
256
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
226
257
|
var COLOR_KEYS = [
|
|
227
258
|
"dark",
|
|
228
259
|
"light",
|
|
@@ -247,10 +278,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
|
|
|
247
278
|
var _path = require('path'); var path6 = _interopRequireWildcard(_path);
|
|
248
279
|
|
|
249
280
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
250
|
-
|
|
281
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
251
282
|
|
|
252
283
|
// ../config-tools/src/utilities/find-up.ts
|
|
253
|
-
|
|
284
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
254
285
|
|
|
255
286
|
|
|
256
287
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -269,7 +300,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
269
300
|
}
|
|
270
301
|
return void 0;
|
|
271
302
|
}
|
|
272
|
-
|
|
303
|
+
_chunkWTMG7MTKjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
273
304
|
|
|
274
305
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
275
306
|
var rootFiles = [
|
|
@@ -316,11 +347,11 @@ var rootDirectories = [
|
|
|
316
347
|
];
|
|
317
348
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
318
349
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
319
|
-
return
|
|
350
|
+
return _chunk3DQG66DJjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
320
351
|
}
|
|
321
|
-
return
|
|
352
|
+
return _chunk3DQG66DJjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
322
353
|
}
|
|
323
|
-
|
|
354
|
+
_chunkWTMG7MTKjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
324
355
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
325
356
|
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
326
357
|
if (!result) {
|
|
@@ -330,7 +361,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
|
330
361
|
}
|
|
331
362
|
return result;
|
|
332
363
|
}
|
|
333
|
-
|
|
364
|
+
_chunkWTMG7MTKjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
334
365
|
|
|
335
366
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
336
367
|
var DEFAULT_COLOR_CONFIG = {
|
|
@@ -361,7 +392,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
361
392
|
negative: "#dc2626"
|
|
362
393
|
}
|
|
363
394
|
};
|
|
364
|
-
var getDefaultConfig = /* @__PURE__ */
|
|
395
|
+
var getDefaultConfig = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (root) => {
|
|
365
396
|
let license = STORM_DEFAULT_LICENSE;
|
|
366
397
|
let homepage = STORM_DEFAULT_HOMEPAGE;
|
|
367
398
|
let name = void 0;
|
|
@@ -369,7 +400,7 @@ var getDefaultConfig = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, asyn
|
|
|
369
400
|
let repository = void 0;
|
|
370
401
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
371
402
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
372
|
-
const file = await _promises.readFile.call(void 0,
|
|
403
|
+
const file = await _promises.readFile.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
373
404
|
if (file) {
|
|
374
405
|
const packageJson = JSON.parse(file);
|
|
375
406
|
if (packageJson.name) {
|
|
@@ -406,28 +437,28 @@ var getDefaultConfig = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, asyn
|
|
|
406
437
|
}, "getDefaultConfig");
|
|
407
438
|
|
|
408
439
|
// ../config-tools/src/logger/chalk.ts
|
|
409
|
-
|
|
440
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
410
441
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
411
442
|
var chalkDefault = {
|
|
412
|
-
hex: /* @__PURE__ */
|
|
413
|
-
bgHex: /* @__PURE__ */
|
|
414
|
-
whiteBright: /* @__PURE__ */
|
|
443
|
+
hex: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
444
|
+
bgHex: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (_) => ({
|
|
445
|
+
whiteBright: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
415
446
|
}), "bgHex"),
|
|
416
|
-
whiteBright: /* @__PURE__ */
|
|
417
|
-
gray: /* @__PURE__ */
|
|
447
|
+
whiteBright: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
448
|
+
gray: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message) => message, "gray"),
|
|
418
449
|
bold: {
|
|
419
|
-
hex: /* @__PURE__ */
|
|
420
|
-
bgHex: /* @__PURE__ */
|
|
421
|
-
whiteBright: /* @__PURE__ */
|
|
450
|
+
hex: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
451
|
+
bgHex: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (_) => ({
|
|
452
|
+
whiteBright: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
422
453
|
}), "bgHex"),
|
|
423
|
-
whiteBright: /* @__PURE__ */
|
|
454
|
+
whiteBright: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
424
455
|
},
|
|
425
456
|
dim: {
|
|
426
|
-
hex: /* @__PURE__ */
|
|
427
|
-
gray: /* @__PURE__ */
|
|
457
|
+
hex: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
458
|
+
gray: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message) => message, "gray")
|
|
428
459
|
}
|
|
429
460
|
};
|
|
430
|
-
var getChalk = /* @__PURE__ */
|
|
461
|
+
var getChalk = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, () => {
|
|
431
462
|
let _chalk = _chalk3.default;
|
|
432
463
|
if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
|
|
433
464
|
_chalk = chalkDefault;
|
|
@@ -436,10 +467,10 @@ var getChalk = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, () => {
|
|
|
436
467
|
}, "getChalk");
|
|
437
468
|
|
|
438
469
|
// ../config-tools/src/logger/console-icons.ts
|
|
439
|
-
|
|
470
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
440
471
|
|
|
441
472
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
442
|
-
|
|
473
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
443
474
|
function isUnicodeSupported() {
|
|
444
475
|
if (process.platform !== "win32") {
|
|
445
476
|
return process.env.TERM !== "linux";
|
|
@@ -449,10 +480,10 @@ function isUnicodeSupported() {
|
|
|
449
480
|
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
450
481
|
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
451
482
|
}
|
|
452
|
-
|
|
483
|
+
_chunkWTMG7MTKjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
453
484
|
|
|
454
485
|
// ../config-tools/src/logger/console-icons.ts
|
|
455
|
-
var useIcon = /* @__PURE__ */
|
|
486
|
+
var useIcon = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
456
487
|
var CONSOLE_ICONS = {
|
|
457
488
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
458
489
|
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
@@ -465,14 +496,14 @@ var CONSOLE_ICONS = {
|
|
|
465
496
|
};
|
|
466
497
|
|
|
467
498
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
468
|
-
|
|
469
|
-
var formatTimestamp = /* @__PURE__ */
|
|
499
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
500
|
+
var formatTimestamp = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
470
501
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
471
502
|
}, "formatTimestamp");
|
|
472
503
|
|
|
473
504
|
// ../config-tools/src/logger/get-log-level.ts
|
|
474
|
-
|
|
475
|
-
var getLogLevel = /* @__PURE__ */
|
|
505
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
506
|
+
var getLogLevel = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (label) => {
|
|
476
507
|
switch (label) {
|
|
477
508
|
case "all":
|
|
478
509
|
return LogLevel.ALL;
|
|
@@ -494,7 +525,7 @@ var getLogLevel = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (label) =
|
|
|
494
525
|
return LogLevel.INFO;
|
|
495
526
|
}
|
|
496
527
|
}, "getLogLevel");
|
|
497
|
-
var getLogLevelLabel = /* @__PURE__ */
|
|
528
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
|
|
498
529
|
if (logLevel >= LogLevel.ALL) {
|
|
499
530
|
return LogLevelLabel.ALL;
|
|
500
531
|
}
|
|
@@ -521,13 +552,13 @@ var getLogLevelLabel = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (log
|
|
|
521
552
|
}
|
|
522
553
|
return LogLevelLabel.INFO;
|
|
523
554
|
}, "getLogLevelLabel");
|
|
524
|
-
var isVerbose = /* @__PURE__ */
|
|
555
|
+
var isVerbose = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
|
|
525
556
|
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
526
557
|
return logLevel >= LogLevel.DEBUG;
|
|
527
558
|
}, "isVerbose");
|
|
528
559
|
|
|
529
560
|
// ../config-tools/src/logger/console.ts
|
|
530
|
-
var getLogFn = /* @__PURE__ */
|
|
561
|
+
var getLogFn = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
531
562
|
const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
532
563
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
533
564
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -537,7 +568,7 @@ var getLogFn = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (logLevel =
|
|
|
537
568
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
538
569
|
return (message) => {
|
|
539
570
|
console.error(`
|
|
540
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
571
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
541
572
|
`);
|
|
542
573
|
};
|
|
543
574
|
}
|
|
@@ -589,14 +620,14 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
589
620
|
`);
|
|
590
621
|
};
|
|
591
622
|
}, "getLogFn");
|
|
592
|
-
var writeFatal = /* @__PURE__ */
|
|
593
|
-
var writeError = /* @__PURE__ */
|
|
594
|
-
var writeWarning = /* @__PURE__ */
|
|
595
|
-
var writeInfo = /* @__PURE__ */
|
|
596
|
-
var writeSuccess = /* @__PURE__ */
|
|
597
|
-
var writeDebug = /* @__PURE__ */
|
|
598
|
-
var writeTrace = /* @__PURE__ */
|
|
599
|
-
var getStopwatch = /* @__PURE__ */
|
|
623
|
+
var writeFatal = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
|
|
624
|
+
var writeError = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
|
|
625
|
+
var writeWarning = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
|
|
626
|
+
var writeInfo = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
|
|
627
|
+
var writeSuccess = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
|
|
628
|
+
var writeDebug = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
629
|
+
var writeTrace = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
630
|
+
var getStopwatch = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (name) => {
|
|
600
631
|
const start = process.hrtime();
|
|
601
632
|
return () => {
|
|
602
633
|
const end = process.hrtime(start);
|
|
@@ -606,7 +637,7 @@ var getStopwatch = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (name) =
|
|
|
606
637
|
};
|
|
607
638
|
}, "getStopwatch");
|
|
608
639
|
var MAX_DEPTH = 4;
|
|
609
|
-
var formatLogMessage = /* @__PURE__ */
|
|
640
|
+
var formatLogMessage = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
|
|
610
641
|
if (depth2 > MAX_DEPTH) {
|
|
611
642
|
return "<max depth>";
|
|
612
643
|
}
|
|
@@ -622,7 +653,7 @@ ${Object.keys(message).filter((key) => !skip2.includes(key)).map((key) => ` ${pr
|
|
|
622
653
|
skip: skip2
|
|
623
654
|
}, depth2 + 1) : message[key]}`).join("\n")}` : message;
|
|
624
655
|
}, "formatLogMessage");
|
|
625
|
-
var _isFunction = /* @__PURE__ */
|
|
656
|
+
var _isFunction = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (value) => {
|
|
626
657
|
try {
|
|
627
658
|
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
|
|
628
659
|
} catch (e) {
|
|
@@ -631,8 +662,8 @@ var _isFunction = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (value) =
|
|
|
631
662
|
}, "_isFunction");
|
|
632
663
|
|
|
633
664
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
634
|
-
|
|
635
|
-
var applyWorkspaceBaseTokens = /* @__PURE__ */
|
|
665
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
666
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (option, tokenParams) => {
|
|
636
667
|
let result = option;
|
|
637
668
|
if (!result) {
|
|
638
669
|
return result;
|
|
@@ -662,10 +693,10 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void
|
|
|
662
693
|
}
|
|
663
694
|
return result;
|
|
664
695
|
}, "applyWorkspaceBaseTokens");
|
|
665
|
-
var applyWorkspaceProjectTokens = /* @__PURE__ */
|
|
696
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (option, tokenParams) => {
|
|
666
697
|
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
667
698
|
}, "applyWorkspaceProjectTokens");
|
|
668
|
-
var applyWorkspaceTokens = /* @__PURE__ */
|
|
699
|
+
var applyWorkspaceTokens = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (options, tokenParams, tokenizerFn) => {
|
|
669
700
|
if (!options) {
|
|
670
701
|
return {};
|
|
671
702
|
}
|
|
@@ -685,10 +716,10 @@ var applyWorkspaceTokens = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0,
|
|
|
685
716
|
}, "applyWorkspaceTokens");
|
|
686
717
|
|
|
687
718
|
// ../config-tools/src/utilities/run.ts
|
|
688
|
-
|
|
719
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
689
720
|
var _child_process = require('child_process');
|
|
690
721
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
691
|
-
var run = /* @__PURE__ */
|
|
722
|
+
var run = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
692
723
|
return _child_process.execSync.call(void 0, command, {
|
|
693
724
|
cwd,
|
|
694
725
|
env: {
|
|
@@ -705,7 +736,7 @@ var run = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (config, command,
|
|
|
705
736
|
}, "run");
|
|
706
737
|
|
|
707
738
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
708
|
-
var getConfigFileByName = /* @__PURE__ */
|
|
739
|
+
var getConfigFileByName = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
709
740
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
710
741
|
const configs = await Promise.all([
|
|
711
742
|
_c12.loadConfig.call(void 0, {
|
|
@@ -715,7 +746,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, a
|
|
|
715
746
|
envName: _optionalChain([fileName, 'optionalAccess', _29 => _29.toUpperCase, 'call', _30 => _30()]),
|
|
716
747
|
jitiOptions: {
|
|
717
748
|
debug: false,
|
|
718
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
749
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk3DQG66DJjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
719
750
|
},
|
|
720
751
|
...options
|
|
721
752
|
}),
|
|
@@ -726,7 +757,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, a
|
|
|
726
757
|
envName: _optionalChain([fileName, 'optionalAccess', _31 => _31.toUpperCase, 'call', _32 => _32()]),
|
|
727
758
|
jitiOptions: {
|
|
728
759
|
debug: false,
|
|
729
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
760
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk3DQG66DJjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
730
761
|
},
|
|
731
762
|
configFile: fileName,
|
|
732
763
|
...options
|
|
@@ -734,7 +765,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, a
|
|
|
734
765
|
]);
|
|
735
766
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
736
767
|
}, "getConfigFileByName");
|
|
737
|
-
var getConfigFile = /* @__PURE__ */
|
|
768
|
+
var getConfigFile = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
738
769
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
739
770
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
740
771
|
let config = result.config;
|
|
@@ -765,12 +796,12 @@ var getConfigFile = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async (
|
|
|
765
796
|
}, "getConfigFile");
|
|
766
797
|
|
|
767
798
|
// ../config-tools/src/create-storm-config.ts
|
|
768
|
-
|
|
799
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
769
800
|
|
|
770
801
|
|
|
771
802
|
// ../config-tools/src/env/get-env.ts
|
|
772
|
-
|
|
773
|
-
var getExtensionEnv = /* @__PURE__ */
|
|
803
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
804
|
+
var getExtensionEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (extensionName) => {
|
|
774
805
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
775
806
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
776
807
|
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
@@ -780,7 +811,7 @@ var getExtensionEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (exte
|
|
|
780
811
|
return ret;
|
|
781
812
|
}, {});
|
|
782
813
|
}, "getExtensionEnv");
|
|
783
|
-
var getConfigEnv = /* @__PURE__ */
|
|
814
|
+
var getConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, () => {
|
|
784
815
|
const prefix = "STORM_";
|
|
785
816
|
let config = {
|
|
786
817
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
@@ -791,23 +822,37 @@ var getConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, () => {
|
|
|
791
822
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
792
823
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
793
824
|
},
|
|
825
|
+
release: {
|
|
826
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
827
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
828
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
829
|
+
},
|
|
830
|
+
account: {
|
|
831
|
+
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
832
|
+
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
833
|
+
telegram: process.env[`${prefix}ACCOUNT_TELEGRAM`] || void 0,
|
|
834
|
+
slack: process.env[`${prefix}ACCOUNT_SLACK`] || void 0,
|
|
835
|
+
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
836
|
+
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
837
|
+
},
|
|
794
838
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
795
839
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
796
840
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
797
841
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
798
842
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
799
843
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
844
|
+
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
800
845
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
801
846
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
802
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
803
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
847
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
848
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
804
849
|
directories: {
|
|
805
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
806
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
807
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
808
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
809
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
810
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
850
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
851
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
852
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
853
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
854
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
855
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk3DQG66DJjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
811
856
|
},
|
|
812
857
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
813
858
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -870,11 +915,11 @@ var getConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, () => {
|
|
|
870
915
|
}
|
|
871
916
|
return config;
|
|
872
917
|
}, "getConfigEnv");
|
|
873
|
-
var getThemeColorConfigEnv = /* @__PURE__ */
|
|
918
|
+
var getThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix, theme) => {
|
|
874
919
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
875
920
|
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
876
921
|
}, "getThemeColorConfigEnv");
|
|
877
|
-
var getSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
922
|
+
var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix) => {
|
|
878
923
|
return {
|
|
879
924
|
dark: process.env[`${prefix}DARK`],
|
|
880
925
|
light: process.env[`${prefix}LIGHT`],
|
|
@@ -892,13 +937,13 @@ var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(
|
|
|
892
937
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
893
938
|
};
|
|
894
939
|
}, "getSingleThemeColorConfigEnv");
|
|
895
|
-
var getMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
940
|
+
var getMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix) => {
|
|
896
941
|
return {
|
|
897
942
|
light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
|
|
898
943
|
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
899
944
|
};
|
|
900
945
|
}, "getMultiThemeColorConfigEnv");
|
|
901
|
-
var getBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
946
|
+
var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix) => {
|
|
902
947
|
return {
|
|
903
948
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
904
949
|
background: process.env[`${prefix}BACKGROUND`],
|
|
@@ -918,8 +963,8 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(vo
|
|
|
918
963
|
}, "getBaseThemeColorConfigEnv");
|
|
919
964
|
|
|
920
965
|
// ../config-tools/src/env/set-env.ts
|
|
921
|
-
|
|
922
|
-
var setExtensionEnv = /* @__PURE__ */
|
|
966
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
967
|
+
var setExtensionEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (extensionName, extension) => {
|
|
923
968
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
924
969
|
if (extension[key]) {
|
|
925
970
|
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _35 => _35.replace, 'call', _36 => _36(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _37 => _37[0], 'optionalAccess', _38 => _38.toUpperCase, 'call', _39 => _39()]) + input.slice(1) : ""), 'access', _40 => _40.split, 'call', _41 => _41(/(?=[A-Z])|[.\-\s_]/), 'access', _42 => _42.map, 'call', _43 => _43((x) => x.toLowerCase())]), () => ( []));
|
|
@@ -938,7 +983,7 @@ var setExtensionEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (exte
|
|
|
938
983
|
}
|
|
939
984
|
}
|
|
940
985
|
}, "setExtensionEnv");
|
|
941
|
-
var setConfigEnv = /* @__PURE__ */
|
|
986
|
+
var setConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (config) => {
|
|
942
987
|
const prefix = "STORM_";
|
|
943
988
|
if (config.extends) {
|
|
944
989
|
process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
|
|
@@ -956,6 +1001,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (config)
|
|
|
956
1001
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
957
1002
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
958
1003
|
}
|
|
1004
|
+
if (config.release) {
|
|
1005
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1006
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1007
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1008
|
+
}
|
|
1009
|
+
if (config.account) {
|
|
1010
|
+
if (config.account.twitter) {
|
|
1011
|
+
process.env[`${prefix}ACCOUNT_TWITTER`] = config.account.twitter;
|
|
1012
|
+
}
|
|
1013
|
+
if (config.account.discord) {
|
|
1014
|
+
process.env[`${prefix}ACCOUNT_DISCORD`] = config.account.discord;
|
|
1015
|
+
}
|
|
1016
|
+
if (config.account.telegram) {
|
|
1017
|
+
process.env[`${prefix}ACCOUNT_TELEGRAM`] = config.account.telegram;
|
|
1018
|
+
}
|
|
1019
|
+
if (config.account.slack) {
|
|
1020
|
+
process.env[`${prefix}ACCOUNT_SLACK`] = config.account.slack;
|
|
1021
|
+
}
|
|
1022
|
+
if (config.account.medium) {
|
|
1023
|
+
process.env[`${prefix}ACCOUNT_MEDIUM`] = config.account.medium;
|
|
1024
|
+
}
|
|
1025
|
+
if (config.account.github) {
|
|
1026
|
+
process.env[`${prefix}ACCOUNT_GITHUB`] = config.account.github;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
959
1029
|
if (config.organization) {
|
|
960
1030
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
961
1031
|
}
|
|
@@ -974,6 +1044,9 @@ var setConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (config)
|
|
|
974
1044
|
if (config.licensing) {
|
|
975
1045
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
976
1046
|
}
|
|
1047
|
+
if (config.contact) {
|
|
1048
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
1049
|
+
}
|
|
977
1050
|
if (config.timezone) {
|
|
978
1051
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
979
1052
|
process.env.TZ = config.timezone;
|
|
@@ -986,31 +1059,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (config)
|
|
|
986
1059
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
987
1060
|
}
|
|
988
1061
|
if (config.configFile) {
|
|
989
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
1062
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.configFile);
|
|
990
1063
|
}
|
|
991
1064
|
if (config.workspaceRoot) {
|
|
992
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
993
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
994
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1065
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1066
|
+
process.env.NX_WORKSPACE_ROOT = _chunk3DQG66DJjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1067
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk3DQG66DJjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
995
1068
|
}
|
|
996
1069
|
if (config.directories) {
|
|
997
1070
|
if (!config.skipCache && config.directories.cache) {
|
|
998
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1071
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.directories.cache);
|
|
999
1072
|
}
|
|
1000
1073
|
if (config.directories.data) {
|
|
1001
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1074
|
+
process.env[`${prefix}DATA_DIR`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.directories.data);
|
|
1002
1075
|
}
|
|
1003
1076
|
if (config.directories.config) {
|
|
1004
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1077
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.directories.config);
|
|
1005
1078
|
}
|
|
1006
1079
|
if (config.directories.temp) {
|
|
1007
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1080
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.directories.temp);
|
|
1008
1081
|
}
|
|
1009
1082
|
if (config.directories.log) {
|
|
1010
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1083
|
+
process.env[`${prefix}LOG_DIR`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.directories.log);
|
|
1011
1084
|
}
|
|
1012
1085
|
if (config.directories.build) {
|
|
1013
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1086
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk3DQG66DJjs.correctPaths.call(void 0, config.directories.build);
|
|
1014
1087
|
}
|
|
1015
1088
|
}
|
|
1016
1089
|
if (config.skipCache !== void 0) {
|
|
@@ -1072,13 +1145,15 @@ var setConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (config)
|
|
|
1072
1145
|
}
|
|
1073
1146
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
1074
1147
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1075
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
1148
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1149
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
1150
|
+
}
|
|
1076
1151
|
}
|
|
1077
1152
|
}, "setConfigEnv");
|
|
1078
|
-
var setThemeColorConfigEnv = /* @__PURE__ */
|
|
1153
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix, config) => {
|
|
1079
1154
|
return _optionalChain([config, 'optionalAccess', _53 => _53.light, 'optionalAccess', _54 => _54.brand]) || _optionalChain([config, 'optionalAccess', _55 => _55.dark, 'optionalAccess', _56 => _56.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
1080
1155
|
}, "setThemeColorConfigEnv");
|
|
1081
|
-
var setSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
1156
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix, config) => {
|
|
1082
1157
|
if (config.dark) {
|
|
1083
1158
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1084
1159
|
}
|
|
@@ -1122,13 +1197,13 @@ var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(
|
|
|
1122
1197
|
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1123
1198
|
}
|
|
1124
1199
|
}, "setSingleThemeColorConfigEnv");
|
|
1125
|
-
var setMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
1200
|
+
var setMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix, config) => {
|
|
1126
1201
|
return {
|
|
1127
1202
|
light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
|
|
1128
1203
|
dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
|
|
1129
1204
|
};
|
|
1130
1205
|
}, "setMultiThemeColorConfigEnv");
|
|
1131
|
-
var setBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
1206
|
+
var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (prefix, config) => {
|
|
1132
1207
|
if (config.foreground) {
|
|
1133
1208
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1134
1209
|
}
|
|
@@ -1176,7 +1251,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(vo
|
|
|
1176
1251
|
// ../config-tools/src/create-storm-config.ts
|
|
1177
1252
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1178
1253
|
var _static_cache = void 0;
|
|
1179
|
-
var createStormConfig = /* @__PURE__ */
|
|
1254
|
+
var createStormConfig = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
|
|
1180
1255
|
let result;
|
|
1181
1256
|
if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1182
1257
|
let _workspaceRoot = workspaceRoot3;
|
|
@@ -1208,7 +1283,7 @@ var createStormConfig = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, asy
|
|
|
1208
1283
|
};
|
|
1209
1284
|
return result;
|
|
1210
1285
|
}, "createStormConfig");
|
|
1211
|
-
var createConfigExtension = /* @__PURE__ */
|
|
1286
|
+
var createConfigExtension = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (extensionName, schema) => {
|
|
1212
1287
|
const extension_cache_key = {
|
|
1213
1288
|
extensionName
|
|
1214
1289
|
};
|
|
@@ -1222,7 +1297,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0,
|
|
|
1222
1297
|
_extension_cache.set(extension_cache_key, extension);
|
|
1223
1298
|
return extension;
|
|
1224
1299
|
}, "createConfigExtension");
|
|
1225
|
-
var loadStormConfig = /* @__PURE__ */
|
|
1300
|
+
var loadStormConfig = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (workspaceRoot3, skipLogs = false) => {
|
|
1226
1301
|
const config = await createStormConfig(void 0, void 0, workspaceRoot3, skipLogs);
|
|
1227
1302
|
setConfigEnv(config);
|
|
1228
1303
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
@@ -1233,14 +1308,14 @@ ${formatLogMessage(config)}`, config);
|
|
|
1233
1308
|
}, "loadStormConfig");
|
|
1234
1309
|
|
|
1235
1310
|
// ../config-tools/src/get-config.ts
|
|
1236
|
-
|
|
1237
|
-
var getConfig = /* @__PURE__ */
|
|
1311
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1312
|
+
var getConfig = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (workspaceRoot3, skipLogs = false) => {
|
|
1238
1313
|
return loadStormConfig(workspaceRoot3, skipLogs);
|
|
1239
1314
|
}, "getConfig");
|
|
1240
1315
|
|
|
1241
1316
|
// ../workspace-tools/src/base/base-executor.ts
|
|
1242
1317
|
|
|
1243
|
-
var withRunExecutor = /* @__PURE__ */
|
|
1318
|
+
var withRunExecutor = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
|
|
1244
1319
|
const stopwatch = getStopwatch(name);
|
|
1245
1320
|
let options = _options;
|
|
1246
1321
|
let config = {};
|
|
@@ -1323,7 +1398,7 @@ ${formatLogMessage(result)}`, config);
|
|
|
1323
1398
|
stopwatch();
|
|
1324
1399
|
}
|
|
1325
1400
|
}, "withRunExecutor");
|
|
1326
|
-
var _isFunction2 = /* @__PURE__ */
|
|
1401
|
+
var _isFunction2 = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (value) => {
|
|
1327
1402
|
try {
|
|
1328
1403
|
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _77 => _77.constructor]) && _optionalChain([value, 'optionalAccess', _78 => _78.call]) && _optionalChain([value, 'optionalAccess', _79 => _79.apply]));
|
|
1329
1404
|
} catch (e) {
|
|
@@ -1332,7 +1407,7 @@ var _isFunction2 = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (value)
|
|
|
1332
1407
|
}, "_isFunction");
|
|
1333
1408
|
|
|
1334
1409
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1335
|
-
|
|
1410
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1336
1411
|
|
|
1337
1412
|
|
|
1338
1413
|
|
|
@@ -1344,7 +1419,7 @@ var INVALID_CARGO_ARGS = [
|
|
|
1344
1419
|
"package",
|
|
1345
1420
|
"tsConfig"
|
|
1346
1421
|
];
|
|
1347
|
-
var buildCargoCommand = /* @__PURE__ */
|
|
1422
|
+
var buildCargoCommand = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (baseCommand, options, context2) => {
|
|
1348
1423
|
const args = [];
|
|
1349
1424
|
if (options.toolchain && options.toolchain !== "stable") {
|
|
1350
1425
|
args.push(`+${options.toolchain}`);
|
|
@@ -1388,7 +1463,7 @@ async function cargoCommand(...args) {
|
|
|
1388
1463
|
args.push("--color", "always");
|
|
1389
1464
|
return await Promise.resolve(runProcess("cargo", ...args));
|
|
1390
1465
|
}
|
|
1391
|
-
|
|
1466
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoCommand, "cargoCommand");
|
|
1392
1467
|
function cargoCommandSync(args = "", options) {
|
|
1393
1468
|
const normalizedOptions = {
|
|
1394
1469
|
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _80 => _80.stdio]), () => ( "inherit")),
|
|
@@ -1415,7 +1490,7 @@ function cargoCommandSync(args = "", options) {
|
|
|
1415
1490
|
};
|
|
1416
1491
|
}
|
|
1417
1492
|
}
|
|
1418
|
-
|
|
1493
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoCommandSync, "cargoCommandSync");
|
|
1419
1494
|
function cargoMetadata() {
|
|
1420
1495
|
const output3 = cargoCommandSync("metadata --format-version=1", {
|
|
1421
1496
|
stdio: "pipe"
|
|
@@ -1426,7 +1501,7 @@ function cargoMetadata() {
|
|
|
1426
1501
|
}
|
|
1427
1502
|
return JSON.parse(output3.output);
|
|
1428
1503
|
}
|
|
1429
|
-
|
|
1504
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoMetadata, "cargoMetadata");
|
|
1430
1505
|
function runProcess(processCmd, ...args) {
|
|
1431
1506
|
const metadata = cargoMetadata();
|
|
1432
1507
|
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _82 => _82.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
|
|
@@ -1456,18 +1531,18 @@ function runProcess(processCmd, ...args) {
|
|
|
1456
1531
|
});
|
|
1457
1532
|
});
|
|
1458
1533
|
}
|
|
1459
|
-
|
|
1534
|
+
_chunkWTMG7MTKjs.__name.call(void 0, runProcess, "runProcess");
|
|
1460
1535
|
|
|
1461
1536
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
1462
1537
|
async function cargoBuildExecutor(options, context2) {
|
|
1463
1538
|
const command = buildCargoCommand("build", options, context2);
|
|
1464
1539
|
return await cargoCommand(...command);
|
|
1465
1540
|
}
|
|
1466
|
-
|
|
1541
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
1467
1542
|
var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
1468
1543
|
skipReadingConfig: false,
|
|
1469
1544
|
hooks: {
|
|
1470
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1545
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
1471
1546
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1472
1547
|
options.toolchain ??= "stable";
|
|
1473
1548
|
return options;
|
|
@@ -1476,16 +1551,16 @@ var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
|
1476
1551
|
});
|
|
1477
1552
|
|
|
1478
1553
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1479
|
-
|
|
1554
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1480
1555
|
async function cargoCheckExecutor(options, context2) {
|
|
1481
1556
|
const command = buildCargoCommand("check", options, context2);
|
|
1482
1557
|
return await cargoCommand(...command);
|
|
1483
1558
|
}
|
|
1484
|
-
|
|
1559
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
1485
1560
|
var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
1486
1561
|
skipReadingConfig: false,
|
|
1487
1562
|
hooks: {
|
|
1488
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1563
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
1489
1564
|
options.toolchain ??= "stable";
|
|
1490
1565
|
return options;
|
|
1491
1566
|
}, "applyDefaultOptions")
|
|
@@ -1493,16 +1568,16 @@ var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
|
1493
1568
|
});
|
|
1494
1569
|
|
|
1495
1570
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1496
|
-
|
|
1571
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1497
1572
|
async function cargoClippyExecutor(options, context2) {
|
|
1498
1573
|
const command = buildCargoCommand("clippy", options, context2);
|
|
1499
1574
|
return await cargoCommand(...command);
|
|
1500
1575
|
}
|
|
1501
|
-
|
|
1576
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
1502
1577
|
var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
1503
1578
|
skipReadingConfig: false,
|
|
1504
1579
|
hooks: {
|
|
1505
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1580
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
1506
1581
|
options.toolchain ??= "stable";
|
|
1507
1582
|
options.fix ??= false;
|
|
1508
1583
|
return options;
|
|
@@ -1511,7 +1586,7 @@ var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
|
1511
1586
|
});
|
|
1512
1587
|
|
|
1513
1588
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1514
|
-
|
|
1589
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1515
1590
|
async function cargoDocExecutor(options, context2) {
|
|
1516
1591
|
const opts = {
|
|
1517
1592
|
...options
|
|
@@ -1521,11 +1596,11 @@ async function cargoDocExecutor(options, context2) {
|
|
|
1521
1596
|
const command = buildCargoCommand("doc", options, context2);
|
|
1522
1597
|
return await cargoCommand(...command);
|
|
1523
1598
|
}
|
|
1524
|
-
|
|
1599
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
1525
1600
|
var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
1526
1601
|
skipReadingConfig: false,
|
|
1527
1602
|
hooks: {
|
|
1528
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1603
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
1529
1604
|
options.outputPath ??= "dist/docs/{projectRoot}";
|
|
1530
1605
|
options.toolchain ??= "stable";
|
|
1531
1606
|
options.release ??= options.profile ? false : true;
|
|
@@ -1540,16 +1615,16 @@ var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
|
1540
1615
|
});
|
|
1541
1616
|
|
|
1542
1617
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1543
|
-
|
|
1618
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1544
1619
|
async function cargoFormatExecutor(options, context2) {
|
|
1545
1620
|
const command = buildCargoCommand("fmt", options, context2);
|
|
1546
1621
|
return await cargoCommand(...command);
|
|
1547
1622
|
}
|
|
1548
|
-
|
|
1623
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
1549
1624
|
var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
1550
1625
|
skipReadingConfig: false,
|
|
1551
1626
|
hooks: {
|
|
1552
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1627
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
1553
1628
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1554
1629
|
options.toolchain ??= "stable";
|
|
1555
1630
|
return options;
|
|
@@ -1558,14 +1633,14 @@ var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
|
1558
1633
|
});
|
|
1559
1634
|
|
|
1560
1635
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1561
|
-
|
|
1636
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1562
1637
|
|
|
1563
1638
|
|
|
1564
1639
|
|
|
1565
1640
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
1566
1641
|
|
|
1567
1642
|
// ../workspace-tools/src/utils/toml.ts
|
|
1568
|
-
|
|
1643
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1569
1644
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1570
1645
|
|
|
1571
1646
|
|
|
@@ -1573,61 +1648,61 @@ var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml
|
|
|
1573
1648
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1574
1649
|
|
|
1575
1650
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1576
|
-
|
|
1651
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1577
1652
|
|
|
1578
1653
|
// ../esbuild/src/build.ts
|
|
1579
|
-
|
|
1654
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1580
1655
|
|
|
1581
1656
|
|
|
1582
1657
|
// ../build-tools/src/index.ts
|
|
1583
|
-
|
|
1658
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1584
1659
|
|
|
1585
1660
|
// ../build-tools/src/config.ts
|
|
1586
|
-
|
|
1587
|
-
var DEFAULT_COMPILED_BANNER =
|
|
1588
|
-
|
|
1661
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1662
|
+
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
1663
|
+
*
|
|
1589
1664
|
* \u26A1 Built by Storm Software
|
|
1590
|
-
|
|
1591
|
-
|
|
1665
|
+
*
|
|
1666
|
+
*****************************************/
|
|
1592
1667
|
`;
|
|
1593
1668
|
var DEFAULT_ENVIRONMENT = "production";
|
|
1594
1669
|
var DEFAULT_TARGET = "esnext";
|
|
1595
1670
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1596
1671
|
|
|
1597
1672
|
// ../build-tools/src/plugins/index.ts
|
|
1598
|
-
|
|
1673
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1599
1674
|
|
|
1600
1675
|
// ../build-tools/src/plugins/analyze.ts
|
|
1601
|
-
|
|
1676
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1602
1677
|
|
|
1603
1678
|
// ../build-tools/src/plugins/swc.ts
|
|
1604
|
-
|
|
1679
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1605
1680
|
var _core = require('@swc/core');
|
|
1606
1681
|
|
|
1607
1682
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1608
|
-
|
|
1683
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1609
1684
|
|
|
1610
1685
|
var _module = require('module');
|
|
1611
1686
|
|
|
1612
1687
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1613
1688
|
|
|
1614
1689
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1615
|
-
|
|
1690
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1616
1691
|
|
|
1617
1692
|
|
|
1618
1693
|
|
|
1619
1694
|
// ../build-tools/src/types.ts
|
|
1620
|
-
|
|
1695
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1621
1696
|
|
|
1622
1697
|
// ../build-tools/src/utilities/index.ts
|
|
1623
|
-
|
|
1698
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1624
1699
|
|
|
1625
1700
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1626
|
-
|
|
1701
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1627
1702
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
1628
1703
|
var _glob = require('glob');
|
|
1629
1704
|
|
|
1630
|
-
var copyAssets = /* @__PURE__ */
|
|
1705
|
+
var copyAssets = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
1631
1706
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
1632
1707
|
pendingAssets.push({
|
|
1633
1708
|
input: projectRoot,
|
|
@@ -1639,7 +1714,7 @@ var copyAssets = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async (con
|
|
|
1639
1714
|
glob: "LICENSE",
|
|
1640
1715
|
output: "."
|
|
1641
1716
|
});
|
|
1642
|
-
if (
|
|
1717
|
+
if (generatePackageJson2 === false) {
|
|
1643
1718
|
pendingAssets.push({
|
|
1644
1719
|
input: projectRoot,
|
|
1645
1720
|
glob: "package.json",
|
|
@@ -1654,7 +1729,7 @@ var copyAssets = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async (con
|
|
|
1654
1729
|
});
|
|
1655
1730
|
}
|
|
1656
1731
|
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
1657
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
1732
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk3DQG66DJjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1658
1733
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
1659
1734
|
projectDir: projectRoot,
|
|
1660
1735
|
rootDir: config.workspaceRoot,
|
|
@@ -1663,12 +1738,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
1663
1738
|
});
|
|
1664
1739
|
await assetHandler.processAllAssetsOnce();
|
|
1665
1740
|
if (includeSrc === true) {
|
|
1666
|
-
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${
|
|
1741
|
+
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${_chunk3DQG66DJjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
1667
1742
|
const files = await _glob.glob.call(void 0, [
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1743
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
1744
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
1745
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1746
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1672
1747
|
]);
|
|
1673
1748
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
1674
1749
|
|
|
@@ -1679,20 +1754,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1679
1754
|
}, "copyAssets");
|
|
1680
1755
|
|
|
1681
1756
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1682
|
-
|
|
1757
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1683
1758
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
1684
1759
|
|
|
1685
1760
|
|
|
1686
1761
|
|
|
1687
1762
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
1688
|
-
var addPackageDependencies = /* @__PURE__ */
|
|
1763
|
+
var addPackageDependencies = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1689
1764
|
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
1690
1765
|
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
1691
1766
|
const localPackages = [];
|
|
1692
|
-
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
1767
|
+
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _83 => _83.node, 'access', _84 => _84.data, 'optionalAccess', _85 => _85.root]) !== projectRoot && _optionalChain([dep, 'access', _86 => _86.node, 'access', _87 => _87.data, 'optionalAccess', _88 => _88.root]) !== workspaceRoot3)) {
|
|
1693
1768
|
const projectNode = project.node;
|
|
1694
1769
|
if (projectNode.data.root) {
|
|
1695
|
-
const projectPackageJsonPath =
|
|
1770
|
+
const projectPackageJsonPath = _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
1696
1771
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
1697
1772
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
1698
1773
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -1704,16 +1779,16 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0
|
|
|
1704
1779
|
}
|
|
1705
1780
|
if (localPackages.length > 0) {
|
|
1706
1781
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
1707
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
1782
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
1708
1783
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1709
1784
|
const projectName2 = projectJson.name;
|
|
1710
1785
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1711
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1786
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _89 => _89.projects, 'optionalAccess', _90 => _90[projectName2]])) {
|
|
1712
1787
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
1713
1788
|
}
|
|
1714
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
1715
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
1716
|
-
const depPackageJsonPath =
|
|
1789
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _91 => _91.projects, 'optionalAccess', _92 => _92[projectName2], 'access', _93 => _93.implicitDependencies, 'optionalAccess', _94 => _94.reduce, 'call', _95 => _95((ret, dep) => {
|
|
1790
|
+
if (_optionalChain([projectConfigurations, 'access', _96 => _96.projects, 'optionalAccess', _97 => _97[dep]])) {
|
|
1791
|
+
const depPackageJsonPath = _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
1717
1792
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
1718
1793
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
1719
1794
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -1725,13 +1800,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0
|
|
|
1725
1800
|
return ret;
|
|
1726
1801
|
}, [])]);
|
|
1727
1802
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
1728
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
1803
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _98 => _98.includes, 'call', _99 => _99(localPackage.name)])) {
|
|
1729
1804
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
1730
1805
|
}
|
|
1731
1806
|
return ret;
|
|
1732
1807
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
1733
1808
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
1734
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
1809
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _100 => _100.includes, 'call', _101 => _101(localPackage.name)])) {
|
|
1735
1810
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
1736
1811
|
}
|
|
1737
1812
|
return ret;
|
|
@@ -1741,9 +1816,9 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0
|
|
|
1741
1816
|
}
|
|
1742
1817
|
return packageJson;
|
|
1743
1818
|
}, "addPackageDependencies");
|
|
1744
|
-
var addWorkspacePackageJsonFields = /* @__PURE__ */
|
|
1819
|
+
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
1745
1820
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
1746
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
1821
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
1747
1822
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
1748
1823
|
packageJson.type ??= "module";
|
|
1749
1824
|
packageJson.sideEffects ??= false;
|
|
@@ -1752,7 +1827,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSETAUINAjs.__name.call
|
|
|
1752
1827
|
if (distSrc.startsWith("/")) {
|
|
1753
1828
|
distSrc = distSrc.substring(1);
|
|
1754
1829
|
}
|
|
1755
|
-
packageJson.source ??= `${
|
|
1830
|
+
packageJson.source ??= `${_chunk3DQG66DJjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
1756
1831
|
}
|
|
1757
1832
|
packageJson.files ??= [
|
|
1758
1833
|
"dist/**/*"
|
|
@@ -1783,74 +1858,65 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSETAUINAjs.__name.call
|
|
|
1783
1858
|
];
|
|
1784
1859
|
}
|
|
1785
1860
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
1786
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
1861
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk3DQG66DJjs.joinPaths.call(void 0, "packages", projectName);
|
|
1787
1862
|
return packageJson;
|
|
1788
1863
|
}, "addWorkspacePackageJsonFields");
|
|
1789
|
-
var addPackageJsonExport = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
1790
|
-
let entry = file.replaceAll("\\", "/");
|
|
1791
|
-
if (sourceRoot) {
|
|
1792
|
-
entry = entry.replace(sourceRoot, "");
|
|
1793
|
-
}
|
|
1794
|
-
return {
|
|
1795
|
-
import: {
|
|
1796
|
-
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
1797
|
-
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
1798
|
-
},
|
|
1799
|
-
require: {
|
|
1800
|
-
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
1801
|
-
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
1802
|
-
},
|
|
1803
|
-
default: {
|
|
1804
|
-
types: `./dist/${entry}.d.ts`,
|
|
1805
|
-
default: `./dist/${entry}.js`
|
|
1806
|
-
}
|
|
1807
|
-
};
|
|
1808
|
-
}, "addPackageJsonExport");
|
|
1809
1864
|
|
|
1810
1865
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1811
|
-
|
|
1866
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1812
1867
|
|
|
1813
|
-
var getEntryPoints = /* @__PURE__ */
|
|
1814
|
-
const workspaceRoot3 = config.workspaceRoot
|
|
1868
|
+
var getEntryPoints = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1869
|
+
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
1815
1870
|
const entryPoints = [];
|
|
1816
1871
|
if (entry) {
|
|
1817
|
-
if (
|
|
1818
|
-
entryPoints.push(...entry);
|
|
1819
|
-
} else if (typeof entry === "string") {
|
|
1872
|
+
if (typeof entry === "string") {
|
|
1820
1873
|
entryPoints.push(entry);
|
|
1874
|
+
} else if (Array.isArray(entry)) {
|
|
1875
|
+
entryPoints.push(...entry);
|
|
1821
1876
|
} else {
|
|
1822
1877
|
entryPoints.push(...Object.values(entry));
|
|
1823
1878
|
}
|
|
1824
1879
|
}
|
|
1825
1880
|
if (emitOnAll) {
|
|
1826
|
-
entryPoints.push(
|
|
1881
|
+
entryPoints.push(_chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
1827
1882
|
}
|
|
1828
|
-
const results =
|
|
1829
|
-
|
|
1883
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1884
|
+
const paths = [];
|
|
1830
1885
|
if (entryPoint.includes("*")) {
|
|
1831
1886
|
const files = await _glob.glob.call(void 0, entryPoint, {
|
|
1832
|
-
withFileTypes: true
|
|
1887
|
+
withFileTypes: true,
|
|
1888
|
+
ignore: [
|
|
1889
|
+
"**/node_modules/**"
|
|
1890
|
+
]
|
|
1833
1891
|
});
|
|
1834
|
-
|
|
1835
|
-
const result =
|
|
1892
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
1893
|
+
const result = _chunk3DQG66DJjs.correctPaths.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1836
1894
|
if (result) {
|
|
1837
|
-
writeDebug(`Trying to add entry point ${result} at "${
|
|
1838
|
-
if (!
|
|
1839
|
-
|
|
1895
|
+
writeDebug(`Trying to add entry point ${result} at "${_chunk3DQG66DJjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1896
|
+
if (!paths.includes(result)) {
|
|
1897
|
+
paths.push(result);
|
|
1840
1898
|
}
|
|
1841
1899
|
}
|
|
1842
1900
|
return ret;
|
|
1843
1901
|
}, []));
|
|
1844
1902
|
} else {
|
|
1845
|
-
|
|
1903
|
+
paths.push(entryPoint);
|
|
1846
1904
|
}
|
|
1847
|
-
|
|
1848
|
-
|
|
1905
|
+
return paths;
|
|
1906
|
+
}));
|
|
1907
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
1908
|
+
result.forEach((res) => {
|
|
1909
|
+
if (res && !ret.includes(res)) {
|
|
1910
|
+
ret.push(res);
|
|
1911
|
+
}
|
|
1912
|
+
});
|
|
1913
|
+
return ret;
|
|
1914
|
+
}, []);
|
|
1849
1915
|
}, "getEntryPoints");
|
|
1850
1916
|
|
|
1851
1917
|
// ../build-tools/src/utilities/get-env.ts
|
|
1852
|
-
|
|
1853
|
-
var getEnv = /* @__PURE__ */
|
|
1918
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1919
|
+
var getEnv = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (builder, options) => {
|
|
1854
1920
|
return {
|
|
1855
1921
|
STORM_BUILD: builder,
|
|
1856
1922
|
STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
|
|
@@ -1864,41 +1930,21 @@ var getEnv = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (builder, opti
|
|
|
1864
1930
|
}, "getEnv");
|
|
1865
1931
|
|
|
1866
1932
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1867
|
-
|
|
1933
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1868
1934
|
|
|
1869
1935
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1870
|
-
|
|
1871
|
-
function getOutExtension(format2, pkgType) {
|
|
1872
|
-
let jsExtension = ".js";
|
|
1873
|
-
let dtsExtension = ".d.ts";
|
|
1874
|
-
if (pkgType === "module" && format2 === "cjs") {
|
|
1875
|
-
jsExtension = ".cjs";
|
|
1876
|
-
dtsExtension = ".d.cts";
|
|
1877
|
-
}
|
|
1878
|
-
if (pkgType !== "module" && format2 === "esm") {
|
|
1879
|
-
jsExtension = ".mjs";
|
|
1880
|
-
dtsExtension = ".d.mts";
|
|
1881
|
-
}
|
|
1882
|
-
if (format2 === "iife") {
|
|
1883
|
-
jsExtension = ".global.js";
|
|
1884
|
-
}
|
|
1885
|
-
return {
|
|
1886
|
-
js: jsExtension,
|
|
1887
|
-
dts: dtsExtension
|
|
1888
|
-
};
|
|
1889
|
-
}
|
|
1890
|
-
_chunkSETAUINAjs.__name.call(void 0, getOutExtension, "getOutExtension");
|
|
1936
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1891
1937
|
|
|
1892
1938
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1893
|
-
|
|
1939
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1894
1940
|
|
|
1895
1941
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1896
|
-
|
|
1942
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1897
1943
|
|
|
1898
1944
|
|
|
1899
1945
|
|
|
1900
1946
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1901
|
-
|
|
1947
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1902
1948
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
1903
1949
|
|
|
1904
1950
|
// ../esbuild/src/build.ts
|
|
@@ -1913,15 +1959,15 @@ var _globby = require('globby');
|
|
|
1913
1959
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
1914
1960
|
|
|
1915
1961
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1916
|
-
|
|
1962
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1917
1963
|
|
|
1918
1964
|
var _sourcemap = require('source-map');
|
|
1919
1965
|
|
|
1920
1966
|
// ../esbuild/src/utilities/output-file.ts
|
|
1921
|
-
|
|
1967
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1922
1968
|
|
|
1923
1969
|
|
|
1924
|
-
var outputFile = /* @__PURE__ */
|
|
1970
|
+
var outputFile = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (filepath, data, options) => {
|
|
1925
1971
|
await _fs2.default.promises.mkdir(path6.default.dirname(filepath), {
|
|
1926
1972
|
recursive: true
|
|
1927
1973
|
});
|
|
@@ -1929,12 +1975,12 @@ var outputFile = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async (fil
|
|
|
1929
1975
|
}, "outputFile");
|
|
1930
1976
|
|
|
1931
1977
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1932
|
-
var parseSourceMap = /* @__PURE__ */
|
|
1978
|
+
var parseSourceMap = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (map2) => {
|
|
1933
1979
|
return typeof map2 === "string" ? JSON.parse(map2) : map2;
|
|
1934
1980
|
}, "parseSourceMap");
|
|
1935
|
-
var isJS = /* @__PURE__ */
|
|
1936
|
-
var isCSS = /* @__PURE__ */
|
|
1937
|
-
var getSourcemapComment = /* @__PURE__ */
|
|
1981
|
+
var isJS = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (path7) => /\.(js|mjs|cjs)$/.test(path7), "isJS");
|
|
1982
|
+
var isCSS = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (path7) => /\.css$/.test(path7), "isCSS");
|
|
1983
|
+
var getSourcemapComment = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (inline, map2, filepath, isCssFile) => {
|
|
1938
1984
|
if (!map2) return "";
|
|
1939
1985
|
const prefix = isCssFile ? "/*" : "//";
|
|
1940
1986
|
const suffix = isCssFile ? " */" : "";
|
|
@@ -1943,7 +1989,7 @@ var getSourcemapComment = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (
|
|
|
1943
1989
|
}, "getSourcemapComment");
|
|
1944
1990
|
var RendererEngine = class {
|
|
1945
1991
|
static {
|
|
1946
|
-
|
|
1992
|
+
_chunkWTMG7MTKjs.__name.call(void 0, this, "RendererEngine");
|
|
1947
1993
|
}
|
|
1948
1994
|
#renderers;
|
|
1949
1995
|
#options;
|
|
@@ -1980,15 +2026,15 @@ var RendererEngine = class {
|
|
|
1980
2026
|
if (!relativePath.startsWith("\\\\?\\")) {
|
|
1981
2027
|
relativePath = relativePath.replace(/\\/g, "/");
|
|
1982
2028
|
}
|
|
1983
|
-
const meta = _optionalChain([metafile, 'optionalAccess',
|
|
2029
|
+
const meta = _optionalChain([metafile, 'optionalAccess', _102 => _102.outputs, 'access', _103 => _103[relativePath]]);
|
|
1984
2030
|
return {
|
|
1985
2031
|
type: "chunk",
|
|
1986
2032
|
path: file.path,
|
|
1987
2033
|
code: file.text,
|
|
1988
|
-
map: _optionalChain([outputFiles, 'access',
|
|
1989
|
-
entryPoint: _optionalChain([meta, 'optionalAccess',
|
|
1990
|
-
exports: _optionalChain([meta, 'optionalAccess',
|
|
1991
|
-
imports: _optionalChain([meta, 'optionalAccess',
|
|
2034
|
+
map: _optionalChain([outputFiles, 'access', _104 => _104.find, 'call', _105 => _105((f) => f.path === `${file.path}.map`), 'optionalAccess', _106 => _106.text]),
|
|
2035
|
+
entryPoint: _optionalChain([meta, 'optionalAccess', _107 => _107.entryPoint]),
|
|
2036
|
+
exports: _optionalChain([meta, 'optionalAccess', _108 => _108.exports]),
|
|
2037
|
+
imports: _optionalChain([meta, 'optionalAccess', _109 => _109.imports])
|
|
1992
2038
|
};
|
|
1993
2039
|
} else {
|
|
1994
2040
|
return {
|
|
@@ -2056,7 +2102,7 @@ var RendererEngine = class {
|
|
|
2056
2102
|
};
|
|
2057
2103
|
|
|
2058
2104
|
// ../esbuild/src/clean.ts
|
|
2059
|
-
|
|
2105
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2060
2106
|
|
|
2061
2107
|
async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
2062
2108
|
await _promises.rm.call(void 0, directory, {
|
|
@@ -2064,19 +2110,19 @@ async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
|
2064
2110
|
force: true
|
|
2065
2111
|
});
|
|
2066
2112
|
}
|
|
2067
|
-
|
|
2113
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
2068
2114
|
|
|
2069
2115
|
// ../esbuild/src/config.ts
|
|
2070
|
-
|
|
2116
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2071
2117
|
|
|
2072
2118
|
// ../esbuild/src/plugins/esm-split-code-to-cjs.ts
|
|
2073
|
-
|
|
2119
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2074
2120
|
|
|
2075
|
-
var esmSplitCodeToCjsPlugin = /* @__PURE__ */
|
|
2121
|
+
var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2076
2122
|
name: "storm:esm-split-code-to-cjs",
|
|
2077
|
-
setup(
|
|
2078
|
-
|
|
2079
|
-
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access',
|
|
2123
|
+
setup(build4) {
|
|
2124
|
+
build4.onEnd(async (result) => {
|
|
2125
|
+
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _110 => _110.metafile, 'optionalAccess', _111 => _111.outputs]), () => ( {})));
|
|
2080
2126
|
const jsFiles = outFiles.filter((f) => f.endsWith("js"));
|
|
2081
2127
|
await esbuild.build({
|
|
2082
2128
|
outdir: resolvedOptions.outdir,
|
|
@@ -2091,39 +2137,39 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void
|
|
|
2091
2137
|
}), "esmSplitCodeToCjsPlugin");
|
|
2092
2138
|
|
|
2093
2139
|
// ../esbuild/src/plugins/fix-imports.ts
|
|
2094
|
-
|
|
2095
|
-
var fixImportsPlugin = /* @__PURE__ */
|
|
2140
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2141
|
+
var fixImportsPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2096
2142
|
name: "storm:fix-imports",
|
|
2097
|
-
setup(
|
|
2098
|
-
|
|
2143
|
+
setup(build4) {
|
|
2144
|
+
build4.onResolve({
|
|
2099
2145
|
filter: /^spdx-exceptions/
|
|
2100
2146
|
}, () => {
|
|
2101
2147
|
return {
|
|
2102
|
-
path:
|
|
2148
|
+
path: _chunkWTMG7MTKjs.__require.resolve("spdx-exceptions")
|
|
2103
2149
|
};
|
|
2104
2150
|
});
|
|
2105
|
-
|
|
2151
|
+
build4.onResolve({
|
|
2106
2152
|
filter: /^spdx-license-ids/
|
|
2107
2153
|
}, () => {
|
|
2108
2154
|
return {
|
|
2109
|
-
path:
|
|
2155
|
+
path: _chunkWTMG7MTKjs.__require.resolve("spdx-license-ids")
|
|
2110
2156
|
};
|
|
2111
2157
|
});
|
|
2112
2158
|
}
|
|
2113
2159
|
}), "fixImportsPlugin");
|
|
2114
2160
|
|
|
2115
2161
|
// ../esbuild/src/plugins/native-node-module.ts
|
|
2116
|
-
|
|
2162
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2117
2163
|
|
|
2118
|
-
var nativeNodeModulesPlugin = /* @__PURE__ */
|
|
2164
|
+
var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
2119
2165
|
return {
|
|
2120
2166
|
name: "native-node-modules",
|
|
2121
|
-
setup(
|
|
2122
|
-
|
|
2167
|
+
setup(build4) {
|
|
2168
|
+
build4.onResolve({
|
|
2123
2169
|
filter: /\.node$/,
|
|
2124
2170
|
namespace: "file"
|
|
2125
2171
|
}, (args) => {
|
|
2126
|
-
const resolvedId =
|
|
2172
|
+
const resolvedId = _chunkWTMG7MTKjs.__require.resolve(args.path, {
|
|
2127
2173
|
paths: [
|
|
2128
2174
|
args.resolveDir
|
|
2129
2175
|
]
|
|
@@ -2138,7 +2184,7 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void
|
|
|
2138
2184
|
path: resolvedId
|
|
2139
2185
|
};
|
|
2140
2186
|
});
|
|
2141
|
-
|
|
2187
|
+
build4.onLoad({
|
|
2142
2188
|
filter: /.*/,
|
|
2143
2189
|
namespace: "node-file"
|
|
2144
2190
|
}, (args) => {
|
|
@@ -2151,14 +2197,14 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void
|
|
|
2151
2197
|
resolveDir: _path.dirname.call(void 0, args.path)
|
|
2152
2198
|
};
|
|
2153
2199
|
});
|
|
2154
|
-
|
|
2200
|
+
build4.onResolve({
|
|
2155
2201
|
filter: /\.node$/,
|
|
2156
2202
|
namespace: "node-file"
|
|
2157
2203
|
}, (args) => ({
|
|
2158
2204
|
path: args.path,
|
|
2159
2205
|
namespace: "file"
|
|
2160
2206
|
}));
|
|
2161
|
-
const opts =
|
|
2207
|
+
const opts = build4.initialOptions;
|
|
2162
2208
|
opts.loader = opts.loader || {};
|
|
2163
2209
|
opts.loader[".node"] = "file";
|
|
2164
2210
|
}
|
|
@@ -2166,8 +2212,8 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void
|
|
|
2166
2212
|
}, "nativeNodeModulesPlugin");
|
|
2167
2213
|
|
|
2168
2214
|
// ../esbuild/src/plugins/node-protocol.ts
|
|
2169
|
-
|
|
2170
|
-
var nodeProtocolPlugin = /* @__PURE__ */
|
|
2215
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2216
|
+
var nodeProtocolPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
2171
2217
|
const nodeProtocol = "node:";
|
|
2172
2218
|
return {
|
|
2173
2219
|
name: "node-protocol-plugin",
|
|
@@ -2183,11 +2229,11 @@ var nodeProtocolPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (o
|
|
|
2183
2229
|
}, "nodeProtocolPlugin");
|
|
2184
2230
|
|
|
2185
2231
|
// ../esbuild/src/plugins/on-error.ts
|
|
2186
|
-
|
|
2187
|
-
var onErrorPlugin = /* @__PURE__ */
|
|
2232
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2233
|
+
var onErrorPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2188
2234
|
name: "storm:on-error",
|
|
2189
|
-
setup(
|
|
2190
|
-
|
|
2235
|
+
setup(build4) {
|
|
2236
|
+
build4.onEnd((result) => {
|
|
2191
2237
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
2192
2238
|
writeError(`The following errors occurred during the build:
|
|
2193
2239
|
${result.errors.map((error) => error.text).join("\n")}
|
|
@@ -2200,10 +2246,10 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
2200
2246
|
}), "onErrorPlugin");
|
|
2201
2247
|
|
|
2202
2248
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2203
|
-
|
|
2249
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2204
2250
|
|
|
2205
2251
|
function resolvePathsConfig(options, cwd) {
|
|
2206
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
2252
|
+
if (_optionalChain([options, 'optionalAccess', _112 => _112.compilerOptions, 'optionalAccess', _113 => _113.paths])) {
|
|
2207
2253
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
2208
2254
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
2209
2255
|
return [
|
|
@@ -2216,22 +2262,22 @@ function resolvePathsConfig(options, cwd) {
|
|
|
2216
2262
|
if (options.extends) {
|
|
2217
2263
|
const extendsPath = path6.default.resolve(cwd, options.extends);
|
|
2218
2264
|
const extendsDir = path6.default.dirname(extendsPath);
|
|
2219
|
-
const extendsConfig =
|
|
2265
|
+
const extendsConfig = _chunkWTMG7MTKjs.__require.call(void 0, extendsPath);
|
|
2220
2266
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2221
2267
|
}
|
|
2222
2268
|
return [];
|
|
2223
2269
|
}
|
|
2224
|
-
|
|
2225
|
-
var resolvePathsPlugin = /* @__PURE__ */
|
|
2270
|
+
_chunkWTMG7MTKjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
2271
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2226
2272
|
name: "storm:resolve-paths",
|
|
2227
|
-
setup(
|
|
2228
|
-
const parentTsConfig =
|
|
2273
|
+
setup(build4) {
|
|
2274
|
+
const parentTsConfig = build4.initialOptions.tsconfig ? _chunkWTMG7MTKjs.__require.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunkWTMG7MTKjs.__require.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
2229
2275
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
2230
2276
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
2231
|
-
|
|
2277
|
+
build4.onResolve({
|
|
2232
2278
|
filter: packagesRegex
|
|
2233
2279
|
}, (args) => {
|
|
2234
|
-
if (_optionalChain([
|
|
2280
|
+
if (_optionalChain([build4, 'access', _114 => _114.initialOptions, 'access', _115 => _115.external, 'optionalAccess', _116 => _116.includes, 'call', _117 => _117(args.path)])) {
|
|
2235
2281
|
return {
|
|
2236
2282
|
path: args.path,
|
|
2237
2283
|
external: true
|
|
@@ -2245,12 +2291,12 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (o
|
|
|
2245
2291
|
}), "resolvePathsPlugin");
|
|
2246
2292
|
|
|
2247
2293
|
// ../esbuild/src/plugins/tsc.ts
|
|
2248
|
-
|
|
2294
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2249
2295
|
var _apiextractor = require('@microsoft/api-extractor');
|
|
2250
2296
|
|
|
2251
2297
|
|
|
2252
2298
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
2253
|
-
const { dependencies, peerDependencies, devDependencies } =
|
|
2299
|
+
const { dependencies, peerDependencies, devDependencies } = _chunkWTMG7MTKjs.__require.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
2254
2300
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
2255
2301
|
p,
|
|
2256
2302
|
getTypeDependencyPackageName(p)
|
|
@@ -2280,18 +2326,19 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
2280
2326
|
overrideTsconfig: {
|
|
2281
2327
|
compilerOptions: {
|
|
2282
2328
|
paths: {}
|
|
2329
|
+
// bug with api extract + paths
|
|
2283
2330
|
}
|
|
2284
2331
|
}
|
|
2285
2332
|
},
|
|
2286
2333
|
dtsRollup: {
|
|
2287
2334
|
enabled: true,
|
|
2288
|
-
untrimmedFilePath:
|
|
2335
|
+
untrimmedFilePath: _chunk3DQG66DJjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
2289
2336
|
},
|
|
2290
2337
|
tsdocMetadata: {
|
|
2291
2338
|
enabled: false
|
|
2292
2339
|
}
|
|
2293
2340
|
},
|
|
2294
|
-
packageJsonFullPath:
|
|
2341
|
+
packageJsonFullPath: _chunk3DQG66DJjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
2295
2342
|
configObjectFullPath: void 0
|
|
2296
2343
|
});
|
|
2297
2344
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -2303,14 +2350,14 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
2303
2350
|
throw new Error("API Extractor completed with errors");
|
|
2304
2351
|
}
|
|
2305
2352
|
}
|
|
2306
|
-
|
|
2307
|
-
var tscPlugin = /* @__PURE__ */
|
|
2353
|
+
_chunkWTMG7MTKjs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitions");
|
|
2354
|
+
var tscPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2308
2355
|
name: "storm:tsc",
|
|
2309
|
-
setup(
|
|
2356
|
+
setup(build4) {
|
|
2310
2357
|
if (options.emitTypes === false) {
|
|
2311
2358
|
return;
|
|
2312
2359
|
}
|
|
2313
|
-
|
|
2360
|
+
build4.onStart(async () => {
|
|
2314
2361
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
2315
2362
|
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
2316
2363
|
}
|
|
@@ -2318,14 +2365,14 @@ var tscPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (options, r
|
|
|
2318
2365
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
2319
2366
|
const typeOutDir = resolvedOptions.outdir;
|
|
2320
2367
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2321
|
-
const bundlePath =
|
|
2368
|
+
const bundlePath = _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
2322
2369
|
let dtsPath;
|
|
2323
|
-
if (_fs.existsSync.call(void 0,
|
|
2324
|
-
dtsPath =
|
|
2325
|
-
} else if (_fs.existsSync.call(void 0,
|
|
2326
|
-
dtsPath =
|
|
2370
|
+
if (_fs.existsSync.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
2371
|
+
dtsPath = _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
2372
|
+
} else if (_fs.existsSync.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
2373
|
+
dtsPath = _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
2327
2374
|
}
|
|
2328
|
-
const ext = resolvedOptions.
|
|
2375
|
+
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
2329
2376
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
2330
2377
|
bundleTypeDefinitions(dtsPath, bundlePath, _nullishCoalesce(resolvedOptions.external, () => ( [])), resolvedOptions);
|
|
2331
2378
|
const dtsContents = await _promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
@@ -2340,17 +2387,14 @@ var tscPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (options, r
|
|
|
2340
2387
|
function getTypeDependencyPackageName(npmPackage) {
|
|
2341
2388
|
if (npmPackage.startsWith("@")) {
|
|
2342
2389
|
const [scope, name] = npmPackage.split("/");
|
|
2343
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
2390
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _118 => _118.slice, 'call', _119 => _119(1)])}__${name}`;
|
|
2344
2391
|
}
|
|
2345
2392
|
return `@types/${npmPackage}`;
|
|
2346
2393
|
}
|
|
2347
|
-
|
|
2394
|
+
_chunkWTMG7MTKjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDependencyPackageName");
|
|
2348
2395
|
|
|
2349
2396
|
// ../esbuild/src/config.ts
|
|
2350
|
-
var
|
|
2351
|
-
return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
|
|
2352
|
-
}, "getOutputExtensionMap");
|
|
2353
|
-
var getDefaultBuildPlugins = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
2397
|
+
var getDefaultBuildPlugins = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
2354
2398
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
2355
2399
|
resolvePathsPlugin(options, resolvedOptions),
|
|
2356
2400
|
fixImportsPlugin(options, resolvedOptions),
|
|
@@ -2375,6 +2419,18 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2375
2419
|
bundle: true,
|
|
2376
2420
|
clean: true,
|
|
2377
2421
|
debug: false,
|
|
2422
|
+
resolveExtensions: [
|
|
2423
|
+
".tsx",
|
|
2424
|
+
".ts",
|
|
2425
|
+
".cts",
|
|
2426
|
+
".mts",
|
|
2427
|
+
".jsx",
|
|
2428
|
+
".js",
|
|
2429
|
+
".cjs",
|
|
2430
|
+
".mjs",
|
|
2431
|
+
".css",
|
|
2432
|
+
".json"
|
|
2433
|
+
],
|
|
2378
2434
|
loader: {
|
|
2379
2435
|
".aac": "file",
|
|
2380
2436
|
".css": "file",
|
|
@@ -2400,7 +2456,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2400
2456
|
};
|
|
2401
2457
|
|
|
2402
2458
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2403
|
-
|
|
2459
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2404
2460
|
|
|
2405
2461
|
|
|
2406
2462
|
var unusedIgnore = [
|
|
@@ -2432,11 +2488,11 @@ var missingIgnore = [
|
|
|
2432
2488
|
"@prisma/client",
|
|
2433
2489
|
"ts-toolbelt"
|
|
2434
2490
|
];
|
|
2435
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
2491
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (bundle) => ({
|
|
2436
2492
|
name: "storm:deps-check",
|
|
2437
|
-
setup(
|
|
2493
|
+
setup(build4) {
|
|
2438
2494
|
const pkgJsonPath = path6.default.join(process.cwd(), "package.json");
|
|
2439
|
-
const pkgContents =
|
|
2495
|
+
const pkgContents = _chunkWTMG7MTKjs.__require.call(void 0, pkgJsonPath);
|
|
2440
2496
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2441
2497
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2442
2498
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -2446,7 +2502,7 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (bund
|
|
|
2446
2502
|
];
|
|
2447
2503
|
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
2448
2504
|
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
2449
|
-
|
|
2505
|
+
build4.onResolve({
|
|
2450
2506
|
filter: onlyPackages
|
|
2451
2507
|
}, (args) => {
|
|
2452
2508
|
if (args.importer.includes(process.cwd())) {
|
|
@@ -2462,7 +2518,7 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (bund
|
|
|
2462
2518
|
external: true
|
|
2463
2519
|
};
|
|
2464
2520
|
});
|
|
2465
|
-
|
|
2521
|
+
build4.onEnd(() => {
|
|
2466
2522
|
const unusedDependencies = [
|
|
2467
2523
|
...dependencies
|
|
2468
2524
|
].filter((dep) => {
|
|
@@ -2491,7 +2547,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2491
2547
|
}), "depsCheckPlugin");
|
|
2492
2548
|
|
|
2493
2549
|
// ../esbuild/src/renderers/shebang.ts
|
|
2494
|
-
|
|
2550
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2495
2551
|
var shebangRenderer = {
|
|
2496
2552
|
name: "shebang",
|
|
2497
2553
|
renderChunk(_, __, info) {
|
|
@@ -2502,7 +2558,7 @@ var shebangRenderer = {
|
|
|
2502
2558
|
};
|
|
2503
2559
|
|
|
2504
2560
|
// ../esbuild/src/utilities/helpers.ts
|
|
2505
|
-
|
|
2561
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2506
2562
|
function handleSync(fn) {
|
|
2507
2563
|
try {
|
|
2508
2564
|
return fn();
|
|
@@ -2510,7 +2566,7 @@ function handleSync(fn) {
|
|
|
2510
2566
|
return error_;
|
|
2511
2567
|
}
|
|
2512
2568
|
}
|
|
2513
|
-
|
|
2569
|
+
_chunkWTMG7MTKjs.__name.call(void 0, handleSync, "handleSync");
|
|
2514
2570
|
async function handleAsync(fn) {
|
|
2515
2571
|
try {
|
|
2516
2572
|
return await fn();
|
|
@@ -2518,7 +2574,7 @@ async function handleAsync(fn) {
|
|
|
2518
2574
|
return error_;
|
|
2519
2575
|
}
|
|
2520
2576
|
}
|
|
2521
|
-
|
|
2577
|
+
_chunkWTMG7MTKjs.__name.call(void 0, handleAsync, "handleAsync");
|
|
2522
2578
|
var handle = handleSync;
|
|
2523
2579
|
handle.async = handleAsync;
|
|
2524
2580
|
var skip = Symbol("skip");
|
|
@@ -2532,7 +2588,7 @@ function transduceSync(list, transformer) {
|
|
|
2532
2588
|
}
|
|
2533
2589
|
return transduced;
|
|
2534
2590
|
}
|
|
2535
|
-
|
|
2591
|
+
_chunkWTMG7MTKjs.__name.call(void 0, transduceSync, "transduceSync");
|
|
2536
2592
|
async function transduceAsync(list, transformer) {
|
|
2537
2593
|
const transduced = [];
|
|
2538
2594
|
await Promise.all(list.entries().map(async ([i, element_]) => {
|
|
@@ -2543,34 +2599,34 @@ async function transduceAsync(list, transformer) {
|
|
|
2543
2599
|
}));
|
|
2544
2600
|
return transduced;
|
|
2545
2601
|
}
|
|
2546
|
-
|
|
2602
|
+
_chunkWTMG7MTKjs.__name.call(void 0, transduceAsync, "transduceAsync");
|
|
2547
2603
|
var transduce = transduceSync;
|
|
2548
2604
|
transduce.async = transduceAsync;
|
|
2549
2605
|
function pipeSync(fn, ...fns) {
|
|
2550
2606
|
return (...args) => {
|
|
2551
2607
|
let result = fn(...args);
|
|
2552
2608
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
2553
|
-
result = _optionalChain([fns, 'access',
|
|
2609
|
+
result = _optionalChain([fns, 'access', _120 => _120[i], 'optionalCall', _121 => _121(result)]);
|
|
2554
2610
|
}
|
|
2555
2611
|
return result;
|
|
2556
2612
|
};
|
|
2557
2613
|
}
|
|
2558
|
-
|
|
2614
|
+
_chunkWTMG7MTKjs.__name.call(void 0, pipeSync, "pipeSync");
|
|
2559
2615
|
function pipeAsync(fn, ...fns) {
|
|
2560
2616
|
return async (...args) => {
|
|
2561
2617
|
let result = await fn(...args);
|
|
2562
2618
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
2563
|
-
result = await _optionalChain([fns, 'access',
|
|
2619
|
+
result = await _optionalChain([fns, 'access', _122 => _122[i], 'optionalCall', _123 => _123(result)]);
|
|
2564
2620
|
}
|
|
2565
2621
|
return result;
|
|
2566
2622
|
};
|
|
2567
2623
|
}
|
|
2568
|
-
|
|
2624
|
+
_chunkWTMG7MTKjs.__name.call(void 0, pipeAsync, "pipeAsync");
|
|
2569
2625
|
var pipe = pipeSync;
|
|
2570
2626
|
pipe.async = pipeAsync;
|
|
2571
2627
|
|
|
2572
2628
|
// ../esbuild/src/build.ts
|
|
2573
|
-
var resolveOptions = /* @__PURE__ */
|
|
2629
|
+
var resolveOptions = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (userOptions) => {
|
|
2574
2630
|
const projectRoot = userOptions.projectRoot;
|
|
2575
2631
|
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
2576
2632
|
if (!workspaceRoot3) {
|
|
@@ -2582,7 +2638,7 @@ var resolveOptions = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async
|
|
|
2582
2638
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2583
2639
|
exitOnError: true
|
|
2584
2640
|
});
|
|
2585
|
-
const projectJsonPath =
|
|
2641
|
+
const projectJsonPath = _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
2586
2642
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
2587
2643
|
throw new Error("Cannot find project.json configuration");
|
|
2588
2644
|
}
|
|
@@ -2590,19 +2646,16 @@ var resolveOptions = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async
|
|
|
2590
2646
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2591
2647
|
const projectName = projectJson.name;
|
|
2592
2648
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2593
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2649
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _124 => _124.projects, 'optionalAccess', _125 => _125[projectName]])) {
|
|
2594
2650
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
2595
2651
|
}
|
|
2596
2652
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2597
2653
|
options.name ??= `${projectName}-${options.format}`;
|
|
2598
2654
|
options.target ??= DEFAULT_TARGET;
|
|
2599
|
-
const packageJsonPath =
|
|
2655
|
+
const packageJsonPath = _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
2600
2656
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2601
2657
|
throw new Error("Cannot find package.json configuration");
|
|
2602
2658
|
}
|
|
2603
|
-
const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
|
|
2604
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
2605
|
-
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
2606
2659
|
const env = getEnv("esbuild", options);
|
|
2607
2660
|
const result = {
|
|
2608
2661
|
...options,
|
|
@@ -2615,24 +2668,18 @@ var resolveOptions = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async
|
|
|
2615
2668
|
"module",
|
|
2616
2669
|
"main"
|
|
2617
2670
|
],
|
|
2618
|
-
resolveExtensions: [
|
|
2619
|
-
".ts",
|
|
2620
|
-
".js",
|
|
2621
|
-
".node"
|
|
2622
|
-
],
|
|
2623
2671
|
...userOptions,
|
|
2624
|
-
tsconfig:
|
|
2672
|
+
tsconfig: _chunk3DQG66DJjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
2625
2673
|
format: options.format || "cjs",
|
|
2626
|
-
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
outdir: userOptions.outputPath || _chunkTKYNU6LXjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
2674
|
+
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
|
|
2675
|
+
outdir: userOptions.outputPath || _chunk3DQG66DJjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
2676
|
+
distDir: userOptions.distDir || "dist",
|
|
2630
2677
|
plugins: [],
|
|
2631
2678
|
name: userOptions.name || projectName,
|
|
2632
2679
|
projectConfigurations,
|
|
2633
2680
|
projectName,
|
|
2634
2681
|
projectGraph,
|
|
2635
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2682
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk3DQG66DJjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
2636
2683
|
minify: userOptions.minify || !userOptions.debug,
|
|
2637
2684
|
verbose: userOptions.verbose || isVerbose() || userOptions.debug === true,
|
|
2638
2685
|
includeSrc: userOptions.includeSrc === true,
|
|
@@ -2645,7 +2692,6 @@ var resolveOptions = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async
|
|
|
2645
2692
|
bundle: userOptions.bundle !== false,
|
|
2646
2693
|
keepNames: true,
|
|
2647
2694
|
watch: userOptions.watch === true,
|
|
2648
|
-
outExtension,
|
|
2649
2695
|
footer: userOptions.footer,
|
|
2650
2696
|
banner: {
|
|
2651
2697
|
js: options.banner || DEFAULT_COMPILED_BANNER,
|
|
@@ -2662,32 +2708,34 @@ var resolveOptions = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async
|
|
|
2662
2708
|
...options.define,
|
|
2663
2709
|
...Object.keys(env || {}).reduce((res, key) => {
|
|
2664
2710
|
const value = JSON.stringify(env[key]);
|
|
2711
|
+
const safeKey = key.replaceAll("(", "").replaceAll(")", "");
|
|
2665
2712
|
return {
|
|
2666
2713
|
...res,
|
|
2667
|
-
[`process.env.${
|
|
2668
|
-
[`import.meta.env.${
|
|
2714
|
+
[`process.env.${safeKey}`]: value,
|
|
2715
|
+
[`import.meta.env.${safeKey}`]: value
|
|
2669
2716
|
};
|
|
2670
2717
|
}, {})
|
|
2671
2718
|
},
|
|
2672
|
-
inject: [
|
|
2673
|
-
options.format === "cjs" && options.injectShims ?
|
|
2674
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
2675
|
-
|
|
2676
|
-
].filter(Boolean)
|
|
2719
|
+
inject: _defu2.default.call(void 0, [
|
|
2720
|
+
options.format === "cjs" && options.injectShims ? _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
2721
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
|
|
2722
|
+
], _nullishCoalesce(options.inject, () => ( []))).filter(Boolean)
|
|
2677
2723
|
};
|
|
2678
2724
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
2725
|
+
delete result.entry;
|
|
2726
|
+
delete result.outputPath;
|
|
2679
2727
|
stopwatch();
|
|
2680
2728
|
return result;
|
|
2681
2729
|
}, "resolveOptions");
|
|
2682
2730
|
async function generatePackageJson(context2) {
|
|
2683
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2731
|
+
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
2684
2732
|
writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
2685
2733
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2686
|
-
const packageJsonPath =
|
|
2734
|
+
const packageJsonPath = _chunk3DQG66DJjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
2687
2735
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2688
2736
|
throw new Error("Cannot find package.json configuration");
|
|
2689
2737
|
}
|
|
2690
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
2738
|
+
const packageJsonFile = await _promises2.default.readFile(_chunk3DQG66DJjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
2691
2739
|
let packageJson = JSON.parse(packageJsonFile);
|
|
2692
2740
|
if (!packageJson) {
|
|
2693
2741
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -2696,7 +2744,7 @@ async function generatePackageJson(context2) {
|
|
|
2696
2744
|
packageJson = await addWorkspacePackageJsonFields(context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
2697
2745
|
packageJson.exports ??= {};
|
|
2698
2746
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
2699
|
-
packageJson.exports["."] ??=
|
|
2747
|
+
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
2700
2748
|
let entryPoints = [
|
|
2701
2749
|
{
|
|
2702
2750
|
in: "./src/index.ts",
|
|
@@ -2714,31 +2762,34 @@ async function generatePackageJson(context2) {
|
|
|
2714
2762
|
const split = entryPoint.out.split(".");
|
|
2715
2763
|
split.pop();
|
|
2716
2764
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
2717
|
-
packageJson.exports[`./${entry}`] ??=
|
|
2765
|
+
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
2718
2766
|
}
|
|
2719
2767
|
}
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2768
|
+
if (context2.options.format === "esm") {
|
|
2769
|
+
packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
|
|
2770
|
+
} else {
|
|
2771
|
+
packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
|
|
2772
|
+
}
|
|
2773
|
+
packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
|
|
2723
2774
|
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
2724
2775
|
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
2725
2776
|
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
2726
2777
|
}
|
|
2727
2778
|
return ret;
|
|
2728
2779
|
}, packageJson.exports);
|
|
2729
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
2780
|
+
await _devkit.writeJsonFile.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
2730
2781
|
stopwatch();
|
|
2731
2782
|
}
|
|
2732
2783
|
return context2;
|
|
2733
2784
|
}
|
|
2734
|
-
|
|
2785
|
+
_chunkWTMG7MTKjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
2735
2786
|
async function createOptions(options) {
|
|
2736
2787
|
return _estoolkit.flatten.call(void 0, await Promise.all(_compat.map.call(void 0, options, (opt) => [
|
|
2737
2788
|
// we defer it so that we don't trigger glob immediately
|
|
2738
2789
|
() => resolveOptions(opt)
|
|
2739
2790
|
])));
|
|
2740
2791
|
}
|
|
2741
|
-
|
|
2792
|
+
_chunkWTMG7MTKjs.__name.call(void 0, createOptions, "createOptions");
|
|
2742
2793
|
async function generateContext(getOptions) {
|
|
2743
2794
|
const options = await getOptions();
|
|
2744
2795
|
const rendererEngine = new RendererEngine([
|
|
@@ -2750,15 +2801,42 @@ async function generateContext(getOptions) {
|
|
|
2750
2801
|
rendererEngine
|
|
2751
2802
|
};
|
|
2752
2803
|
}
|
|
2753
|
-
|
|
2804
|
+
_chunkWTMG7MTKjs.__name.call(void 0, generateContext, "generateContext");
|
|
2754
2805
|
async function executeEsBuild(context2) {
|
|
2755
2806
|
writeDebug(` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
2756
2807
|
const stopwatch = getStopwatch(`${context2.options.name} build`);
|
|
2757
|
-
if (process.env.
|
|
2808
|
+
if (process.env.STORM_WATCH) {
|
|
2758
2809
|
const ctx = await esbuild2.context(context2.options);
|
|
2759
2810
|
watch(ctx, context2.options);
|
|
2760
2811
|
}
|
|
2761
|
-
const
|
|
2812
|
+
const options = {
|
|
2813
|
+
...context2.options
|
|
2814
|
+
};
|
|
2815
|
+
options.outdir = _chunk3DQG66DJjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
2816
|
+
delete options.env;
|
|
2817
|
+
delete options.name;
|
|
2818
|
+
delete options.assets;
|
|
2819
|
+
delete options.mode;
|
|
2820
|
+
delete options.orgName;
|
|
2821
|
+
delete options.watch;
|
|
2822
|
+
delete options.clean;
|
|
2823
|
+
delete options.debug;
|
|
2824
|
+
delete options.generatePackageJson;
|
|
2825
|
+
delete options.emitOnAll;
|
|
2826
|
+
delete options.distDir;
|
|
2827
|
+
delete options.includeSrc;
|
|
2828
|
+
delete options.verbose;
|
|
2829
|
+
delete options.projectRoot;
|
|
2830
|
+
delete options.projectName;
|
|
2831
|
+
delete options.projectGraph;
|
|
2832
|
+
delete options.projectConfigurations;
|
|
2833
|
+
delete options.renderers;
|
|
2834
|
+
delete options.config;
|
|
2835
|
+
delete options.injectShims;
|
|
2836
|
+
writeTrace(`Run esbuild (${context2.options.name}) with the following options:
|
|
2837
|
+
${formatLogMessage(options)}`, context2.options.config);
|
|
2838
|
+
const result = await esbuild2.build(options);
|
|
2839
|
+
await esbuild2.stop();
|
|
2762
2840
|
if (result.metafile) {
|
|
2763
2841
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
2764
2842
|
await _promises2.default.writeFile(metafilePath, JSON.stringify(result.metafile));
|
|
@@ -2766,9 +2844,9 @@ async function executeEsBuild(context2) {
|
|
|
2766
2844
|
stopwatch();
|
|
2767
2845
|
return context2;
|
|
2768
2846
|
}
|
|
2769
|
-
|
|
2847
|
+
_chunkWTMG7MTKjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
2770
2848
|
async function copyBuildAssets(context2) {
|
|
2771
|
-
if (_optionalChain([context2, 'access',
|
|
2849
|
+
if (_optionalChain([context2, 'access', _126 => _126.result, 'optionalAccess', _127 => _127.errors, 'access', _128 => _128.length]) === 0) {
|
|
2772
2850
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
2773
2851
|
const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
|
|
2774
2852
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -2776,16 +2854,16 @@ async function copyBuildAssets(context2) {
|
|
|
2776
2854
|
}
|
|
2777
2855
|
return context2;
|
|
2778
2856
|
}
|
|
2779
|
-
|
|
2857
|
+
_chunkWTMG7MTKjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2780
2858
|
async function reportResults(context2) {
|
|
2781
|
-
if (_optionalChain([context2, 'access',
|
|
2859
|
+
if (_optionalChain([context2, 'access', _129 => _129.result, 'optionalAccess', _130 => _130.errors, 'access', _131 => _131.length]) === 0) {
|
|
2782
2860
|
if (context2.result.warnings.length > 0) {
|
|
2783
2861
|
writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
2784
2862
|
}
|
|
2785
2863
|
writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
2786
2864
|
}
|
|
2787
2865
|
}
|
|
2788
|
-
|
|
2866
|
+
_chunkWTMG7MTKjs.__name.call(void 0, reportResults, "reportResults");
|
|
2789
2867
|
async function dependencyCheck(options) {
|
|
2790
2868
|
if (process.env.DEV === "true") {
|
|
2791
2869
|
return void 0;
|
|
@@ -2815,7 +2893,7 @@ async function dependencyCheck(options) {
|
|
|
2815
2893
|
});
|
|
2816
2894
|
return void 0;
|
|
2817
2895
|
}
|
|
2818
|
-
|
|
2896
|
+
_chunkWTMG7MTKjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
2819
2897
|
async function cleanOutputPath(context2) {
|
|
2820
2898
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
2821
2899
|
writeDebug(` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
@@ -2825,7 +2903,7 @@ async function cleanOutputPath(context2) {
|
|
|
2825
2903
|
}
|
|
2826
2904
|
return context2;
|
|
2827
2905
|
}
|
|
2828
|
-
|
|
2906
|
+
_chunkWTMG7MTKjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
2829
2907
|
async function build3(options) {
|
|
2830
2908
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
2831
2909
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
@@ -2840,14 +2918,14 @@ async function build3(options) {
|
|
|
2840
2918
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
2841
2919
|
writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
2842
2920
|
} catch (error) {
|
|
2843
|
-
writeFatal("
|
|
2921
|
+
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
2844
2922
|
throw error;
|
|
2845
2923
|
} finally {
|
|
2846
2924
|
stopwatch();
|
|
2847
2925
|
}
|
|
2848
2926
|
}
|
|
2849
|
-
|
|
2850
|
-
var watch = /* @__PURE__ */
|
|
2927
|
+
_chunkWTMG7MTKjs.__name.call(void 0, build3, "build");
|
|
2928
|
+
var watch = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (context2, options) => {
|
|
2851
2929
|
if (!options.watch) {
|
|
2852
2930
|
return context2;
|
|
2853
2931
|
}
|
|
@@ -2879,14 +2957,14 @@ var watch = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (context2, opti
|
|
|
2879
2957
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2880
2958
|
async function esbuildExecutorFn(options, context2, config) {
|
|
2881
2959
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2882
|
-
if (!_optionalChain([context2, 'access',
|
|
2960
|
+
if (!_optionalChain([context2, 'access', _132 => _132.projectsConfigurations, 'optionalAccess', _133 => _133.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _134 => _134.projectsConfigurations, 'access', _135 => _135.projects, 'access', _136 => _136[context2.projectName], 'optionalAccess', _137 => _137.root])) {
|
|
2883
2961
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
2884
2962
|
}
|
|
2885
2963
|
await build3({
|
|
2886
2964
|
...options,
|
|
2887
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
2965
|
+
projectRoot: _optionalChain([context2, 'access', _138 => _138.projectsConfigurations, 'access', _139 => _139.projects, 'optionalAccess', _140 => _140[context2.projectName], 'access', _141 => _141.root]),
|
|
2888
2966
|
projectName: context2.projectName,
|
|
2889
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
2967
|
+
sourceRoot: _optionalChain([context2, 'access', _142 => _142.projectsConfigurations, 'access', _143 => _143.projects, 'optionalAccess', _144 => _144[context2.projectName], 'optionalAccess', _145 => _145.sourceRoot]),
|
|
2890
2968
|
format: options.format,
|
|
2891
2969
|
platform: options.format
|
|
2892
2970
|
});
|
|
@@ -2894,11 +2972,11 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
2894
2972
|
success: true
|
|
2895
2973
|
};
|
|
2896
2974
|
}
|
|
2897
|
-
|
|
2975
|
+
_chunkWTMG7MTKjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
2898
2976
|
var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn, {
|
|
2899
2977
|
skipReadingConfig: false,
|
|
2900
2978
|
hooks: {
|
|
2901
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2979
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (options, config) => {
|
|
2902
2980
|
options.entry ??= [
|
|
2903
2981
|
"src/index.ts"
|
|
2904
2982
|
];
|
|
@@ -2910,12 +2988,12 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
|
|
|
2910
2988
|
});
|
|
2911
2989
|
|
|
2912
2990
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2913
|
-
|
|
2991
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2914
2992
|
|
|
2915
2993
|
|
|
2916
2994
|
|
|
2917
2995
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2918
|
-
|
|
2996
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2919
2997
|
|
|
2920
2998
|
|
|
2921
2999
|
var _prettier = require('prettier');
|
|
@@ -2925,14 +3003,14 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
2925
3003
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
2926
3004
|
|
|
2927
3005
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2928
|
-
|
|
3006
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2929
3007
|
|
|
2930
3008
|
var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
|
|
2931
3009
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
2932
3010
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
2933
3011
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
2934
3012
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
2935
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
3013
|
+
if (!_optionalChain([context2, 'optionalAccess', _146 => _146.projectName]) || !_optionalChain([context2, 'access', _147 => _147.projectsConfigurations, 'optionalAccess', _148 => _148.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
2936
3014
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
2937
3015
|
}
|
|
2938
3016
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -2941,7 +3019,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
2941
3019
|
_esbuild3.default,
|
|
2942
3020
|
_esbuildwhy2.default
|
|
2943
3021
|
], {
|
|
2944
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
3022
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context2.projectName], 'optionalAccess', _152 => _152.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _153 => _153.projectsConfigurations, 'access', _154 => _154.projects, 'access', _155 => _155[context2.projectName], 'optionalAccess', _156 => _156.root]), () => ( "./")), "src")))
|
|
2945
3023
|
}).then((result) => {
|
|
2946
3024
|
writeInfo(`\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
2947
3025
|
});
|
|
@@ -2949,299 +3027,18 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
2949
3027
|
success: true
|
|
2950
3028
|
};
|
|
2951
3029
|
}
|
|
2952
|
-
|
|
3030
|
+
_chunkWTMG7MTKjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
2953
3031
|
var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
2954
3032
|
skipReadingConfig: false,
|
|
2955
3033
|
hooks: {
|
|
2956
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2957
|
-
return options;
|
|
2958
|
-
}, "applyDefaultOptions")
|
|
2959
|
-
}
|
|
2960
|
-
});
|
|
2961
|
-
|
|
2962
|
-
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
2963
|
-
_chunkSETAUINAjs.init_cjs_shims.call(void 0, );
|
|
2964
|
-
|
|
2965
|
-
// ../tsdown/src/build.ts
|
|
2966
|
-
_chunkSETAUINAjs.init_cjs_shims.call(void 0, );
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
var _tsdown = require('tsdown');
|
|
2973
|
-
|
|
2974
|
-
// ../tsdown/src/clean.ts
|
|
2975
|
-
_chunkSETAUINAjs.init_cjs_shims.call(void 0, );
|
|
2976
|
-
|
|
2977
|
-
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
2978
|
-
await _promises.rm.call(void 0, directory, {
|
|
2979
|
-
recursive: true,
|
|
2980
|
-
force: true
|
|
2981
|
-
});
|
|
2982
|
-
}
|
|
2983
|
-
_chunkSETAUINAjs.__name.call(void 0, cleanDirectories2, "cleanDirectories");
|
|
2984
|
-
|
|
2985
|
-
// ../tsdown/src/config.ts
|
|
2986
|
-
_chunkSETAUINAjs.init_cjs_shims.call(void 0, );
|
|
2987
|
-
var DEFAULT_BUILD_OPTIONS2 = {
|
|
2988
|
-
platform: "node",
|
|
2989
|
-
target: "node22",
|
|
2990
|
-
format: [
|
|
2991
|
-
"esm",
|
|
2992
|
-
"cjs"
|
|
2993
|
-
],
|
|
2994
|
-
tsconfig: "tsconfig.json",
|
|
2995
|
-
mode: "production",
|
|
2996
|
-
globalName: "globalThis",
|
|
2997
|
-
unused: {
|
|
2998
|
-
level: "error"
|
|
2999
|
-
},
|
|
3000
|
-
injectShims: true,
|
|
3001
|
-
watch: false,
|
|
3002
|
-
bundle: true,
|
|
3003
|
-
treeshake: true,
|
|
3004
|
-
clean: true,
|
|
3005
|
-
debug: false
|
|
3006
|
-
};
|
|
3007
|
-
|
|
3008
|
-
// ../tsdown/src/build.ts
|
|
3009
|
-
var resolveOptions2 = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async (userOptions) => {
|
|
3010
|
-
const projectRoot = userOptions.projectRoot;
|
|
3011
|
-
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
3012
|
-
if (!workspaceRoot3) {
|
|
3013
|
-
throw new Error("Cannot find Nx workspace root");
|
|
3014
|
-
}
|
|
3015
|
-
const config = await getConfig(workspaceRoot3.dir);
|
|
3016
|
-
writeDebug(" \u2699\uFE0F Resolving build options", config);
|
|
3017
|
-
const stopwatch = getStopwatch("Build options resolution");
|
|
3018
|
-
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3019
|
-
exitOnError: true
|
|
3020
|
-
});
|
|
3021
|
-
const projectJsonPath = _chunkTKYNU6LXjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
3022
|
-
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
3023
|
-
throw new Error("Cannot find project.json configuration");
|
|
3024
|
-
}
|
|
3025
|
-
const projectJsonFile = await _promises2.default.readFile(projectJsonPath, "utf8");
|
|
3026
|
-
const projectJson = JSON.parse(projectJsonFile);
|
|
3027
|
-
const projectName = projectJson.name;
|
|
3028
|
-
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
3029
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess', _151 => _151.projects, 'optionalAccess', _152 => _152[projectName]])) {
|
|
3030
|
-
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
3031
|
-
}
|
|
3032
|
-
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
3033
|
-
options.name ??= `${projectName}-${options.format}`;
|
|
3034
|
-
options.target ??= DEFAULT_TARGET;
|
|
3035
|
-
const packageJsonPath = _chunkTKYNU6LXjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
3036
|
-
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3037
|
-
throw new Error("Cannot find package.json configuration");
|
|
3038
|
-
}
|
|
3039
|
-
const env = getEnv("tsdown", options);
|
|
3040
|
-
const result = {
|
|
3041
|
-
...options,
|
|
3042
|
-
config,
|
|
3043
|
-
...userOptions,
|
|
3044
|
-
tsconfig: _chunkTKYNU6LXjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
3045
|
-
format: options.format || "cjs",
|
|
3046
|
-
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
3047
|
-
"./src/index.ts"
|
|
3048
|
-
], userOptions.emitOnAll),
|
|
3049
|
-
outdir: userOptions.outputPath || _chunkTKYNU6LXjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
3050
|
-
plugins: [],
|
|
3051
|
-
name: userOptions.name || projectName,
|
|
3052
|
-
projectConfigurations,
|
|
3053
|
-
projectName,
|
|
3054
|
-
projectGraph,
|
|
3055
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkTKYNU6LXjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
3056
|
-
minify: userOptions.minify || !userOptions.debug,
|
|
3057
|
-
verbose: userOptions.verbose || isVerbose() || userOptions.debug === true,
|
|
3058
|
-
includeSrc: userOptions.includeSrc === true,
|
|
3059
|
-
metafile: userOptions.metafile !== false,
|
|
3060
|
-
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
3061
|
-
clean: userOptions.clean !== false,
|
|
3062
|
-
emitOnAll: userOptions.emitOnAll === true,
|
|
3063
|
-
dts: userOptions.emitTypes === true ? {
|
|
3064
|
-
transformer: "oxc"
|
|
3065
|
-
} : userOptions.emitTypes,
|
|
3066
|
-
bundleDts: userOptions.emitTypes,
|
|
3067
|
-
assets: _nullishCoalesce(userOptions.assets, () => ( [])),
|
|
3068
|
-
shims: userOptions.injectShims !== true,
|
|
3069
|
-
bundle: userOptions.bundle !== false,
|
|
3070
|
-
watch: userOptions.watch === true,
|
|
3071
|
-
define: {
|
|
3072
|
-
STORM_FORMAT: JSON.stringify(options.format || "cjs"),
|
|
3073
|
-
...options.format === "cjs" && options.injectShims ? {
|
|
3074
|
-
"import.meta.url": "importMetaUrl"
|
|
3075
|
-
} : {},
|
|
3076
|
-
...Object.keys(env || {}).reduce((res, key) => {
|
|
3077
|
-
const value = JSON.stringify(env[key]);
|
|
3078
|
-
return {
|
|
3079
|
-
...res,
|
|
3080
|
-
[`process.env.${key}`]: value,
|
|
3081
|
-
[`import.meta.env.${key}`]: value
|
|
3082
|
-
};
|
|
3083
|
-
}, {}),
|
|
3084
|
-
...options.define
|
|
3085
|
-
}
|
|
3086
|
-
};
|
|
3087
|
-
stopwatch();
|
|
3088
|
-
return result;
|
|
3089
|
-
}, "resolveOptions");
|
|
3090
|
-
async function generatePackageJson2(options) {
|
|
3091
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkTKYNU6LXjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3092
|
-
writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
|
|
3093
|
-
const stopwatch = getStopwatch("Write package.json file");
|
|
3094
|
-
const packageJsonPath = _chunkTKYNU6LXjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3095
|
-
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3096
|
-
throw new Error("Cannot find package.json configuration");
|
|
3097
|
-
}
|
|
3098
|
-
const packageJsonFile = await _promises2.default.readFile(_chunkTKYNU6LXjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
3099
|
-
if (!packageJsonFile) {
|
|
3100
|
-
throw new Error("Cannot find package.json configuration file");
|
|
3101
|
-
}
|
|
3102
|
-
let packageJson = JSON.parse(packageJsonFile);
|
|
3103
|
-
packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
3104
|
-
packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
3105
|
-
packageJson.exports ??= {};
|
|
3106
|
-
packageJson.exports["./package.json"] ??= "./package.json";
|
|
3107
|
-
packageJson.exports["."] ??= addPackageJsonExport("index", packageJson.type, options.sourceRoot);
|
|
3108
|
-
let entryPoints = [
|
|
3109
|
-
{
|
|
3110
|
-
in: "./src/index.ts",
|
|
3111
|
-
out: "./src/index.ts"
|
|
3112
|
-
}
|
|
3113
|
-
];
|
|
3114
|
-
if (options.entryPoints) {
|
|
3115
|
-
if (Array.isArray(options.entryPoints)) {
|
|
3116
|
-
entryPoints = options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
3117
|
-
in: entryPoint,
|
|
3118
|
-
out: entryPoint
|
|
3119
|
-
} : entryPoint);
|
|
3120
|
-
}
|
|
3121
|
-
for (const entryPoint of entryPoints) {
|
|
3122
|
-
const split = entryPoint.out.split(".");
|
|
3123
|
-
split.pop();
|
|
3124
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
3125
|
-
packageJson.exports[`./${entry}`] ??= addPackageJsonExport(entry, packageJson.type, options.sourceRoot);
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
3129
|
-
packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
|
|
3130
|
-
packageJson.types = "./dist/index.d.ts";
|
|
3131
|
-
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
3132
|
-
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
3133
|
-
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
3134
|
-
}
|
|
3135
|
-
return ret;
|
|
3136
|
-
}, packageJson.exports);
|
|
3137
|
-
await _devkit.writeJsonFile.call(void 0, _chunkTKYNU6LXjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
3138
|
-
stopwatch();
|
|
3139
|
-
}
|
|
3140
|
-
return options;
|
|
3141
|
-
}
|
|
3142
|
-
_chunkSETAUINAjs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
|
|
3143
|
-
async function executeTSDown(options) {
|
|
3144
|
-
writeDebug(` \u{1F680} Running ${options.name} build`, options.config);
|
|
3145
|
-
const stopwatch = getStopwatch(`${options.name} build`);
|
|
3146
|
-
await _tsdown.build.call(void 0, {
|
|
3147
|
-
...options,
|
|
3148
|
-
entry: options.entryPoints,
|
|
3149
|
-
outDir: options.outdir,
|
|
3150
|
-
config: false
|
|
3151
|
-
});
|
|
3152
|
-
stopwatch();
|
|
3153
|
-
return options;
|
|
3154
|
-
}
|
|
3155
|
-
_chunkSETAUINAjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
3156
|
-
async function copyBuildAssets2(options) {
|
|
3157
|
-
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
3158
|
-
const stopwatch = getStopwatch(`${options.name} asset copy`);
|
|
3159
|
-
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
3160
|
-
stopwatch();
|
|
3161
|
-
return options;
|
|
3162
|
-
}
|
|
3163
|
-
_chunkSETAUINAjs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
|
|
3164
|
-
async function reportResults2(options) {
|
|
3165
|
-
writeSuccess(` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
3166
|
-
}
|
|
3167
|
-
_chunkSETAUINAjs.__name.call(void 0, reportResults2, "reportResults");
|
|
3168
|
-
async function cleanOutputPath2(options) {
|
|
3169
|
-
if (options.clean !== false && options.outdir) {
|
|
3170
|
-
writeDebug(` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
3171
|
-
const stopwatch = getStopwatch(`${options.name} output clean`);
|
|
3172
|
-
await cleanDirectories2(options.name, options.outdir, options.config);
|
|
3173
|
-
stopwatch();
|
|
3174
|
-
}
|
|
3175
|
-
return options;
|
|
3176
|
-
}
|
|
3177
|
-
_chunkSETAUINAjs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
|
|
3178
|
-
async function build4(options) {
|
|
3179
|
-
writeDebug(` \u26A1 Executing Storm TSDown pipeline`);
|
|
3180
|
-
const stopwatch = getStopwatch("TSDown pipeline");
|
|
3181
|
-
try {
|
|
3182
|
-
const opts = Array.isArray(options) ? options : [
|
|
3183
|
-
options
|
|
3184
|
-
];
|
|
3185
|
-
if (opts.length === 0) {
|
|
3186
|
-
throw new Error("No build options were provided");
|
|
3187
|
-
}
|
|
3188
|
-
const resolved = await Promise.all(opts.map(async (opt) => await resolveOptions2(opt)));
|
|
3189
|
-
if (resolved.length > 0) {
|
|
3190
|
-
await cleanOutputPath2(resolved[0]);
|
|
3191
|
-
await generatePackageJson2(resolved[0]);
|
|
3192
|
-
await Promise.all(resolved.map(async (opt) => {
|
|
3193
|
-
await executeTSDown(opt);
|
|
3194
|
-
await copyBuildAssets2(opt);
|
|
3195
|
-
await reportResults2(opt);
|
|
3196
|
-
}));
|
|
3197
|
-
} else {
|
|
3198
|
-
writeWarning(" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
3199
|
-
}
|
|
3200
|
-
writeSuccess(" \u{1F3C1} TSDown pipeline build completed successfully");
|
|
3201
|
-
} catch (error) {
|
|
3202
|
-
writeFatal(" \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
3203
|
-
throw error;
|
|
3204
|
-
} finally {
|
|
3205
|
-
stopwatch();
|
|
3206
|
-
}
|
|
3207
|
-
}
|
|
3208
|
-
_chunkSETAUINAjs.__name.call(void 0, build4, "build");
|
|
3209
|
-
|
|
3210
|
-
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3211
|
-
async function tsdownExecutorFn(options, context2, config) {
|
|
3212
|
-
writeInfo("\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
3213
|
-
if (!_optionalChain([context2, 'access', _153 => _153.projectsConfigurations, 'optionalAccess', _154 => _154.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _155 => _155.projectsConfigurations, 'access', _156 => _156.projects, 'access', _157 => _157[context2.projectName], 'optionalAccess', _158 => _158.root])) {
|
|
3214
|
-
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
3215
|
-
}
|
|
3216
|
-
await build4({
|
|
3217
|
-
...options,
|
|
3218
|
-
projectRoot: _optionalChain([context2, 'access', _159 => _159.projectsConfigurations, 'access', _160 => _160.projects, 'optionalAccess', _161 => _161[context2.projectName], 'access', _162 => _162.root]),
|
|
3219
|
-
projectName: context2.projectName,
|
|
3220
|
-
sourceRoot: _optionalChain([context2, 'access', _163 => _163.projectsConfigurations, 'access', _164 => _164.projects, 'optionalAccess', _165 => _165[context2.projectName], 'optionalAccess', _166 => _166.sourceRoot]),
|
|
3221
|
-
format: options.format,
|
|
3222
|
-
platform: options.platform
|
|
3223
|
-
});
|
|
3224
|
-
return {
|
|
3225
|
-
success: true
|
|
3226
|
-
};
|
|
3227
|
-
}
|
|
3228
|
-
_chunkSETAUINAjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
3229
|
-
var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExecutorFn, {
|
|
3230
|
-
skipReadingConfig: false,
|
|
3231
|
-
hooks: {
|
|
3232
|
-
applyDefaultOptions: /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, async (options, config) => {
|
|
3233
|
-
options.entry ??= [
|
|
3234
|
-
"src/index.ts"
|
|
3235
|
-
];
|
|
3236
|
-
options.outputPath ??= "dist/{projectRoot}";
|
|
3237
|
-
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
3034
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
3238
3035
|
return options;
|
|
3239
3036
|
}, "applyDefaultOptions")
|
|
3240
3037
|
}
|
|
3241
3038
|
});
|
|
3242
3039
|
|
|
3243
3040
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3244
|
-
|
|
3041
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3245
3042
|
var _fsextra = require('fs-extra');
|
|
3246
3043
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3247
3044
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3261,11 +3058,11 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
3261
3058
|
success: true
|
|
3262
3059
|
};
|
|
3263
3060
|
}
|
|
3264
|
-
|
|
3265
|
-
var
|
|
3061
|
+
_chunkWTMG7MTKjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
3062
|
+
var executor_default8 = withRunExecutor("Typia runtime validation generator", typiaExecutorFn, {
|
|
3266
3063
|
skipReadingConfig: false,
|
|
3267
3064
|
hooks: {
|
|
3268
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3065
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
3269
3066
|
options.entry ??= [
|
|
3270
3067
|
"{sourceRoot}/index.ts"
|
|
3271
3068
|
];
|
|
@@ -3278,12 +3075,12 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
3278
3075
|
});
|
|
3279
3076
|
|
|
3280
3077
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3281
|
-
|
|
3078
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3282
3079
|
|
|
3283
3080
|
var _jiti = require('jiti');
|
|
3284
3081
|
async function unbuildExecutorFn(options, context2, config) {
|
|
3285
3082
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3286
|
-
if (!_optionalChain([context2, 'access',
|
|
3083
|
+
if (!_optionalChain([context2, 'access', _157 => _157.projectsConfigurations, 'optionalAccess', _158 => _158.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
3287
3084
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
3288
3085
|
}
|
|
3289
3086
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -3293,7 +3090,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3293
3090
|
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
3294
3091
|
}
|
|
3295
3092
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3296
|
-
fsCache: config.skipCache ? false :
|
|
3093
|
+
fsCache: config.skipCache ? false : _chunk3DQG66DJjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
3297
3094
|
interopDefault: true
|
|
3298
3095
|
});
|
|
3299
3096
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -3306,7 +3103,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3306
3103
|
}, {
|
|
3307
3104
|
stubOptions: {
|
|
3308
3105
|
jiti: {
|
|
3309
|
-
fsCache: config.skipCache ? false :
|
|
3106
|
+
fsCache: config.skipCache ? false : _chunk3DQG66DJjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
3310
3107
|
}
|
|
3311
3108
|
},
|
|
3312
3109
|
rollup: {
|
|
@@ -3329,11 +3126,11 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3329
3126
|
success: true
|
|
3330
3127
|
};
|
|
3331
3128
|
}
|
|
3332
|
-
|
|
3333
|
-
var
|
|
3129
|
+
_chunkWTMG7MTKjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
3130
|
+
var executor_default9 = withRunExecutor("TypeScript Unbuild build", unbuildExecutorFn, {
|
|
3334
3131
|
skipReadingConfig: false,
|
|
3335
3132
|
hooks: {
|
|
3336
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3133
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (options, config) => {
|
|
3337
3134
|
options.debug ??= false;
|
|
3338
3135
|
options.treeShaking ??= true;
|
|
3339
3136
|
options.platform ??= "neutral";
|
|
@@ -3347,15 +3144,15 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
3347
3144
|
});
|
|
3348
3145
|
|
|
3349
3146
|
// ../workspace-tools/generators.ts
|
|
3350
|
-
|
|
3147
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3351
3148
|
|
|
3352
3149
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3353
|
-
|
|
3150
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3354
3151
|
|
|
3355
3152
|
|
|
3356
3153
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3357
|
-
|
|
3358
|
-
var withRunGenerator = /* @__PURE__ */
|
|
3154
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3155
|
+
var withRunGenerator = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
3359
3156
|
skipReadingConfig: false
|
|
3360
3157
|
}) => async (tree, _options) => {
|
|
3361
3158
|
const stopwatch = getStopwatch(name);
|
|
@@ -3371,7 +3168,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (nam
|
|
|
3371
3168
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
3372
3169
|
config = await getConfig(workspaceRoot3);
|
|
3373
3170
|
}
|
|
3374
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3171
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _159 => _159.hooks, 'optionalAccess', _160 => _160.applyDefaultOptions])) {
|
|
3375
3172
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
3376
3173
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
3377
3174
|
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
@@ -3382,22 +3179,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3382
3179
|
workspaceRoot: tree.root,
|
|
3383
3180
|
config
|
|
3384
3181
|
}, applyWorkspaceBaseTokens);
|
|
3385
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3182
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _161 => _161.hooks, 'optionalAccess', _162 => _162.preProcess])) {
|
|
3386
3183
|
writeDebug("Running the preProcess hook...", config);
|
|
3387
3184
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
3388
3185
|
writeDebug("Completed the preProcess hook", config);
|
|
3389
3186
|
}
|
|
3390
3187
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
3391
3188
|
if (result) {
|
|
3392
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
3189
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _163 => _163.error, 'optionalAccess', _164 => _164.message]) && typeof _optionalChain([result, 'optionalAccess', _165 => _165.error, 'optionalAccess', _166 => _166.message]) === "string" && _optionalChain([result, 'optionalAccess', _167 => _167.error, 'optionalAccess', _168 => _168.name]) && typeof _optionalChain([result, 'optionalAccess', _169 => _169.error, 'optionalAccess', _170 => _170.name]) === "string") {
|
|
3393
3190
|
throw new Error(`The ${name} generator failed to run`, {
|
|
3394
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
3191
|
+
cause: _optionalChain([result, 'optionalAccess', _171 => _171.error])
|
|
3395
3192
|
});
|
|
3396
3193
|
} else if (result.success && result.data) {
|
|
3397
3194
|
return result;
|
|
3398
3195
|
}
|
|
3399
3196
|
}
|
|
3400
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3197
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _172 => _172.hooks, 'optionalAccess', _173 => _173.postProcess])) {
|
|
3401
3198
|
writeDebug("Running the postProcess hook...", config);
|
|
3402
3199
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
3403
3200
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -3419,7 +3216,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3419
3216
|
}, "withRunGenerator");
|
|
3420
3217
|
|
|
3421
3218
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3422
|
-
|
|
3219
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3423
3220
|
|
|
3424
3221
|
var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
|
|
3425
3222
|
var _js = require('@nx/js');
|
|
@@ -3427,7 +3224,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3427
3224
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3428
3225
|
|
|
3429
3226
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3430
|
-
|
|
3227
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3431
3228
|
var ProjectTagConstants = {
|
|
3432
3229
|
Language: {
|
|
3433
3230
|
TAG_ID: "language",
|
|
@@ -3465,15 +3262,15 @@ var ProjectTagConstants = {
|
|
|
3465
3262
|
TAG_ID: "plugin"
|
|
3466
3263
|
}
|
|
3467
3264
|
};
|
|
3468
|
-
var formatProjectTag = /* @__PURE__ */
|
|
3265
|
+
var formatProjectTag = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (variant, value) => {
|
|
3469
3266
|
return `${variant}:${value}`;
|
|
3470
3267
|
}, "formatProjectTag");
|
|
3471
|
-
var hasProjectTag = /* @__PURE__ */
|
|
3268
|
+
var hasProjectTag = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (project, variant) => {
|
|
3472
3269
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
3473
3270
|
const prefix = formatProjectTag(variant, "");
|
|
3474
3271
|
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
3475
3272
|
}, "hasProjectTag");
|
|
3476
|
-
var addProjectTag = /* @__PURE__ */
|
|
3273
|
+
var addProjectTag = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (project, variant, value, options = {
|
|
3477
3274
|
overwrite: false
|
|
3478
3275
|
}) => {
|
|
3479
3276
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
@@ -3484,7 +3281,7 @@ var addProjectTag = /* @__PURE__ */ _chunkSETAUINAjs.__name.call(void 0, (projec
|
|
|
3484
3281
|
}, "addProjectTag");
|
|
3485
3282
|
|
|
3486
3283
|
// ../workspace-tools/src/utils/versions.ts
|
|
3487
|
-
|
|
3284
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3488
3285
|
var typesNodeVersion = "20.9.0";
|
|
3489
3286
|
var nxVersion = "^18.0.4";
|
|
3490
3287
|
var nodeVersion = "20.11.0";
|
|
@@ -3514,7 +3311,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3514
3311
|
const projectConfig = {
|
|
3515
3312
|
root: normalized.directory,
|
|
3516
3313
|
projectType: "library",
|
|
3517
|
-
sourceRoot:
|
|
3314
|
+
sourceRoot: _chunk3DQG66DJjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3518
3315
|
targets: {
|
|
3519
3316
|
build: {
|
|
3520
3317
|
executor: options.buildExecutor,
|
|
@@ -3523,11 +3320,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3523
3320
|
],
|
|
3524
3321
|
options: {
|
|
3525
3322
|
entry: [
|
|
3526
|
-
|
|
3323
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
3527
3324
|
],
|
|
3528
3325
|
outputPath: getOutputPath(normalized),
|
|
3529
|
-
tsconfig:
|
|
3530
|
-
project:
|
|
3326
|
+
tsconfig: _chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3327
|
+
project: _chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3531
3328
|
defaultConfiguration: "production",
|
|
3532
3329
|
platform: "neutral",
|
|
3533
3330
|
assets: [
|
|
@@ -3566,22 +3363,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3566
3363
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3567
3364
|
let repository = {
|
|
3568
3365
|
type: "github",
|
|
3569
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3366
|
+
url: _optionalChain([config, 'optionalAccess', _174 => _174.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _175 => _175.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _176 => _176.namespace]) || _optionalChain([config, 'optionalAccess', _177 => _177.name]) || "repository"}.git`
|
|
3570
3367
|
};
|
|
3571
3368
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3572
3369
|
if (tree.exists("package.json")) {
|
|
3573
3370
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3574
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3371
|
+
if (_optionalChain([packageJson, 'optionalAccess', _178 => _178.repository])) {
|
|
3575
3372
|
repository = packageJson.repository;
|
|
3576
3373
|
}
|
|
3577
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3374
|
+
if (_optionalChain([packageJson, 'optionalAccess', _179 => _179.description])) {
|
|
3578
3375
|
description = packageJson.description;
|
|
3579
3376
|
}
|
|
3580
3377
|
}
|
|
3581
3378
|
if (!normalized.importPath) {
|
|
3582
3379
|
normalized.importPath = normalized.name;
|
|
3583
3380
|
}
|
|
3584
|
-
const packageJsonPath =
|
|
3381
|
+
const packageJsonPath = _chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3585
3382
|
if (tree.exists(packageJsonPath)) {
|
|
3586
3383
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3587
3384
|
if (!normalized.importPath) {
|
|
@@ -3629,30 +3426,30 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3629
3426
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3630
3427
|
...json,
|
|
3631
3428
|
pnpm: {
|
|
3632
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3429
|
+
..._optionalChain([json, 'optionalAccess', _180 => _180.pnpm]),
|
|
3633
3430
|
overrides: {
|
|
3634
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3431
|
+
..._optionalChain([json, 'optionalAccess', _181 => _181.pnpm, 'optionalAccess', _182 => _182.overrides]),
|
|
3635
3432
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3636
3433
|
}
|
|
3637
3434
|
}
|
|
3638
3435
|
}));
|
|
3639
3436
|
}
|
|
3640
3437
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3641
|
-
|
|
3438
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
3642
3439
|
]);
|
|
3643
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3644
|
-
|
|
3440
|
+
_js.addTsConfigPath.call(void 0, tree, _chunk3DQG66DJjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3441
|
+
_chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3645
3442
|
]);
|
|
3646
3443
|
if (tree.exists("package.json")) {
|
|
3647
3444
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3648
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3445
|
+
if (_optionalChain([packageJson, 'optionalAccess', _183 => _183.repository])) {
|
|
3649
3446
|
repository = packageJson.repository;
|
|
3650
3447
|
}
|
|
3651
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3448
|
+
if (_optionalChain([packageJson, 'optionalAccess', _184 => _184.description])) {
|
|
3652
3449
|
description = packageJson.description;
|
|
3653
3450
|
}
|
|
3654
3451
|
}
|
|
3655
|
-
const tsconfigPath =
|
|
3452
|
+
const tsconfigPath = _chunk3DQG66DJjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3656
3453
|
if (tree.exists(tsconfigPath)) {
|
|
3657
3454
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3658
3455
|
json.composite ??= true;
|
|
@@ -3680,7 +3477,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3680
3477
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3681
3478
|
return null;
|
|
3682
3479
|
}
|
|
3683
|
-
|
|
3480
|
+
_chunkWTMG7MTKjs.__name.call(void 0, typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
|
|
3684
3481
|
function getOutputPath(options) {
|
|
3685
3482
|
const parts = [
|
|
3686
3483
|
"dist"
|
|
@@ -3690,42 +3487,42 @@ function getOutputPath(options) {
|
|
|
3690
3487
|
} else {
|
|
3691
3488
|
parts.push(options.projectRoot);
|
|
3692
3489
|
}
|
|
3693
|
-
return
|
|
3490
|
+
return _chunk3DQG66DJjs.joinPaths.call(void 0, ...parts);
|
|
3694
3491
|
}
|
|
3695
|
-
|
|
3492
|
+
_chunkWTMG7MTKjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
3696
3493
|
function createProjectTsConfigJson(tree, options) {
|
|
3697
3494
|
const tsconfig = {
|
|
3698
3495
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3699
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3496
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions]), () => ( {})),
|
|
3700
3497
|
compilerOptions: {
|
|
3701
3498
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3702
|
-
outDir:
|
|
3499
|
+
outDir: _chunk3DQG66DJjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3703
3500
|
noEmit: true,
|
|
3704
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3501
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _186 => _186.tsconfigOptions, 'optionalAccess', _187 => _187.compilerOptions]), () => ( {}))
|
|
3705
3502
|
},
|
|
3706
3503
|
files: [
|
|
3707
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3504
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _188 => _188.tsconfigOptions, 'optionalAccess', _189 => _189.files]), () => ( []))
|
|
3708
3505
|
],
|
|
3709
3506
|
include: [
|
|
3710
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3507
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _190 => _190.tsconfigOptions, 'optionalAccess', _191 => _191.include]), () => ( [])),
|
|
3711
3508
|
"src/**/*.ts",
|
|
3712
3509
|
"src/**/*.js",
|
|
3713
3510
|
"bin/**/*"
|
|
3714
3511
|
],
|
|
3715
3512
|
exclude: [
|
|
3716
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3513
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _192 => _192.tsconfigOptions, 'optionalAccess', _193 => _193.exclude]), () => ( [])),
|
|
3717
3514
|
"jest.config.ts",
|
|
3718
3515
|
"src/**/*.spec.ts",
|
|
3719
3516
|
"src/**/*.test.ts"
|
|
3720
3517
|
]
|
|
3721
3518
|
};
|
|
3722
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3519
|
+
_devkit.writeJson.call(void 0, tree, _chunk3DQG66DJjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3723
3520
|
}
|
|
3724
|
-
|
|
3521
|
+
_chunkWTMG7MTKjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
3725
3522
|
async function normalizeOptions(tree, options, config) {
|
|
3726
3523
|
let importPath = options.importPath;
|
|
3727
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3728
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3524
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _194 => _194.namespace])) {
|
|
3525
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _195 => _195.namespace])}/${options.name}`;
|
|
3729
3526
|
}
|
|
3730
3527
|
if (options.publishable) {
|
|
3731
3528
|
if (!importPath) {
|
|
@@ -3775,11 +3572,11 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3775
3572
|
shouldUseSwcJest: false
|
|
3776
3573
|
};
|
|
3777
3574
|
}
|
|
3778
|
-
|
|
3575
|
+
_chunkWTMG7MTKjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
3779
3576
|
|
|
3780
3577
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3781
3578
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3782
|
-
const filesDir =
|
|
3579
|
+
const filesDir = _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
3783
3580
|
const tsLibraryGeneratorOptions = {
|
|
3784
3581
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
3785
3582
|
platform: "browser",
|
|
@@ -3836,10 +3633,10 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
3836
3633
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3837
3634
|
return null;
|
|
3838
3635
|
}
|
|
3839
|
-
|
|
3636
|
+
_chunkWTMG7MTKjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
3840
3637
|
var generator_default = withRunGenerator("TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
3841
3638
|
hooks: {
|
|
3842
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3639
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
3843
3640
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
3844
3641
|
options.platform ??= "browser";
|
|
3845
3642
|
return options;
|
|
@@ -3848,7 +3645,7 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
3848
3645
|
});
|
|
3849
3646
|
|
|
3850
3647
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3851
|
-
|
|
3648
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3852
3649
|
|
|
3853
3650
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
3854
3651
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3858,7 +3655,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3858
3655
|
name: "StormWorkspaceConfiguration"
|
|
3859
3656
|
});
|
|
3860
3657
|
writeTrace(jsonSchema, config);
|
|
3861
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3658
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _196 => _196.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _197 => _197.outputFile, 'optionalAccess', _198 => _198.startsWith, 'call', _199 => _199("./")]) ? "" : "./");
|
|
3862
3659
|
writeTrace(`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
3863
3660
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
3864
3661
|
spaces: 2
|
|
@@ -3869,10 +3666,10 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3869
3666
|
success: true
|
|
3870
3667
|
};
|
|
3871
3668
|
}
|
|
3872
|
-
|
|
3669
|
+
_chunkWTMG7MTKjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
3873
3670
|
var generator_default2 = withRunGenerator("Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
3874
3671
|
hooks: {
|
|
3875
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3672
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
3876
3673
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
3877
3674
|
return options;
|
|
3878
3675
|
}, "applyDefaultOptions")
|
|
@@ -3880,7 +3677,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
3880
3677
|
});
|
|
3881
3678
|
|
|
3882
3679
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3883
|
-
|
|
3680
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3884
3681
|
|
|
3885
3682
|
async function initGenerator(tree, schema) {
|
|
3886
3683
|
const task = _devkit.addDependenciesToPackageJson.call(void 0, tree, {
|
|
@@ -3899,13 +3696,13 @@ async function initGenerator(tree, schema) {
|
|
|
3899
3696
|
}
|
|
3900
3697
|
return task;
|
|
3901
3698
|
}
|
|
3902
|
-
|
|
3699
|
+
_chunkWTMG7MTKjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
3903
3700
|
|
|
3904
3701
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3905
|
-
|
|
3702
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3906
3703
|
|
|
3907
3704
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3908
|
-
const filesDir =
|
|
3705
|
+
const filesDir = _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
3909
3706
|
const tsLibraryGeneratorOptions = {
|
|
3910
3707
|
...schema,
|
|
3911
3708
|
platform: "neutral",
|
|
@@ -3934,10 +3731,10 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
3934
3731
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3935
3732
|
return null;
|
|
3936
3733
|
}
|
|
3937
|
-
|
|
3734
|
+
_chunkWTMG7MTKjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
3938
3735
|
var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
3939
3736
|
hooks: {
|
|
3940
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3737
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
3941
3738
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
3942
3739
|
options.platform = "neutral";
|
|
3943
3740
|
return options;
|
|
@@ -3946,10 +3743,10 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
3946
3743
|
});
|
|
3947
3744
|
|
|
3948
3745
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3949
|
-
|
|
3746
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3950
3747
|
|
|
3951
3748
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3952
|
-
const filesDir =
|
|
3749
|
+
const filesDir = _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
3953
3750
|
const tsLibraryGeneratorOptions = {
|
|
3954
3751
|
platform: "node",
|
|
3955
3752
|
devDependencies: {
|
|
@@ -3982,10 +3779,10 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
3982
3779
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3983
3780
|
return null;
|
|
3984
3781
|
}
|
|
3985
|
-
|
|
3782
|
+
_chunkWTMG7MTKjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
3986
3783
|
var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
3987
3784
|
hooks: {
|
|
3988
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3785
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options) => {
|
|
3989
3786
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
3990
3787
|
options.platform ??= "node";
|
|
3991
3788
|
return options;
|
|
@@ -3994,7 +3791,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
3994
3791
|
});
|
|
3995
3792
|
|
|
3996
3793
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
3997
|
-
|
|
3794
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
3998
3795
|
|
|
3999
3796
|
|
|
4000
3797
|
async function presetGeneratorFn(tree, options) {
|
|
@@ -4213,23 +4010,216 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4213
4010
|
await Promise.resolve(_devkit.addDependenciesToPackageJson.call(void 0, tree, dependencies, {}, _devkit.joinPathFragments.call(void 0, projectRoot, "package.json")));
|
|
4214
4011
|
return null;
|
|
4215
4012
|
}
|
|
4216
|
-
|
|
4013
|
+
_chunkWTMG7MTKjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
4217
4014
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
4218
4015
|
|
|
4219
4016
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4220
|
-
|
|
4017
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4221
4018
|
|
|
4222
4019
|
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
4223
4020
|
var _updatelockfile = require('@nx/js/src/generators/release-version/utils/update-lock-file');
|
|
4224
4021
|
|
|
4225
4022
|
// ../git-tools/src/index.ts
|
|
4226
|
-
|
|
4023
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4227
4024
|
|
|
4228
4025
|
// ../git-tools/src/commit/config.ts
|
|
4229
|
-
|
|
4026
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4230
4027
|
|
|
4231
4028
|
// ../git-tools/src/types.ts
|
|
4232
|
-
|
|
4029
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4030
|
+
var DEFAULT_COMMIT_TYPES = {
|
|
4031
|
+
/* --- Bumps version when selected --- */
|
|
4032
|
+
chore: {
|
|
4033
|
+
description: "Other changes that don't modify src or test files",
|
|
4034
|
+
title: "Chore",
|
|
4035
|
+
emoji: "\u2699\uFE0F ",
|
|
4036
|
+
semverBump: "patch",
|
|
4037
|
+
changelog: {
|
|
4038
|
+
title: "Miscellaneous",
|
|
4039
|
+
hidden: false
|
|
4040
|
+
}
|
|
4041
|
+
},
|
|
4042
|
+
fix: {
|
|
4043
|
+
description: "A change that resolves an issue previously identified with the package",
|
|
4044
|
+
title: "Bug Fix",
|
|
4045
|
+
emoji: "\u{1FAB2} ",
|
|
4046
|
+
semverBump: "patch",
|
|
4047
|
+
changelog: {
|
|
4048
|
+
title: "Bug Fixes",
|
|
4049
|
+
hidden: false
|
|
4050
|
+
}
|
|
4051
|
+
},
|
|
4052
|
+
feat: {
|
|
4053
|
+
description: "A change that adds a new feature to the package",
|
|
4054
|
+
title: "Feature",
|
|
4055
|
+
emoji: "\u{1F511} ",
|
|
4056
|
+
semverBump: "minor",
|
|
4057
|
+
changelog: {
|
|
4058
|
+
title: "Features",
|
|
4059
|
+
hidden: false
|
|
4060
|
+
}
|
|
4061
|
+
},
|
|
4062
|
+
ci: {
|
|
4063
|
+
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
4064
|
+
title: "Continuous Integration",
|
|
4065
|
+
emoji: "\u{1F9F0} ",
|
|
4066
|
+
semverBump: "patch",
|
|
4067
|
+
changelog: {
|
|
4068
|
+
title: "Continuous Integration",
|
|
4069
|
+
hidden: false
|
|
4070
|
+
}
|
|
4071
|
+
},
|
|
4072
|
+
refactor: {
|
|
4073
|
+
description: "A code change that neither fixes a bug nor adds a feature",
|
|
4074
|
+
title: "Code Refactoring",
|
|
4075
|
+
emoji: "\u{1F9EA} ",
|
|
4076
|
+
semverBump: "patch",
|
|
4077
|
+
changelog: {
|
|
4078
|
+
title: "Source Code Improvements",
|
|
4079
|
+
hidden: false
|
|
4080
|
+
}
|
|
4081
|
+
},
|
|
4082
|
+
style: {
|
|
4083
|
+
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
4084
|
+
title: "Style Improvements",
|
|
4085
|
+
emoji: "\u{1F48E} ",
|
|
4086
|
+
semverBump: "patch",
|
|
4087
|
+
changelog: {
|
|
4088
|
+
title: "Style Improvements",
|
|
4089
|
+
hidden: false
|
|
4090
|
+
}
|
|
4091
|
+
},
|
|
4092
|
+
perf: {
|
|
4093
|
+
description: "A code change that improves performance",
|
|
4094
|
+
title: "Performance Improvement",
|
|
4095
|
+
emoji: "\u23F1\uFE0F ",
|
|
4096
|
+
semverBump: "patch",
|
|
4097
|
+
changelog: {
|
|
4098
|
+
title: "Performance Improvements",
|
|
4099
|
+
hidden: false
|
|
4100
|
+
}
|
|
4101
|
+
},
|
|
4102
|
+
/* --- Does not bump version when selected --- */
|
|
4103
|
+
docs: {
|
|
4104
|
+
description: "A change that only includes documentation updates",
|
|
4105
|
+
title: "Documentation",
|
|
4106
|
+
emoji: "\u{1F4DC} ",
|
|
4107
|
+
semverBump: "none",
|
|
4108
|
+
changelog: {
|
|
4109
|
+
title: "Documentation",
|
|
4110
|
+
hidden: false
|
|
4111
|
+
}
|
|
4112
|
+
},
|
|
4113
|
+
test: {
|
|
4114
|
+
description: "Adding missing tests or correcting existing tests",
|
|
4115
|
+
title: "Testing",
|
|
4116
|
+
emoji: "\u{1F6A8} ",
|
|
4117
|
+
semverBump: "none",
|
|
4118
|
+
changelog: {
|
|
4119
|
+
title: "Testing",
|
|
4120
|
+
hidden: true
|
|
4121
|
+
}
|
|
4122
|
+
},
|
|
4123
|
+
/* --- Not included in commitlint but included in changelog --- */
|
|
4124
|
+
deps: {
|
|
4125
|
+
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
4126
|
+
title: "Dependencies",
|
|
4127
|
+
emoji: "\u{1F4E6} ",
|
|
4128
|
+
hidden: true,
|
|
4129
|
+
semverBump: "patch",
|
|
4130
|
+
changelog: {
|
|
4131
|
+
title: "Dependency Upgrades",
|
|
4132
|
+
hidden: false
|
|
4133
|
+
}
|
|
4134
|
+
},
|
|
4135
|
+
/* --- Not included in commitlint or changelog --- */
|
|
4136
|
+
build: {
|
|
4137
|
+
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
4138
|
+
title: "Build",
|
|
4139
|
+
emoji: "\u{1F6E0} ",
|
|
4140
|
+
hidden: true,
|
|
4141
|
+
semverBump: "none",
|
|
4142
|
+
changelog: {
|
|
4143
|
+
title: "Build",
|
|
4144
|
+
hidden: true
|
|
4145
|
+
}
|
|
4146
|
+
},
|
|
4147
|
+
release: {
|
|
4148
|
+
description: "Publishing a commit containing a newly released version",
|
|
4149
|
+
title: "Publish Release",
|
|
4150
|
+
emoji: "\u{1F680} ",
|
|
4151
|
+
hidden: true,
|
|
4152
|
+
semverBump: "none",
|
|
4153
|
+
changelog: {
|
|
4154
|
+
title: "Publish Release",
|
|
4155
|
+
hidden: true
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
4158
|
+
};
|
|
4159
|
+
var DEFAULT_COMMIT_QUESTIONS = {
|
|
4160
|
+
type: {
|
|
4161
|
+
type: "select",
|
|
4162
|
+
title: "Commit Type",
|
|
4163
|
+
description: "Select the commit type that best describes your changes",
|
|
4164
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter((type) => DEFAULT_COMMIT_TYPES[type].hidden !== true).reduce((ret, type) => {
|
|
4165
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
4166
|
+
return ret;
|
|
4167
|
+
}, {}),
|
|
4168
|
+
defaultValue: "chore",
|
|
4169
|
+
maxLength: 20,
|
|
4170
|
+
minLength: 3
|
|
4171
|
+
},
|
|
4172
|
+
scope: {
|
|
4173
|
+
type: "select",
|
|
4174
|
+
title: "Commit Scope",
|
|
4175
|
+
description: "Select the monorepo project that is primarily impacted by this change",
|
|
4176
|
+
enum: {},
|
|
4177
|
+
defaultValue: "monorepo",
|
|
4178
|
+
maxLength: 50,
|
|
4179
|
+
minLength: 1
|
|
4180
|
+
},
|
|
4181
|
+
subject: {
|
|
4182
|
+
type: "input",
|
|
4183
|
+
title: "Commit Subject",
|
|
4184
|
+
description: "Write a short, imperative tense description of the change",
|
|
4185
|
+
maxLength: 150,
|
|
4186
|
+
minLength: 3
|
|
4187
|
+
},
|
|
4188
|
+
body: {
|
|
4189
|
+
type: "input",
|
|
4190
|
+
title: "Commit Body",
|
|
4191
|
+
description: "Provide a longer description of the change",
|
|
4192
|
+
maxLength: 600
|
|
4193
|
+
},
|
|
4194
|
+
isBreaking: {
|
|
4195
|
+
type: "confirm",
|
|
4196
|
+
title: "Breaking Changes",
|
|
4197
|
+
description: "Are there any breaking changes as a result of this commit?",
|
|
4198
|
+
defaultValue: false
|
|
4199
|
+
},
|
|
4200
|
+
breakingBody: {
|
|
4201
|
+
type: "input",
|
|
4202
|
+
title: "Breaking Changes (Details)",
|
|
4203
|
+
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
4204
|
+
when: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (answers) => answers.isBreaking === true, "when"),
|
|
4205
|
+
maxLength: 600,
|
|
4206
|
+
minLength: 3
|
|
4207
|
+
},
|
|
4208
|
+
isIssueAffected: {
|
|
4209
|
+
type: "confirm",
|
|
4210
|
+
title: "Open Issue Affected",
|
|
4211
|
+
description: "Does this change impact any open issues?",
|
|
4212
|
+
defaultValue: false
|
|
4213
|
+
},
|
|
4214
|
+
issuesBody: {
|
|
4215
|
+
type: "input",
|
|
4216
|
+
title: "Open Issue Affected (Details)",
|
|
4217
|
+
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
4218
|
+
when: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (answers) => answers.isIssueAffected === true, "when"),
|
|
4219
|
+
maxLength: 600,
|
|
4220
|
+
minLength: 3
|
|
4221
|
+
}
|
|
4222
|
+
};
|
|
4233
4223
|
var RuleConfigSeverity;
|
|
4234
4224
|
(function(RuleConfigSeverity2) {
|
|
4235
4225
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
@@ -4237,12 +4227,8 @@ var RuleConfigSeverity;
|
|
|
4237
4227
|
RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
|
|
4238
4228
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
4239
4229
|
|
|
4240
|
-
// ../git-tools/src/release/changelog-renderer.ts
|
|
4241
|
-
_chunkSETAUINAjs.init_cjs_shims.call(void 0, );
|
|
4242
|
-
var _index = require('nx/release/changelog-renderer/index'); var _index2 = _interopRequireDefault(_index);
|
|
4243
|
-
|
|
4244
4230
|
// ../git-tools/src/release/config.ts
|
|
4245
|
-
|
|
4231
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4246
4232
|
|
|
4247
4233
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4248
4234
|
|
|
@@ -4256,10 +4242,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
4256
4242
|
var _semver3 = require('semver');
|
|
4257
4243
|
|
|
4258
4244
|
// ../workspace-tools/src/base/index.ts
|
|
4259
|
-
|
|
4245
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4260
4246
|
|
|
4261
4247
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4262
|
-
|
|
4248
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4263
4249
|
var _untyped = require('untyped');
|
|
4264
4250
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4265
4251
|
$schema: {
|
|
@@ -4279,7 +4265,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4279
4265
|
});
|
|
4280
4266
|
|
|
4281
4267
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4282
|
-
|
|
4268
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4283
4269
|
|
|
4284
4270
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4285
4271
|
$schema: {
|
|
@@ -4297,7 +4283,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4297
4283
|
});
|
|
4298
4284
|
|
|
4299
4285
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4300
|
-
|
|
4286
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4301
4287
|
|
|
4302
4288
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4303
4289
|
...base_executor_untyped_default,
|
|
@@ -4384,7 +4370,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4384
4370
|
});
|
|
4385
4371
|
|
|
4386
4372
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4387
|
-
|
|
4373
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4388
4374
|
|
|
4389
4375
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4390
4376
|
...base_executor_untyped_default,
|
|
@@ -4489,7 +4475,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4489
4475
|
]
|
|
4490
4476
|
},
|
|
4491
4477
|
$default: "esnext",
|
|
4492
|
-
$resolve: /* @__PURE__ */
|
|
4478
|
+
$resolve: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (val = "esnext") => val.toLowerCase(), "$resolve")
|
|
4493
4479
|
},
|
|
4494
4480
|
format: {
|
|
4495
4481
|
$schema: {
|
|
@@ -4505,7 +4491,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4505
4491
|
]
|
|
4506
4492
|
}
|
|
4507
4493
|
},
|
|
4508
|
-
$resolve: /* @__PURE__ */
|
|
4494
|
+
$resolve: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (val = [
|
|
4509
4495
|
"cjs",
|
|
4510
4496
|
"esm"
|
|
4511
4497
|
]) => [].concat(val), "$resolve")
|
|
@@ -4529,7 +4515,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4529
4515
|
type: "array",
|
|
4530
4516
|
description: "The external dependencies"
|
|
4531
4517
|
},
|
|
4532
|
-
$resolve: /* @__PURE__ */
|
|
4518
|
+
$resolve: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (val = []) => [].concat(val), "$resolve")
|
|
4533
4519
|
},
|
|
4534
4520
|
define: {
|
|
4535
4521
|
$schema: {
|
|
@@ -4538,7 +4524,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4538
4524
|
tsType: "Record<string, string>",
|
|
4539
4525
|
description: "The define values"
|
|
4540
4526
|
},
|
|
4541
|
-
$resolve: /* @__PURE__ */
|
|
4527
|
+
$resolve: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
4542
4528
|
$default: {}
|
|
4543
4529
|
},
|
|
4544
4530
|
env: {
|
|
@@ -4548,13 +4534,13 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4548
4534
|
tsType: "Record<string, string>",
|
|
4549
4535
|
description: "The environment variable values"
|
|
4550
4536
|
},
|
|
4551
|
-
$resolve: /* @__PURE__ */
|
|
4537
|
+
$resolve: /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
4552
4538
|
$default: {}
|
|
4553
4539
|
}
|
|
4554
4540
|
});
|
|
4555
4541
|
|
|
4556
4542
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4557
|
-
|
|
4543
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4558
4544
|
|
|
4559
4545
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4560
4546
|
...base_generator_untyped_default,
|
|
@@ -4675,24 +4661,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4675
4661
|
});
|
|
4676
4662
|
|
|
4677
4663
|
// ../workspace-tools/src/types.ts
|
|
4678
|
-
|
|
4664
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4679
4665
|
|
|
4680
4666
|
// ../workspace-tools/src/utils/index.ts
|
|
4681
|
-
|
|
4667
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4682
4668
|
|
|
4683
4669
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4684
|
-
|
|
4670
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4685
4671
|
|
|
4686
4672
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4687
|
-
|
|
4673
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4688
4674
|
|
|
4689
4675
|
|
|
4690
4676
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4691
|
-
|
|
4677
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4692
4678
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4693
4679
|
|
|
4694
4680
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4695
|
-
|
|
4681
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4696
4682
|
|
|
4697
4683
|
|
|
4698
4684
|
|
|
@@ -4707,19 +4693,19 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
4707
4693
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4708
4694
|
|
|
4709
4695
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4710
|
-
|
|
4696
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4711
4697
|
|
|
4712
4698
|
|
|
4713
4699
|
|
|
4714
4700
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4715
|
-
|
|
4701
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4716
4702
|
|
|
4717
4703
|
|
|
4718
4704
|
|
|
4719
4705
|
|
|
4720
4706
|
|
|
4721
4707
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4722
|
-
|
|
4708
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
4723
4709
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
4724
4710
|
|
|
4725
4711
|
// src/generators/init/generator.ts
|
|
@@ -4731,7 +4717,7 @@ async function initGeneratorFn(tree, options, config) {
|
|
|
4731
4717
|
}
|
|
4732
4718
|
return task;
|
|
4733
4719
|
}
|
|
4734
|
-
|
|
4720
|
+
_chunkWTMG7MTKjs.__name.call(void 0, initGeneratorFn, "initGeneratorFn");
|
|
4735
4721
|
var generator_default6 = withRunGenerator("Initialize Storm Projen workspace", initGeneratorFn);
|
|
4736
4722
|
function addProjenDeps(tree, options) {
|
|
4737
4723
|
return () => {
|
|
@@ -4742,7 +4728,7 @@ function addProjenDeps(tree, options) {
|
|
|
4742
4728
|
}
|
|
4743
4729
|
};
|
|
4744
4730
|
}
|
|
4745
|
-
|
|
4731
|
+
_chunkWTMG7MTKjs.__name.call(void 0, addProjenDeps, "addProjenDeps");
|
|
4746
4732
|
|
|
4747
4733
|
|
|
4748
4734
|
|