@storm-software/projen 0.9.24 → 0.9.26
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 +12 -0
- package/README.md +2 -3
- package/dist/chunk-6UAMH4D4.js +6 -0
- package/dist/{chunk-ZH7QZ5EF.js → chunk-AIOPBLPU.js} +2 -2
- package/dist/{chunk-KPBJR2GK.js → chunk-DZFHP242.js} +378 -384
- package/dist/{chunk-EEZAWKQ5.mjs → chunk-FGKTQBEG.mjs} +1 -1
- package/dist/{chunk-3HI6WK3M.js → chunk-FLQMNCUY.js} +7 -7
- package/dist/{chunk-7552AK7D.mjs → chunk-IJ72TMUG.mjs} +22 -28
- package/dist/{chunk-LYHBU3HI.mjs → chunk-JBQRQ5YL.mjs} +1 -1
- package/dist/{chunk-FVKYD24T.js → chunk-JGWQETQZ.js} +3 -3
- package/dist/{chunk-VHOQB7WG.mjs → chunk-P7M35LP5.mjs} +2 -2
- package/dist/{chunk-VPWBNTCH.mjs → chunk-ZHRRBILH.mjs} +1 -1
- 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-xxtRdeVG.d.mts → index-C9MVcMz_.d.mts} +3 -19
- package/dist/{index-xxtRdeVG.d.ts → index-C9MVcMz_.d.ts} +3 -19
- 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/src/generators/init/schema.d.ts +0 -16
- package/dist/src/generators/init/schema.json +1 -18
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/docs/api/generators/init/schema.md +0 -11
- package/package.json +1 -1
- package/dist/chunk-RDD7JUBK.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 _chunkFLQMNCUYjs = require('./chunk-FLQMNCUY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkAIOPBLPUjs = require('./chunk-AIOPBLPU.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _devkit = require('@nx/devkit');
|
|
14
14
|
|
|
15
15
|
// ../workspace-tools/index.ts
|
|
16
|
-
|
|
16
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/executors.ts
|
|
19
|
-
|
|
19
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
|
|
21
21
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
22
|
-
|
|
22
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// ../workspace-tools/src/base/base-executor.ts
|
|
25
|
-
|
|
25
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
28
|
-
|
|
28
|
+
_chunkAIOPBLPUjs.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
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
34
34
|
|
|
35
35
|
// ../config-tools/src/types.ts
|
|
36
|
-
|
|
36
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
var LogLevel = {
|
|
38
38
|
SILENT: 0,
|
|
39
39
|
FATAL: 10,
|
|
@@ -58,23 +58,23 @@ var LogLevelLabel = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
61
|
-
|
|
61
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
62
62
|
|
|
63
63
|
// ../config/src/index.ts
|
|
64
|
-
|
|
64
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
65
65
|
|
|
66
66
|
// ../config/src/constants.ts
|
|
67
|
-
|
|
67
|
+
_chunkAIOPBLPUjs.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
70
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
71
71
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
72
72
|
|
|
73
73
|
// ../config/src/define-config.ts
|
|
74
|
-
|
|
74
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
75
75
|
|
|
76
76
|
// ../config/src/schema.ts
|
|
77
|
-
|
|
77
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
78
78
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
79
79
|
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
80
|
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");
|
|
@@ -186,11 +186,11 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
186
186
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
187
187
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
188
188
|
bot: WorkspaceBotConfigSchema,
|
|
189
|
-
|
|
189
|
+
mode: _zod2.default.enum([
|
|
190
190
|
"development",
|
|
191
191
|
"staging",
|
|
192
192
|
"production"
|
|
193
|
-
]).default("production").describe("The current runtime environment
|
|
193
|
+
]).default("production").describe("The current runtime environment mode for the package"),
|
|
194
194
|
workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
|
|
195
195
|
externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
196
196
|
skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
@@ -222,7 +222,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
222
222
|
}).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
223
|
|
|
224
224
|
// ../config/src/types.ts
|
|
225
|
-
|
|
225
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
226
226
|
var COLOR_KEYS = [
|
|
227
227
|
"dark",
|
|
228
228
|
"light",
|
|
@@ -247,10 +247,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
|
|
|
247
247
|
var _path = require('path'); var path6 = _interopRequireWildcard(_path);
|
|
248
248
|
|
|
249
249
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
250
|
-
|
|
250
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
251
251
|
|
|
252
252
|
// ../config-tools/src/utilities/find-up.ts
|
|
253
|
-
|
|
253
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
254
254
|
|
|
255
255
|
|
|
256
256
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -269,7 +269,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
269
269
|
}
|
|
270
270
|
return void 0;
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
_chunkAIOPBLPUjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
273
273
|
|
|
274
274
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
275
275
|
var rootFiles = [
|
|
@@ -316,11 +316,11 @@ var rootDirectories = [
|
|
|
316
316
|
];
|
|
317
317
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
318
318
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
319
|
-
return
|
|
319
|
+
return _chunkFLQMNCUYjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
320
320
|
}
|
|
321
|
-
return
|
|
321
|
+
return _chunkFLQMNCUYjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
_chunkAIOPBLPUjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
324
324
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
325
325
|
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
326
326
|
if (!result) {
|
|
@@ -330,7 +330,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
|
330
330
|
}
|
|
331
331
|
return result;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
_chunkAIOPBLPUjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
334
334
|
|
|
335
335
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
336
336
|
var DEFAULT_COLOR_CONFIG = {
|
|
@@ -361,7 +361,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
361
361
|
negative: "#dc2626"
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
|
-
var getDefaultConfig = /* @__PURE__ */
|
|
364
|
+
var getDefaultConfig = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (root) => {
|
|
365
365
|
let license = STORM_DEFAULT_LICENSE;
|
|
366
366
|
let homepage = STORM_DEFAULT_HOMEPAGE;
|
|
367
367
|
let name = void 0;
|
|
@@ -369,7 +369,7 @@ var getDefaultConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, asyn
|
|
|
369
369
|
let repository = void 0;
|
|
370
370
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
371
371
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
372
|
-
const file = await _promises.readFile.call(void 0,
|
|
372
|
+
const file = await _promises.readFile.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
373
373
|
if (file) {
|
|
374
374
|
const packageJson = JSON.parse(file);
|
|
375
375
|
if (packageJson.name) {
|
|
@@ -406,28 +406,28 @@ var getDefaultConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, asyn
|
|
|
406
406
|
}, "getDefaultConfig");
|
|
407
407
|
|
|
408
408
|
// ../config-tools/src/logger/chalk.ts
|
|
409
|
-
|
|
409
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
410
410
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
411
411
|
var chalkDefault = {
|
|
412
|
-
hex: /* @__PURE__ */
|
|
413
|
-
bgHex: /* @__PURE__ */
|
|
414
|
-
whiteBright: /* @__PURE__ */
|
|
412
|
+
hex: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
413
|
+
bgHex: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (_) => ({
|
|
414
|
+
whiteBright: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
415
415
|
}), "bgHex"),
|
|
416
|
-
whiteBright: /* @__PURE__ */
|
|
417
|
-
gray: /* @__PURE__ */
|
|
416
|
+
whiteBright: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
417
|
+
gray: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message) => message, "gray"),
|
|
418
418
|
bold: {
|
|
419
|
-
hex: /* @__PURE__ */
|
|
420
|
-
bgHex: /* @__PURE__ */
|
|
421
|
-
whiteBright: /* @__PURE__ */
|
|
419
|
+
hex: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
420
|
+
bgHex: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (_) => ({
|
|
421
|
+
whiteBright: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
422
422
|
}), "bgHex"),
|
|
423
|
-
whiteBright: /* @__PURE__ */
|
|
423
|
+
whiteBright: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
424
424
|
},
|
|
425
425
|
dim: {
|
|
426
|
-
hex: /* @__PURE__ */
|
|
427
|
-
gray: /* @__PURE__ */
|
|
426
|
+
hex: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
427
|
+
gray: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message) => message, "gray")
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
|
-
var getChalk = /* @__PURE__ */
|
|
430
|
+
var getChalk = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, () => {
|
|
431
431
|
let _chalk = _chalk3.default;
|
|
432
432
|
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
433
|
_chalk = chalkDefault;
|
|
@@ -436,26 +436,23 @@ var getChalk = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, () => {
|
|
|
436
436
|
}, "getChalk");
|
|
437
437
|
|
|
438
438
|
// ../config-tools/src/logger/console-icons.ts
|
|
439
|
-
|
|
439
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
440
440
|
|
|
441
441
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
442
|
-
|
|
443
|
-
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
442
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
444
443
|
function isUnicodeSupported() {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
453
|
-
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
444
|
+
if (process.platform !== "win32") {
|
|
445
|
+
return process.env.TERM !== "linux";
|
|
446
|
+
}
|
|
447
|
+
return Boolean(process.env.WT_SESSION) || // Windows Terminal
|
|
448
|
+
Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
449
|
+
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
450
|
+
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";
|
|
454
451
|
}
|
|
455
|
-
|
|
452
|
+
_chunkAIOPBLPUjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
456
453
|
|
|
457
454
|
// ../config-tools/src/logger/console-icons.ts
|
|
458
|
-
var useIcon = /* @__PURE__ */
|
|
455
|
+
var useIcon = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
459
456
|
var CONSOLE_ICONS = {
|
|
460
457
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
461
458
|
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
@@ -468,14 +465,14 @@ var CONSOLE_ICONS = {
|
|
|
468
465
|
};
|
|
469
466
|
|
|
470
467
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
471
|
-
|
|
472
|
-
var formatTimestamp = /* @__PURE__ */
|
|
468
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
469
|
+
var formatTimestamp = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
473
470
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
474
471
|
}, "formatTimestamp");
|
|
475
472
|
|
|
476
473
|
// ../config-tools/src/logger/get-log-level.ts
|
|
477
|
-
|
|
478
|
-
var getLogLevel = /* @__PURE__ */
|
|
474
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
475
|
+
var getLogLevel = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (label) => {
|
|
479
476
|
switch (label) {
|
|
480
477
|
case "all":
|
|
481
478
|
return LogLevel.ALL;
|
|
@@ -497,7 +494,7 @@ var getLogLevel = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (label) =
|
|
|
497
494
|
return LogLevel.INFO;
|
|
498
495
|
}
|
|
499
496
|
}, "getLogLevel");
|
|
500
|
-
var getLogLevelLabel = /* @__PURE__ */
|
|
497
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
|
|
501
498
|
if (logLevel >= LogLevel.ALL) {
|
|
502
499
|
return LogLevelLabel.ALL;
|
|
503
500
|
}
|
|
@@ -524,13 +521,13 @@ var getLogLevelLabel = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (log
|
|
|
524
521
|
}
|
|
525
522
|
return LogLevelLabel.INFO;
|
|
526
523
|
}, "getLogLevelLabel");
|
|
527
|
-
var isVerbose = /* @__PURE__ */
|
|
524
|
+
var isVerbose = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
|
|
528
525
|
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
529
526
|
return logLevel >= LogLevel.DEBUG;
|
|
530
527
|
}, "isVerbose");
|
|
531
528
|
|
|
532
529
|
// ../config-tools/src/logger/console.ts
|
|
533
|
-
var getLogFn = /* @__PURE__ */
|
|
530
|
+
var getLogFn = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
534
531
|
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;
|
|
535
532
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
536
533
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -592,14 +589,14 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
592
589
|
`);
|
|
593
590
|
};
|
|
594
591
|
}, "getLogFn");
|
|
595
|
-
var writeFatal = /* @__PURE__ */
|
|
596
|
-
var writeError = /* @__PURE__ */
|
|
597
|
-
var writeWarning = /* @__PURE__ */
|
|
598
|
-
var writeInfo = /* @__PURE__ */
|
|
599
|
-
var writeSuccess = /* @__PURE__ */
|
|
600
|
-
var writeDebug = /* @__PURE__ */
|
|
601
|
-
var writeTrace = /* @__PURE__ */
|
|
602
|
-
var getStopwatch = /* @__PURE__ */
|
|
592
|
+
var writeFatal = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
|
|
593
|
+
var writeError = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
|
|
594
|
+
var writeWarning = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
|
|
595
|
+
var writeInfo = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
|
|
596
|
+
var writeSuccess = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
|
|
597
|
+
var writeDebug = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
598
|
+
var writeTrace = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
599
|
+
var getStopwatch = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (name) => {
|
|
603
600
|
const start = process.hrtime();
|
|
604
601
|
return () => {
|
|
605
602
|
const end = process.hrtime(start);
|
|
@@ -609,7 +606,7 @@ var getStopwatch = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (name) =
|
|
|
609
606
|
};
|
|
610
607
|
}, "getStopwatch");
|
|
611
608
|
var MAX_DEPTH = 4;
|
|
612
|
-
var formatLogMessage = /* @__PURE__ */
|
|
609
|
+
var formatLogMessage = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
|
|
613
610
|
if (depth2 > MAX_DEPTH) {
|
|
614
611
|
return "<max depth>";
|
|
615
612
|
}
|
|
@@ -625,7 +622,7 @@ ${Object.keys(message).filter((key) => !skip2.includes(key)).map((key) => ` ${pr
|
|
|
625
622
|
skip: skip2
|
|
626
623
|
}, depth2 + 1) : message[key]}`).join("\n")}` : message;
|
|
627
624
|
}, "formatLogMessage");
|
|
628
|
-
var _isFunction = /* @__PURE__ */
|
|
625
|
+
var _isFunction = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (value) => {
|
|
629
626
|
try {
|
|
630
627
|
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]));
|
|
631
628
|
} catch (e) {
|
|
@@ -634,8 +631,8 @@ var _isFunction = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (value) =
|
|
|
634
631
|
}, "_isFunction");
|
|
635
632
|
|
|
636
633
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
637
|
-
|
|
638
|
-
var applyWorkspaceBaseTokens = /* @__PURE__ */
|
|
634
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
635
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (option, tokenParams) => {
|
|
639
636
|
let result = option;
|
|
640
637
|
if (!result) {
|
|
641
638
|
return result;
|
|
@@ -665,10 +662,10 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void
|
|
|
665
662
|
}
|
|
666
663
|
return result;
|
|
667
664
|
}, "applyWorkspaceBaseTokens");
|
|
668
|
-
var applyWorkspaceProjectTokens = /* @__PURE__ */
|
|
665
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (option, tokenParams) => {
|
|
669
666
|
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
670
667
|
}, "applyWorkspaceProjectTokens");
|
|
671
|
-
var applyWorkspaceTokens = /* @__PURE__ */
|
|
668
|
+
var applyWorkspaceTokens = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (options, tokenParams, tokenizerFn) => {
|
|
672
669
|
if (!options) {
|
|
673
670
|
return {};
|
|
674
671
|
}
|
|
@@ -688,10 +685,10 @@ var applyWorkspaceTokens = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0,
|
|
|
688
685
|
}, "applyWorkspaceTokens");
|
|
689
686
|
|
|
690
687
|
// ../config-tools/src/utilities/run.ts
|
|
691
|
-
|
|
688
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
692
689
|
var _child_process = require('child_process');
|
|
693
690
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
694
|
-
var run = /* @__PURE__ */
|
|
691
|
+
var run = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
695
692
|
return _child_process.execSync.call(void 0, command, {
|
|
696
693
|
cwd,
|
|
697
694
|
env: {
|
|
@@ -708,7 +705,7 @@ var run = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (config, command,
|
|
|
708
705
|
}, "run");
|
|
709
706
|
|
|
710
707
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
711
|
-
var getConfigFileByName = /* @__PURE__ */
|
|
708
|
+
var getConfigFileByName = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
712
709
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
713
710
|
const configs = await Promise.all([
|
|
714
711
|
_c12.loadConfig.call(void 0, {
|
|
@@ -718,7 +715,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, a
|
|
|
718
715
|
envName: _optionalChain([fileName, 'optionalAccess', _29 => _29.toUpperCase, 'call', _30 => _30()]),
|
|
719
716
|
jitiOptions: {
|
|
720
717
|
debug: false,
|
|
721
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
718
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkFLQMNCUYjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
722
719
|
},
|
|
723
720
|
...options
|
|
724
721
|
}),
|
|
@@ -729,7 +726,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, a
|
|
|
729
726
|
envName: _optionalChain([fileName, 'optionalAccess', _31 => _31.toUpperCase, 'call', _32 => _32()]),
|
|
730
727
|
jitiOptions: {
|
|
731
728
|
debug: false,
|
|
732
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
729
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkFLQMNCUYjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
733
730
|
},
|
|
734
731
|
configFile: fileName,
|
|
735
732
|
...options
|
|
@@ -737,7 +734,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, a
|
|
|
737
734
|
]);
|
|
738
735
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
739
736
|
}, "getConfigFileByName");
|
|
740
|
-
var getConfigFile = /* @__PURE__ */
|
|
737
|
+
var getConfigFile = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
741
738
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
742
739
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
743
740
|
let config = result.config;
|
|
@@ -768,12 +765,12 @@ var getConfigFile = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (
|
|
|
768
765
|
}, "getConfigFile");
|
|
769
766
|
|
|
770
767
|
// ../config-tools/src/create-storm-config.ts
|
|
771
|
-
|
|
768
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
772
769
|
|
|
773
770
|
|
|
774
771
|
// ../config-tools/src/env/get-env.ts
|
|
775
|
-
|
|
776
|
-
var getExtensionEnv = /* @__PURE__ */
|
|
772
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
773
|
+
var getExtensionEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (extensionName) => {
|
|
777
774
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
778
775
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
779
776
|
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
@@ -783,7 +780,7 @@ var getExtensionEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (exte
|
|
|
783
780
|
return ret;
|
|
784
781
|
}, {});
|
|
785
782
|
}, "getExtensionEnv");
|
|
786
|
-
var getConfigEnv = /* @__PURE__ */
|
|
783
|
+
var getConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, () => {
|
|
787
784
|
const prefix = "STORM_";
|
|
788
785
|
let config = {
|
|
789
786
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
@@ -802,18 +799,18 @@ var getConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, () => {
|
|
|
802
799
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
803
800
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
804
801
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
805
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
806
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
802
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
803
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
807
804
|
directories: {
|
|
808
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
809
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
810
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
811
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
812
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
813
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
805
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
806
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
807
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
808
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
809
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
810
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkFLQMNCUYjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
814
811
|
},
|
|
815
812
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
816
|
-
|
|
813
|
+
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
817
814
|
// ci:
|
|
818
815
|
// process.env[`${prefix}CI`] !== undefined
|
|
819
816
|
// ? Boolean(
|
|
@@ -873,11 +870,11 @@ var getConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, () => {
|
|
|
873
870
|
}
|
|
874
871
|
return config;
|
|
875
872
|
}, "getConfigEnv");
|
|
876
|
-
var getThemeColorConfigEnv = /* @__PURE__ */
|
|
873
|
+
var getThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix, theme) => {
|
|
877
874
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
878
875
|
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
879
876
|
}, "getThemeColorConfigEnv");
|
|
880
|
-
var getSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
877
|
+
var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix) => {
|
|
881
878
|
return {
|
|
882
879
|
dark: process.env[`${prefix}DARK`],
|
|
883
880
|
light: process.env[`${prefix}LIGHT`],
|
|
@@ -895,13 +892,13 @@ var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(
|
|
|
895
892
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
896
893
|
};
|
|
897
894
|
}, "getSingleThemeColorConfigEnv");
|
|
898
|
-
var getMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
895
|
+
var getMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix) => {
|
|
899
896
|
return {
|
|
900
897
|
light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
|
|
901
898
|
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
902
899
|
};
|
|
903
900
|
}, "getMultiThemeColorConfigEnv");
|
|
904
|
-
var getBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
901
|
+
var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix) => {
|
|
905
902
|
return {
|
|
906
903
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
907
904
|
background: process.env[`${prefix}BACKGROUND`],
|
|
@@ -921,8 +918,8 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(vo
|
|
|
921
918
|
}, "getBaseThemeColorConfigEnv");
|
|
922
919
|
|
|
923
920
|
// ../config-tools/src/env/set-env.ts
|
|
924
|
-
|
|
925
|
-
var setExtensionEnv = /* @__PURE__ */
|
|
921
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
922
|
+
var setExtensionEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (extensionName, extension) => {
|
|
926
923
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
927
924
|
if (extension[key]) {
|
|
928
925
|
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())]), () => ( []));
|
|
@@ -941,7 +938,7 @@ var setExtensionEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (exte
|
|
|
941
938
|
}
|
|
942
939
|
}
|
|
943
940
|
}, "setExtensionEnv");
|
|
944
|
-
var setConfigEnv = /* @__PURE__ */
|
|
941
|
+
var setConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (config) => {
|
|
945
942
|
const prefix = "STORM_";
|
|
946
943
|
if (config.extends) {
|
|
947
944
|
process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
|
|
@@ -989,31 +986,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (config)
|
|
|
989
986
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
990
987
|
}
|
|
991
988
|
if (config.configFile) {
|
|
992
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
989
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.configFile);
|
|
993
990
|
}
|
|
994
991
|
if (config.workspaceRoot) {
|
|
995
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
996
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
997
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
992
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
993
|
+
process.env.NX_WORKSPACE_ROOT = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
994
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
998
995
|
}
|
|
999
996
|
if (config.directories) {
|
|
1000
997
|
if (!config.skipCache && config.directories.cache) {
|
|
1001
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
998
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.directories.cache);
|
|
1002
999
|
}
|
|
1003
1000
|
if (config.directories.data) {
|
|
1004
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1001
|
+
process.env[`${prefix}DATA_DIR`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.directories.data);
|
|
1005
1002
|
}
|
|
1006
1003
|
if (config.directories.config) {
|
|
1007
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1004
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.directories.config);
|
|
1008
1005
|
}
|
|
1009
1006
|
if (config.directories.temp) {
|
|
1010
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1007
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.directories.temp);
|
|
1011
1008
|
}
|
|
1012
1009
|
if (config.directories.log) {
|
|
1013
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1010
|
+
process.env[`${prefix}LOG_DIR`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.directories.log);
|
|
1014
1011
|
}
|
|
1015
1012
|
if (config.directories.build) {
|
|
1016
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1013
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkFLQMNCUYjs.correctPaths.call(void 0, config.directories.build);
|
|
1017
1014
|
}
|
|
1018
1015
|
}
|
|
1019
1016
|
if (config.skipCache !== void 0) {
|
|
@@ -1023,10 +1020,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (config)
|
|
|
1023
1020
|
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
1024
1021
|
}
|
|
1025
1022
|
}
|
|
1026
|
-
if (config.
|
|
1027
|
-
process.env[`${prefix}
|
|
1028
|
-
process.env.NODE_ENV = config.
|
|
1029
|
-
process.env.ENVIRONMENT = config.
|
|
1023
|
+
if (config.mode) {
|
|
1024
|
+
process.env[`${prefix}MODE`] = config.mode;
|
|
1025
|
+
process.env.NODE_ENV = config.mode;
|
|
1026
|
+
process.env.ENVIRONMENT = config.mode;
|
|
1030
1027
|
}
|
|
1031
1028
|
if (_optionalChain([config, 'access', _47 => _47.colors, 'optionalAccess', _48 => _48.base, 'optionalAccess', _49 => _49.light]) || _optionalChain([config, 'access', _50 => _50.colors, 'optionalAccess', _51 => _51.base, 'optionalAccess', _52 => _52.dark])) {
|
|
1032
1029
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -1078,10 +1075,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (config)
|
|
|
1078
1075
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
1079
1076
|
}
|
|
1080
1077
|
}, "setConfigEnv");
|
|
1081
|
-
var setThemeColorConfigEnv = /* @__PURE__ */
|
|
1078
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix, config) => {
|
|
1082
1079
|
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);
|
|
1083
1080
|
}, "setThemeColorConfigEnv");
|
|
1084
|
-
var setSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
1081
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix, config) => {
|
|
1085
1082
|
if (config.dark) {
|
|
1086
1083
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1087
1084
|
}
|
|
@@ -1125,13 +1122,13 @@ var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(
|
|
|
1125
1122
|
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1126
1123
|
}
|
|
1127
1124
|
}, "setSingleThemeColorConfigEnv");
|
|
1128
|
-
var setMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
1125
|
+
var setMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix, config) => {
|
|
1129
1126
|
return {
|
|
1130
1127
|
light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
|
|
1131
1128
|
dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
|
|
1132
1129
|
};
|
|
1133
1130
|
}, "setMultiThemeColorConfigEnv");
|
|
1134
|
-
var setBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
1131
|
+
var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (prefix, config) => {
|
|
1135
1132
|
if (config.foreground) {
|
|
1136
1133
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1137
1134
|
}
|
|
@@ -1179,7 +1176,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(vo
|
|
|
1179
1176
|
// ../config-tools/src/create-storm-config.ts
|
|
1180
1177
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1181
1178
|
var _static_cache = void 0;
|
|
1182
|
-
var createStormConfig = /* @__PURE__ */
|
|
1179
|
+
var createStormConfig = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
|
|
1183
1180
|
let result;
|
|
1184
1181
|
if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1185
1182
|
let _workspaceRoot = workspaceRoot3;
|
|
@@ -1211,7 +1208,7 @@ var createStormConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, asy
|
|
|
1211
1208
|
};
|
|
1212
1209
|
return result;
|
|
1213
1210
|
}, "createStormConfig");
|
|
1214
|
-
var createConfigExtension = /* @__PURE__ */
|
|
1211
|
+
var createConfigExtension = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (extensionName, schema) => {
|
|
1215
1212
|
const extension_cache_key = {
|
|
1216
1213
|
extensionName
|
|
1217
1214
|
};
|
|
@@ -1225,7 +1222,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0,
|
|
|
1225
1222
|
_extension_cache.set(extension_cache_key, extension);
|
|
1226
1223
|
return extension;
|
|
1227
1224
|
}, "createConfigExtension");
|
|
1228
|
-
var loadStormConfig = /* @__PURE__ */
|
|
1225
|
+
var loadStormConfig = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (workspaceRoot3, skipLogs = false) => {
|
|
1229
1226
|
const config = await createStormConfig(void 0, void 0, workspaceRoot3, skipLogs);
|
|
1230
1227
|
setConfigEnv(config);
|
|
1231
1228
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
@@ -1236,14 +1233,14 @@ ${formatLogMessage(config)}`, config);
|
|
|
1236
1233
|
}, "loadStormConfig");
|
|
1237
1234
|
|
|
1238
1235
|
// ../config-tools/src/get-config.ts
|
|
1239
|
-
|
|
1240
|
-
var getConfig = /* @__PURE__ */
|
|
1236
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1237
|
+
var getConfig = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (workspaceRoot3, skipLogs = false) => {
|
|
1241
1238
|
return loadStormConfig(workspaceRoot3, skipLogs);
|
|
1242
1239
|
}, "getConfig");
|
|
1243
1240
|
|
|
1244
1241
|
// ../workspace-tools/src/base/base-executor.ts
|
|
1245
1242
|
|
|
1246
|
-
var withRunExecutor = /* @__PURE__ */
|
|
1243
|
+
var withRunExecutor = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
|
|
1247
1244
|
const stopwatch = getStopwatch(name);
|
|
1248
1245
|
let options = _options;
|
|
1249
1246
|
let config = {};
|
|
@@ -1326,7 +1323,7 @@ ${formatLogMessage(result)}`, config);
|
|
|
1326
1323
|
stopwatch();
|
|
1327
1324
|
}
|
|
1328
1325
|
}, "withRunExecutor");
|
|
1329
|
-
var _isFunction2 = /* @__PURE__ */
|
|
1326
|
+
var _isFunction2 = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (value) => {
|
|
1330
1327
|
try {
|
|
1331
1328
|
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]));
|
|
1332
1329
|
} catch (e) {
|
|
@@ -1335,7 +1332,7 @@ var _isFunction2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (value)
|
|
|
1335
1332
|
}, "_isFunction");
|
|
1336
1333
|
|
|
1337
1334
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1338
|
-
|
|
1335
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1339
1336
|
|
|
1340
1337
|
|
|
1341
1338
|
|
|
@@ -1347,7 +1344,7 @@ var INVALID_CARGO_ARGS = [
|
|
|
1347
1344
|
"package",
|
|
1348
1345
|
"tsConfig"
|
|
1349
1346
|
];
|
|
1350
|
-
var buildCargoCommand = /* @__PURE__ */
|
|
1347
|
+
var buildCargoCommand = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (baseCommand, options, context2) => {
|
|
1351
1348
|
const args = [];
|
|
1352
1349
|
if (options.toolchain && options.toolchain !== "stable") {
|
|
1353
1350
|
args.push(`+${options.toolchain}`);
|
|
@@ -1391,7 +1388,7 @@ async function cargoCommand(...args) {
|
|
|
1391
1388
|
args.push("--color", "always");
|
|
1392
1389
|
return await Promise.resolve(runProcess("cargo", ...args));
|
|
1393
1390
|
}
|
|
1394
|
-
|
|
1391
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoCommand, "cargoCommand");
|
|
1395
1392
|
function cargoCommandSync(args = "", options) {
|
|
1396
1393
|
const normalizedOptions = {
|
|
1397
1394
|
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _80 => _80.stdio]), () => ( "inherit")),
|
|
@@ -1418,7 +1415,7 @@ function cargoCommandSync(args = "", options) {
|
|
|
1418
1415
|
};
|
|
1419
1416
|
}
|
|
1420
1417
|
}
|
|
1421
|
-
|
|
1418
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoCommandSync, "cargoCommandSync");
|
|
1422
1419
|
function cargoMetadata() {
|
|
1423
1420
|
const output3 = cargoCommandSync("metadata --format-version=1", {
|
|
1424
1421
|
stdio: "pipe"
|
|
@@ -1429,7 +1426,7 @@ function cargoMetadata() {
|
|
|
1429
1426
|
}
|
|
1430
1427
|
return JSON.parse(output3.output);
|
|
1431
1428
|
}
|
|
1432
|
-
|
|
1429
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoMetadata, "cargoMetadata");
|
|
1433
1430
|
function runProcess(processCmd, ...args) {
|
|
1434
1431
|
const metadata = cargoMetadata();
|
|
1435
1432
|
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _82 => _82.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
|
|
@@ -1459,18 +1456,18 @@ function runProcess(processCmd, ...args) {
|
|
|
1459
1456
|
});
|
|
1460
1457
|
});
|
|
1461
1458
|
}
|
|
1462
|
-
|
|
1459
|
+
_chunkAIOPBLPUjs.__name.call(void 0, runProcess, "runProcess");
|
|
1463
1460
|
|
|
1464
1461
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
1465
1462
|
async function cargoBuildExecutor(options, context2) {
|
|
1466
1463
|
const command = buildCargoCommand("build", options, context2);
|
|
1467
1464
|
return await cargoCommand(...command);
|
|
1468
1465
|
}
|
|
1469
|
-
|
|
1466
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
1470
1467
|
var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
1471
1468
|
skipReadingConfig: false,
|
|
1472
1469
|
hooks: {
|
|
1473
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1470
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
1474
1471
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1475
1472
|
options.toolchain ??= "stable";
|
|
1476
1473
|
return options;
|
|
@@ -1479,16 +1476,16 @@ var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
|
1479
1476
|
});
|
|
1480
1477
|
|
|
1481
1478
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1482
|
-
|
|
1479
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1483
1480
|
async function cargoCheckExecutor(options, context2) {
|
|
1484
1481
|
const command = buildCargoCommand("check", options, context2);
|
|
1485
1482
|
return await cargoCommand(...command);
|
|
1486
1483
|
}
|
|
1487
|
-
|
|
1484
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
1488
1485
|
var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
1489
1486
|
skipReadingConfig: false,
|
|
1490
1487
|
hooks: {
|
|
1491
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1488
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
1492
1489
|
options.toolchain ??= "stable";
|
|
1493
1490
|
return options;
|
|
1494
1491
|
}, "applyDefaultOptions")
|
|
@@ -1496,16 +1493,16 @@ var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
|
1496
1493
|
});
|
|
1497
1494
|
|
|
1498
1495
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1499
|
-
|
|
1496
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1500
1497
|
async function cargoClippyExecutor(options, context2) {
|
|
1501
1498
|
const command = buildCargoCommand("clippy", options, context2);
|
|
1502
1499
|
return await cargoCommand(...command);
|
|
1503
1500
|
}
|
|
1504
|
-
|
|
1501
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
1505
1502
|
var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
1506
1503
|
skipReadingConfig: false,
|
|
1507
1504
|
hooks: {
|
|
1508
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1505
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
1509
1506
|
options.toolchain ??= "stable";
|
|
1510
1507
|
options.fix ??= false;
|
|
1511
1508
|
return options;
|
|
@@ -1514,7 +1511,7 @@ var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
|
1514
1511
|
});
|
|
1515
1512
|
|
|
1516
1513
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1517
|
-
|
|
1514
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1518
1515
|
async function cargoDocExecutor(options, context2) {
|
|
1519
1516
|
const opts = {
|
|
1520
1517
|
...options
|
|
@@ -1524,11 +1521,11 @@ async function cargoDocExecutor(options, context2) {
|
|
|
1524
1521
|
const command = buildCargoCommand("doc", options, context2);
|
|
1525
1522
|
return await cargoCommand(...command);
|
|
1526
1523
|
}
|
|
1527
|
-
|
|
1524
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
1528
1525
|
var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
1529
1526
|
skipReadingConfig: false,
|
|
1530
1527
|
hooks: {
|
|
1531
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1528
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
1532
1529
|
options.outputPath ??= "dist/docs/{projectRoot}";
|
|
1533
1530
|
options.toolchain ??= "stable";
|
|
1534
1531
|
options.release ??= options.profile ? false : true;
|
|
@@ -1543,16 +1540,16 @@ var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
|
1543
1540
|
});
|
|
1544
1541
|
|
|
1545
1542
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1546
|
-
|
|
1543
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1547
1544
|
async function cargoFormatExecutor(options, context2) {
|
|
1548
1545
|
const command = buildCargoCommand("fmt", options, context2);
|
|
1549
1546
|
return await cargoCommand(...command);
|
|
1550
1547
|
}
|
|
1551
|
-
|
|
1548
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
1552
1549
|
var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
1553
1550
|
skipReadingConfig: false,
|
|
1554
1551
|
hooks: {
|
|
1555
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1552
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
1556
1553
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1557
1554
|
options.toolchain ??= "stable";
|
|
1558
1555
|
return options;
|
|
@@ -1561,14 +1558,14 @@ var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
|
1561
1558
|
});
|
|
1562
1559
|
|
|
1563
1560
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1564
|
-
|
|
1561
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1565
1562
|
|
|
1566
1563
|
|
|
1567
1564
|
|
|
1568
1565
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
1569
1566
|
|
|
1570
1567
|
// ../workspace-tools/src/utils/toml.ts
|
|
1571
|
-
|
|
1568
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1572
1569
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1573
1570
|
|
|
1574
1571
|
|
|
@@ -1576,17 +1573,17 @@ var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml
|
|
|
1576
1573
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1577
1574
|
|
|
1578
1575
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1579
|
-
|
|
1576
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1580
1577
|
|
|
1581
1578
|
// ../esbuild/src/build.ts
|
|
1582
|
-
|
|
1579
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1583
1580
|
|
|
1584
1581
|
|
|
1585
1582
|
// ../build-tools/src/index.ts
|
|
1586
|
-
|
|
1583
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1587
1584
|
|
|
1588
1585
|
// ../build-tools/src/config.ts
|
|
1589
|
-
|
|
1586
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1590
1587
|
var DEFAULT_COMPILED_BANNER = `
|
|
1591
1588
|
/**
|
|
1592
1589
|
* \u26A1 Built by Storm Software
|
|
@@ -1598,39 +1595,39 @@ var DEFAULT_TARGET = "esnext";
|
|
|
1598
1595
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1599
1596
|
|
|
1600
1597
|
// ../build-tools/src/plugins/index.ts
|
|
1601
|
-
|
|
1598
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1602
1599
|
|
|
1603
1600
|
// ../build-tools/src/plugins/analyze.ts
|
|
1604
|
-
|
|
1601
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1605
1602
|
|
|
1606
1603
|
// ../build-tools/src/plugins/swc.ts
|
|
1607
|
-
|
|
1604
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1608
1605
|
var _core = require('@swc/core');
|
|
1609
1606
|
|
|
1610
1607
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1611
|
-
|
|
1608
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1612
1609
|
|
|
1613
1610
|
var _module = require('module');
|
|
1614
1611
|
|
|
1615
1612
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1616
1613
|
|
|
1617
1614
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1618
|
-
|
|
1615
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1619
1616
|
|
|
1620
1617
|
|
|
1621
1618
|
|
|
1622
1619
|
// ../build-tools/src/types.ts
|
|
1623
|
-
|
|
1620
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1624
1621
|
|
|
1625
1622
|
// ../build-tools/src/utilities/index.ts
|
|
1626
|
-
|
|
1623
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1627
1624
|
|
|
1628
1625
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1629
|
-
|
|
1626
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1630
1627
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
1631
1628
|
var _glob = require('glob');
|
|
1632
1629
|
|
|
1633
|
-
var copyAssets = /* @__PURE__ */
|
|
1630
|
+
var copyAssets = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
1634
1631
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
1635
1632
|
pendingAssets.push({
|
|
1636
1633
|
input: projectRoot,
|
|
@@ -1657,7 +1654,7 @@ var copyAssets = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (con
|
|
|
1657
1654
|
});
|
|
1658
1655
|
}
|
|
1659
1656
|
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
1660
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
1657
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkFLQMNCUYjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1661
1658
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
1662
1659
|
projectDir: projectRoot,
|
|
1663
1660
|
rootDir: config.workspaceRoot,
|
|
@@ -1666,12 +1663,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
1666
1663
|
});
|
|
1667
1664
|
await assetHandler.processAllAssetsOnce();
|
|
1668
1665
|
if (includeSrc === true) {
|
|
1669
|
-
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${
|
|
1666
|
+
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${_chunkFLQMNCUYjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
1670
1667
|
const files = await _glob.glob.call(void 0, [
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1668
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
1669
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
1670
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1671
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1675
1672
|
]);
|
|
1676
1673
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
1677
1674
|
|
|
@@ -1682,20 +1679,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1682
1679
|
}, "copyAssets");
|
|
1683
1680
|
|
|
1684
1681
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1685
|
-
|
|
1682
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1686
1683
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
1687
1684
|
|
|
1688
1685
|
|
|
1689
1686
|
|
|
1690
1687
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
1691
|
-
var addPackageDependencies = /* @__PURE__ */
|
|
1688
|
+
var addPackageDependencies = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1692
1689
|
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
1693
1690
|
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);
|
|
1694
1691
|
const localPackages = [];
|
|
1695
1692
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
1696
1693
|
const projectNode = project.node;
|
|
1697
1694
|
if (projectNode.data.root) {
|
|
1698
|
-
const projectPackageJsonPath =
|
|
1695
|
+
const projectPackageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
1699
1696
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
1700
1697
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
1701
1698
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -1707,7 +1704,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0
|
|
|
1707
1704
|
}
|
|
1708
1705
|
if (localPackages.length > 0) {
|
|
1709
1706
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
1710
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
1707
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
1711
1708
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1712
1709
|
const projectName2 = projectJson.name;
|
|
1713
1710
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -1716,7 +1713,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0
|
|
|
1716
1713
|
}
|
|
1717
1714
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _85 => _85.projects, 'optionalAccess', _86 => _86[projectName2], 'access', _87 => _87.implicitDependencies, 'optionalAccess', _88 => _88.reduce, 'call', _89 => _89((ret, dep) => {
|
|
1718
1715
|
if (_optionalChain([projectConfigurations, 'access', _90 => _90.projects, 'optionalAccess', _91 => _91[dep]])) {
|
|
1719
|
-
const depPackageJsonPath =
|
|
1716
|
+
const depPackageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
1720
1717
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
1721
1718
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
1722
1719
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -1744,9 +1741,9 @@ var addPackageDependencies = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0
|
|
|
1744
1741
|
}
|
|
1745
1742
|
return packageJson;
|
|
1746
1743
|
}, "addPackageDependencies");
|
|
1747
|
-
var addWorkspacePackageJsonFields = /* @__PURE__ */
|
|
1744
|
+
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
1748
1745
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
1749
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
1746
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
1750
1747
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
1751
1748
|
packageJson.type ??= "module";
|
|
1752
1749
|
packageJson.sideEffects ??= false;
|
|
@@ -1755,7 +1752,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call
|
|
|
1755
1752
|
if (distSrc.startsWith("/")) {
|
|
1756
1753
|
distSrc = distSrc.substring(1);
|
|
1757
1754
|
}
|
|
1758
|
-
packageJson.source ??= `${
|
|
1755
|
+
packageJson.source ??= `${_chunkFLQMNCUYjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
1759
1756
|
}
|
|
1760
1757
|
packageJson.files ??= [
|
|
1761
1758
|
"dist/**/*"
|
|
@@ -1786,10 +1783,10 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call
|
|
|
1786
1783
|
];
|
|
1787
1784
|
}
|
|
1788
1785
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
1789
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
1786
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkFLQMNCUYjs.joinPaths.call(void 0, "packages", projectName);
|
|
1790
1787
|
return packageJson;
|
|
1791
1788
|
}, "addWorkspacePackageJsonFields");
|
|
1792
|
-
var addPackageJsonExport = /* @__PURE__ */
|
|
1789
|
+
var addPackageJsonExport = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
1793
1790
|
let entry = file.replaceAll("\\", "/");
|
|
1794
1791
|
if (sourceRoot) {
|
|
1795
1792
|
entry = entry.replace(sourceRoot, "");
|
|
@@ -1811,9 +1808,9 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0,
|
|
|
1811
1808
|
}, "addPackageJsonExport");
|
|
1812
1809
|
|
|
1813
1810
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1814
|
-
|
|
1811
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1815
1812
|
|
|
1816
|
-
var getEntryPoints = /* @__PURE__ */
|
|
1813
|
+
var getEntryPoints = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1817
1814
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
1818
1815
|
const entryPoints = [];
|
|
1819
1816
|
if (entry) {
|
|
@@ -1826,7 +1823,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
1826
1823
|
}
|
|
1827
1824
|
}
|
|
1828
1825
|
if (emitOnAll) {
|
|
1829
|
-
entryPoints.push(
|
|
1826
|
+
entryPoints.push(_chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
1830
1827
|
}
|
|
1831
1828
|
const results = [];
|
|
1832
1829
|
for (const entryPoint in entryPoints) {
|
|
@@ -1835,9 +1832,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
1835
1832
|
withFileTypes: true
|
|
1836
1833
|
});
|
|
1837
1834
|
results.push(...files.reduce((ret, filePath) => {
|
|
1838
|
-
const result =
|
|
1835
|
+
const result = _chunkFLQMNCUYjs.correctPaths.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkFLQMNCUYjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkFLQMNCUYjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1839
1836
|
if (result) {
|
|
1840
|
-
writeDebug(`Trying to add entry point ${result} at "${
|
|
1837
|
+
writeDebug(`Trying to add entry point ${result} at "${_chunkFLQMNCUYjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1841
1838
|
if (!results.includes(result)) {
|
|
1842
1839
|
results.push(result);
|
|
1843
1840
|
}
|
|
@@ -1852,13 +1849,13 @@ var getEntryPoints = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
1852
1849
|
}, "getEntryPoints");
|
|
1853
1850
|
|
|
1854
1851
|
// ../build-tools/src/utilities/get-env.ts
|
|
1855
|
-
|
|
1856
|
-
var getEnv = /* @__PURE__ */
|
|
1852
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1853
|
+
var getEnv = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (builder, options) => {
|
|
1857
1854
|
return {
|
|
1858
1855
|
STORM_BUILD: builder,
|
|
1859
1856
|
STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
|
|
1860
1857
|
STORM_NAME: options.name,
|
|
1861
|
-
|
|
1858
|
+
STORM_MODE: options.mode || DEFAULT_ENVIRONMENT,
|
|
1862
1859
|
STORM_PLATFORM: options.platform,
|
|
1863
1860
|
STORM_FORMAT: JSON.stringify(options.format),
|
|
1864
1861
|
STORM_TARGET: JSON.stringify(options.target),
|
|
@@ -1867,10 +1864,10 @@ var getEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (builder, opti
|
|
|
1867
1864
|
}, "getEnv");
|
|
1868
1865
|
|
|
1869
1866
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1870
|
-
|
|
1867
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1871
1868
|
|
|
1872
1869
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1873
|
-
|
|
1870
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1874
1871
|
function getOutExtension(format2, pkgType) {
|
|
1875
1872
|
let jsExtension = ".js";
|
|
1876
1873
|
let dtsExtension = ".d.ts";
|
|
@@ -1890,18 +1887,18 @@ function getOutExtension(format2, pkgType) {
|
|
|
1890
1887
|
dts: dtsExtension
|
|
1891
1888
|
};
|
|
1892
1889
|
}
|
|
1893
|
-
|
|
1890
|
+
_chunkAIOPBLPUjs.__name.call(void 0, getOutExtension, "getOutExtension");
|
|
1894
1891
|
|
|
1895
1892
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1896
|
-
|
|
1893
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1897
1894
|
|
|
1898
1895
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1899
|
-
|
|
1896
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1900
1897
|
|
|
1901
1898
|
|
|
1902
1899
|
|
|
1903
1900
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1904
|
-
|
|
1901
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1905
1902
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
1906
1903
|
|
|
1907
1904
|
// ../esbuild/src/build.ts
|
|
@@ -1916,15 +1913,15 @@ var _globby = require('globby');
|
|
|
1916
1913
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
1917
1914
|
|
|
1918
1915
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1919
|
-
|
|
1916
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1920
1917
|
|
|
1921
1918
|
var _sourcemap = require('source-map');
|
|
1922
1919
|
|
|
1923
1920
|
// ../esbuild/src/utilities/output-file.ts
|
|
1924
|
-
|
|
1921
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
1925
1922
|
|
|
1926
1923
|
|
|
1927
|
-
var outputFile = /* @__PURE__ */
|
|
1924
|
+
var outputFile = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (filepath, data, options) => {
|
|
1928
1925
|
await _fs2.default.promises.mkdir(path6.default.dirname(filepath), {
|
|
1929
1926
|
recursive: true
|
|
1930
1927
|
});
|
|
@@ -1932,12 +1929,12 @@ var outputFile = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (fil
|
|
|
1932
1929
|
}, "outputFile");
|
|
1933
1930
|
|
|
1934
1931
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1935
|
-
var parseSourceMap = /* @__PURE__ */
|
|
1932
|
+
var parseSourceMap = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (map2) => {
|
|
1936
1933
|
return typeof map2 === "string" ? JSON.parse(map2) : map2;
|
|
1937
1934
|
}, "parseSourceMap");
|
|
1938
|
-
var isJS = /* @__PURE__ */
|
|
1939
|
-
var isCSS = /* @__PURE__ */
|
|
1940
|
-
var getSourcemapComment = /* @__PURE__ */
|
|
1935
|
+
var isJS = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (path7) => /\.(js|mjs|cjs)$/.test(path7), "isJS");
|
|
1936
|
+
var isCSS = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (path7) => /\.css$/.test(path7), "isCSS");
|
|
1937
|
+
var getSourcemapComment = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (inline, map2, filepath, isCssFile) => {
|
|
1941
1938
|
if (!map2) return "";
|
|
1942
1939
|
const prefix = isCssFile ? "/*" : "//";
|
|
1943
1940
|
const suffix = isCssFile ? " */" : "";
|
|
@@ -1946,7 +1943,7 @@ var getSourcemapComment = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (
|
|
|
1946
1943
|
}, "getSourcemapComment");
|
|
1947
1944
|
var RendererEngine = class {
|
|
1948
1945
|
static {
|
|
1949
|
-
|
|
1946
|
+
_chunkAIOPBLPUjs.__name.call(void 0, this, "RendererEngine");
|
|
1950
1947
|
}
|
|
1951
1948
|
#renderers;
|
|
1952
1949
|
#options;
|
|
@@ -2059,7 +2056,7 @@ var RendererEngine = class {
|
|
|
2059
2056
|
};
|
|
2060
2057
|
|
|
2061
2058
|
// ../esbuild/src/clean.ts
|
|
2062
|
-
|
|
2059
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2063
2060
|
|
|
2064
2061
|
async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
2065
2062
|
await _promises.rm.call(void 0, directory, {
|
|
@@ -2067,15 +2064,15 @@ async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
|
2067
2064
|
force: true
|
|
2068
2065
|
});
|
|
2069
2066
|
}
|
|
2070
|
-
|
|
2067
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
2071
2068
|
|
|
2072
2069
|
// ../esbuild/src/config.ts
|
|
2073
|
-
|
|
2070
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2074
2071
|
|
|
2075
2072
|
// ../esbuild/src/plugins/esm-split-code-to-cjs.ts
|
|
2076
|
-
|
|
2073
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2077
2074
|
|
|
2078
|
-
var esmSplitCodeToCjsPlugin = /* @__PURE__ */
|
|
2075
|
+
var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2079
2076
|
name: "storm:esm-split-code-to-cjs",
|
|
2080
2077
|
setup(build5) {
|
|
2081
2078
|
build5.onEnd(async (result) => {
|
|
@@ -2094,31 +2091,31 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void
|
|
|
2094
2091
|
}), "esmSplitCodeToCjsPlugin");
|
|
2095
2092
|
|
|
2096
2093
|
// ../esbuild/src/plugins/fix-imports.ts
|
|
2097
|
-
|
|
2098
|
-
var fixImportsPlugin = /* @__PURE__ */
|
|
2094
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2095
|
+
var fixImportsPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2099
2096
|
name: "storm:fix-imports",
|
|
2100
2097
|
setup(build5) {
|
|
2101
2098
|
build5.onResolve({
|
|
2102
2099
|
filter: /^spdx-exceptions/
|
|
2103
2100
|
}, () => {
|
|
2104
2101
|
return {
|
|
2105
|
-
path:
|
|
2102
|
+
path: _chunkAIOPBLPUjs.__require.resolve("spdx-exceptions")
|
|
2106
2103
|
};
|
|
2107
2104
|
});
|
|
2108
2105
|
build5.onResolve({
|
|
2109
2106
|
filter: /^spdx-license-ids/
|
|
2110
2107
|
}, () => {
|
|
2111
2108
|
return {
|
|
2112
|
-
path:
|
|
2109
|
+
path: _chunkAIOPBLPUjs.__require.resolve("spdx-license-ids")
|
|
2113
2110
|
};
|
|
2114
2111
|
});
|
|
2115
2112
|
}
|
|
2116
2113
|
}), "fixImportsPlugin");
|
|
2117
2114
|
|
|
2118
2115
|
// ../esbuild/src/plugins/native-node-module.ts
|
|
2119
|
-
|
|
2116
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2120
2117
|
|
|
2121
|
-
var nativeNodeModulesPlugin = /* @__PURE__ */
|
|
2118
|
+
var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
2122
2119
|
return {
|
|
2123
2120
|
name: "native-node-modules",
|
|
2124
2121
|
setup(build5) {
|
|
@@ -2126,7 +2123,7 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void
|
|
|
2126
2123
|
filter: /\.node$/,
|
|
2127
2124
|
namespace: "file"
|
|
2128
2125
|
}, (args) => {
|
|
2129
|
-
const resolvedId =
|
|
2126
|
+
const resolvedId = _chunkAIOPBLPUjs.__require.resolve(args.path, {
|
|
2130
2127
|
paths: [
|
|
2131
2128
|
args.resolveDir
|
|
2132
2129
|
]
|
|
@@ -2169,8 +2166,8 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void
|
|
|
2169
2166
|
}, "nativeNodeModulesPlugin");
|
|
2170
2167
|
|
|
2171
2168
|
// ../esbuild/src/plugins/node-protocol.ts
|
|
2172
|
-
|
|
2173
|
-
var nodeProtocolPlugin = /* @__PURE__ */
|
|
2169
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2170
|
+
var nodeProtocolPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
2174
2171
|
const nodeProtocol = "node:";
|
|
2175
2172
|
return {
|
|
2176
2173
|
name: "node-protocol-plugin",
|
|
@@ -2186,8 +2183,8 @@ var nodeProtocolPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (o
|
|
|
2186
2183
|
}, "nodeProtocolPlugin");
|
|
2187
2184
|
|
|
2188
2185
|
// ../esbuild/src/plugins/on-error.ts
|
|
2189
|
-
|
|
2190
|
-
var onErrorPlugin = /* @__PURE__ */
|
|
2186
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2187
|
+
var onErrorPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2191
2188
|
name: "storm:on-error",
|
|
2192
2189
|
setup(build5) {
|
|
2193
2190
|
build5.onEnd((result) => {
|
|
@@ -2203,7 +2200,7 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
2203
2200
|
}), "onErrorPlugin");
|
|
2204
2201
|
|
|
2205
2202
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2206
|
-
|
|
2203
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2207
2204
|
|
|
2208
2205
|
function resolvePathsConfig(options, cwd) {
|
|
2209
2206
|
if (_optionalChain([options, 'optionalAccess', _106 => _106.compilerOptions, 'optionalAccess', _107 => _107.paths])) {
|
|
@@ -2219,16 +2216,16 @@ function resolvePathsConfig(options, cwd) {
|
|
|
2219
2216
|
if (options.extends) {
|
|
2220
2217
|
const extendsPath = path6.default.resolve(cwd, options.extends);
|
|
2221
2218
|
const extendsDir = path6.default.dirname(extendsPath);
|
|
2222
|
-
const extendsConfig =
|
|
2219
|
+
const extendsConfig = _chunkAIOPBLPUjs.__require.call(void 0, extendsPath);
|
|
2223
2220
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2224
2221
|
}
|
|
2225
2222
|
return [];
|
|
2226
2223
|
}
|
|
2227
|
-
|
|
2228
|
-
var resolvePathsPlugin = /* @__PURE__ */
|
|
2224
|
+
_chunkAIOPBLPUjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
2225
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2229
2226
|
name: "storm:resolve-paths",
|
|
2230
2227
|
setup(build5) {
|
|
2231
|
-
const parentTsConfig = build5.initialOptions.tsconfig ?
|
|
2228
|
+
const parentTsConfig = build5.initialOptions.tsconfig ? _chunkAIOPBLPUjs.__require.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkAIOPBLPUjs.__require.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
2232
2229
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
2233
2230
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
2234
2231
|
build5.onResolve({
|
|
@@ -2248,12 +2245,12 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (o
|
|
|
2248
2245
|
}), "resolvePathsPlugin");
|
|
2249
2246
|
|
|
2250
2247
|
// ../esbuild/src/plugins/tsc.ts
|
|
2251
|
-
|
|
2248
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2252
2249
|
var _apiextractor = require('@microsoft/api-extractor');
|
|
2253
2250
|
|
|
2254
2251
|
|
|
2255
2252
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
2256
|
-
const { dependencies, peerDependencies, devDependencies } =
|
|
2253
|
+
const { dependencies, peerDependencies, devDependencies } = _chunkAIOPBLPUjs.__require.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
2257
2254
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
2258
2255
|
p,
|
|
2259
2256
|
getTypeDependencyPackageName(p)
|
|
@@ -2288,13 +2285,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
2288
2285
|
},
|
|
2289
2286
|
dtsRollup: {
|
|
2290
2287
|
enabled: true,
|
|
2291
|
-
untrimmedFilePath:
|
|
2288
|
+
untrimmedFilePath: _chunkFLQMNCUYjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
2292
2289
|
},
|
|
2293
2290
|
tsdocMetadata: {
|
|
2294
2291
|
enabled: false
|
|
2295
2292
|
}
|
|
2296
2293
|
},
|
|
2297
|
-
packageJsonFullPath:
|
|
2294
|
+
packageJsonFullPath: _chunkFLQMNCUYjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
2298
2295
|
configObjectFullPath: void 0
|
|
2299
2296
|
});
|
|
2300
2297
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -2306,8 +2303,8 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
2306
2303
|
throw new Error("API Extractor completed with errors");
|
|
2307
2304
|
}
|
|
2308
2305
|
}
|
|
2309
|
-
|
|
2310
|
-
var tscPlugin = /* @__PURE__ */
|
|
2306
|
+
_chunkAIOPBLPUjs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitions");
|
|
2307
|
+
var tscPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2311
2308
|
name: "storm:tsc",
|
|
2312
2309
|
setup(build5) {
|
|
2313
2310
|
if (options.emitTypes === false) {
|
|
@@ -2321,12 +2318,12 @@ var tscPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, r
|
|
|
2321
2318
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
2322
2319
|
const typeOutDir = resolvedOptions.outdir;
|
|
2323
2320
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2324
|
-
const bundlePath =
|
|
2321
|
+
const bundlePath = _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
2325
2322
|
let dtsPath;
|
|
2326
|
-
if (_fs.existsSync.call(void 0,
|
|
2327
|
-
dtsPath =
|
|
2328
|
-
} else if (_fs.existsSync.call(void 0,
|
|
2329
|
-
dtsPath =
|
|
2323
|
+
if (_fs.existsSync.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
2324
|
+
dtsPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
2325
|
+
} else if (_fs.existsSync.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
2326
|
+
dtsPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
2330
2327
|
}
|
|
2331
2328
|
const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
2332
2329
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -2347,13 +2344,13 @@ function getTypeDependencyPackageName(npmPackage) {
|
|
|
2347
2344
|
}
|
|
2348
2345
|
return `@types/${npmPackage}`;
|
|
2349
2346
|
}
|
|
2350
|
-
|
|
2347
|
+
_chunkAIOPBLPUjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDependencyPackageName");
|
|
2351
2348
|
|
|
2352
2349
|
// ../esbuild/src/config.ts
|
|
2353
|
-
var getOutputExtensionMap = /* @__PURE__ */
|
|
2350
|
+
var getOutputExtensionMap = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, pkgType) => {
|
|
2354
2351
|
return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
|
|
2355
2352
|
}, "getOutputExtensionMap");
|
|
2356
|
-
var getDefaultBuildPlugins = /* @__PURE__ */
|
|
2353
|
+
var getDefaultBuildPlugins = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
2357
2354
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
2358
2355
|
resolvePathsPlugin(options, resolvedOptions),
|
|
2359
2356
|
fixImportsPlugin(options, resolvedOptions),
|
|
@@ -2369,7 +2366,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2369
2366
|
external: [],
|
|
2370
2367
|
logLevel: "error",
|
|
2371
2368
|
tsconfig: "tsconfig.json",
|
|
2372
|
-
|
|
2369
|
+
mode: "production",
|
|
2373
2370
|
keepNames: true,
|
|
2374
2371
|
metafile: true,
|
|
2375
2372
|
injectShims: true,
|
|
@@ -2403,7 +2400,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2403
2400
|
};
|
|
2404
2401
|
|
|
2405
2402
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2406
|
-
|
|
2403
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2407
2404
|
|
|
2408
2405
|
|
|
2409
2406
|
var unusedIgnore = [
|
|
@@ -2435,11 +2432,11 @@ var missingIgnore = [
|
|
|
2435
2432
|
"@prisma/client",
|
|
2436
2433
|
"ts-toolbelt"
|
|
2437
2434
|
];
|
|
2438
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
2435
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (bundle) => ({
|
|
2439
2436
|
name: "storm:deps-check",
|
|
2440
2437
|
setup(build5) {
|
|
2441
2438
|
const pkgJsonPath = path6.default.join(process.cwd(), "package.json");
|
|
2442
|
-
const pkgContents =
|
|
2439
|
+
const pkgContents = _chunkAIOPBLPUjs.__require.call(void 0, pkgJsonPath);
|
|
2443
2440
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2444
2441
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2445
2442
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -2494,7 +2491,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2494
2491
|
}), "depsCheckPlugin");
|
|
2495
2492
|
|
|
2496
2493
|
// ../esbuild/src/renderers/shebang.ts
|
|
2497
|
-
|
|
2494
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2498
2495
|
var shebangRenderer = {
|
|
2499
2496
|
name: "shebang",
|
|
2500
2497
|
renderChunk(_, __, info) {
|
|
@@ -2505,7 +2502,7 @@ var shebangRenderer = {
|
|
|
2505
2502
|
};
|
|
2506
2503
|
|
|
2507
2504
|
// ../esbuild/src/utilities/helpers.ts
|
|
2508
|
-
|
|
2505
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2509
2506
|
function handleSync(fn) {
|
|
2510
2507
|
try {
|
|
2511
2508
|
return fn();
|
|
@@ -2513,7 +2510,7 @@ function handleSync(fn) {
|
|
|
2513
2510
|
return error_;
|
|
2514
2511
|
}
|
|
2515
2512
|
}
|
|
2516
|
-
|
|
2513
|
+
_chunkAIOPBLPUjs.__name.call(void 0, handleSync, "handleSync");
|
|
2517
2514
|
async function handleAsync(fn) {
|
|
2518
2515
|
try {
|
|
2519
2516
|
return await fn();
|
|
@@ -2521,7 +2518,7 @@ async function handleAsync(fn) {
|
|
|
2521
2518
|
return error_;
|
|
2522
2519
|
}
|
|
2523
2520
|
}
|
|
2524
|
-
|
|
2521
|
+
_chunkAIOPBLPUjs.__name.call(void 0, handleAsync, "handleAsync");
|
|
2525
2522
|
var handle = handleSync;
|
|
2526
2523
|
handle.async = handleAsync;
|
|
2527
2524
|
var skip = Symbol("skip");
|
|
@@ -2535,7 +2532,7 @@ function transduceSync(list, transformer) {
|
|
|
2535
2532
|
}
|
|
2536
2533
|
return transduced;
|
|
2537
2534
|
}
|
|
2538
|
-
|
|
2535
|
+
_chunkAIOPBLPUjs.__name.call(void 0, transduceSync, "transduceSync");
|
|
2539
2536
|
async function transduceAsync(list, transformer) {
|
|
2540
2537
|
const transduced = [];
|
|
2541
2538
|
await Promise.all(list.entries().map(async ([i, element_]) => {
|
|
@@ -2546,7 +2543,7 @@ async function transduceAsync(list, transformer) {
|
|
|
2546
2543
|
}));
|
|
2547
2544
|
return transduced;
|
|
2548
2545
|
}
|
|
2549
|
-
|
|
2546
|
+
_chunkAIOPBLPUjs.__name.call(void 0, transduceAsync, "transduceAsync");
|
|
2550
2547
|
var transduce = transduceSync;
|
|
2551
2548
|
transduce.async = transduceAsync;
|
|
2552
2549
|
function pipeSync(fn, ...fns) {
|
|
@@ -2558,7 +2555,7 @@ function pipeSync(fn, ...fns) {
|
|
|
2558
2555
|
return result;
|
|
2559
2556
|
};
|
|
2560
2557
|
}
|
|
2561
|
-
|
|
2558
|
+
_chunkAIOPBLPUjs.__name.call(void 0, pipeSync, "pipeSync");
|
|
2562
2559
|
function pipeAsync(fn, ...fns) {
|
|
2563
2560
|
return async (...args) => {
|
|
2564
2561
|
let result = await fn(...args);
|
|
@@ -2568,12 +2565,12 @@ function pipeAsync(fn, ...fns) {
|
|
|
2568
2565
|
return result;
|
|
2569
2566
|
};
|
|
2570
2567
|
}
|
|
2571
|
-
|
|
2568
|
+
_chunkAIOPBLPUjs.__name.call(void 0, pipeAsync, "pipeAsync");
|
|
2572
2569
|
var pipe = pipeSync;
|
|
2573
2570
|
pipe.async = pipeAsync;
|
|
2574
2571
|
|
|
2575
2572
|
// ../esbuild/src/build.ts
|
|
2576
|
-
var resolveOptions = /* @__PURE__ */
|
|
2573
|
+
var resolveOptions = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (userOptions) => {
|
|
2577
2574
|
const projectRoot = userOptions.projectRoot;
|
|
2578
2575
|
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
2579
2576
|
if (!workspaceRoot3) {
|
|
@@ -2585,7 +2582,7 @@ var resolveOptions = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
2585
2582
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2586
2583
|
exitOnError: true
|
|
2587
2584
|
});
|
|
2588
|
-
const projectJsonPath =
|
|
2585
|
+
const projectJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
2589
2586
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
2590
2587
|
throw new Error("Cannot find project.json configuration");
|
|
2591
2588
|
}
|
|
@@ -2599,7 +2596,7 @@ var resolveOptions = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
2599
2596
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2600
2597
|
options.name ??= `${projectName}-${options.format}`;
|
|
2601
2598
|
options.target ??= DEFAULT_TARGET;
|
|
2602
|
-
const packageJsonPath =
|
|
2599
|
+
const packageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
2603
2600
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2604
2601
|
throw new Error("Cannot find package.json configuration");
|
|
2605
2602
|
}
|
|
@@ -2624,18 +2621,18 @@ var resolveOptions = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
2624
2621
|
".node"
|
|
2625
2622
|
],
|
|
2626
2623
|
...userOptions,
|
|
2627
|
-
tsconfig:
|
|
2624
|
+
tsconfig: _chunkFLQMNCUYjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
2628
2625
|
format: options.format || "cjs",
|
|
2629
2626
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
2630
2627
|
"./src/index.ts"
|
|
2631
2628
|
], userOptions.emitOnAll),
|
|
2632
|
-
outdir: userOptions.outputPath ||
|
|
2629
|
+
outdir: userOptions.outputPath || _chunkFLQMNCUYjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
2633
2630
|
plugins: [],
|
|
2634
2631
|
name: userOptions.name || projectName,
|
|
2635
2632
|
projectConfigurations,
|
|
2636
2633
|
projectName,
|
|
2637
2634
|
projectGraph,
|
|
2638
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2635
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFLQMNCUYjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
2639
2636
|
minify: userOptions.minify || !userOptions.debug,
|
|
2640
2637
|
verbose: userOptions.verbose || isVerbose() || userOptions.debug === true,
|
|
2641
2638
|
includeSrc: userOptions.includeSrc === true,
|
|
@@ -2673,8 +2670,8 @@ var resolveOptions = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
2673
2670
|
}, {})
|
|
2674
2671
|
},
|
|
2675
2672
|
inject: [
|
|
2676
|
-
options.format === "cjs" && options.injectShims ?
|
|
2677
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
2673
|
+
options.format === "cjs" && options.injectShims ? _chunkFLQMNCUYjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
2674
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkFLQMNCUYjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
|
|
2678
2675
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
2679
2676
|
].filter(Boolean)
|
|
2680
2677
|
};
|
|
@@ -2683,14 +2680,14 @@ var resolveOptions = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
2683
2680
|
return result;
|
|
2684
2681
|
}, "resolveOptions");
|
|
2685
2682
|
async function generatePackageJson(context2) {
|
|
2686
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2683
|
+
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
2687
2684
|
writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
2688
2685
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2689
|
-
const packageJsonPath =
|
|
2686
|
+
const packageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
2690
2687
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2691
2688
|
throw new Error("Cannot find package.json configuration");
|
|
2692
2689
|
}
|
|
2693
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
2690
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkFLQMNCUYjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
2694
2691
|
let packageJson = JSON.parse(packageJsonFile);
|
|
2695
2692
|
if (!packageJson) {
|
|
2696
2693
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -2729,19 +2726,19 @@ async function generatePackageJson(context2) {
|
|
|
2729
2726
|
}
|
|
2730
2727
|
return ret;
|
|
2731
2728
|
}, packageJson.exports);
|
|
2732
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
2729
|
+
await _devkit.writeJsonFile.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
2733
2730
|
stopwatch();
|
|
2734
2731
|
}
|
|
2735
2732
|
return context2;
|
|
2736
2733
|
}
|
|
2737
|
-
|
|
2734
|
+
_chunkAIOPBLPUjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
2738
2735
|
async function createOptions(options) {
|
|
2739
2736
|
return _estoolkit.flatten.call(void 0, await Promise.all(_compat.map.call(void 0, options, (opt) => [
|
|
2740
2737
|
// we defer it so that we don't trigger glob immediately
|
|
2741
2738
|
() => resolveOptions(opt)
|
|
2742
2739
|
])));
|
|
2743
2740
|
}
|
|
2744
|
-
|
|
2741
|
+
_chunkAIOPBLPUjs.__name.call(void 0, createOptions, "createOptions");
|
|
2745
2742
|
async function generateContext(getOptions) {
|
|
2746
2743
|
const options = await getOptions();
|
|
2747
2744
|
const rendererEngine = new RendererEngine([
|
|
@@ -2753,7 +2750,7 @@ async function generateContext(getOptions) {
|
|
|
2753
2750
|
rendererEngine
|
|
2754
2751
|
};
|
|
2755
2752
|
}
|
|
2756
|
-
|
|
2753
|
+
_chunkAIOPBLPUjs.__name.call(void 0, generateContext, "generateContext");
|
|
2757
2754
|
async function executeEsBuild(context2) {
|
|
2758
2755
|
writeDebug(` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
2759
2756
|
const stopwatch = getStopwatch(`${context2.options.name} build`);
|
|
@@ -2769,7 +2766,7 @@ async function executeEsBuild(context2) {
|
|
|
2769
2766
|
stopwatch();
|
|
2770
2767
|
return context2;
|
|
2771
2768
|
}
|
|
2772
|
-
|
|
2769
|
+
_chunkAIOPBLPUjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
2773
2770
|
async function copyBuildAssets(context2) {
|
|
2774
2771
|
if (_optionalChain([context2, 'access', _120 => _120.result, 'optionalAccess', _121 => _121.errors, 'access', _122 => _122.length]) === 0) {
|
|
2775
2772
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
@@ -2779,7 +2776,7 @@ async function copyBuildAssets(context2) {
|
|
|
2779
2776
|
}
|
|
2780
2777
|
return context2;
|
|
2781
2778
|
}
|
|
2782
|
-
|
|
2779
|
+
_chunkAIOPBLPUjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2783
2780
|
async function reportResults(context2) {
|
|
2784
2781
|
if (_optionalChain([context2, 'access', _123 => _123.result, 'optionalAccess', _124 => _124.errors, 'access', _125 => _125.length]) === 0) {
|
|
2785
2782
|
if (context2.result.warnings.length > 0) {
|
|
@@ -2788,7 +2785,7 @@ async function reportResults(context2) {
|
|
|
2788
2785
|
writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
2789
2786
|
}
|
|
2790
2787
|
}
|
|
2791
|
-
|
|
2788
|
+
_chunkAIOPBLPUjs.__name.call(void 0, reportResults, "reportResults");
|
|
2792
2789
|
async function dependencyCheck(options) {
|
|
2793
2790
|
if (process.env.DEV === "true") {
|
|
2794
2791
|
return void 0;
|
|
@@ -2818,7 +2815,7 @@ async function dependencyCheck(options) {
|
|
|
2818
2815
|
});
|
|
2819
2816
|
return void 0;
|
|
2820
2817
|
}
|
|
2821
|
-
|
|
2818
|
+
_chunkAIOPBLPUjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
2822
2819
|
async function cleanOutputPath(context2) {
|
|
2823
2820
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
2824
2821
|
writeDebug(` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
@@ -2828,7 +2825,7 @@ async function cleanOutputPath(context2) {
|
|
|
2828
2825
|
}
|
|
2829
2826
|
return context2;
|
|
2830
2827
|
}
|
|
2831
|
-
|
|
2828
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
2832
2829
|
async function build3(options) {
|
|
2833
2830
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
2834
2831
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
@@ -2849,8 +2846,8 @@ async function build3(options) {
|
|
|
2849
2846
|
stopwatch();
|
|
2850
2847
|
}
|
|
2851
2848
|
}
|
|
2852
|
-
|
|
2853
|
-
var watch = /* @__PURE__ */
|
|
2849
|
+
_chunkAIOPBLPUjs.__name.call(void 0, build3, "build");
|
|
2850
|
+
var watch = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (context2, options) => {
|
|
2854
2851
|
if (!options.watch) {
|
|
2855
2852
|
return context2;
|
|
2856
2853
|
}
|
|
@@ -2897,11 +2894,11 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
2897
2894
|
success: true
|
|
2898
2895
|
};
|
|
2899
2896
|
}
|
|
2900
|
-
|
|
2897
|
+
_chunkAIOPBLPUjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
2901
2898
|
var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn, {
|
|
2902
2899
|
skipReadingConfig: false,
|
|
2903
2900
|
hooks: {
|
|
2904
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2901
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (options, config) => {
|
|
2905
2902
|
options.entry ??= [
|
|
2906
2903
|
"src/index.ts"
|
|
2907
2904
|
];
|
|
@@ -2913,12 +2910,12 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
|
|
|
2913
2910
|
});
|
|
2914
2911
|
|
|
2915
2912
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2916
|
-
|
|
2913
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2917
2914
|
|
|
2918
2915
|
|
|
2919
2916
|
|
|
2920
2917
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2921
|
-
|
|
2918
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2922
2919
|
|
|
2923
2920
|
|
|
2924
2921
|
var _prettier = require('prettier');
|
|
@@ -2928,7 +2925,7 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
2928
2925
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
2929
2926
|
|
|
2930
2927
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2931
|
-
|
|
2928
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2932
2929
|
|
|
2933
2930
|
var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
|
|
2934
2931
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -2952,21 +2949,21 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
2952
2949
|
success: true
|
|
2953
2950
|
};
|
|
2954
2951
|
}
|
|
2955
|
-
|
|
2952
|
+
_chunkAIOPBLPUjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
2956
2953
|
var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
2957
2954
|
skipReadingConfig: false,
|
|
2958
2955
|
hooks: {
|
|
2959
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2956
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
2960
2957
|
return options;
|
|
2961
2958
|
}, "applyDefaultOptions")
|
|
2962
2959
|
}
|
|
2963
2960
|
});
|
|
2964
2961
|
|
|
2965
2962
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
2966
|
-
|
|
2963
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2967
2964
|
|
|
2968
2965
|
// ../tsdown/src/build.ts
|
|
2969
|
-
|
|
2966
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2970
2967
|
|
|
2971
2968
|
|
|
2972
2969
|
|
|
@@ -2975,7 +2972,7 @@ _chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
|
2975
2972
|
var _tsdown = require('tsdown');
|
|
2976
2973
|
|
|
2977
2974
|
// ../tsdown/src/clean.ts
|
|
2978
|
-
|
|
2975
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2979
2976
|
|
|
2980
2977
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
2981
2978
|
await _promises.rm.call(void 0, directory, {
|
|
@@ -2983,10 +2980,10 @@ async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
|
2983
2980
|
force: true
|
|
2984
2981
|
});
|
|
2985
2982
|
}
|
|
2986
|
-
|
|
2983
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cleanDirectories2, "cleanDirectories");
|
|
2987
2984
|
|
|
2988
2985
|
// ../tsdown/src/config.ts
|
|
2989
|
-
|
|
2986
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
2990
2987
|
var DEFAULT_BUILD_OPTIONS2 = {
|
|
2991
2988
|
platform: "node",
|
|
2992
2989
|
target: "node22",
|
|
@@ -2995,7 +2992,7 @@ var DEFAULT_BUILD_OPTIONS2 = {
|
|
|
2995
2992
|
"cjs"
|
|
2996
2993
|
],
|
|
2997
2994
|
tsconfig: "tsconfig.json",
|
|
2998
|
-
|
|
2995
|
+
mode: "production",
|
|
2999
2996
|
globalName: "globalThis",
|
|
3000
2997
|
unused: {
|
|
3001
2998
|
level: "error"
|
|
@@ -3009,7 +3006,7 @@ var DEFAULT_BUILD_OPTIONS2 = {
|
|
|
3009
3006
|
};
|
|
3010
3007
|
|
|
3011
3008
|
// ../tsdown/src/build.ts
|
|
3012
|
-
var resolveOptions2 = /* @__PURE__ */
|
|
3009
|
+
var resolveOptions2 = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (userOptions) => {
|
|
3013
3010
|
const projectRoot = userOptions.projectRoot;
|
|
3014
3011
|
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
3015
3012
|
if (!workspaceRoot3) {
|
|
@@ -3021,7 +3018,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
3021
3018
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3022
3019
|
exitOnError: true
|
|
3023
3020
|
});
|
|
3024
|
-
const projectJsonPath =
|
|
3021
|
+
const projectJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
3025
3022
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
3026
3023
|
throw new Error("Cannot find project.json configuration");
|
|
3027
3024
|
}
|
|
@@ -3035,7 +3032,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
3035
3032
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
3036
3033
|
options.name ??= `${projectName}-${options.format}`;
|
|
3037
3034
|
options.target ??= DEFAULT_TARGET;
|
|
3038
|
-
const packageJsonPath =
|
|
3035
|
+
const packageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
3039
3036
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3040
3037
|
throw new Error("Cannot find package.json configuration");
|
|
3041
3038
|
}
|
|
@@ -3044,18 +3041,18 @@ var resolveOptions2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
3044
3041
|
...options,
|
|
3045
3042
|
config,
|
|
3046
3043
|
...userOptions,
|
|
3047
|
-
tsconfig:
|
|
3044
|
+
tsconfig: _chunkFLQMNCUYjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
3048
3045
|
format: options.format || "cjs",
|
|
3049
3046
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
3050
3047
|
"./src/index.ts"
|
|
3051
3048
|
], userOptions.emitOnAll),
|
|
3052
|
-
outdir: userOptions.outputPath ||
|
|
3049
|
+
outdir: userOptions.outputPath || _chunkFLQMNCUYjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
3053
3050
|
plugins: [],
|
|
3054
3051
|
name: userOptions.name || projectName,
|
|
3055
3052
|
projectConfigurations,
|
|
3056
3053
|
projectName,
|
|
3057
3054
|
projectGraph,
|
|
3058
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
3055
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFLQMNCUYjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
3059
3056
|
minify: userOptions.minify || !userOptions.debug,
|
|
3060
3057
|
verbose: userOptions.verbose || isVerbose() || userOptions.debug === true,
|
|
3061
3058
|
includeSrc: userOptions.includeSrc === true,
|
|
@@ -3091,14 +3088,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async
|
|
|
3091
3088
|
return result;
|
|
3092
3089
|
}, "resolveOptions");
|
|
3093
3090
|
async function generatePackageJson2(options) {
|
|
3094
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3091
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3095
3092
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
|
|
3096
3093
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3097
|
-
const packageJsonPath =
|
|
3094
|
+
const packageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3098
3095
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3099
3096
|
throw new Error("Cannot find package.json configuration");
|
|
3100
3097
|
}
|
|
3101
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
3098
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkFLQMNCUYjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
3102
3099
|
if (!packageJsonFile) {
|
|
3103
3100
|
throw new Error("Cannot find package.json configuration file");
|
|
3104
3101
|
}
|
|
@@ -3137,12 +3134,12 @@ async function generatePackageJson2(options) {
|
|
|
3137
3134
|
}
|
|
3138
3135
|
return ret;
|
|
3139
3136
|
}, packageJson.exports);
|
|
3140
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3137
|
+
await _devkit.writeJsonFile.call(void 0, _chunkFLQMNCUYjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
3141
3138
|
stopwatch();
|
|
3142
3139
|
}
|
|
3143
3140
|
return options;
|
|
3144
3141
|
}
|
|
3145
|
-
|
|
3142
|
+
_chunkAIOPBLPUjs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
|
|
3146
3143
|
async function executeTSDown(options) {
|
|
3147
3144
|
writeDebug(` \u{1F680} Running ${options.name} build`, options.config);
|
|
3148
3145
|
const stopwatch = getStopwatch(`${options.name} build`);
|
|
@@ -3155,7 +3152,7 @@ async function executeTSDown(options) {
|
|
|
3155
3152
|
stopwatch();
|
|
3156
3153
|
return options;
|
|
3157
3154
|
}
|
|
3158
|
-
|
|
3155
|
+
_chunkAIOPBLPUjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
3159
3156
|
async function copyBuildAssets2(options) {
|
|
3160
3157
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
3161
3158
|
const stopwatch = getStopwatch(`${options.name} asset copy`);
|
|
@@ -3163,11 +3160,11 @@ async function copyBuildAssets2(options) {
|
|
|
3163
3160
|
stopwatch();
|
|
3164
3161
|
return options;
|
|
3165
3162
|
}
|
|
3166
|
-
|
|
3163
|
+
_chunkAIOPBLPUjs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
|
|
3167
3164
|
async function reportResults2(options) {
|
|
3168
3165
|
writeSuccess(` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
3169
3166
|
}
|
|
3170
|
-
|
|
3167
|
+
_chunkAIOPBLPUjs.__name.call(void 0, reportResults2, "reportResults");
|
|
3171
3168
|
async function cleanOutputPath2(options) {
|
|
3172
3169
|
if (options.clean !== false && options.outdir) {
|
|
3173
3170
|
writeDebug(` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
@@ -3177,7 +3174,7 @@ async function cleanOutputPath2(options) {
|
|
|
3177
3174
|
}
|
|
3178
3175
|
return options;
|
|
3179
3176
|
}
|
|
3180
|
-
|
|
3177
|
+
_chunkAIOPBLPUjs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
|
|
3181
3178
|
async function build4(options) {
|
|
3182
3179
|
writeDebug(` \u26A1 Executing Storm TSDown pipeline`);
|
|
3183
3180
|
const stopwatch = getStopwatch("TSDown pipeline");
|
|
@@ -3208,7 +3205,7 @@ async function build4(options) {
|
|
|
3208
3205
|
stopwatch();
|
|
3209
3206
|
}
|
|
3210
3207
|
}
|
|
3211
|
-
|
|
3208
|
+
_chunkAIOPBLPUjs.__name.call(void 0, build4, "build");
|
|
3212
3209
|
|
|
3213
3210
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3214
3211
|
async function tsdownExecutorFn(options, context2, config) {
|
|
@@ -3228,11 +3225,11 @@ async function tsdownExecutorFn(options, context2, config) {
|
|
|
3228
3225
|
success: true
|
|
3229
3226
|
};
|
|
3230
3227
|
}
|
|
3231
|
-
|
|
3228
|
+
_chunkAIOPBLPUjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
3232
3229
|
var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExecutorFn, {
|
|
3233
3230
|
skipReadingConfig: false,
|
|
3234
3231
|
hooks: {
|
|
3235
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3232
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (options, config) => {
|
|
3236
3233
|
options.entry ??= [
|
|
3237
3234
|
"src/index.ts"
|
|
3238
3235
|
];
|
|
@@ -3244,7 +3241,7 @@ var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExe
|
|
|
3244
3241
|
});
|
|
3245
3242
|
|
|
3246
3243
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3247
|
-
|
|
3244
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3248
3245
|
var _fsextra = require('fs-extra');
|
|
3249
3246
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3250
3247
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3264,11 +3261,11 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
3264
3261
|
success: true
|
|
3265
3262
|
};
|
|
3266
3263
|
}
|
|
3267
|
-
|
|
3264
|
+
_chunkAIOPBLPUjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
3268
3265
|
var executor_default9 = withRunExecutor("Typia runtime validation generator", typiaExecutorFn, {
|
|
3269
3266
|
skipReadingConfig: false,
|
|
3270
3267
|
hooks: {
|
|
3271
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3268
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
3272
3269
|
options.entry ??= [
|
|
3273
3270
|
"{sourceRoot}/index.ts"
|
|
3274
3271
|
];
|
|
@@ -3281,7 +3278,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
3281
3278
|
});
|
|
3282
3279
|
|
|
3283
3280
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3284
|
-
|
|
3281
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3285
3282
|
|
|
3286
3283
|
var _jiti = require('jiti');
|
|
3287
3284
|
async function unbuildExecutorFn(options, context2, config) {
|
|
@@ -3296,7 +3293,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3296
3293
|
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.");
|
|
3297
3294
|
}
|
|
3298
3295
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3299
|
-
fsCache: config.skipCache ? false :
|
|
3296
|
+
fsCache: config.skipCache ? false : _chunkFLQMNCUYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
3300
3297
|
interopDefault: true
|
|
3301
3298
|
});
|
|
3302
3299
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -3309,7 +3306,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3309
3306
|
}, {
|
|
3310
3307
|
stubOptions: {
|
|
3311
3308
|
jiti: {
|
|
3312
|
-
fsCache: config.skipCache ? false :
|
|
3309
|
+
fsCache: config.skipCache ? false : _chunkFLQMNCUYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
3313
3310
|
}
|
|
3314
3311
|
},
|
|
3315
3312
|
rollup: {
|
|
@@ -3332,11 +3329,11 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3332
3329
|
success: true
|
|
3333
3330
|
};
|
|
3334
3331
|
}
|
|
3335
|
-
|
|
3332
|
+
_chunkAIOPBLPUjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
3336
3333
|
var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExecutorFn, {
|
|
3337
3334
|
skipReadingConfig: false,
|
|
3338
3335
|
hooks: {
|
|
3339
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3336
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, async (options, config) => {
|
|
3340
3337
|
options.debug ??= false;
|
|
3341
3338
|
options.treeShaking ??= true;
|
|
3342
3339
|
options.platform ??= "neutral";
|
|
@@ -3350,15 +3347,15 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
3350
3347
|
});
|
|
3351
3348
|
|
|
3352
3349
|
// ../workspace-tools/generators.ts
|
|
3353
|
-
|
|
3350
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3354
3351
|
|
|
3355
3352
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3356
|
-
|
|
3353
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3357
3354
|
|
|
3358
3355
|
|
|
3359
3356
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3360
|
-
|
|
3361
|
-
var withRunGenerator = /* @__PURE__ */
|
|
3357
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3358
|
+
var withRunGenerator = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
3362
3359
|
skipReadingConfig: false
|
|
3363
3360
|
}) => async (tree, _options) => {
|
|
3364
3361
|
const stopwatch = getStopwatch(name);
|
|
@@ -3422,7 +3419,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3422
3419
|
}, "withRunGenerator");
|
|
3423
3420
|
|
|
3424
3421
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3425
|
-
|
|
3422
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3426
3423
|
|
|
3427
3424
|
var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
|
|
3428
3425
|
var _js = require('@nx/js');
|
|
@@ -3430,7 +3427,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3430
3427
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3431
3428
|
|
|
3432
3429
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3433
|
-
|
|
3430
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3434
3431
|
var ProjectTagConstants = {
|
|
3435
3432
|
Language: {
|
|
3436
3433
|
TAG_ID: "language",
|
|
@@ -3468,15 +3465,15 @@ var ProjectTagConstants = {
|
|
|
3468
3465
|
TAG_ID: "plugin"
|
|
3469
3466
|
}
|
|
3470
3467
|
};
|
|
3471
|
-
var formatProjectTag = /* @__PURE__ */
|
|
3468
|
+
var formatProjectTag = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (variant, value) => {
|
|
3472
3469
|
return `${variant}:${value}`;
|
|
3473
3470
|
}, "formatProjectTag");
|
|
3474
|
-
var hasProjectTag = /* @__PURE__ */
|
|
3471
|
+
var hasProjectTag = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (project, variant) => {
|
|
3475
3472
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
3476
3473
|
const prefix = formatProjectTag(variant, "");
|
|
3477
3474
|
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
3478
3475
|
}, "hasProjectTag");
|
|
3479
|
-
var addProjectTag = /* @__PURE__ */
|
|
3476
|
+
var addProjectTag = /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (project, variant, value, options = {
|
|
3480
3477
|
overwrite: false
|
|
3481
3478
|
}) => {
|
|
3482
3479
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
@@ -3487,7 +3484,7 @@ var addProjectTag = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (projec
|
|
|
3487
3484
|
}, "addProjectTag");
|
|
3488
3485
|
|
|
3489
3486
|
// ../workspace-tools/src/utils/versions.ts
|
|
3490
|
-
|
|
3487
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3491
3488
|
var typesNodeVersion = "20.9.0";
|
|
3492
3489
|
var nxVersion = "^18.0.4";
|
|
3493
3490
|
var nodeVersion = "20.11.0";
|
|
@@ -3517,7 +3514,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3517
3514
|
const projectConfig = {
|
|
3518
3515
|
root: normalized.directory,
|
|
3519
3516
|
projectType: "library",
|
|
3520
|
-
sourceRoot:
|
|
3517
|
+
sourceRoot: _chunkFLQMNCUYjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3521
3518
|
targets: {
|
|
3522
3519
|
build: {
|
|
3523
3520
|
executor: options.buildExecutor,
|
|
@@ -3526,11 +3523,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3526
3523
|
],
|
|
3527
3524
|
options: {
|
|
3528
3525
|
entry: [
|
|
3529
|
-
|
|
3526
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
3530
3527
|
],
|
|
3531
3528
|
outputPath: getOutputPath(normalized),
|
|
3532
|
-
tsconfig:
|
|
3533
|
-
project:
|
|
3529
|
+
tsconfig: _chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3530
|
+
project: _chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3534
3531
|
defaultConfiguration: "production",
|
|
3535
3532
|
platform: "neutral",
|
|
3536
3533
|
assets: [
|
|
@@ -3584,7 +3581,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3584
3581
|
if (!normalized.importPath) {
|
|
3585
3582
|
normalized.importPath = normalized.name;
|
|
3586
3583
|
}
|
|
3587
|
-
const packageJsonPath =
|
|
3584
|
+
const packageJsonPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3588
3585
|
if (tree.exists(packageJsonPath)) {
|
|
3589
3586
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3590
3587
|
if (!normalized.importPath) {
|
|
@@ -3641,10 +3638,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3641
3638
|
}));
|
|
3642
3639
|
}
|
|
3643
3640
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3644
|
-
|
|
3641
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
3645
3642
|
]);
|
|
3646
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3647
|
-
|
|
3643
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3644
|
+
_chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3648
3645
|
]);
|
|
3649
3646
|
if (tree.exists("package.json")) {
|
|
3650
3647
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -3655,7 +3652,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3655
3652
|
description = packageJson.description;
|
|
3656
3653
|
}
|
|
3657
3654
|
}
|
|
3658
|
-
const tsconfigPath =
|
|
3655
|
+
const tsconfigPath = _chunkFLQMNCUYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3659
3656
|
if (tree.exists(tsconfigPath)) {
|
|
3660
3657
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3661
3658
|
json.composite ??= true;
|
|
@@ -3683,7 +3680,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3683
3680
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3684
3681
|
return null;
|
|
3685
3682
|
}
|
|
3686
|
-
|
|
3683
|
+
_chunkAIOPBLPUjs.__name.call(void 0, typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
|
|
3687
3684
|
function getOutputPath(options) {
|
|
3688
3685
|
const parts = [
|
|
3689
3686
|
"dist"
|
|
@@ -3693,16 +3690,16 @@ function getOutputPath(options) {
|
|
|
3693
3690
|
} else {
|
|
3694
3691
|
parts.push(options.projectRoot);
|
|
3695
3692
|
}
|
|
3696
|
-
return
|
|
3693
|
+
return _chunkFLQMNCUYjs.joinPaths.call(void 0, ...parts);
|
|
3697
3694
|
}
|
|
3698
|
-
|
|
3695
|
+
_chunkAIOPBLPUjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
3699
3696
|
function createProjectTsConfigJson(tree, options) {
|
|
3700
3697
|
const tsconfig = {
|
|
3701
3698
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3702
3699
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _195 => _195.tsconfigOptions]), () => ( {})),
|
|
3703
3700
|
compilerOptions: {
|
|
3704
3701
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3705
|
-
outDir:
|
|
3702
|
+
outDir: _chunkFLQMNCUYjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3706
3703
|
noEmit: true,
|
|
3707
3704
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _196 => _196.tsconfigOptions, 'optionalAccess', _197 => _197.compilerOptions]), () => ( {}))
|
|
3708
3705
|
},
|
|
@@ -3722,9 +3719,9 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3722
3719
|
"src/**/*.test.ts"
|
|
3723
3720
|
]
|
|
3724
3721
|
};
|
|
3725
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3722
|
+
_devkit.writeJson.call(void 0, tree, _chunkFLQMNCUYjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3726
3723
|
}
|
|
3727
|
-
|
|
3724
|
+
_chunkAIOPBLPUjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
3728
3725
|
async function normalizeOptions(tree, options, config) {
|
|
3729
3726
|
let importPath = options.importPath;
|
|
3730
3727
|
if (!importPath && _optionalChain([config, 'optionalAccess', _204 => _204.namespace])) {
|
|
@@ -3778,11 +3775,11 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3778
3775
|
shouldUseSwcJest: false
|
|
3779
3776
|
};
|
|
3780
3777
|
}
|
|
3781
|
-
|
|
3778
|
+
_chunkAIOPBLPUjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
3782
3779
|
|
|
3783
3780
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3784
3781
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3785
|
-
const filesDir =
|
|
3782
|
+
const filesDir = _chunkFLQMNCUYjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
3786
3783
|
const tsLibraryGeneratorOptions = {
|
|
3787
3784
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
3788
3785
|
platform: "browser",
|
|
@@ -3839,10 +3836,10 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
3839
3836
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3840
3837
|
return null;
|
|
3841
3838
|
}
|
|
3842
|
-
|
|
3839
|
+
_chunkAIOPBLPUjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
3843
3840
|
var generator_default = withRunGenerator("TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
3844
3841
|
hooks: {
|
|
3845
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3842
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
3846
3843
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
3847
3844
|
options.platform ??= "browser";
|
|
3848
3845
|
return options;
|
|
@@ -3851,7 +3848,7 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
3851
3848
|
});
|
|
3852
3849
|
|
|
3853
3850
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3854
|
-
|
|
3851
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3855
3852
|
|
|
3856
3853
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
3857
3854
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3872,10 +3869,10 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3872
3869
|
success: true
|
|
3873
3870
|
};
|
|
3874
3871
|
}
|
|
3875
|
-
|
|
3872
|
+
_chunkAIOPBLPUjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
3876
3873
|
var generator_default2 = withRunGenerator("Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
3877
3874
|
hooks: {
|
|
3878
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3875
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
3879
3876
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
3880
3877
|
return options;
|
|
3881
3878
|
}, "applyDefaultOptions")
|
|
@@ -3883,7 +3880,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
3883
3880
|
});
|
|
3884
3881
|
|
|
3885
3882
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3886
|
-
|
|
3883
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3887
3884
|
|
|
3888
3885
|
async function initGenerator(tree, schema) {
|
|
3889
3886
|
const task = _devkit.addDependenciesToPackageJson.call(void 0, tree, {
|
|
@@ -3902,13 +3899,13 @@ async function initGenerator(tree, schema) {
|
|
|
3902
3899
|
}
|
|
3903
3900
|
return task;
|
|
3904
3901
|
}
|
|
3905
|
-
|
|
3902
|
+
_chunkAIOPBLPUjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
3906
3903
|
|
|
3907
3904
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3908
|
-
|
|
3905
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3909
3906
|
|
|
3910
3907
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3911
|
-
const filesDir =
|
|
3908
|
+
const filesDir = _chunkFLQMNCUYjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
3912
3909
|
const tsLibraryGeneratorOptions = {
|
|
3913
3910
|
...schema,
|
|
3914
3911
|
platform: "neutral",
|
|
@@ -3937,10 +3934,10 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
3937
3934
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3938
3935
|
return null;
|
|
3939
3936
|
}
|
|
3940
|
-
|
|
3937
|
+
_chunkAIOPBLPUjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
3941
3938
|
var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
3942
3939
|
hooks: {
|
|
3943
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3940
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
3944
3941
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
3945
3942
|
options.platform = "neutral";
|
|
3946
3943
|
return options;
|
|
@@ -3949,10 +3946,10 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
3949
3946
|
});
|
|
3950
3947
|
|
|
3951
3948
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3952
|
-
|
|
3949
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
3953
3950
|
|
|
3954
3951
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3955
|
-
const filesDir =
|
|
3952
|
+
const filesDir = _chunkFLQMNCUYjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
3956
3953
|
const tsLibraryGeneratorOptions = {
|
|
3957
3954
|
platform: "node",
|
|
3958
3955
|
devDependencies: {
|
|
@@ -3985,10 +3982,10 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
3985
3982
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3986
3983
|
return null;
|
|
3987
3984
|
}
|
|
3988
|
-
|
|
3985
|
+
_chunkAIOPBLPUjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
3989
3986
|
var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
3990
3987
|
hooks: {
|
|
3991
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3988
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (options) => {
|
|
3992
3989
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
3993
3990
|
options.platform ??= "node";
|
|
3994
3991
|
return options;
|
|
@@ -3997,7 +3994,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
3997
3994
|
});
|
|
3998
3995
|
|
|
3999
3996
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4000
|
-
|
|
3997
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4001
3998
|
|
|
4002
3999
|
|
|
4003
4000
|
async function presetGeneratorFn(tree, options) {
|
|
@@ -4029,9 +4026,6 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4029
4026
|
"storm",
|
|
4030
4027
|
"storm-stack",
|
|
4031
4028
|
"storm-ops",
|
|
4032
|
-
"acidic",
|
|
4033
|
-
"acidic-engine",
|
|
4034
|
-
"cyclone-ui",
|
|
4035
4029
|
"rust",
|
|
4036
4030
|
"nx",
|
|
4037
4031
|
"graphql",
|
|
@@ -4072,10 +4066,10 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4072
4066
|
type: "github",
|
|
4073
4067
|
url: `${options.repositoryUrl}.git`
|
|
4074
4068
|
};
|
|
4075
|
-
json.packageManager ??= "pnpm@
|
|
4069
|
+
json.packageManager ??= "pnpm@10.3.0";
|
|
4076
4070
|
json.engines ??= {
|
|
4077
4071
|
node: ">=20.11.0",
|
|
4078
|
-
pnpm: ">=
|
|
4072
|
+
pnpm: ">=10.3.0"
|
|
4079
4073
|
};
|
|
4080
4074
|
json.prettier = "@storm-software/prettier/config.json";
|
|
4081
4075
|
json.nx ??= {
|
|
@@ -4219,23 +4213,23 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4219
4213
|
await Promise.resolve(_devkit.addDependenciesToPackageJson.call(void 0, tree, dependencies, {}, _devkit.joinPathFragments.call(void 0, projectRoot, "package.json")));
|
|
4220
4214
|
return null;
|
|
4221
4215
|
}
|
|
4222
|
-
|
|
4216
|
+
_chunkAIOPBLPUjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
4223
4217
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
4224
4218
|
|
|
4225
4219
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4226
|
-
|
|
4220
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4227
4221
|
|
|
4228
4222
|
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
4229
4223
|
var _updatelockfile = require('@nx/js/src/generators/release-version/utils/update-lock-file');
|
|
4230
4224
|
|
|
4231
4225
|
// ../git-tools/src/index.ts
|
|
4232
|
-
|
|
4226
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4233
4227
|
|
|
4234
4228
|
// ../git-tools/src/commit/config.ts
|
|
4235
|
-
|
|
4229
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4236
4230
|
|
|
4237
4231
|
// ../git-tools/src/types.ts
|
|
4238
|
-
|
|
4232
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4239
4233
|
var RuleConfigSeverity;
|
|
4240
4234
|
(function(RuleConfigSeverity2) {
|
|
4241
4235
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
@@ -4244,11 +4238,11 @@ var RuleConfigSeverity;
|
|
|
4244
4238
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
4245
4239
|
|
|
4246
4240
|
// ../git-tools/src/release/changelog-renderer.ts
|
|
4247
|
-
|
|
4241
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4248
4242
|
var _index = require('nx/release/changelog-renderer/index'); var _index2 = _interopRequireDefault(_index);
|
|
4249
4243
|
|
|
4250
4244
|
// ../git-tools/src/release/config.ts
|
|
4251
|
-
|
|
4245
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4252
4246
|
|
|
4253
4247
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4254
4248
|
|
|
@@ -4262,10 +4256,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
4262
4256
|
var _semver3 = require('semver');
|
|
4263
4257
|
|
|
4264
4258
|
// ../workspace-tools/src/base/index.ts
|
|
4265
|
-
|
|
4259
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4266
4260
|
|
|
4267
4261
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4268
|
-
|
|
4262
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4269
4263
|
var _untyped = require('untyped');
|
|
4270
4264
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4271
4265
|
$schema: {
|
|
@@ -4285,7 +4279,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4285
4279
|
});
|
|
4286
4280
|
|
|
4287
4281
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4288
|
-
|
|
4282
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4289
4283
|
|
|
4290
4284
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4291
4285
|
$schema: {
|
|
@@ -4303,7 +4297,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4303
4297
|
});
|
|
4304
4298
|
|
|
4305
4299
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4306
|
-
|
|
4300
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4307
4301
|
|
|
4308
4302
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4309
4303
|
...base_executor_untyped_default,
|
|
@@ -4390,7 +4384,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4390
4384
|
});
|
|
4391
4385
|
|
|
4392
4386
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4393
|
-
|
|
4387
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4394
4388
|
|
|
4395
4389
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4396
4390
|
...base_executor_untyped_default,
|
|
@@ -4495,7 +4489,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4495
4489
|
]
|
|
4496
4490
|
},
|
|
4497
4491
|
$default: "esnext",
|
|
4498
|
-
$resolve: /* @__PURE__ */
|
|
4492
|
+
$resolve: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (val = "esnext") => val.toLowerCase(), "$resolve")
|
|
4499
4493
|
},
|
|
4500
4494
|
format: {
|
|
4501
4495
|
$schema: {
|
|
@@ -4511,7 +4505,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4511
4505
|
]
|
|
4512
4506
|
}
|
|
4513
4507
|
},
|
|
4514
|
-
$resolve: /* @__PURE__ */
|
|
4508
|
+
$resolve: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (val = [
|
|
4515
4509
|
"cjs",
|
|
4516
4510
|
"esm"
|
|
4517
4511
|
]) => [].concat(val), "$resolve")
|
|
@@ -4535,7 +4529,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4535
4529
|
type: "array",
|
|
4536
4530
|
description: "The external dependencies"
|
|
4537
4531
|
},
|
|
4538
|
-
$resolve: /* @__PURE__ */
|
|
4532
|
+
$resolve: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (val = []) => [].concat(val), "$resolve")
|
|
4539
4533
|
},
|
|
4540
4534
|
define: {
|
|
4541
4535
|
$schema: {
|
|
@@ -4544,7 +4538,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4544
4538
|
tsType: "Record<string, string>",
|
|
4545
4539
|
description: "The define values"
|
|
4546
4540
|
},
|
|
4547
|
-
$resolve: /* @__PURE__ */
|
|
4541
|
+
$resolve: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
4548
4542
|
$default: {}
|
|
4549
4543
|
},
|
|
4550
4544
|
env: {
|
|
@@ -4554,13 +4548,13 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4554
4548
|
tsType: "Record<string, string>",
|
|
4555
4549
|
description: "The environment variable values"
|
|
4556
4550
|
},
|
|
4557
|
-
$resolve: /* @__PURE__ */
|
|
4551
|
+
$resolve: /* @__PURE__ */ _chunkAIOPBLPUjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
4558
4552
|
$default: {}
|
|
4559
4553
|
}
|
|
4560
4554
|
});
|
|
4561
4555
|
|
|
4562
4556
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4563
|
-
|
|
4557
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4564
4558
|
|
|
4565
4559
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4566
4560
|
...base_generator_untyped_default,
|
|
@@ -4681,24 +4675,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4681
4675
|
});
|
|
4682
4676
|
|
|
4683
4677
|
// ../workspace-tools/src/types.ts
|
|
4684
|
-
|
|
4678
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4685
4679
|
|
|
4686
4680
|
// ../workspace-tools/src/utils/index.ts
|
|
4687
|
-
|
|
4681
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4688
4682
|
|
|
4689
4683
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4690
|
-
|
|
4684
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4691
4685
|
|
|
4692
4686
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4693
|
-
|
|
4687
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4694
4688
|
|
|
4695
4689
|
|
|
4696
4690
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4697
|
-
|
|
4691
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4698
4692
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4699
4693
|
|
|
4700
4694
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4701
|
-
|
|
4695
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4702
4696
|
|
|
4703
4697
|
|
|
4704
4698
|
|
|
@@ -4713,19 +4707,19 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
4713
4707
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4714
4708
|
|
|
4715
4709
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4716
|
-
|
|
4710
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4717
4711
|
|
|
4718
4712
|
|
|
4719
4713
|
|
|
4720
4714
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4721
|
-
|
|
4715
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4722
4716
|
|
|
4723
4717
|
|
|
4724
4718
|
|
|
4725
4719
|
|
|
4726
4720
|
|
|
4727
4721
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4728
|
-
|
|
4722
|
+
_chunkAIOPBLPUjs.init_cjs_shims.call(void 0, );
|
|
4729
4723
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
4730
4724
|
|
|
4731
4725
|
// src/generators/init/generator.ts
|
|
@@ -4737,7 +4731,7 @@ async function initGeneratorFn(tree, options, config) {
|
|
|
4737
4731
|
}
|
|
4738
4732
|
return task;
|
|
4739
4733
|
}
|
|
4740
|
-
|
|
4734
|
+
_chunkAIOPBLPUjs.__name.call(void 0, initGeneratorFn, "initGeneratorFn");
|
|
4741
4735
|
var generator_default6 = withRunGenerator("Initialize Storm Projen workspace", initGeneratorFn);
|
|
4742
4736
|
function addProjenDeps(tree, options) {
|
|
4743
4737
|
return () => {
|
|
@@ -4748,7 +4742,7 @@ function addProjenDeps(tree, options) {
|
|
|
4748
4742
|
}
|
|
4749
4743
|
};
|
|
4750
4744
|
}
|
|
4751
|
-
|
|
4745
|
+
_chunkAIOPBLPUjs.__name.call(void 0, addProjenDeps, "addProjenDeps");
|
|
4752
4746
|
|
|
4753
4747
|
|
|
4754
4748
|
|