@storm-software/projen 0.9.76 → 0.9.77
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 +1 -1
- package/dist/{chunk-JSBLU2B7.mjs → chunk-3WGDRQNY.mjs} +2 -2
- package/dist/{chunk-RLLFZW5Z.js → chunk-CPYKIT3Y.js} +3 -3
- package/dist/{chunk-IAJM6J3Z.mjs → chunk-DCI3IG72.mjs} +1 -1
- package/dist/chunk-G5DVWWIE.js +6 -0
- package/dist/{chunk-BSYROGZP.mjs → chunk-I6BKFG76.mjs} +1 -1
- package/dist/{chunk-GM25EIP6.mjs → chunk-JWBHDG2X.mjs} +2 -2
- package/dist/{chunk-LTKRUM5P.js → chunk-KVRUQ4FB.js} +2 -2
- package/dist/{chunk-PHMFOUDC.js → chunk-V76GMI2J.js} +7 -7
- package/dist/{chunk-EJSKIRCS.mjs → chunk-XLNK5222.mjs} +1 -1
- package/dist/{chunk-VBI5UBLI.js → chunk-ZQZ2TA6F.js} +287 -287
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- 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.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-DQ67WT5G.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 _chunkV76GMI2Jjs = require('./chunk-V76GMI2J.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkKVRUQ4FBjs = require('./chunk-KVRUQ4FB.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _devkit = require('@nx/devkit');
|
|
14
14
|
|
|
15
15
|
// ../workspace-tools/index.ts
|
|
16
|
-
|
|
16
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/executors.ts
|
|
19
|
-
|
|
19
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
|
|
21
21
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
22
|
-
|
|
22
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// ../workspace-tools/src/base/base-executor.ts
|
|
25
|
-
|
|
25
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
28
|
-
|
|
28
|
+
_chunkKVRUQ4FBjs.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
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
34
34
|
|
|
35
35
|
// ../config-tools/src/types.ts
|
|
36
|
-
|
|
36
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
var LogLevel = {
|
|
38
38
|
SILENT: 0,
|
|
39
39
|
FATAL: 10,
|
|
@@ -58,13 +58,13 @@ var LogLevelLabel = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
61
|
-
|
|
61
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
62
62
|
|
|
63
63
|
// ../config/src/index.ts
|
|
64
|
-
|
|
64
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
65
65
|
|
|
66
66
|
// ../config/src/constants.ts
|
|
67
|
-
|
|
67
|
+
_chunkKVRUQ4FBjs.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_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -87,10 +87,10 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
87
87
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
88
88
|
|
|
89
89
|
// ../config/src/define-config.ts
|
|
90
|
-
|
|
90
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
91
91
|
|
|
92
92
|
// ../config/src/schema.ts
|
|
93
|
-
|
|
93
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
94
94
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
95
95
|
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");
|
|
96
96
|
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");
|
|
@@ -259,7 +259,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
259
259
|
}).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.");
|
|
260
260
|
|
|
261
261
|
// ../config/src/types.ts
|
|
262
|
-
|
|
262
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
263
263
|
var COLOR_KEYS = [
|
|
264
264
|
"dark",
|
|
265
265
|
"light",
|
|
@@ -284,10 +284,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
|
|
|
284
284
|
var _path = require('path'); var path4 = _interopRequireWildcard(_path);
|
|
285
285
|
|
|
286
286
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
287
|
-
|
|
287
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
288
288
|
|
|
289
289
|
// ../config-tools/src/utilities/find-up.ts
|
|
290
|
-
|
|
290
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -306,7 +306,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
306
306
|
}
|
|
307
307
|
return void 0;
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
310
310
|
|
|
311
311
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
312
312
|
var rootFiles = [
|
|
@@ -353,11 +353,11 @@ var rootDirectories = [
|
|
|
353
353
|
];
|
|
354
354
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
355
355
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
356
|
-
return
|
|
356
|
+
return _chunkV76GMI2Jjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return _chunkV76GMI2Jjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
361
361
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
362
362
|
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
363
363
|
if (!result) {
|
|
@@ -367,7 +367,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
|
367
367
|
}
|
|
368
368
|
return result;
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
371
371
|
|
|
372
372
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
373
373
|
var DEFAULT_COLOR_CONFIG = {
|
|
@@ -398,7 +398,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
398
398
|
negative: "#dc2626"
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
|
-
var getDefaultConfig = /* @__PURE__ */
|
|
401
|
+
var getDefaultConfig = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (root) => {
|
|
402
402
|
let license = STORM_DEFAULT_LICENSE;
|
|
403
403
|
let homepage = STORM_DEFAULT_HOMEPAGE;
|
|
404
404
|
let name = void 0;
|
|
@@ -406,7 +406,7 @@ var getDefaultConfig = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, asyn
|
|
|
406
406
|
let repository = void 0;
|
|
407
407
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
408
408
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
409
|
-
const file = await _promises.readFile.call(void 0,
|
|
409
|
+
const file = await _promises.readFile.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
410
410
|
if (file) {
|
|
411
411
|
const packageJson = JSON.parse(file);
|
|
412
412
|
if (packageJson.name) {
|
|
@@ -446,28 +446,28 @@ var getDefaultConfig = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, asyn
|
|
|
446
446
|
}, "getDefaultConfig");
|
|
447
447
|
|
|
448
448
|
// ../config-tools/src/logger/chalk.ts
|
|
449
|
-
|
|
449
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
450
450
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
451
451
|
var chalkDefault = {
|
|
452
|
-
hex: /* @__PURE__ */
|
|
453
|
-
bgHex: /* @__PURE__ */
|
|
454
|
-
whiteBright: /* @__PURE__ */
|
|
452
|
+
hex: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
453
|
+
bgHex: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (_) => ({
|
|
454
|
+
whiteBright: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
455
455
|
}), "bgHex"),
|
|
456
|
-
whiteBright: /* @__PURE__ */
|
|
457
|
-
gray: /* @__PURE__ */
|
|
456
|
+
whiteBright: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
457
|
+
gray: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message) => message, "gray"),
|
|
458
458
|
bold: {
|
|
459
|
-
hex: /* @__PURE__ */
|
|
460
|
-
bgHex: /* @__PURE__ */
|
|
461
|
-
whiteBright: /* @__PURE__ */
|
|
459
|
+
hex: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
460
|
+
bgHex: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (_) => ({
|
|
461
|
+
whiteBright: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
462
462
|
}), "bgHex"),
|
|
463
|
-
whiteBright: /* @__PURE__ */
|
|
463
|
+
whiteBright: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
464
464
|
},
|
|
465
465
|
dim: {
|
|
466
|
-
hex: /* @__PURE__ */
|
|
467
|
-
gray: /* @__PURE__ */
|
|
466
|
+
hex: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
467
|
+
gray: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message) => message, "gray")
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
|
-
var getChalk = /* @__PURE__ */
|
|
470
|
+
var getChalk = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, () => {
|
|
471
471
|
let _chalk = _chalk3.default;
|
|
472
472
|
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])) {
|
|
473
473
|
_chalk = chalkDefault;
|
|
@@ -476,10 +476,10 @@ var getChalk = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, () => {
|
|
|
476
476
|
}, "getChalk");
|
|
477
477
|
|
|
478
478
|
// ../config-tools/src/logger/console-icons.ts
|
|
479
|
-
|
|
479
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
480
480
|
|
|
481
481
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
482
|
-
|
|
482
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
483
483
|
function isUnicodeSupported() {
|
|
484
484
|
if (process.platform !== "win32") {
|
|
485
485
|
return process.env.TERM !== "linux";
|
|
@@ -489,10 +489,10 @@ function isUnicodeSupported() {
|
|
|
489
489
|
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
490
490
|
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";
|
|
491
491
|
}
|
|
492
|
-
|
|
492
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
493
493
|
|
|
494
494
|
// ../config-tools/src/logger/console-icons.ts
|
|
495
|
-
var useIcon = /* @__PURE__ */
|
|
495
|
+
var useIcon = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
496
496
|
var CONSOLE_ICONS = {
|
|
497
497
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
498
498
|
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
@@ -505,14 +505,14 @@ var CONSOLE_ICONS = {
|
|
|
505
505
|
};
|
|
506
506
|
|
|
507
507
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
508
|
-
|
|
509
|
-
var formatTimestamp = /* @__PURE__ */
|
|
508
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
509
|
+
var formatTimestamp = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
510
510
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
511
511
|
}, "formatTimestamp");
|
|
512
512
|
|
|
513
513
|
// ../config-tools/src/logger/get-log-level.ts
|
|
514
|
-
|
|
515
|
-
var getLogLevel = /* @__PURE__ */
|
|
514
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
515
|
+
var getLogLevel = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (label) => {
|
|
516
516
|
switch (label) {
|
|
517
517
|
case "all":
|
|
518
518
|
return LogLevel.ALL;
|
|
@@ -534,7 +534,7 @@ var getLogLevel = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (label) =
|
|
|
534
534
|
return LogLevel.INFO;
|
|
535
535
|
}
|
|
536
536
|
}, "getLogLevel");
|
|
537
|
-
var getLogLevelLabel = /* @__PURE__ */
|
|
537
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
|
|
538
538
|
if (logLevel >= LogLevel.ALL) {
|
|
539
539
|
return LogLevelLabel.ALL;
|
|
540
540
|
}
|
|
@@ -563,7 +563,7 @@ var getLogLevelLabel = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (log
|
|
|
563
563
|
}, "getLogLevelLabel");
|
|
564
564
|
|
|
565
565
|
// ../config-tools/src/logger/console.ts
|
|
566
|
-
var getLogFn = /* @__PURE__ */
|
|
566
|
+
var getLogFn = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
567
567
|
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;
|
|
568
568
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
569
569
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -625,14 +625,14 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
625
625
|
`);
|
|
626
626
|
};
|
|
627
627
|
}, "getLogFn");
|
|
628
|
-
var writeFatal = /* @__PURE__ */
|
|
629
|
-
var writeError = /* @__PURE__ */
|
|
630
|
-
var writeWarning = /* @__PURE__ */
|
|
631
|
-
var writeInfo = /* @__PURE__ */
|
|
632
|
-
var writeSuccess = /* @__PURE__ */
|
|
633
|
-
var writeDebug = /* @__PURE__ */
|
|
634
|
-
var writeTrace = /* @__PURE__ */
|
|
635
|
-
var getStopwatch = /* @__PURE__ */
|
|
628
|
+
var writeFatal = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
|
|
629
|
+
var writeError = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
|
|
630
|
+
var writeWarning = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
|
|
631
|
+
var writeInfo = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
|
|
632
|
+
var writeSuccess = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
|
|
633
|
+
var writeDebug = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
634
|
+
var writeTrace = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
635
|
+
var getStopwatch = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (name) => {
|
|
636
636
|
const start = process.hrtime();
|
|
637
637
|
return () => {
|
|
638
638
|
const end = process.hrtime(start);
|
|
@@ -642,7 +642,7 @@ var getStopwatch = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (name) =
|
|
|
642
642
|
};
|
|
643
643
|
}, "getStopwatch");
|
|
644
644
|
var MAX_DEPTH = 4;
|
|
645
|
-
var formatLogMessage = /* @__PURE__ */
|
|
645
|
+
var formatLogMessage = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
|
|
646
646
|
if (depth2 > MAX_DEPTH) {
|
|
647
647
|
return "<max depth>";
|
|
648
648
|
}
|
|
@@ -658,7 +658,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${pre
|
|
|
658
658
|
skip
|
|
659
659
|
}, depth2 + 1) : message[key]}`).join("\n")}` : message;
|
|
660
660
|
}, "formatLogMessage");
|
|
661
|
-
var _isFunction = /* @__PURE__ */
|
|
661
|
+
var _isFunction = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (value) => {
|
|
662
662
|
try {
|
|
663
663
|
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]));
|
|
664
664
|
} catch (e) {
|
|
@@ -667,8 +667,8 @@ var _isFunction = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (value) =
|
|
|
667
667
|
}, "_isFunction");
|
|
668
668
|
|
|
669
669
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
670
|
-
|
|
671
|
-
var applyWorkspaceBaseTokens = /* @__PURE__ */
|
|
670
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
671
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (option, tokenParams) => {
|
|
672
672
|
let result = option;
|
|
673
673
|
if (!result) {
|
|
674
674
|
return result;
|
|
@@ -698,10 +698,10 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void
|
|
|
698
698
|
}
|
|
699
699
|
return result;
|
|
700
700
|
}, "applyWorkspaceBaseTokens");
|
|
701
|
-
var applyWorkspaceProjectTokens = /* @__PURE__ */
|
|
701
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (option, tokenParams) => {
|
|
702
702
|
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
703
703
|
}, "applyWorkspaceProjectTokens");
|
|
704
|
-
var applyWorkspaceTokens = /* @__PURE__ */
|
|
704
|
+
var applyWorkspaceTokens = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (options, tokenParams, tokenizerFn) => {
|
|
705
705
|
if (!options) {
|
|
706
706
|
return {};
|
|
707
707
|
}
|
|
@@ -721,7 +721,7 @@ var applyWorkspaceTokens = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0,
|
|
|
721
721
|
}, "applyWorkspaceTokens");
|
|
722
722
|
|
|
723
723
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
724
|
-
var getConfigFileByName = /* @__PURE__ */
|
|
724
|
+
var getConfigFileByName = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
725
725
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
726
726
|
const configs = await Promise.all([
|
|
727
727
|
_c12.loadConfig.call(void 0, {
|
|
@@ -731,7 +731,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, a
|
|
|
731
731
|
envName: _optionalChain([fileName, 'optionalAccess', _29 => _29.toUpperCase, 'call', _30 => _30()]),
|
|
732
732
|
jitiOptions: {
|
|
733
733
|
debug: false,
|
|
734
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
734
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkV76GMI2Jjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
735
735
|
},
|
|
736
736
|
...options
|
|
737
737
|
}),
|
|
@@ -742,7 +742,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, a
|
|
|
742
742
|
envName: _optionalChain([fileName, 'optionalAccess', _31 => _31.toUpperCase, 'call', _32 => _32()]),
|
|
743
743
|
jitiOptions: {
|
|
744
744
|
debug: false,
|
|
745
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
745
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkV76GMI2Jjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
746
746
|
},
|
|
747
747
|
configFile: fileName,
|
|
748
748
|
...options
|
|
@@ -750,7 +750,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, a
|
|
|
750
750
|
]);
|
|
751
751
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
752
752
|
}, "getConfigFileByName");
|
|
753
|
-
var getConfigFile = /* @__PURE__ */
|
|
753
|
+
var getConfigFile = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
754
754
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
755
755
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
756
756
|
let config = result.config;
|
|
@@ -781,12 +781,12 @@ var getConfigFile = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, async (
|
|
|
781
781
|
}, "getConfigFile");
|
|
782
782
|
|
|
783
783
|
// ../config-tools/src/create-storm-config.ts
|
|
784
|
-
|
|
784
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
785
785
|
|
|
786
786
|
|
|
787
787
|
// ../config-tools/src/env/get-env.ts
|
|
788
|
-
|
|
789
|
-
var getExtensionEnv = /* @__PURE__ */
|
|
788
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
789
|
+
var getExtensionEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (extensionName) => {
|
|
790
790
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
791
791
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
792
792
|
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
@@ -796,7 +796,7 @@ var getExtensionEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (exte
|
|
|
796
796
|
return ret;
|
|
797
797
|
}, {});
|
|
798
798
|
}, "getExtensionEnv");
|
|
799
|
-
var getConfigEnv = /* @__PURE__ */
|
|
799
|
+
var getConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, () => {
|
|
800
800
|
const prefix = "STORM_";
|
|
801
801
|
let config = {
|
|
802
802
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
@@ -833,15 +833,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, () => {
|
|
|
833
833
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
834
834
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
835
835
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
836
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
837
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
836
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
837
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
838
838
|
directories: {
|
|
839
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
840
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
841
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
842
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
843
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
844
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
839
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
840
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
841
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
842
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
843
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
844
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkV76GMI2Jjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
845
845
|
},
|
|
846
846
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
847
847
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -904,11 +904,11 @@ var getConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, () => {
|
|
|
904
904
|
}
|
|
905
905
|
return config;
|
|
906
906
|
}, "getConfigEnv");
|
|
907
|
-
var getThemeColorConfigEnv = /* @__PURE__ */
|
|
907
|
+
var getThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix, theme) => {
|
|
908
908
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
909
909
|
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
910
910
|
}, "getThemeColorConfigEnv");
|
|
911
|
-
var getSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
911
|
+
var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix) => {
|
|
912
912
|
return {
|
|
913
913
|
dark: process.env[`${prefix}DARK`],
|
|
914
914
|
light: process.env[`${prefix}LIGHT`],
|
|
@@ -926,13 +926,13 @@ var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(
|
|
|
926
926
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
927
927
|
};
|
|
928
928
|
}, "getSingleThemeColorConfigEnv");
|
|
929
|
-
var getMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
929
|
+
var getMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix) => {
|
|
930
930
|
return {
|
|
931
931
|
light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
|
|
932
932
|
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
933
933
|
};
|
|
934
934
|
}, "getMultiThemeColorConfigEnv");
|
|
935
|
-
var getBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
935
|
+
var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix) => {
|
|
936
936
|
return {
|
|
937
937
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
938
938
|
background: process.env[`${prefix}BACKGROUND`],
|
|
@@ -952,8 +952,8 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(vo
|
|
|
952
952
|
}, "getBaseThemeColorConfigEnv");
|
|
953
953
|
|
|
954
954
|
// ../config-tools/src/env/set-env.ts
|
|
955
|
-
|
|
956
|
-
var setExtensionEnv = /* @__PURE__ */
|
|
955
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
956
|
+
var setExtensionEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (extensionName, extension) => {
|
|
957
957
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
958
958
|
if (extension[key]) {
|
|
959
959
|
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())]), () => ( []));
|
|
@@ -972,7 +972,7 @@ var setExtensionEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (exte
|
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
}, "setExtensionEnv");
|
|
975
|
-
var setConfigEnv = /* @__PURE__ */
|
|
975
|
+
var setConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (config) => {
|
|
976
976
|
const prefix = "STORM_";
|
|
977
977
|
if (config.extends) {
|
|
978
978
|
process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
|
|
@@ -1052,36 +1052,36 @@ var setConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (config)
|
|
|
1052
1052
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1053
1053
|
}
|
|
1054
1054
|
if (config.configFile) {
|
|
1055
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
1055
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.configFile);
|
|
1056
1056
|
}
|
|
1057
1057
|
if (config.workspaceRoot) {
|
|
1058
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1059
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1060
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1058
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1059
|
+
process.env.NX_WORKSPACE_ROOT = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1060
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1061
1061
|
}
|
|
1062
1062
|
if (config.directories) {
|
|
1063
1063
|
if (!config.skipCache && config.directories.cache) {
|
|
1064
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1064
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.directories.cache);
|
|
1065
1065
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1066
1066
|
}
|
|
1067
1067
|
if (config.directories.data) {
|
|
1068
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1068
|
+
process.env[`${prefix}DATA_DIR`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.directories.data);
|
|
1069
1069
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1070
1070
|
}
|
|
1071
1071
|
if (config.directories.config) {
|
|
1072
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1072
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.directories.config);
|
|
1073
1073
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1074
1074
|
}
|
|
1075
1075
|
if (config.directories.temp) {
|
|
1076
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1076
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.directories.temp);
|
|
1077
1077
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1078
1078
|
}
|
|
1079
1079
|
if (config.directories.log) {
|
|
1080
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1080
|
+
process.env[`${prefix}LOG_DIR`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.directories.log);
|
|
1081
1081
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1082
1082
|
}
|
|
1083
1083
|
if (config.directories.build) {
|
|
1084
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1084
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkV76GMI2Jjs.correctPaths.call(void 0, config.directories.build);
|
|
1085
1085
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
@@ -1149,10 +1149,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (config)
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
}, "setConfigEnv");
|
|
1152
|
-
var setThemeColorConfigEnv = /* @__PURE__ */
|
|
1152
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix, config) => {
|
|
1153
1153
|
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);
|
|
1154
1154
|
}, "setThemeColorConfigEnv");
|
|
1155
|
-
var setSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
1155
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix, config) => {
|
|
1156
1156
|
if (config.dark) {
|
|
1157
1157
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1158
1158
|
}
|
|
@@ -1196,13 +1196,13 @@ var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(
|
|
|
1196
1196
|
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1197
1197
|
}
|
|
1198
1198
|
}, "setSingleThemeColorConfigEnv");
|
|
1199
|
-
var setMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
1199
|
+
var setMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix, config) => {
|
|
1200
1200
|
return {
|
|
1201
1201
|
light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
|
|
1202
1202
|
dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
|
|
1203
1203
|
};
|
|
1204
1204
|
}, "setMultiThemeColorConfigEnv");
|
|
1205
|
-
var setBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
1205
|
+
var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (prefix, config) => {
|
|
1206
1206
|
if (config.foreground) {
|
|
1207
1207
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1208
1208
|
}
|
|
@@ -1250,7 +1250,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(vo
|
|
|
1250
1250
|
// ../config-tools/src/create-storm-config.ts
|
|
1251
1251
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1252
1252
|
var _static_cache = void 0;
|
|
1253
|
-
var createStormWorkspaceConfig = /* @__PURE__ */
|
|
1253
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
|
|
1254
1254
|
let result;
|
|
1255
1255
|
if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1256
1256
|
let _workspaceRoot = workspaceRoot3;
|
|
@@ -1287,7 +1287,7 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(vo
|
|
|
1287
1287
|
};
|
|
1288
1288
|
return result;
|
|
1289
1289
|
}, "createStormWorkspaceConfig");
|
|
1290
|
-
var createConfigExtension = /* @__PURE__ */
|
|
1290
|
+
var createConfigExtension = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (extensionName, schema) => {
|
|
1291
1291
|
const extension_cache_key = {
|
|
1292
1292
|
extensionName
|
|
1293
1293
|
};
|
|
@@ -1301,7 +1301,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0,
|
|
|
1301
1301
|
_extension_cache.set(extension_cache_key, extension);
|
|
1302
1302
|
return extension;
|
|
1303
1303
|
}, "createConfigExtension");
|
|
1304
|
-
var loadStormWorkspaceConfig = /* @__PURE__ */
|
|
1304
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (workspaceRoot3, skipLogs = false) => {
|
|
1305
1305
|
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs, true);
|
|
1306
1306
|
setConfigEnv(config);
|
|
1307
1307
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
@@ -1312,11 +1312,11 @@ ${formatLogMessage(config)}`, config);
|
|
|
1312
1312
|
}, "loadStormWorkspaceConfig");
|
|
1313
1313
|
|
|
1314
1314
|
// ../config-tools/src/get-config.ts
|
|
1315
|
-
|
|
1316
|
-
var getConfig = /* @__PURE__ */
|
|
1315
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1316
|
+
var getConfig = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (workspaceRoot3, skipLogs = false) => {
|
|
1317
1317
|
return loadStormWorkspaceConfig(workspaceRoot3, skipLogs);
|
|
1318
1318
|
}, "getConfig");
|
|
1319
|
-
var getWorkspaceConfig = /* @__PURE__ */
|
|
1319
|
+
var getWorkspaceConfig = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (skipLogs = false, options = {}) => {
|
|
1320
1320
|
let workspaceRoot3 = options.workspaceRoot;
|
|
1321
1321
|
if (!workspaceRoot3) {
|
|
1322
1322
|
workspaceRoot3 = findWorkspaceRoot(options.cwd);
|
|
@@ -1326,7 +1326,7 @@ var getWorkspaceConfig = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (s
|
|
|
1326
1326
|
|
|
1327
1327
|
// ../workspace-tools/src/base/base-executor.ts
|
|
1328
1328
|
|
|
1329
|
-
var withRunExecutor = /* @__PURE__ */
|
|
1329
|
+
var withRunExecutor = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
1330
1330
|
const stopwatch = getStopwatch(name);
|
|
1331
1331
|
let options = _options;
|
|
1332
1332
|
let config = {};
|
|
@@ -1410,7 +1410,7 @@ ${formatLogMessage(result)}`, config);
|
|
|
1410
1410
|
stopwatch();
|
|
1411
1411
|
}
|
|
1412
1412
|
}, "withRunExecutor");
|
|
1413
|
-
var _isFunction2 = /* @__PURE__ */
|
|
1413
|
+
var _isFunction2 = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (value) => {
|
|
1414
1414
|
try {
|
|
1415
1415
|
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]));
|
|
1416
1416
|
} catch (e) {
|
|
@@ -1419,7 +1419,7 @@ var _isFunction2 = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (value)
|
|
|
1419
1419
|
}, "_isFunction");
|
|
1420
1420
|
|
|
1421
1421
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1422
|
-
|
|
1422
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1423
1423
|
|
|
1424
1424
|
var _child_process = require('child_process');
|
|
1425
1425
|
|
|
@@ -1431,7 +1431,7 @@ var INVALID_CARGO_ARGS = [
|
|
|
1431
1431
|
"package",
|
|
1432
1432
|
"tsConfig"
|
|
1433
1433
|
];
|
|
1434
|
-
var buildCargoCommand = /* @__PURE__ */
|
|
1434
|
+
var buildCargoCommand = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (baseCommand, options, context) => {
|
|
1435
1435
|
const args = [];
|
|
1436
1436
|
if (options.toolchain && options.toolchain !== "stable") {
|
|
1437
1437
|
args.push(`+${options.toolchain}`);
|
|
@@ -1475,7 +1475,7 @@ async function cargoCommand(...args) {
|
|
|
1475
1475
|
args.push("--color", "always");
|
|
1476
1476
|
return await Promise.resolve(runProcess("cargo", ...args));
|
|
1477
1477
|
}
|
|
1478
|
-
|
|
1478
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoCommand, "cargoCommand");
|
|
1479
1479
|
function cargoCommandSync(args = "", options) {
|
|
1480
1480
|
const normalizedOptions = {
|
|
1481
1481
|
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _80 => _80.stdio]), () => ( "inherit")),
|
|
@@ -1502,7 +1502,7 @@ function cargoCommandSync(args = "", options) {
|
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
|
-
|
|
1505
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoCommandSync, "cargoCommandSync");
|
|
1506
1506
|
function cargoMetadata() {
|
|
1507
1507
|
const output3 = cargoCommandSync("metadata --format-version=1", {
|
|
1508
1508
|
stdio: "pipe"
|
|
@@ -1513,7 +1513,7 @@ function cargoMetadata() {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
return JSON.parse(output3.output);
|
|
1515
1515
|
}
|
|
1516
|
-
|
|
1516
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoMetadata, "cargoMetadata");
|
|
1517
1517
|
function runProcess(processCmd, ...args) {
|
|
1518
1518
|
const metadata = cargoMetadata();
|
|
1519
1519
|
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _82 => _82.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
|
|
@@ -1543,18 +1543,18 @@ function runProcess(processCmd, ...args) {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
|
-
|
|
1546
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, runProcess, "runProcess");
|
|
1547
1547
|
|
|
1548
1548
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
1549
1549
|
async function cargoBuildExecutor(options, context) {
|
|
1550
1550
|
const command = buildCargoCommand("build", options, context);
|
|
1551
1551
|
return await cargoCommand(...command);
|
|
1552
1552
|
}
|
|
1553
|
-
|
|
1553
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
1554
1554
|
var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
1555
1555
|
skipReadingConfig: false,
|
|
1556
1556
|
hooks: {
|
|
1557
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1557
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
1558
1558
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1559
1559
|
options.toolchain ??= "stable";
|
|
1560
1560
|
return options;
|
|
@@ -1563,16 +1563,16 @@ var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
|
1563
1563
|
});
|
|
1564
1564
|
|
|
1565
1565
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1566
|
-
|
|
1566
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1567
1567
|
async function cargoCheckExecutor(options, context) {
|
|
1568
1568
|
const command = buildCargoCommand("check", options, context);
|
|
1569
1569
|
return await cargoCommand(...command);
|
|
1570
1570
|
}
|
|
1571
|
-
|
|
1571
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
1572
1572
|
var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
1573
1573
|
skipReadingConfig: false,
|
|
1574
1574
|
hooks: {
|
|
1575
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1575
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
1576
1576
|
options.toolchain ??= "stable";
|
|
1577
1577
|
return options;
|
|
1578
1578
|
}, "applyDefaultOptions")
|
|
@@ -1580,16 +1580,16 @@ var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
|
1580
1580
|
});
|
|
1581
1581
|
|
|
1582
1582
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1583
|
-
|
|
1583
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1584
1584
|
async function cargoClippyExecutor(options, context) {
|
|
1585
1585
|
const command = buildCargoCommand("clippy", options, context);
|
|
1586
1586
|
return await cargoCommand(...command);
|
|
1587
1587
|
}
|
|
1588
|
-
|
|
1588
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
1589
1589
|
var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
1590
1590
|
skipReadingConfig: false,
|
|
1591
1591
|
hooks: {
|
|
1592
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1592
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
1593
1593
|
options.toolchain ??= "stable";
|
|
1594
1594
|
options.fix ??= false;
|
|
1595
1595
|
return options;
|
|
@@ -1598,7 +1598,7 @@ var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
|
1598
1598
|
});
|
|
1599
1599
|
|
|
1600
1600
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1601
|
-
|
|
1601
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1602
1602
|
async function cargoDocExecutor(options, context) {
|
|
1603
1603
|
const opts = {
|
|
1604
1604
|
...options
|
|
@@ -1608,11 +1608,11 @@ async function cargoDocExecutor(options, context) {
|
|
|
1608
1608
|
const command = buildCargoCommand("doc", options, context);
|
|
1609
1609
|
return await cargoCommand(...command);
|
|
1610
1610
|
}
|
|
1611
|
-
|
|
1611
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
1612
1612
|
var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
1613
1613
|
skipReadingConfig: false,
|
|
1614
1614
|
hooks: {
|
|
1615
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1615
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
1616
1616
|
options.outputPath ??= "dist/docs/{projectRoot}";
|
|
1617
1617
|
options.toolchain ??= "stable";
|
|
1618
1618
|
options.release ??= options.profile ? false : true;
|
|
@@ -1627,16 +1627,16 @@ var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
|
1627
1627
|
});
|
|
1628
1628
|
|
|
1629
1629
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1630
|
-
|
|
1630
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1631
1631
|
async function cargoFormatExecutor(options, context) {
|
|
1632
1632
|
const command = buildCargoCommand("fmt", options, context);
|
|
1633
1633
|
return await cargoCommand(...command);
|
|
1634
1634
|
}
|
|
1635
|
-
|
|
1635
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
1636
1636
|
var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
1637
1637
|
skipReadingConfig: false,
|
|
1638
1638
|
hooks: {
|
|
1639
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1639
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
1640
1640
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1641
1641
|
options.toolchain ??= "stable";
|
|
1642
1642
|
return options;
|
|
@@ -1645,14 +1645,14 @@ var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
|
1645
1645
|
});
|
|
1646
1646
|
|
|
1647
1647
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1648
|
-
|
|
1648
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1649
1649
|
|
|
1650
1650
|
|
|
1651
1651
|
|
|
1652
1652
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
1653
1653
|
|
|
1654
1654
|
// ../workspace-tools/src/utils/toml.ts
|
|
1655
|
-
|
|
1655
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1656
1656
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1657
1657
|
|
|
1658
1658
|
|
|
@@ -1660,21 +1660,21 @@ var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml
|
|
|
1660
1660
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
1661
1661
|
|
|
1662
1662
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1663
|
-
|
|
1663
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1664
1664
|
|
|
1665
1665
|
// ../esbuild/src/build.ts
|
|
1666
|
-
|
|
1666
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1667
1667
|
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
1668
1668
|
var _globby = require('globby');
|
|
1669
1669
|
|
|
1670
1670
|
// ../esbuild/src/assets.ts
|
|
1671
|
-
|
|
1671
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1672
1672
|
|
|
1673
1673
|
// ../build-tools/src/index.ts
|
|
1674
|
-
|
|
1674
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1675
1675
|
|
|
1676
1676
|
// ../build-tools/src/config.ts
|
|
1677
|
-
|
|
1677
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1678
1678
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
1679
1679
|
*
|
|
1680
1680
|
* \u26A1 Built by Storm Software
|
|
@@ -1685,39 +1685,39 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
1685
1685
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1686
1686
|
|
|
1687
1687
|
// ../build-tools/src/plugins/index.ts
|
|
1688
|
-
|
|
1688
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1689
1689
|
|
|
1690
1690
|
// ../build-tools/src/plugins/analyze.ts
|
|
1691
|
-
|
|
1691
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1692
1692
|
|
|
1693
1693
|
// ../build-tools/src/plugins/swc.ts
|
|
1694
|
-
|
|
1694
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1695
1695
|
var _core = require('@swc/core');
|
|
1696
1696
|
|
|
1697
1697
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1698
|
-
|
|
1698
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1699
1699
|
|
|
1700
1700
|
var _module = require('module');
|
|
1701
1701
|
|
|
1702
1702
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1703
1703
|
|
|
1704
1704
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1705
|
-
|
|
1705
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1706
1706
|
|
|
1707
1707
|
|
|
1708
1708
|
|
|
1709
1709
|
// ../build-tools/src/types.ts
|
|
1710
|
-
|
|
1710
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1711
1711
|
|
|
1712
1712
|
// ../build-tools/src/utilities/index.ts
|
|
1713
|
-
|
|
1713
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1714
1714
|
|
|
1715
1715
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1716
|
-
|
|
1716
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1717
1717
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
1718
1718
|
var _glob = require('glob');
|
|
1719
1719
|
|
|
1720
|
-
var copyAssets = /* @__PURE__ */
|
|
1720
|
+
var copyAssets = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
1721
1721
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
1722
1722
|
pendingAssets.push({
|
|
1723
1723
|
input: projectRoot,
|
|
@@ -1744,7 +1744,7 @@ var copyAssets = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, async (con
|
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
1746
|
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
1747
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
1747
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkV76GMI2Jjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1748
1748
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
1749
1749
|
projectDir: projectRoot,
|
|
1750
1750
|
rootDir: config.workspaceRoot,
|
|
@@ -1753,12 +1753,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
1753
1753
|
});
|
|
1754
1754
|
await assetHandler.processAllAssetsOnce();
|
|
1755
1755
|
if (includeSrc === true) {
|
|
1756
|
-
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${
|
|
1756
|
+
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${_chunkV76GMI2Jjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
1757
1757
|
const files = await _glob.glob.call(void 0, [
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1758
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
1759
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
1760
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1761
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1762
1762
|
]);
|
|
1763
1763
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
1764
1764
|
|
|
@@ -1769,13 +1769,13 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1769
1769
|
}, "copyAssets");
|
|
1770
1770
|
|
|
1771
1771
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1772
|
-
|
|
1772
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1773
1773
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
1774
1774
|
|
|
1775
1775
|
|
|
1776
1776
|
|
|
1777
1777
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
1778
|
-
var addPackageDependencies = /* @__PURE__ */
|
|
1778
|
+
var addPackageDependencies = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1779
1779
|
let projectGraph;
|
|
1780
1780
|
try {
|
|
1781
1781
|
projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
@@ -1791,7 +1791,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0
|
|
|
1791
1791
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _83 => _83.node, 'access', _84 => _84.data, 'optionalAccess', _85 => _85.root]) !== projectRoot && _optionalChain([dep, 'access', _86 => _86.node, 'access', _87 => _87.data, 'optionalAccess', _88 => _88.root]) !== workspaceRoot3)) {
|
|
1792
1792
|
const projectNode = project.node;
|
|
1793
1793
|
if (projectNode.data.root) {
|
|
1794
|
-
const projectPackageJsonPath =
|
|
1794
|
+
const projectPackageJsonPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
1795
1795
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
1796
1796
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
1797
1797
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -1803,7 +1803,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0
|
|
|
1803
1803
|
}
|
|
1804
1804
|
if (localPackages.length > 0) {
|
|
1805
1805
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
1806
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
1806
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
1807
1807
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1808
1808
|
const projectName2 = projectJson.name;
|
|
1809
1809
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -1812,7 +1812,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0
|
|
|
1812
1812
|
}
|
|
1813
1813
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _91 => _91.projects, 'optionalAccess', _92 => _92[projectName2], 'access', _93 => _93.implicitDependencies, 'optionalAccess', _94 => _94.reduce, 'call', _95 => _95((ret, dep) => {
|
|
1814
1814
|
if (_optionalChain([projectConfigurations, 'access', _96 => _96.projects, 'optionalAccess', _97 => _97[dep]])) {
|
|
1815
|
-
const depPackageJsonPath =
|
|
1815
|
+
const depPackageJsonPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
1816
1816
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
1817
1817
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
1818
1818
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -1840,9 +1840,9 @@ var addPackageDependencies = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0
|
|
|
1840
1840
|
}
|
|
1841
1841
|
return packageJson;
|
|
1842
1842
|
}, "addPackageDependencies");
|
|
1843
|
-
var addWorkspacePackageJsonFields = /* @__PURE__ */
|
|
1843
|
+
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
1844
1844
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
1845
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
1845
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
1846
1846
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
1847
1847
|
packageJson.type ??= "module";
|
|
1848
1848
|
packageJson.sideEffects ??= false;
|
|
@@ -1851,7 +1851,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call
|
|
|
1851
1851
|
if (distSrc.startsWith("/")) {
|
|
1852
1852
|
distSrc = distSrc.substring(1);
|
|
1853
1853
|
}
|
|
1854
|
-
packageJson.source ??= `${
|
|
1854
|
+
packageJson.source ??= `${_chunkV76GMI2Jjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
1855
1855
|
}
|
|
1856
1856
|
packageJson.files ??= [
|
|
1857
1857
|
"dist/**/*"
|
|
@@ -1882,17 +1882,17 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call
|
|
|
1882
1882
|
];
|
|
1883
1883
|
}
|
|
1884
1884
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
1885
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
1885
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkV76GMI2Jjs.joinPaths.call(void 0, "packages", projectName);
|
|
1886
1886
|
return packageJson;
|
|
1887
1887
|
}, "addWorkspacePackageJsonFields");
|
|
1888
1888
|
|
|
1889
1889
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1890
|
-
|
|
1890
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1891
1891
|
|
|
1892
1892
|
|
|
1893
1893
|
// ../build-tools/src/utilities/get-env.ts
|
|
1894
|
-
|
|
1895
|
-
var getEnv = /* @__PURE__ */
|
|
1894
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1895
|
+
var getEnv = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (builder, options) => {
|
|
1896
1896
|
return {
|
|
1897
1897
|
STORM_BUILD: builder,
|
|
1898
1898
|
STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
|
|
@@ -1906,21 +1906,21 @@ var getEnv = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (builder, opti
|
|
|
1906
1906
|
}, "getEnv");
|
|
1907
1907
|
|
|
1908
1908
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1909
|
-
|
|
1909
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1910
1910
|
|
|
1911
1911
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1912
|
-
|
|
1912
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1913
1913
|
|
|
1914
1914
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1915
|
-
|
|
1915
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1916
1916
|
|
|
1917
1917
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1918
|
-
|
|
1918
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1919
1919
|
|
|
1920
1920
|
|
|
1921
1921
|
|
|
1922
1922
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1923
|
-
|
|
1923
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1924
1924
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
1925
1925
|
|
|
1926
1926
|
// ../esbuild/src/assets.ts
|
|
@@ -1933,10 +1933,10 @@ async function copyBuildAssets(context) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
return context;
|
|
1935
1935
|
}
|
|
1936
|
-
|
|
1936
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1937
1937
|
|
|
1938
1938
|
// ../esbuild/src/clean.ts
|
|
1939
|
-
|
|
1939
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1940
1940
|
|
|
1941
1941
|
async function cleanDirectories(directory) {
|
|
1942
1942
|
await _promises.rm.call(void 0, directory, {
|
|
@@ -1944,10 +1944,10 @@ async function cleanDirectories(directory) {
|
|
|
1944
1944
|
force: true
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
|
|
1947
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
1948
1948
|
|
|
1949
1949
|
// ../esbuild/src/context.ts
|
|
1950
|
-
|
|
1950
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1951
1951
|
|
|
1952
1952
|
|
|
1953
1953
|
|
|
@@ -1955,7 +1955,7 @@ _chunkLTKRUM5Pjs.init_cjs_shims.call(void 0, );
|
|
|
1955
1955
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
1956
1956
|
|
|
1957
1957
|
// ../esbuild/src/config.ts
|
|
1958
|
-
|
|
1958
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
1959
1959
|
var DEFAULT_BUILD_OPTIONS = {
|
|
1960
1960
|
assets: [],
|
|
1961
1961
|
platform: "node",
|
|
@@ -2001,7 +2001,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2001
2001
|
};
|
|
2002
2002
|
|
|
2003
2003
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2004
|
-
|
|
2004
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2005
2005
|
|
|
2006
2006
|
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
2007
2007
|
if (_optionalChain([options, 'optionalAccess', _109 => _109.compilerOptions, 'optionalAccess', _110 => _110.paths])) {
|
|
@@ -2015,18 +2015,18 @@ function resolvePathsConfig(options, cwd, projectRoot) {
|
|
|
2015
2015
|
return Object.fromEntries(resolvedPaths);
|
|
2016
2016
|
}
|
|
2017
2017
|
if (options.extends) {
|
|
2018
|
-
const extendsPath = path4.default.resolve(projectRoot ?
|
|
2018
|
+
const extendsPath = path4.default.resolve(projectRoot ? _chunkV76GMI2Jjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunkV76GMI2Jjs.joinPaths.call(void 0, cwd, options.extends));
|
|
2019
2019
|
const extendsDir = path4.default.dirname(extendsPath);
|
|
2020
|
-
const extendsConfig =
|
|
2020
|
+
const extendsConfig = _chunkKVRUQ4FBjs.__require.call(void 0, extendsPath);
|
|
2021
2021
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2022
2022
|
}
|
|
2023
2023
|
return [];
|
|
2024
2024
|
}
|
|
2025
|
-
|
|
2026
|
-
var resolvePathsPlugin = /* @__PURE__ */
|
|
2025
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
2026
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (context) => ({
|
|
2027
2027
|
name: "storm:resolve-paths",
|
|
2028
2028
|
setup(build3) {
|
|
2029
|
-
const parentTsConfig = build3.initialOptions.tsconfig ?
|
|
2029
|
+
const parentTsConfig = build3.initialOptions.tsconfig ? _chunkKVRUQ4FBjs.__require.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : _chunkKVRUQ4FBjs.__require.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
2030
2030
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
|
|
2031
2031
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
2032
2032
|
build3.onResolve({
|
|
@@ -2060,7 +2060,7 @@ async function resolveContext(userOptions) {
|
|
|
2060
2060
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2061
2061
|
exitOnError: true
|
|
2062
2062
|
});
|
|
2063
|
-
const projectJsonPath =
|
|
2063
|
+
const projectJsonPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
2064
2064
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
2065
2065
|
throw new Error("Cannot find project.json configuration");
|
|
2066
2066
|
}
|
|
@@ -2073,14 +2073,14 @@ async function resolveContext(userOptions) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2075
2075
|
options.name ??= projectName;
|
|
2076
|
-
const packageJsonPath =
|
|
2076
|
+
const packageJsonPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
2077
2077
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2078
2078
|
throw new Error("Cannot find package.json configuration");
|
|
2079
2079
|
}
|
|
2080
2080
|
const env = getEnv("esbuild", options);
|
|
2081
2081
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2082
2082
|
const resolvedOptions = {
|
|
2083
|
-
tsconfig:
|
|
2083
|
+
tsconfig: _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2084
2084
|
...options,
|
|
2085
2085
|
metafile: userOptions.mode === "development",
|
|
2086
2086
|
clean: false,
|
|
@@ -2106,8 +2106,8 @@ async function resolveContext(userOptions) {
|
|
|
2106
2106
|
projectConfigurations,
|
|
2107
2107
|
projectName,
|
|
2108
2108
|
projectGraph,
|
|
2109
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2110
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2109
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkV76GMI2Jjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2110
|
+
outputPath: resolvedOptions.outputPath || _chunkV76GMI2Jjs.joinPaths.call(void 0, workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
|
|
2111
2111
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
2112
2112
|
};
|
|
2113
2113
|
context.options.esbuildPlugins = [
|
|
@@ -2116,22 +2116,22 @@ async function resolveContext(userOptions) {
|
|
|
2116
2116
|
];
|
|
2117
2117
|
return context;
|
|
2118
2118
|
}
|
|
2119
|
-
|
|
2119
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, resolveContext, "resolveContext");
|
|
2120
2120
|
|
|
2121
2121
|
// ../esbuild/src/package-json.ts
|
|
2122
|
-
|
|
2122
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2123
2123
|
|
|
2124
2124
|
|
|
2125
2125
|
|
|
2126
2126
|
async function generatePackageJson(context) {
|
|
2127
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2127
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2128
2128
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2129
2129
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2130
|
-
const packageJsonPath =
|
|
2130
|
+
const packageJsonPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, context.options.projectRoot, "project.json");
|
|
2131
2131
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2132
2132
|
throw new Error("Cannot find package.json configuration");
|
|
2133
2133
|
}
|
|
2134
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
2134
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkV76GMI2Jjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, context.options.projectRoot, "package.json"), "utf8");
|
|
2135
2135
|
let packageJson = JSON.parse(packageJsonFile);
|
|
2136
2136
|
if (!packageJson) {
|
|
2137
2137
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -2215,15 +2215,15 @@ async function generatePackageJson(context) {
|
|
|
2215
2215
|
}, packageJson.exports);
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
2218
|
+
await _devkit.writeJsonFile.call(void 0, _chunkV76GMI2Jjs.joinPaths.call(void 0, context.outputPath, "package.json"), packageJson);
|
|
2219
2219
|
stopwatch();
|
|
2220
2220
|
}
|
|
2221
2221
|
return context;
|
|
2222
2222
|
}
|
|
2223
|
-
|
|
2223
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
2224
2224
|
|
|
2225
2225
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2226
|
-
|
|
2226
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2227
2227
|
|
|
2228
2228
|
|
|
2229
2229
|
var unusedIgnore = [
|
|
@@ -2255,11 +2255,11 @@ var missingIgnore = [
|
|
|
2255
2255
|
"@prisma/client",
|
|
2256
2256
|
"ts-toolbelt"
|
|
2257
2257
|
];
|
|
2258
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
2258
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (bundle) => ({
|
|
2259
2259
|
name: "storm:deps-check",
|
|
2260
2260
|
setup(build3) {
|
|
2261
2261
|
const pkgJsonPath = path4.default.join(process.cwd(), "package.json");
|
|
2262
|
-
const pkgContents =
|
|
2262
|
+
const pkgContents = _chunkKVRUQ4FBjs.__require.call(void 0, pkgJsonPath);
|
|
2263
2263
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2264
2264
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2265
2265
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -2314,20 +2314,20 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2314
2314
|
}), "depsCheckPlugin");
|
|
2315
2315
|
|
|
2316
2316
|
// ../esbuild/src/tsup.ts
|
|
2317
|
-
|
|
2317
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2318
2318
|
var _tsup = require('tsup');
|
|
2319
2319
|
async function executeTsup(context) {
|
|
2320
2320
|
writeDebug(` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
|
|
2321
2321
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
2322
2322
|
await _tsup.build.call(void 0, {
|
|
2323
2323
|
...context.options,
|
|
2324
|
-
outDir: context.options.distDir ?
|
|
2324
|
+
outDir: context.options.distDir ? _chunkV76GMI2Jjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
2325
2325
|
workspaceConfig: context.workspaceConfig
|
|
2326
2326
|
});
|
|
2327
2327
|
stopwatch();
|
|
2328
2328
|
return context;
|
|
2329
2329
|
}
|
|
2330
|
-
|
|
2330
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, executeTsup, "executeTsup");
|
|
2331
2331
|
|
|
2332
2332
|
// ../esbuild/src/build.ts
|
|
2333
2333
|
async function reportResults(context) {
|
|
@@ -2341,7 +2341,7 @@ async function reportResults(context) {
|
|
|
2341
2341
|
throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
|
-
|
|
2344
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, reportResults, "reportResults");
|
|
2345
2345
|
async function dependencyCheck(options) {
|
|
2346
2346
|
if (process.env.DEV === "true") {
|
|
2347
2347
|
return void 0;
|
|
@@ -2371,7 +2371,7 @@ async function dependencyCheck(options) {
|
|
|
2371
2371
|
});
|
|
2372
2372
|
return void 0;
|
|
2373
2373
|
}
|
|
2374
|
-
|
|
2374
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
2375
2375
|
async function cleanOutputPath(context) {
|
|
2376
2376
|
if (context.clean !== false && context.outputPath) {
|
|
2377
2377
|
writeDebug(` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`, context.workspaceConfig);
|
|
@@ -2381,7 +2381,7 @@ async function cleanOutputPath(context) {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
return context;
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
2385
2385
|
async function build2(options) {
|
|
2386
2386
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
2387
2387
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
@@ -2409,7 +2409,7 @@ async function build2(options) {
|
|
|
2409
2409
|
stopwatch();
|
|
2410
2410
|
}
|
|
2411
2411
|
}
|
|
2412
|
-
|
|
2412
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, build2, "build");
|
|
2413
2413
|
|
|
2414
2414
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2415
2415
|
async function esbuildExecutorFn(options, context, config) {
|
|
@@ -2429,11 +2429,11 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
2429
2429
|
success: true
|
|
2430
2430
|
};
|
|
2431
2431
|
}
|
|
2432
|
-
|
|
2432
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
2433
2433
|
var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn, {
|
|
2434
2434
|
skipReadingConfig: false,
|
|
2435
2435
|
hooks: {
|
|
2436
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2436
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (options, config) => {
|
|
2437
2437
|
options.entry ??= [
|
|
2438
2438
|
"src/index.ts"
|
|
2439
2439
|
];
|
|
@@ -2445,12 +2445,12 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
|
|
|
2445
2445
|
});
|
|
2446
2446
|
|
|
2447
2447
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2448
|
-
|
|
2448
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2449
2449
|
|
|
2450
2450
|
|
|
2451
2451
|
|
|
2452
2452
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2453
|
-
|
|
2453
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2454
2454
|
|
|
2455
2455
|
|
|
2456
2456
|
var _prettier = require('prettier');
|
|
@@ -2460,7 +2460,7 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
2460
2460
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
2461
2461
|
|
|
2462
2462
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2463
|
-
|
|
2463
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2464
2464
|
|
|
2465
2465
|
var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
|
|
2466
2466
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -2484,18 +2484,18 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
2484
2484
|
success: true
|
|
2485
2485
|
};
|
|
2486
2486
|
}
|
|
2487
|
-
|
|
2487
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
2488
2488
|
var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
2489
2489
|
skipReadingConfig: false,
|
|
2490
2490
|
hooks: {
|
|
2491
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2491
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
2492
2492
|
return options;
|
|
2493
2493
|
}, "applyDefaultOptions")
|
|
2494
2494
|
}
|
|
2495
2495
|
});
|
|
2496
2496
|
|
|
2497
2497
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
2498
|
-
|
|
2498
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2499
2499
|
var _fsextra = require('fs-extra');
|
|
2500
2500
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
2501
2501
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -2515,11 +2515,11 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
2515
2515
|
success: true
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
|
-
|
|
2518
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
2519
2519
|
var executor_default8 = withRunExecutor("Typia runtime validation generator", typiaExecutorFn, {
|
|
2520
2520
|
skipReadingConfig: false,
|
|
2521
2521
|
hooks: {
|
|
2522
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2522
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
2523
2523
|
options.entry ??= [
|
|
2524
2524
|
"{sourceRoot}/index.ts"
|
|
2525
2525
|
];
|
|
@@ -2532,7 +2532,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
2532
2532
|
});
|
|
2533
2533
|
|
|
2534
2534
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
2535
|
-
|
|
2535
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2536
2536
|
|
|
2537
2537
|
var _jiti = require('jiti');
|
|
2538
2538
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -2547,7 +2547,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
2547
2547
|
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.");
|
|
2548
2548
|
}
|
|
2549
2549
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
2550
|
-
fsCache: config.skipCache ? false :
|
|
2550
|
+
fsCache: config.skipCache ? false : _chunkV76GMI2Jjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
2551
2551
|
interopDefault: true
|
|
2552
2552
|
});
|
|
2553
2553
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -2560,7 +2560,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
2560
2560
|
}, {
|
|
2561
2561
|
stubOptions: {
|
|
2562
2562
|
jiti: {
|
|
2563
|
-
fsCache: config.skipCache ? false :
|
|
2563
|
+
fsCache: config.skipCache ? false : _chunkV76GMI2Jjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
2564
2564
|
}
|
|
2565
2565
|
},
|
|
2566
2566
|
rollup: {
|
|
@@ -2583,11 +2583,11 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
2583
2583
|
success: true
|
|
2584
2584
|
};
|
|
2585
2585
|
}
|
|
2586
|
-
|
|
2586
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
2587
2587
|
var executor_default9 = withRunExecutor("TypeScript Unbuild build", unbuildExecutorFn, {
|
|
2588
2588
|
skipReadingConfig: false,
|
|
2589
2589
|
hooks: {
|
|
2590
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2590
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, async (options, config) => {
|
|
2591
2591
|
options.debug ??= false;
|
|
2592
2592
|
options.treeShaking ??= true;
|
|
2593
2593
|
options.buildOnly ??= false;
|
|
@@ -2602,15 +2602,15 @@ var executor_default9 = withRunExecutor("TypeScript Unbuild build", unbuildExecu
|
|
|
2602
2602
|
});
|
|
2603
2603
|
|
|
2604
2604
|
// ../workspace-tools/generators.ts
|
|
2605
|
-
|
|
2605
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2606
2606
|
|
|
2607
2607
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2608
|
-
|
|
2608
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2609
2609
|
|
|
2610
2610
|
|
|
2611
2611
|
// ../workspace-tools/src/base/base-generator.ts
|
|
2612
|
-
|
|
2613
|
-
var withRunGenerator = /* @__PURE__ */
|
|
2612
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2613
|
+
var withRunGenerator = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
2614
2614
|
skipReadingConfig: false
|
|
2615
2615
|
}) => async (tree, _options) => {
|
|
2616
2616
|
const stopwatch = getStopwatch(name);
|
|
@@ -2674,7 +2674,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
2674
2674
|
}, "withRunGenerator");
|
|
2675
2675
|
|
|
2676
2676
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
2677
|
-
|
|
2677
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2678
2678
|
|
|
2679
2679
|
var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
|
|
2680
2680
|
var _js = require('@nx/js');
|
|
@@ -2682,7 +2682,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
2682
2682
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
2683
2683
|
|
|
2684
2684
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
2685
|
-
|
|
2685
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2686
2686
|
var ProjectTagConstants = {
|
|
2687
2687
|
Language: {
|
|
2688
2688
|
TAG_ID: "language",
|
|
@@ -2720,15 +2720,15 @@ var ProjectTagConstants = {
|
|
|
2720
2720
|
TAG_ID: "plugin"
|
|
2721
2721
|
}
|
|
2722
2722
|
};
|
|
2723
|
-
var formatProjectTag = /* @__PURE__ */
|
|
2723
|
+
var formatProjectTag = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (variant, value) => {
|
|
2724
2724
|
return `${variant}:${value}`;
|
|
2725
2725
|
}, "formatProjectTag");
|
|
2726
|
-
var hasProjectTag = /* @__PURE__ */
|
|
2726
|
+
var hasProjectTag = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (project, variant) => {
|
|
2727
2727
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
2728
2728
|
const prefix = formatProjectTag(variant, "");
|
|
2729
2729
|
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
2730
2730
|
}, "hasProjectTag");
|
|
2731
|
-
var addProjectTag = /* @__PURE__ */
|
|
2731
|
+
var addProjectTag = /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (project, variant, value, options = {
|
|
2732
2732
|
overwrite: false
|
|
2733
2733
|
}) => {
|
|
2734
2734
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
@@ -2739,7 +2739,7 @@ var addProjectTag = /* @__PURE__ */ _chunkLTKRUM5Pjs.__name.call(void 0, (projec
|
|
|
2739
2739
|
}, "addProjectTag");
|
|
2740
2740
|
|
|
2741
2741
|
// ../workspace-tools/src/utils/versions.ts
|
|
2742
|
-
|
|
2742
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
2743
2743
|
var typesNodeVersion = "20.9.0";
|
|
2744
2744
|
var nxVersion = "^18.0.4";
|
|
2745
2745
|
var nodeVersion = "20.11.0";
|
|
@@ -2769,7 +2769,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2769
2769
|
const projectConfig = {
|
|
2770
2770
|
root: normalized.directory,
|
|
2771
2771
|
projectType: "library",
|
|
2772
|
-
sourceRoot:
|
|
2772
|
+
sourceRoot: _chunkV76GMI2Jjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
2773
2773
|
targets: {
|
|
2774
2774
|
build: {
|
|
2775
2775
|
executor: options.buildExecutor,
|
|
@@ -2778,11 +2778,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2778
2778
|
],
|
|
2779
2779
|
options: {
|
|
2780
2780
|
entry: [
|
|
2781
|
-
|
|
2781
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
2782
2782
|
],
|
|
2783
2783
|
outputPath: getOutputPath(normalized),
|
|
2784
|
-
tsconfig:
|
|
2785
|
-
project:
|
|
2784
|
+
tsconfig: _chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
2785
|
+
project: _chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
2786
2786
|
defaultConfiguration: "production",
|
|
2787
2787
|
platform: "neutral",
|
|
2788
2788
|
assets: [
|
|
@@ -2836,7 +2836,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2836
2836
|
if (!normalized.importPath) {
|
|
2837
2837
|
normalized.importPath = normalized.name;
|
|
2838
2838
|
}
|
|
2839
|
-
const packageJsonPath =
|
|
2839
|
+
const packageJsonPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
2840
2840
|
if (tree.exists(packageJsonPath)) {
|
|
2841
2841
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
2842
2842
|
if (!normalized.importPath) {
|
|
@@ -2893,10 +2893,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2893
2893
|
}));
|
|
2894
2894
|
}
|
|
2895
2895
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
2896
|
-
|
|
2896
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
2897
2897
|
]);
|
|
2898
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2899
|
-
|
|
2898
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
2899
|
+
_chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2900
2900
|
]);
|
|
2901
2901
|
if (tree.exists("package.json")) {
|
|
2902
2902
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2907,7 +2907,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2907
2907
|
description = packageJson.description;
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
|
-
const tsconfigPath =
|
|
2910
|
+
const tsconfigPath = _chunkV76GMI2Jjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2911
2911
|
if (tree.exists(tsconfigPath)) {
|
|
2912
2912
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2913
2913
|
json.composite ??= true;
|
|
@@ -2935,7 +2935,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2935
2935
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2936
2936
|
return null;
|
|
2937
2937
|
}
|
|
2938
|
-
|
|
2938
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
|
|
2939
2939
|
function getOutputPath(options) {
|
|
2940
2940
|
const parts = [
|
|
2941
2941
|
"dist"
|
|
@@ -2945,16 +2945,16 @@ function getOutputPath(options) {
|
|
|
2945
2945
|
} else {
|
|
2946
2946
|
parts.push(options.projectRoot);
|
|
2947
2947
|
}
|
|
2948
|
-
return
|
|
2948
|
+
return _chunkV76GMI2Jjs.joinPaths.call(void 0, ...parts);
|
|
2949
2949
|
}
|
|
2950
|
-
|
|
2950
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2951
2951
|
function createProjectTsConfigJson(tree, options) {
|
|
2952
2952
|
const tsconfig = {
|
|
2953
2953
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2954
2954
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _178 => _178.tsconfigOptions]), () => ( {})),
|
|
2955
2955
|
compilerOptions: {
|
|
2956
2956
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2957
|
-
outDir:
|
|
2957
|
+
outDir: _chunkV76GMI2Jjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2958
2958
|
noEmit: true,
|
|
2959
2959
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _179 => _179.tsconfigOptions, 'optionalAccess', _180 => _180.compilerOptions]), () => ( {}))
|
|
2960
2960
|
},
|
|
@@ -2974,9 +2974,9 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2974
2974
|
"src/**/*.test.ts"
|
|
2975
2975
|
]
|
|
2976
2976
|
};
|
|
2977
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2977
|
+
_devkit.writeJson.call(void 0, tree, _chunkV76GMI2Jjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2978
2978
|
}
|
|
2979
|
-
|
|
2979
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2980
2980
|
async function normalizeOptions(tree, options, config) {
|
|
2981
2981
|
let importPath = options.importPath;
|
|
2982
2982
|
if (!importPath && _optionalChain([config, 'optionalAccess', _187 => _187.namespace])) {
|
|
@@ -3030,11 +3030,11 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3030
3030
|
shouldUseSwcJest: false
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
3033
|
-
|
|
3033
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
3034
3034
|
|
|
3035
3035
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3036
3036
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3037
|
-
const filesDir =
|
|
3037
|
+
const filesDir = _chunkV76GMI2Jjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
3038
3038
|
const tsLibraryGeneratorOptions = {
|
|
3039
3039
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
3040
3040
|
platform: "browser",
|
|
@@ -3091,10 +3091,10 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
3091
3091
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3092
3092
|
return null;
|
|
3093
3093
|
}
|
|
3094
|
-
|
|
3094
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
3095
3095
|
var generator_default = withRunGenerator("TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
3096
3096
|
hooks: {
|
|
3097
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3097
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
3098
3098
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
3099
3099
|
options.platform ??= "browser";
|
|
3100
3100
|
return options;
|
|
@@ -3103,7 +3103,7 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
3103
3103
|
});
|
|
3104
3104
|
|
|
3105
3105
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3106
|
-
|
|
3106
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3107
3107
|
|
|
3108
3108
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
3109
3109
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3124,10 +3124,10 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3124
3124
|
success: true
|
|
3125
3125
|
};
|
|
3126
3126
|
}
|
|
3127
|
-
|
|
3127
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
3128
3128
|
var generator_default2 = withRunGenerator("Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
3129
3129
|
hooks: {
|
|
3130
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3130
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
3131
3131
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
3132
3132
|
return options;
|
|
3133
3133
|
}, "applyDefaultOptions")
|
|
@@ -3135,7 +3135,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
3135
3135
|
});
|
|
3136
3136
|
|
|
3137
3137
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3138
|
-
|
|
3138
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3139
3139
|
|
|
3140
3140
|
async function initGenerator(tree, schema) {
|
|
3141
3141
|
const task = _devkit.addDependenciesToPackageJson.call(void 0, tree, {
|
|
@@ -3154,13 +3154,13 @@ async function initGenerator(tree, schema) {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
return task;
|
|
3156
3156
|
}
|
|
3157
|
-
|
|
3157
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
3158
3158
|
|
|
3159
3159
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3160
|
-
|
|
3160
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3161
3161
|
|
|
3162
3162
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3163
|
-
const filesDir =
|
|
3163
|
+
const filesDir = _chunkV76GMI2Jjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
3164
3164
|
const tsLibraryGeneratorOptions = {
|
|
3165
3165
|
...schema,
|
|
3166
3166
|
platform: "neutral",
|
|
@@ -3189,10 +3189,10 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
3189
3189
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3190
3190
|
return null;
|
|
3191
3191
|
}
|
|
3192
|
-
|
|
3192
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
3193
3193
|
var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
3194
3194
|
hooks: {
|
|
3195
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3195
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
3196
3196
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
3197
3197
|
options.platform = "neutral";
|
|
3198
3198
|
return options;
|
|
@@ -3201,10 +3201,10 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
3201
3201
|
});
|
|
3202
3202
|
|
|
3203
3203
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3204
|
-
|
|
3204
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3205
3205
|
|
|
3206
3206
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3207
|
-
const filesDir =
|
|
3207
|
+
const filesDir = _chunkV76GMI2Jjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
3208
3208
|
const tsLibraryGeneratorOptions = {
|
|
3209
3209
|
platform: "node",
|
|
3210
3210
|
devDependencies: {
|
|
@@ -3237,10 +3237,10 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
3237
3237
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3238
3238
|
return null;
|
|
3239
3239
|
}
|
|
3240
|
-
|
|
3240
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
3241
3241
|
var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
3242
3242
|
hooks: {
|
|
3243
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3243
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (options) => {
|
|
3244
3244
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
3245
3245
|
options.platform ??= "node";
|
|
3246
3246
|
return options;
|
|
@@ -3249,7 +3249,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
3251
3251
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
3252
|
-
|
|
3252
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3253
3253
|
|
|
3254
3254
|
|
|
3255
3255
|
async function presetGeneratorFn(tree, options) {
|
|
@@ -3468,23 +3468,23 @@ async function presetGeneratorFn(tree, options) {
|
|
|
3468
3468
|
await Promise.resolve(_devkit.addDependenciesToPackageJson.call(void 0, tree, dependencies, {}, _devkit.joinPathFragments.call(void 0, projectRoot, "package.json")));
|
|
3469
3469
|
return null;
|
|
3470
3470
|
}
|
|
3471
|
-
|
|
3471
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
3472
3472
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
3473
3473
|
|
|
3474
3474
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
3475
|
-
|
|
3475
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3476
3476
|
|
|
3477
3477
|
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
3478
3478
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
3479
3479
|
|
|
3480
3480
|
// ../git-tools/src/index.ts
|
|
3481
|
-
|
|
3481
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3482
3482
|
|
|
3483
3483
|
// ../git-tools/src/commit/config.ts
|
|
3484
|
-
|
|
3484
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3485
3485
|
|
|
3486
3486
|
// ../git-tools/src/types.ts
|
|
3487
|
-
|
|
3487
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3488
3488
|
var DEFAULT_COMMIT_TYPES = {
|
|
3489
3489
|
/* --- Bumps version when selected --- */
|
|
3490
3490
|
chore: {
|
|
@@ -3659,7 +3659,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
3659
3659
|
type: "input",
|
|
3660
3660
|
title: "Breaking Changes (Details)",
|
|
3661
3661
|
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
3662
|
-
when: /* @__PURE__ */
|
|
3662
|
+
when: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (answers) => answers.isBreaking === true, "when"),
|
|
3663
3663
|
maxLength: 600,
|
|
3664
3664
|
minLength: 3
|
|
3665
3665
|
},
|
|
@@ -3673,7 +3673,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
3673
3673
|
type: "input",
|
|
3674
3674
|
title: "Open Issue Affected (Details)",
|
|
3675
3675
|
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
3676
|
-
when: /* @__PURE__ */
|
|
3676
|
+
when: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (answers) => answers.isIssueAffected === true, "when"),
|
|
3677
3677
|
maxLength: 600,
|
|
3678
3678
|
minLength: 3
|
|
3679
3679
|
}
|
|
@@ -3686,7 +3686,7 @@ var RuleConfigSeverity;
|
|
|
3686
3686
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
3687
3687
|
|
|
3688
3688
|
// ../git-tools/src/release/config.ts
|
|
3689
|
-
|
|
3689
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3690
3690
|
|
|
3691
3691
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
3692
3692
|
|
|
@@ -3700,10 +3700,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
3700
3700
|
var _semver3 = require('semver');
|
|
3701
3701
|
|
|
3702
3702
|
// ../workspace-tools/src/base/index.ts
|
|
3703
|
-
|
|
3703
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3704
3704
|
|
|
3705
3705
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
3706
|
-
|
|
3706
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3707
3707
|
var _untyped = require('untyped');
|
|
3708
3708
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
3709
3709
|
$schema: {
|
|
@@ -3723,7 +3723,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
3723
3723
|
});
|
|
3724
3724
|
|
|
3725
3725
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
3726
|
-
|
|
3726
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3727
3727
|
|
|
3728
3728
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
3729
3729
|
$schema: {
|
|
@@ -3741,7 +3741,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
3741
3741
|
});
|
|
3742
3742
|
|
|
3743
3743
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
3744
|
-
|
|
3744
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3745
3745
|
|
|
3746
3746
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
3747
3747
|
...base_executor_untyped_default,
|
|
@@ -3828,7 +3828,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
3828
3828
|
});
|
|
3829
3829
|
|
|
3830
3830
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
3831
|
-
|
|
3831
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
3832
3832
|
|
|
3833
3833
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
3834
3834
|
...base_executor_untyped_default,
|
|
@@ -3933,7 +3933,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
3933
3933
|
]
|
|
3934
3934
|
},
|
|
3935
3935
|
$default: "esnext",
|
|
3936
|
-
$resolve: /* @__PURE__ */
|
|
3936
|
+
$resolve: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (val = "esnext") => val.toLowerCase(), "$resolve")
|
|
3937
3937
|
},
|
|
3938
3938
|
format: {
|
|
3939
3939
|
$schema: {
|
|
@@ -3949,7 +3949,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
3949
3949
|
]
|
|
3950
3950
|
}
|
|
3951
3951
|
},
|
|
3952
|
-
$resolve: /* @__PURE__ */
|
|
3952
|
+
$resolve: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (val = [
|
|
3953
3953
|
"cjs",
|
|
3954
3954
|
"esm"
|
|
3955
3955
|
]) => [].concat(val), "$resolve")
|
|
@@ -3973,7 +3973,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
3973
3973
|
type: "array",
|
|
3974
3974
|
description: "The external dependencies"
|
|
3975
3975
|
},
|
|
3976
|
-
$resolve: /* @__PURE__ */
|
|
3976
|
+
$resolve: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (val = []) => [].concat(val), "$resolve")
|
|
3977
3977
|
},
|
|
3978
3978
|
define: {
|
|
3979
3979
|
$schema: {
|
|
@@ -3982,7 +3982,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
3982
3982
|
tsType: "Record<string, string>",
|
|
3983
3983
|
description: "The define values"
|
|
3984
3984
|
},
|
|
3985
|
-
$resolve: /* @__PURE__ */
|
|
3985
|
+
$resolve: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
3986
3986
|
$default: {}
|
|
3987
3987
|
},
|
|
3988
3988
|
env: {
|
|
@@ -3992,13 +3992,13 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
3992
3992
|
tsType: "Record<string, string>",
|
|
3993
3993
|
description: "The environment variable values"
|
|
3994
3994
|
},
|
|
3995
|
-
$resolve: /* @__PURE__ */
|
|
3995
|
+
$resolve: /* @__PURE__ */ _chunkKVRUQ4FBjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
3996
3996
|
$default: {}
|
|
3997
3997
|
}
|
|
3998
3998
|
});
|
|
3999
3999
|
|
|
4000
4000
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4001
|
-
|
|
4001
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4002
4002
|
|
|
4003
4003
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4004
4004
|
...base_generator_untyped_default,
|
|
@@ -4119,24 +4119,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4119
4119
|
});
|
|
4120
4120
|
|
|
4121
4121
|
// ../workspace-tools/src/types.ts
|
|
4122
|
-
|
|
4122
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4123
4123
|
|
|
4124
4124
|
// ../workspace-tools/src/utils/index.ts
|
|
4125
|
-
|
|
4125
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4126
4126
|
|
|
4127
4127
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4128
|
-
|
|
4128
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4129
4129
|
|
|
4130
4130
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4131
|
-
|
|
4131
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4132
4132
|
|
|
4133
4133
|
|
|
4134
4134
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4135
|
-
|
|
4135
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4136
4136
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4137
4137
|
|
|
4138
4138
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4139
|
-
|
|
4139
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4140
4140
|
|
|
4141
4141
|
|
|
4142
4142
|
|
|
@@ -4151,19 +4151,19 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
4151
4151
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4152
4152
|
|
|
4153
4153
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4154
|
-
|
|
4154
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4155
4155
|
|
|
4156
4156
|
|
|
4157
4157
|
|
|
4158
4158
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4159
|
-
|
|
4159
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4160
4160
|
|
|
4161
4161
|
|
|
4162
4162
|
|
|
4163
4163
|
|
|
4164
4164
|
|
|
4165
4165
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4166
|
-
|
|
4166
|
+
_chunkKVRUQ4FBjs.init_cjs_shims.call(void 0, );
|
|
4167
4167
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
4168
4168
|
|
|
4169
4169
|
// src/generators/init/generator.ts
|
|
@@ -4175,7 +4175,7 @@ async function initGeneratorFn(tree, options, config) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
return task;
|
|
4177
4177
|
}
|
|
4178
|
-
|
|
4178
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, initGeneratorFn, "initGeneratorFn");
|
|
4179
4179
|
var generator_default6 = withRunGenerator("Initialize Storm Projen workspace", initGeneratorFn);
|
|
4180
4180
|
function addProjenDeps(tree, options) {
|
|
4181
4181
|
return () => {
|
|
@@ -4186,7 +4186,7 @@ function addProjenDeps(tree, options) {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
};
|
|
4188
4188
|
}
|
|
4189
|
-
|
|
4189
|
+
_chunkKVRUQ4FBjs.__name.call(void 0, addProjenDeps, "addProjenDeps");
|
|
4190
4190
|
|
|
4191
4191
|
|
|
4192
4192
|
|