@storm-software/projen 0.15.7 → 0.15.9
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-NYGDQVRP.mjs → chunk-3Y4CAAKD.mjs} +1 -1
- package/dist/{chunk-XUEK3ZVF.mjs → chunk-54OIA56I.mjs} +70 -20
- package/dist/{chunk-6Q5BZMKY.mjs → chunk-6YIKZSMZ.mjs} +1 -1
- package/dist/{chunk-L6JCOSGQ.js → chunk-DXCHFSHP.js} +292 -242
- package/dist/chunk-LZV7UWZY.js +6 -0
- package/dist/{chunk-NZ6H7M6Y.js → chunk-OFRLB5Y5.js} +3 -3
- package/dist/{chunk-VVOOG5R3.js → chunk-RZYNLMJ5.js} +2 -2
- package/dist/{chunk-UEPYPO6U.mjs → chunk-UQC7DEDF.mjs} +2 -2
- package/dist/{chunk-MQ5Q4ABA.mjs → chunk-VAMYC2GR.mjs} +1 -1
- package/dist/{chunk-BPUBJWVF.js → chunk-VBX7XODB.js} +2 -2
- 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 +4 -4
- 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-QWBZK22S.js +0 -6
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkVBX7XODBjs = require('./chunk-VBX7XODB.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRZYNLMJ5js = require('./chunk-RZYNLMJ5.js');
|
|
9
9
|
|
|
10
10
|
// src/generators/init/generator.ts
|
|
11
|
-
|
|
11
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -17,27 +17,27 @@ _chunkVVOOG5R3js.init_cjs_shims.call(void 0, );
|
|
|
17
17
|
var _devkit = require('@nx/devkit');
|
|
18
18
|
|
|
19
19
|
// ../workspace-tools/index.ts
|
|
20
|
-
|
|
20
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
21
21
|
|
|
22
22
|
// ../workspace-tools/executors.ts
|
|
23
|
-
|
|
23
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
24
24
|
|
|
25
25
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
26
|
-
|
|
26
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
27
27
|
|
|
28
28
|
// ../workspace-tools/src/base/base-executor.ts
|
|
29
|
-
|
|
29
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
30
30
|
|
|
31
31
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
32
|
-
|
|
32
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
33
33
|
var _c12 = require('c12');
|
|
34
34
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
35
35
|
|
|
36
36
|
// ../config-tools/src/logger/console.ts
|
|
37
|
-
|
|
37
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
38
38
|
|
|
39
39
|
// ../config-tools/src/types.ts
|
|
40
|
-
|
|
40
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
41
41
|
var LogLevel = {
|
|
42
42
|
SILENT: 0,
|
|
43
43
|
FATAL: 10,
|
|
@@ -62,17 +62,17 @@ var LogLevelLabel = {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
65
|
-
|
|
65
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
66
66
|
|
|
67
67
|
// ../config/src/index.ts
|
|
68
|
-
|
|
68
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
69
69
|
|
|
70
70
|
// ../config/src/constants.ts
|
|
71
|
-
|
|
72
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
71
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
72
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
73
73
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
74
74
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
75
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
75
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
76
76
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
77
77
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
78
78
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -91,10 +91,10 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
91
91
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
92
92
|
|
|
93
93
|
// ../config/src/define-config.ts
|
|
94
|
-
|
|
94
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
95
95
|
|
|
96
96
|
// ../config/src/schema.ts
|
|
97
|
-
|
|
97
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
98
98
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
99
99
|
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");
|
|
100
100
|
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");
|
|
@@ -250,10 +250,13 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
250
250
|
organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
251
251
|
repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
252
252
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
253
|
-
homepage: _zod2.default.string().trim().url().
|
|
254
|
-
docs: _zod2.default.string().trim().url().
|
|
255
|
-
licensing: _zod2.default.string().trim().url().
|
|
256
|
-
contact: _zod2.default.string().trim().url().
|
|
253
|
+
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
254
|
+
docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
255
|
+
licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
256
|
+
contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
257
|
+
support: _zod2.default.string().trim().url().optional().describe(
|
|
258
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
259
|
+
),
|
|
257
260
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
258
261
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
259
262
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -302,7 +305,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
302
305
|
);
|
|
303
306
|
|
|
304
307
|
// ../config/src/types.ts
|
|
305
|
-
|
|
308
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
306
309
|
var COLOR_KEYS = [
|
|
307
310
|
"dark",
|
|
308
311
|
"light",
|
|
@@ -327,10 +330,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
|
|
|
327
330
|
var _path = require('path'); var path3 = _interopRequireWildcard(_path);
|
|
328
331
|
|
|
329
332
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
330
|
-
|
|
333
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
331
334
|
|
|
332
335
|
// ../config-tools/src/utilities/find-up.ts
|
|
333
|
-
|
|
336
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
334
337
|
|
|
335
338
|
|
|
336
339
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -399,11 +402,11 @@ var rootDirectories = [
|
|
|
399
402
|
];
|
|
400
403
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
401
404
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
402
|
-
return
|
|
405
|
+
return _chunkVBX7XODBjs.correctPaths.call(void 0,
|
|
403
406
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
404
407
|
);
|
|
405
408
|
}
|
|
406
|
-
return
|
|
409
|
+
return _chunkVBX7XODBjs.correctPaths.call(void 0,
|
|
407
410
|
findFolderUp(
|
|
408
411
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
409
412
|
rootFiles,
|
|
@@ -454,16 +457,17 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
454
457
|
negative: "#dc2626"
|
|
455
458
|
}
|
|
456
459
|
};
|
|
457
|
-
|
|
460
|
+
async function getPackageJsonConfig(root) {
|
|
458
461
|
let license = STORM_DEFAULT_LICENSE;
|
|
459
|
-
let homepage =
|
|
462
|
+
let homepage = void 0;
|
|
463
|
+
let support = void 0;
|
|
460
464
|
let name = void 0;
|
|
461
465
|
let namespace = void 0;
|
|
462
466
|
let repository = void 0;
|
|
463
467
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
464
468
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
465
469
|
const file = await _promises.readFile.call(void 0,
|
|
466
|
-
|
|
470
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
467
471
|
"utf8"
|
|
468
472
|
);
|
|
469
473
|
if (file) {
|
|
@@ -487,6 +491,13 @@ var getDefaultConfig = async (root) => {
|
|
|
487
491
|
if (packageJson.homepage) {
|
|
488
492
|
homepage = packageJson.homepage;
|
|
489
493
|
}
|
|
494
|
+
if (packageJson.bugs) {
|
|
495
|
+
if (typeof packageJson.bugs === "string") {
|
|
496
|
+
support = packageJson.bugs;
|
|
497
|
+
} else if (packageJson.bugs.url) {
|
|
498
|
+
support = packageJson.bugs.url;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
490
501
|
}
|
|
491
502
|
}
|
|
492
503
|
return {
|
|
@@ -496,16 +507,41 @@ var getDefaultConfig = async (root) => {
|
|
|
496
507
|
repository,
|
|
497
508
|
license,
|
|
498
509
|
homepage,
|
|
499
|
-
|
|
500
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
501
|
-
error: {
|
|
502
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
503
|
-
}
|
|
510
|
+
support
|
|
504
511
|
};
|
|
505
|
-
}
|
|
512
|
+
}
|
|
513
|
+
function applyDefaultConfig(config) {
|
|
514
|
+
if (!config.support && config.contact) {
|
|
515
|
+
config.support = config.contact;
|
|
516
|
+
}
|
|
517
|
+
if (!config.contact && config.support) {
|
|
518
|
+
config.contact = config.support;
|
|
519
|
+
}
|
|
520
|
+
if (config.homepage) {
|
|
521
|
+
if (!config.docs) {
|
|
522
|
+
config.docs = `${config.homepage}/docs`;
|
|
523
|
+
}
|
|
524
|
+
if (!config.license) {
|
|
525
|
+
config.license = `${config.homepage}/license`;
|
|
526
|
+
}
|
|
527
|
+
if (!config.support) {
|
|
528
|
+
config.support = `${config.homepage}/support`;
|
|
529
|
+
}
|
|
530
|
+
if (!config.contact) {
|
|
531
|
+
config.contact = `${config.homepage}/contact`;
|
|
532
|
+
}
|
|
533
|
+
if (!_optionalChain([config, 'access', _2 => _2.error, 'optionalAccess', _3 => _3.codesFile]) || !_optionalChain([config, 'optionalAccess', _4 => _4.error, 'optionalAccess', _5 => _5.url])) {
|
|
534
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
535
|
+
if (config.homepage) {
|
|
536
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return config;
|
|
541
|
+
}
|
|
506
542
|
|
|
507
543
|
// ../config-tools/src/logger/chalk.ts
|
|
508
|
-
|
|
544
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
509
545
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
510
546
|
var chalkDefault = {
|
|
511
547
|
hex: (_) => (message) => message,
|
|
@@ -528,17 +564,17 @@ var chalkDefault = {
|
|
|
528
564
|
};
|
|
529
565
|
var getChalk = () => {
|
|
530
566
|
let _chalk = _chalk3.default;
|
|
531
|
-
if (!_optionalChain([_chalk, 'optionalAccess',
|
|
567
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
|
|
532
568
|
_chalk = chalkDefault;
|
|
533
569
|
}
|
|
534
570
|
return _chalk;
|
|
535
571
|
};
|
|
536
572
|
|
|
537
573
|
// ../config-tools/src/logger/console-icons.ts
|
|
538
|
-
|
|
574
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
539
575
|
|
|
540
576
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
541
|
-
|
|
577
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
542
578
|
function isUnicodeSupported() {
|
|
543
579
|
if (process.platform !== "win32") {
|
|
544
580
|
return process.env.TERM !== "linux";
|
|
@@ -563,13 +599,13 @@ var CONSOLE_ICONS = {
|
|
|
563
599
|
};
|
|
564
600
|
|
|
565
601
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
566
|
-
|
|
602
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
567
603
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
568
604
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
569
605
|
};
|
|
570
606
|
|
|
571
607
|
// ../config-tools/src/logger/get-log-level.ts
|
|
572
|
-
|
|
608
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
573
609
|
var getLogLevel = (label) => {
|
|
574
610
|
switch (label) {
|
|
575
611
|
case "all":
|
|
@@ -622,7 +658,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
622
658
|
|
|
623
659
|
// ../config-tools/src/logger/console.ts
|
|
624
660
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
625
|
-
const colors = !_optionalChain([config, 'access',
|
|
661
|
+
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
626
662
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
627
663
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
628
664
|
return (_) => {
|
|
@@ -738,14 +774,14 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
738
774
|
};
|
|
739
775
|
var _isFunction = (value) => {
|
|
740
776
|
try {
|
|
741
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
777
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
|
|
742
778
|
} catch (e) {
|
|
743
779
|
return false;
|
|
744
780
|
}
|
|
745
781
|
};
|
|
746
782
|
|
|
747
783
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
748
|
-
|
|
784
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
749
785
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
750
786
|
let result = option;
|
|
751
787
|
if (!result) {
|
|
@@ -758,7 +794,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
758
794
|
if (result.includes(`{${optionKey}}`)) {
|
|
759
795
|
result = result.replaceAll(
|
|
760
796
|
`{${optionKey}}`,
|
|
761
|
-
_optionalChain([tokenParams, 'optionalAccess',
|
|
797
|
+
_optionalChain([tokenParams, 'optionalAccess', _30 => _30[optionKey]]) || ""
|
|
762
798
|
);
|
|
763
799
|
}
|
|
764
800
|
}
|
|
@@ -780,7 +816,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
780
816
|
if (result.includes("{workspaceRoot}")) {
|
|
781
817
|
result = result.replaceAll(
|
|
782
818
|
"{workspaceRoot}",
|
|
783
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access',
|
|
819
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _31 => _31.config, 'optionalAccess', _32 => _32.workspaceRoot]))), () => ( findWorkspaceRoot()))
|
|
784
820
|
);
|
|
785
821
|
}
|
|
786
822
|
return result;
|
|
@@ -825,10 +861,10 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
825
861
|
cwd: workspacePath,
|
|
826
862
|
packageJson: true,
|
|
827
863
|
name: fileName,
|
|
828
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
864
|
+
envName: _optionalChain([fileName, 'optionalAccess', _33 => _33.toUpperCase, 'call', _34 => _34()]),
|
|
829
865
|
jitiOptions: {
|
|
830
866
|
debug: false,
|
|
831
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
867
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
832
868
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
833
869
|
"jiti"
|
|
834
870
|
)
|
|
@@ -839,10 +875,10 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
839
875
|
cwd: workspacePath,
|
|
840
876
|
packageJson: true,
|
|
841
877
|
name: fileName,
|
|
842
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
878
|
+
envName: _optionalChain([fileName, 'optionalAccess', _35 => _35.toUpperCase, 'call', _36 => _36()]),
|
|
843
879
|
jitiOptions: {
|
|
844
880
|
debug: false,
|
|
845
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
881
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
846
882
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
847
883
|
"jiti"
|
|
848
884
|
)
|
|
@@ -873,7 +909,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
873
909
|
)
|
|
874
910
|
);
|
|
875
911
|
for (const result2 of results) {
|
|
876
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
912
|
+
if (_optionalChain([result2, 'optionalAccess', _37 => _37.config]) && _optionalChain([result2, 'optionalAccess', _38 => _38.configFile]) && Object.keys(result2.config).length > 0) {
|
|
877
913
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
878
914
|
writeTrace(
|
|
879
915
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
@@ -894,11 +930,11 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
894
930
|
};
|
|
895
931
|
|
|
896
932
|
// ../config-tools/src/create-storm-config.ts
|
|
897
|
-
|
|
933
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
898
934
|
|
|
899
935
|
|
|
900
936
|
// ../config-tools/src/env/get-env.ts
|
|
901
|
-
|
|
937
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
902
938
|
var getExtensionEnv = (extensionName) => {
|
|
903
939
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
904
940
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -946,17 +982,18 @@ var getConfigEnv = () => {
|
|
|
946
982
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
947
983
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
948
984
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
985
|
+
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
949
986
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
950
987
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
951
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
952
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
988
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
989
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
953
990
|
directories: {
|
|
954
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
955
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
956
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
957
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
958
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
959
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
991
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
992
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
993
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
994
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
995
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
996
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkVBX7XODBjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
960
997
|
},
|
|
961
998
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
962
999
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1074,20 +1111,20 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
1074
1111
|
};
|
|
1075
1112
|
|
|
1076
1113
|
// ../config-tools/src/env/set-env.ts
|
|
1077
|
-
|
|
1114
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1078
1115
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1079
1116
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1080
1117
|
if (extension[key]) {
|
|
1081
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
1118
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _39 => _39.replace, 'call', _40 => _40(
|
|
1082
1119
|
/([A-Z])+/g,
|
|
1083
|
-
(input) => input ? _optionalChain([input, 'access',
|
|
1084
|
-
), 'access',
|
|
1120
|
+
(input) => input ? _optionalChain([input, 'access', _41 => _41[0], 'optionalAccess', _42 => _42.toUpperCase, 'call', _43 => _43()]) + input.slice(1) : ""
|
|
1121
|
+
), 'access', _44 => _44.split, 'call', _45 => _45(/(?=[A-Z])|[.\-\s_]/), 'access', _46 => _46.map, 'call', _47 => _47((x) => x.toLowerCase())]), () => ( []));
|
|
1085
1122
|
let extensionKey;
|
|
1086
1123
|
if (result.length === 0) {
|
|
1087
1124
|
return;
|
|
1088
1125
|
}
|
|
1089
1126
|
if (result.length === 1) {
|
|
1090
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
1127
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _48 => _48[0], 'optionalAccess', _49 => _49.toUpperCase, 'call', _50 => _50()]), () => ( ""));
|
|
1091
1128
|
} else {
|
|
1092
1129
|
extensionKey = result.reduce((ret, part) => {
|
|
1093
1130
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -1165,6 +1202,9 @@ var setConfigEnv = (config) => {
|
|
|
1165
1202
|
if (config.contact) {
|
|
1166
1203
|
process.env[`${prefix}CONTACT`] = config.contact;
|
|
1167
1204
|
}
|
|
1205
|
+
if (config.support) {
|
|
1206
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
1207
|
+
}
|
|
1168
1208
|
if (config.timezone) {
|
|
1169
1209
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
1170
1210
|
process.env.TZ = config.timezone;
|
|
@@ -1177,40 +1217,40 @@ var setConfigEnv = (config) => {
|
|
|
1177
1217
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1178
1218
|
}
|
|
1179
1219
|
if (config.configFile) {
|
|
1180
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
1220
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkVBX7XODBjs.correctPaths.call(void 0, config.configFile);
|
|
1181
1221
|
}
|
|
1182
1222
|
if (config.workspaceRoot) {
|
|
1183
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1184
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1185
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1223
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkVBX7XODBjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1224
|
+
process.env.NX_WORKSPACE_ROOT = _chunkVBX7XODBjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1225
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkVBX7XODBjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1186
1226
|
}
|
|
1187
1227
|
if (config.directories) {
|
|
1188
1228
|
if (!config.skipCache && config.directories.cache) {
|
|
1189
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1229
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkVBX7XODBjs.correctPaths.call(void 0,
|
|
1190
1230
|
config.directories.cache
|
|
1191
1231
|
);
|
|
1192
1232
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1193
1233
|
}
|
|
1194
1234
|
if (config.directories.data) {
|
|
1195
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1235
|
+
process.env[`${prefix}DATA_DIR`] = _chunkVBX7XODBjs.correctPaths.call(void 0, config.directories.data);
|
|
1196
1236
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1197
1237
|
}
|
|
1198
1238
|
if (config.directories.config) {
|
|
1199
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1239
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkVBX7XODBjs.correctPaths.call(void 0,
|
|
1200
1240
|
config.directories.config
|
|
1201
1241
|
);
|
|
1202
1242
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1203
1243
|
}
|
|
1204
1244
|
if (config.directories.temp) {
|
|
1205
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1245
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkVBX7XODBjs.correctPaths.call(void 0, config.directories.temp);
|
|
1206
1246
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1207
1247
|
}
|
|
1208
1248
|
if (config.directories.log) {
|
|
1209
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1249
|
+
process.env[`${prefix}LOG_DIR`] = _chunkVBX7XODBjs.correctPaths.call(void 0, config.directories.log);
|
|
1210
1250
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1211
1251
|
}
|
|
1212
1252
|
if (config.directories.build) {
|
|
1213
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1253
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkVBX7XODBjs.correctPaths.call(void 0,
|
|
1214
1254
|
config.directories.build
|
|
1215
1255
|
);
|
|
1216
1256
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1228,7 +1268,7 @@ var setConfigEnv = (config) => {
|
|
|
1228
1268
|
process.env.NODE_ENV = config.mode;
|
|
1229
1269
|
process.env.ENVIRONMENT = config.mode;
|
|
1230
1270
|
}
|
|
1231
|
-
if (_optionalChain([config, 'access',
|
|
1271
|
+
if (_optionalChain([config, 'access', _51 => _51.colors, 'optionalAccess', _52 => _52.base, 'optionalAccess', _53 => _53.light]) || _optionalChain([config, 'access', _54 => _54.colors, 'optionalAccess', _55 => _55.base, 'optionalAccess', _56 => _56.dark])) {
|
|
1232
1272
|
for (const key of Object.keys(config.colors)) {
|
|
1233
1273
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1234
1274
|
}
|
|
@@ -1294,7 +1334,7 @@ var setConfigEnv = (config) => {
|
|
|
1294
1334
|
}
|
|
1295
1335
|
};
|
|
1296
1336
|
var setThemeColorConfigEnv = (prefix, config) => {
|
|
1297
|
-
return _optionalChain([config, 'optionalAccess',
|
|
1337
|
+
return _optionalChain([config, 'optionalAccess', _57 => _57.light, 'optionalAccess', _58 => _58.brand]) || _optionalChain([config, 'optionalAccess', _59 => _59.dark, 'optionalAccess', _60 => _60.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
1298
1338
|
};
|
|
1299
1339
|
var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
1300
1340
|
if (config.dark) {
|
|
@@ -1396,7 +1436,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
1396
1436
|
var _static_cache = void 0;
|
|
1397
1437
|
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
|
|
1398
1438
|
let result;
|
|
1399
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
1439
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _61 => _61.data]) || !_optionalChain([_static_cache, 'optionalAccess', _62 => _62.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1400
1440
|
let _workspaceRoot = workspaceRoot3;
|
|
1401
1441
|
if (!_workspaceRoot) {
|
|
1402
1442
|
_workspaceRoot = findWorkspaceRoot();
|
|
@@ -1414,9 +1454,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
|
|
|
1414
1454
|
return void 0;
|
|
1415
1455
|
}
|
|
1416
1456
|
}
|
|
1417
|
-
const defaultConfig = await
|
|
1418
|
-
result =
|
|
1419
|
-
|
|
1457
|
+
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
1458
|
+
result = applyDefaultConfig(
|
|
1459
|
+
await stormWorkspaceConfigSchema.parseAsync(
|
|
1460
|
+
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
1461
|
+
)
|
|
1420
1462
|
);
|
|
1421
1463
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1422
1464
|
} else {
|
|
@@ -1466,7 +1508,7 @@ ${formatLogMessage(config)}`,
|
|
|
1466
1508
|
};
|
|
1467
1509
|
|
|
1468
1510
|
// ../config-tools/src/get-config.ts
|
|
1469
|
-
|
|
1511
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1470
1512
|
var getConfig = (workspaceRoot3, skipLogs = false) => {
|
|
1471
1513
|
return loadStormWorkspaceConfig(workspaceRoot3, skipLogs);
|
|
1472
1514
|
};
|
|
@@ -1485,7 +1527,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1485
1527
|
let options = _options;
|
|
1486
1528
|
let config = {};
|
|
1487
1529
|
try {
|
|
1488
|
-
if (!_optionalChain([context, 'access',
|
|
1530
|
+
if (!_optionalChain([context, 'access', _63 => _63.projectsConfigurations, 'optionalAccess', _64 => _64.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1489
1531
|
throw new Error(
|
|
1490
1532
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1491
1533
|
);
|
|
@@ -1508,7 +1550,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1508
1550
|
);
|
|
1509
1551
|
config = await getConfig(workspaceRoot3);
|
|
1510
1552
|
}
|
|
1511
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1553
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _65 => _65.hooks, 'optionalAccess', _66 => _66.applyDefaultOptions])) {
|
|
1512
1554
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
1513
1555
|
options = await Promise.resolve(
|
|
1514
1556
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -1536,7 +1578,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1536
1578
|
`,
|
|
1537
1579
|
config
|
|
1538
1580
|
);
|
|
1539
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1581
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.preProcess])) {
|
|
1540
1582
|
writeDebug("Running the preProcess hook...", config);
|
|
1541
1583
|
await Promise.resolve(
|
|
1542
1584
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -1544,7 +1586,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1544
1586
|
writeDebug("Completed the preProcess hook", config);
|
|
1545
1587
|
}
|
|
1546
1588
|
const ret = executorFn(tokenized, context, config);
|
|
1547
|
-
if (_isFunction2(_optionalChain([ret, 'optionalAccess',
|
|
1589
|
+
if (_isFunction2(_optionalChain([ret, 'optionalAccess', _69 => _69.next]))) {
|
|
1548
1590
|
const asyncGen = ret;
|
|
1549
1591
|
for await (const iter of asyncGen) {
|
|
1550
1592
|
void iter;
|
|
@@ -1553,7 +1595,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1553
1595
|
const result = await Promise.resolve(
|
|
1554
1596
|
ret
|
|
1555
1597
|
);
|
|
1556
|
-
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess',
|
|
1598
|
+
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _70 => _70.error, 'optionalAccess', _71 => _71.message]) && typeof _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) === "string" && _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.name]) && typeof _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) === "string")) {
|
|
1557
1599
|
writeTrace(
|
|
1558
1600
|
`Failure determined by the ${name} executor
|
|
1559
1601
|
${formatLogMessage(result)}`,
|
|
@@ -1561,10 +1603,10 @@ ${formatLogMessage(result)}`,
|
|
|
1561
1603
|
);
|
|
1562
1604
|
console.error(result);
|
|
1563
1605
|
throw new Error(`The ${name} executor failed to run`, {
|
|
1564
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1606
|
+
cause: _optionalChain([result, 'optionalAccess', _78 => _78.error])
|
|
1565
1607
|
});
|
|
1566
1608
|
}
|
|
1567
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1609
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _79 => _79.hooks, 'optionalAccess', _80 => _80.postProcess])) {
|
|
1568
1610
|
writeDebug("Running the postProcess hook...", config);
|
|
1569
1611
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
1570
1612
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -1594,14 +1636,14 @@ ${formatLogMessage(result)}`,
|
|
|
1594
1636
|
};
|
|
1595
1637
|
var _isFunction2 = (value) => {
|
|
1596
1638
|
try {
|
|
1597
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
1639
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _81 => _81.constructor]) && _optionalChain([value, 'optionalAccess', _82 => _82.call]) && _optionalChain([value, 'optionalAccess', _83 => _83.apply]));
|
|
1598
1640
|
} catch (e) {
|
|
1599
1641
|
return false;
|
|
1600
1642
|
}
|
|
1601
1643
|
};
|
|
1602
1644
|
|
|
1603
1645
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1604
|
-
|
|
1646
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1605
1647
|
|
|
1606
1648
|
|
|
1607
1649
|
|
|
@@ -1662,10 +1704,10 @@ async function cargoCommand(...args) {
|
|
|
1662
1704
|
}
|
|
1663
1705
|
function cargoCommandSync(args = "", options) {
|
|
1664
1706
|
const normalizedOptions = {
|
|
1665
|
-
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1707
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _84 => _84.stdio]), () => ( "inherit")),
|
|
1666
1708
|
env: {
|
|
1667
1709
|
...process.env,
|
|
1668
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1710
|
+
..._optionalChain([options, 'optionalAccess', _85 => _85.env])
|
|
1669
1711
|
}
|
|
1670
1712
|
};
|
|
1671
1713
|
try {
|
|
@@ -1698,7 +1740,7 @@ function cargoMetadata() {
|
|
|
1698
1740
|
}
|
|
1699
1741
|
function runProcess(processCmd, ...args) {
|
|
1700
1742
|
const metadata = cargoMetadata();
|
|
1701
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
1743
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _86 => _86.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
|
|
1702
1744
|
return new Promise((resolve) => {
|
|
1703
1745
|
if (process.env.VERCEL) {
|
|
1704
1746
|
return resolve({ success: true });
|
|
@@ -1739,7 +1781,7 @@ var executor_default = withRunExecutor(
|
|
|
1739
1781
|
);
|
|
1740
1782
|
|
|
1741
1783
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1742
|
-
|
|
1784
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1743
1785
|
async function cargoCheckExecutor(options, context) {
|
|
1744
1786
|
const command = buildCargoCommand("check", options, context);
|
|
1745
1787
|
return await cargoCommand(...command);
|
|
@@ -1759,7 +1801,7 @@ var executor_default2 = withRunExecutor(
|
|
|
1759
1801
|
);
|
|
1760
1802
|
|
|
1761
1803
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1762
|
-
|
|
1804
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1763
1805
|
async function cargoClippyExecutor(options, context) {
|
|
1764
1806
|
const command = buildCargoCommand("clippy", options, context);
|
|
1765
1807
|
return await cargoCommand(...command);
|
|
@@ -1780,7 +1822,7 @@ var executor_default3 = withRunExecutor(
|
|
|
1780
1822
|
);
|
|
1781
1823
|
|
|
1782
1824
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1783
|
-
|
|
1825
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1784
1826
|
async function cargoDocExecutor(options, context) {
|
|
1785
1827
|
const opts = { ...options };
|
|
1786
1828
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -1810,7 +1852,7 @@ var executor_default4 = withRunExecutor(
|
|
|
1810
1852
|
);
|
|
1811
1853
|
|
|
1812
1854
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1813
|
-
|
|
1855
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1814
1856
|
async function cargoFormatExecutor(options, context) {
|
|
1815
1857
|
const command = buildCargoCommand("fmt", options, context);
|
|
1816
1858
|
return await cargoCommand(...command);
|
|
@@ -1831,7 +1873,7 @@ var executor_default5 = withRunExecutor(
|
|
|
1831
1873
|
);
|
|
1832
1874
|
|
|
1833
1875
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1834
|
-
|
|
1876
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1835
1877
|
|
|
1836
1878
|
|
|
1837
1879
|
|
|
@@ -1839,21 +1881,21 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
1839
1881
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
1840
1882
|
|
|
1841
1883
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1842
|
-
|
|
1884
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1843
1885
|
|
|
1844
1886
|
// ../esbuild/src/build.ts
|
|
1845
|
-
|
|
1887
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1846
1888
|
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
1847
1889
|
var _globby = require('globby');
|
|
1848
1890
|
|
|
1849
1891
|
// ../esbuild/src/assets.ts
|
|
1850
|
-
|
|
1892
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1851
1893
|
|
|
1852
1894
|
// ../build-tools/src/index.ts
|
|
1853
|
-
|
|
1895
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1854
1896
|
|
|
1855
1897
|
// ../build-tools/src/config.ts
|
|
1856
|
-
|
|
1898
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1857
1899
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
1858
1900
|
*
|
|
1859
1901
|
* \u26A1 Built by Storm Software
|
|
@@ -1864,35 +1906,35 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
1864
1906
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1865
1907
|
|
|
1866
1908
|
// ../build-tools/src/plugins/index.ts
|
|
1867
|
-
|
|
1909
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1868
1910
|
|
|
1869
1911
|
// ../build-tools/src/plugins/analyze.ts
|
|
1870
|
-
|
|
1912
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1871
1913
|
|
|
1872
1914
|
// ../build-tools/src/plugins/swc.ts
|
|
1873
|
-
|
|
1915
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1874
1916
|
var _core = require('@swc/core');
|
|
1875
1917
|
|
|
1876
1918
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1877
|
-
|
|
1919
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1878
1920
|
|
|
1879
1921
|
var _module = require('module');
|
|
1880
1922
|
|
|
1881
1923
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1882
1924
|
|
|
1883
1925
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1884
|
-
|
|
1926
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1885
1927
|
|
|
1886
1928
|
|
|
1887
1929
|
|
|
1888
1930
|
// ../build-tools/src/types.ts
|
|
1889
|
-
|
|
1931
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1890
1932
|
|
|
1891
1933
|
// ../build-tools/src/utilities/index.ts
|
|
1892
|
-
|
|
1934
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1893
1935
|
|
|
1894
1936
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1895
|
-
|
|
1937
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1896
1938
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
1897
1939
|
var _glob = require('glob');
|
|
1898
1940
|
|
|
@@ -1924,7 +1966,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
1924
1966
|
}
|
|
1925
1967
|
writeTrace(
|
|
1926
1968
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
1927
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
1969
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkVBX7XODBjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
1928
1970
|
config
|
|
1929
1971
|
);
|
|
1930
1972
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -1936,17 +1978,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
1936
1978
|
await assetHandler.processAllAssetsOnce();
|
|
1937
1979
|
if (includeSrc === true) {
|
|
1938
1980
|
writeDebug(
|
|
1939
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
1981
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
1940
1982
|
outputPath,
|
|
1941
1983
|
"src"
|
|
1942
1984
|
)}`,
|
|
1943
1985
|
config
|
|
1944
1986
|
);
|
|
1945
1987
|
const files = await _glob.glob.call(void 0, [
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1988
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
1989
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
1990
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1991
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1950
1992
|
]);
|
|
1951
1993
|
await Promise.allSettled(
|
|
1952
1994
|
files.map(
|
|
@@ -1964,7 +2006,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1964
2006
|
};
|
|
1965
2007
|
|
|
1966
2008
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1967
|
-
|
|
2009
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
1968
2010
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
1969
2011
|
|
|
1970
2012
|
|
|
@@ -1998,11 +2040,11 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
1998
2040
|
);
|
|
1999
2041
|
const localPackages = [];
|
|
2000
2042
|
for (const project of projectDependencies.dependencies.filter(
|
|
2001
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access',
|
|
2043
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _87 => _87.node, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.root]) !== projectRoot && _optionalChain([dep, 'access', _90 => _90.node, 'access', _91 => _91.data, 'optionalAccess', _92 => _92.root]) !== workspaceRoot3
|
|
2002
2044
|
)) {
|
|
2003
2045
|
const projectNode = project.node;
|
|
2004
2046
|
if (projectNode.data.root) {
|
|
2005
|
-
const projectPackageJsonPath =
|
|
2047
|
+
const projectPackageJsonPath = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2006
2048
|
workspaceRoot3,
|
|
2007
2049
|
projectNode.data.root,
|
|
2008
2050
|
"package.json"
|
|
@@ -2024,20 +2066,20 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2024
2066
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2025
2067
|
);
|
|
2026
2068
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2027
|
-
|
|
2069
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2028
2070
|
"utf8"
|
|
2029
2071
|
);
|
|
2030
2072
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2031
2073
|
const projectName2 = projectJson.name;
|
|
2032
2074
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2033
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2075
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _93 => _93.projects, 'optionalAccess', _94 => _94[projectName2]])) {
|
|
2034
2076
|
throw new Error(
|
|
2035
2077
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
2036
2078
|
);
|
|
2037
2079
|
}
|
|
2038
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
2039
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
2040
|
-
const depPackageJsonPath =
|
|
2080
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _95 => _95.projects, 'optionalAccess', _96 => _96[projectName2], 'access', _97 => _97.implicitDependencies, 'optionalAccess', _98 => _98.reduce, 'call', _99 => _99((ret, dep) => {
|
|
2081
|
+
if (_optionalChain([projectConfigurations, 'access', _100 => _100.projects, 'optionalAccess', _101 => _101[dep]])) {
|
|
2082
|
+
const depPackageJsonPath = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2041
2083
|
workspaceRoot3,
|
|
2042
2084
|
projectConfigurations.projects[dep].root,
|
|
2043
2085
|
"package.json"
|
|
@@ -2056,13 +2098,13 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2056
2098
|
return ret;
|
|
2057
2099
|
}, [])]);
|
|
2058
2100
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
2059
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
2101
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _102 => _102.includes, 'call', _103 => _103(localPackage.name)]) && _optionalChain([packageJson, 'access', _104 => _104.devDependencies, 'optionalAccess', _105 => _105[localPackage.name]]) === void 0) {
|
|
2060
2102
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2061
2103
|
}
|
|
2062
2104
|
return ret;
|
|
2063
2105
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
2064
2106
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
2065
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
2107
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _106 => _106.includes, 'call', _107 => _107(localPackage.name)]) && _optionalChain([packageJson, 'access', _108 => _108.dependencies, 'optionalAccess', _109 => _109[localPackage.name]]) === void 0) {
|
|
2066
2108
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2067
2109
|
}
|
|
2068
2110
|
return ret;
|
|
@@ -2075,7 +2117,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2075
2117
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2076
2118
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2077
2119
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2078
|
-
|
|
2120
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
2079
2121
|
"utf8"
|
|
2080
2122
|
);
|
|
2081
2123
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2086,7 +2128,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2086
2128
|
if (distSrc.startsWith("/")) {
|
|
2087
2129
|
distSrc = distSrc.substring(1);
|
|
2088
2130
|
}
|
|
2089
|
-
packageJson.source ??= `${
|
|
2131
|
+
packageJson.source ??= `${_chunkVBX7XODBjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2090
2132
|
}
|
|
2091
2133
|
packageJson.files ??= ["dist/**/*"];
|
|
2092
2134
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2111,16 +2153,16 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2111
2153
|
packageJson.contributors = [packageJson.author];
|
|
2112
2154
|
}
|
|
2113
2155
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2114
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2156
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkVBX7XODBjs.joinPaths.call(void 0, "packages", projectName);
|
|
2115
2157
|
return packageJson;
|
|
2116
2158
|
};
|
|
2117
2159
|
|
|
2118
2160
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2119
|
-
|
|
2161
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2120
2162
|
|
|
2121
2163
|
|
|
2122
2164
|
// ../build-tools/src/utilities/get-env.ts
|
|
2123
|
-
|
|
2165
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2124
2166
|
var getEnv = (builder, options) => {
|
|
2125
2167
|
return {
|
|
2126
2168
|
STORM_BUILD: builder,
|
|
@@ -2135,21 +2177,21 @@ var getEnv = (builder, options) => {
|
|
|
2135
2177
|
};
|
|
2136
2178
|
|
|
2137
2179
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2138
|
-
|
|
2180
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2139
2181
|
|
|
2140
2182
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2141
|
-
|
|
2183
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2142
2184
|
|
|
2143
2185
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2144
|
-
|
|
2186
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2145
2187
|
|
|
2146
2188
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2147
|
-
|
|
2189
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2148
2190
|
|
|
2149
2191
|
|
|
2150
2192
|
|
|
2151
2193
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2152
|
-
|
|
2194
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2153
2195
|
|
|
2154
2196
|
|
|
2155
2197
|
|
|
@@ -2157,7 +2199,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
2157
2199
|
|
|
2158
2200
|
// ../esbuild/src/assets.ts
|
|
2159
2201
|
async function copyBuildAssets(context) {
|
|
2160
|
-
if (_optionalChain([context, 'access',
|
|
2202
|
+
if (_optionalChain([context, 'access', _110 => _110.result, 'optionalAccess', _111 => _111.errors, 'access', _112 => _112.length]) === 0) {
|
|
2161
2203
|
writeDebug(
|
|
2162
2204
|
` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
|
|
2163
2205
|
context.workspaceConfig
|
|
@@ -2178,14 +2220,14 @@ async function copyBuildAssets(context) {
|
|
|
2178
2220
|
}
|
|
2179
2221
|
|
|
2180
2222
|
// ../esbuild/src/clean.ts
|
|
2181
|
-
|
|
2223
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2182
2224
|
|
|
2183
2225
|
async function cleanDirectories(directory) {
|
|
2184
2226
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2185
2227
|
}
|
|
2186
2228
|
|
|
2187
2229
|
// ../esbuild/src/context.ts
|
|
2188
|
-
|
|
2230
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2189
2231
|
|
|
2190
2232
|
|
|
2191
2233
|
|
|
@@ -2196,7 +2238,7 @@ _chunkVVOOG5R3js.init_cjs_shims.call(void 0, );
|
|
|
2196
2238
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2197
2239
|
|
|
2198
2240
|
// ../esbuild/src/config.ts
|
|
2199
|
-
|
|
2241
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2200
2242
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2201
2243
|
assets: [],
|
|
2202
2244
|
platform: "node",
|
|
@@ -2256,7 +2298,7 @@ async function resolveContext(userOptions) {
|
|
|
2256
2298
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2257
2299
|
exitOnError: true
|
|
2258
2300
|
});
|
|
2259
|
-
const projectJsonPath =
|
|
2301
|
+
const projectJsonPath = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2260
2302
|
workspaceRoot3.dir,
|
|
2261
2303
|
projectRoot,
|
|
2262
2304
|
"project.json"
|
|
@@ -2268,14 +2310,14 @@ async function resolveContext(userOptions) {
|
|
|
2268
2310
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2269
2311
|
const projectName = projectJson.name || userOptions.name;
|
|
2270
2312
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2271
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2313
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _113 => _113.projects, 'optionalAccess', _114 => _114[projectName]])) {
|
|
2272
2314
|
throw new Error(
|
|
2273
2315
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
2274
2316
|
);
|
|
2275
2317
|
}
|
|
2276
2318
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2277
2319
|
options.name ??= projectName;
|
|
2278
|
-
const packageJsonPath =
|
|
2320
|
+
const packageJsonPath = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2279
2321
|
workspaceRoot3.dir,
|
|
2280
2322
|
options.projectRoot,
|
|
2281
2323
|
"package.json"
|
|
@@ -2286,7 +2328,7 @@ async function resolveContext(userOptions) {
|
|
|
2286
2328
|
const env = getEnv("esbuild", options);
|
|
2287
2329
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2288
2330
|
const resolvedOptions = {
|
|
2289
|
-
tsconfig:
|
|
2331
|
+
tsconfig: _chunkVBX7XODBjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2290
2332
|
...options,
|
|
2291
2333
|
metafile: userOptions.mode === "development",
|
|
2292
2334
|
clean: false,
|
|
@@ -2312,8 +2354,8 @@ async function resolveContext(userOptions) {
|
|
|
2312
2354
|
projectConfigurations,
|
|
2313
2355
|
projectName,
|
|
2314
2356
|
projectGraph,
|
|
2315
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2316
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2357
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkVBX7XODBjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2358
|
+
outputPath: resolvedOptions.outputPath || _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2317
2359
|
workspaceConfig.workspaceRoot,
|
|
2318
2360
|
"dist",
|
|
2319
2361
|
resolvedOptions.projectRoot
|
|
@@ -2321,19 +2363,27 @@ async function resolveContext(userOptions) {
|
|
|
2321
2363
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
2322
2364
|
};
|
|
2323
2365
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
2366
|
+
if (context.options.verbose) {
|
|
2367
|
+
writeDebug(
|
|
2368
|
+
` \u2699\uFE0F Build options resolved:
|
|
2369
|
+
|
|
2370
|
+
${formatLogMessage(context.options)}`,
|
|
2371
|
+
workspaceConfig
|
|
2372
|
+
);
|
|
2373
|
+
}
|
|
2324
2374
|
return context;
|
|
2325
2375
|
}
|
|
2326
2376
|
|
|
2327
2377
|
// ../esbuild/src/package-json.ts
|
|
2328
|
-
|
|
2378
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2329
2379
|
|
|
2330
2380
|
|
|
2331
2381
|
|
|
2332
2382
|
async function generatePackageJson(context) {
|
|
2333
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2383
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkVBX7XODBjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2334
2384
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2335
2385
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2336
|
-
const packageJsonPath =
|
|
2386
|
+
const packageJsonPath = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2337
2387
|
context.options.projectRoot,
|
|
2338
2388
|
"project.json"
|
|
2339
2389
|
);
|
|
@@ -2341,7 +2391,7 @@ async function generatePackageJson(context) {
|
|
|
2341
2391
|
throw new Error("Cannot find package.json configuration");
|
|
2342
2392
|
}
|
|
2343
2393
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2344
|
-
|
|
2394
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2345
2395
|
context.workspaceConfig.workspaceRoot,
|
|
2346
2396
|
context.options.projectRoot,
|
|
2347
2397
|
"package.json"
|
|
@@ -2447,7 +2497,7 @@ async function generatePackageJson(context) {
|
|
|
2447
2497
|
}
|
|
2448
2498
|
}
|
|
2449
2499
|
await _devkit.writeJsonFile.call(void 0,
|
|
2450
|
-
|
|
2500
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2451
2501
|
packageJson
|
|
2452
2502
|
);
|
|
2453
2503
|
stopwatch();
|
|
@@ -2456,7 +2506,7 @@ async function generatePackageJson(context) {
|
|
|
2456
2506
|
}
|
|
2457
2507
|
|
|
2458
2508
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2459
|
-
|
|
2509
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2460
2510
|
|
|
2461
2511
|
|
|
2462
2512
|
var unusedIgnore = [
|
|
@@ -2488,7 +2538,7 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
2488
2538
|
name: "storm:deps-check",
|
|
2489
2539
|
setup(build3) {
|
|
2490
2540
|
const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
|
|
2491
|
-
const pkgContents =
|
|
2541
|
+
const pkgContents = _chunkRZYNLMJ5js.__require.call(void 0, pkgJsonPath);
|
|
2492
2542
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2493
2543
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2494
2544
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -2539,7 +2589,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2539
2589
|
});
|
|
2540
2590
|
|
|
2541
2591
|
// ../esbuild/src/tsup.ts
|
|
2542
|
-
|
|
2592
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2543
2593
|
var _tsup = require('tsup');
|
|
2544
2594
|
async function executeTsup(context) {
|
|
2545
2595
|
writeDebug(
|
|
@@ -2549,7 +2599,7 @@ async function executeTsup(context) {
|
|
|
2549
2599
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
2550
2600
|
await _tsup.build.call(void 0, {
|
|
2551
2601
|
...context.options,
|
|
2552
|
-
outDir: context.options.distDir ?
|
|
2602
|
+
outDir: context.options.distDir ? _chunkVBX7XODBjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
2553
2603
|
workspaceConfig: context.workspaceConfig
|
|
2554
2604
|
});
|
|
2555
2605
|
stopwatch();
|
|
@@ -2558,7 +2608,7 @@ async function executeTsup(context) {
|
|
|
2558
2608
|
|
|
2559
2609
|
// ../esbuild/src/build.ts
|
|
2560
2610
|
async function reportResults(context) {
|
|
2561
|
-
if (_optionalChain([context, 'access',
|
|
2611
|
+
if (_optionalChain([context, 'access', _115 => _115.result, 'optionalAccess', _116 => _116.errors, 'access', _117 => _117.length]) === 0) {
|
|
2562
2612
|
if (context.result.warnings.length > 0) {
|
|
2563
2613
|
writeWarning(
|
|
2564
2614
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -2569,7 +2619,7 @@ async function reportResults(context) {
|
|
|
2569
2619
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
2570
2620
|
context.workspaceConfig
|
|
2571
2621
|
);
|
|
2572
|
-
} else if (_optionalChain([context, 'access',
|
|
2622
|
+
} else if (_optionalChain([context, 'access', _118 => _118.result, 'optionalAccess', _119 => _119.errors]) && _optionalChain([context, 'access', _120 => _120.result, 'optionalAccess', _121 => _121.errors, 'access', _122 => _122.length]) > 0) {
|
|
2573
2623
|
writeError(
|
|
2574
2624
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
2575
2625
|
context.workspaceConfig
|
|
@@ -2648,16 +2698,16 @@ async function build2(options) {
|
|
|
2648
2698
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2649
2699
|
async function esbuildExecutorFn(options, context, config) {
|
|
2650
2700
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2651
|
-
if (!_optionalChain([context, 'access',
|
|
2701
|
+
if (!_optionalChain([context, 'access', _123 => _123.projectsConfigurations, 'optionalAccess', _124 => _124.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _125 => _125.projectsConfigurations, 'access', _126 => _126.projects, 'access', _127 => _127[context.projectName], 'optionalAccess', _128 => _128.root])) {
|
|
2652
2702
|
throw new Error(
|
|
2653
2703
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
2654
2704
|
);
|
|
2655
2705
|
}
|
|
2656
2706
|
await build2({
|
|
2657
2707
|
...options,
|
|
2658
|
-
projectRoot: _optionalChain([context, 'access',
|
|
2708
|
+
projectRoot: _optionalChain([context, 'access', _129 => _129.projectsConfigurations, 'access', _130 => _130.projects, 'optionalAccess', _131 => _131[context.projectName], 'access', _132 => _132.root]),
|
|
2659
2709
|
name: context.projectName,
|
|
2660
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
2710
|
+
sourceRoot: _optionalChain([context, 'access', _133 => _133.projectsConfigurations, 'access', _134 => _134.projects, 'optionalAccess', _135 => _135[context.projectName], 'optionalAccess', _136 => _136.sourceRoot]),
|
|
2661
2711
|
format: options.format,
|
|
2662
2712
|
platform: options.format
|
|
2663
2713
|
});
|
|
@@ -2682,13 +2732,13 @@ var executor_default6 = withRunExecutor(
|
|
|
2682
2732
|
);
|
|
2683
2733
|
|
|
2684
2734
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2685
|
-
|
|
2735
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2686
2736
|
|
|
2687
2737
|
|
|
2688
2738
|
var _prettier = require('prettier');
|
|
2689
2739
|
|
|
2690
2740
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2691
|
-
|
|
2741
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2692
2742
|
|
|
2693
2743
|
|
|
2694
2744
|
|
|
@@ -2702,22 +2752,22 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
2702
2752
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
2703
2753
|
|
|
2704
2754
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2705
|
-
|
|
2755
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2706
2756
|
|
|
2707
2757
|
var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
|
|
2708
2758
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
2709
2759
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
2710
2760
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
2711
2761
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
2712
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
2762
|
+
if (!_optionalChain([context, 'optionalAccess', _137 => _137.projectName]) || !_optionalChain([context, 'access', _138 => _138.projectsConfigurations, 'optionalAccess', _139 => _139.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2713
2763
|
throw new Error(
|
|
2714
2764
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
2715
2765
|
);
|
|
2716
2766
|
}
|
|
2717
2767
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
2718
2768
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
|
|
2719
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
2720
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
2769
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _140 => _140.projectsConfigurations, 'access', _141 => _141.projects, 'access', _142 => _142[context.projectName], 'optionalAccess', _143 => _143.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
2770
|
+
_nullishCoalesce(_optionalChain([context, 'access', _144 => _144.projectsConfigurations, 'access', _145 => _145.projects, 'access', _146 => _146[context.projectName], 'optionalAccess', _147 => _147.root]), () => ( "./")),
|
|
2721
2771
|
"src"
|
|
2722
2772
|
)))
|
|
2723
2773
|
}).then((result) => {
|
|
@@ -2744,7 +2794,7 @@ var executor_default7 = withRunExecutor(
|
|
|
2744
2794
|
);
|
|
2745
2795
|
|
|
2746
2796
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
2747
|
-
|
|
2797
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2748
2798
|
var _fsextra = require('fs-extra');
|
|
2749
2799
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
2750
2800
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -2784,12 +2834,12 @@ var executor_default8 = withRunExecutor(
|
|
|
2784
2834
|
);
|
|
2785
2835
|
|
|
2786
2836
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
2787
|
-
|
|
2837
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2788
2838
|
|
|
2789
2839
|
var _jiti = require('jiti');
|
|
2790
2840
|
async function unbuildExecutorFn(options, context, config) {
|
|
2791
2841
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
2792
|
-
if (!_optionalChain([context, 'access',
|
|
2842
|
+
if (!_optionalChain([context, 'access', _148 => _148.projectsConfigurations, 'optionalAccess', _149 => _149.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2793
2843
|
throw new Error(
|
|
2794
2844
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
2795
2845
|
);
|
|
@@ -2805,7 +2855,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
2805
2855
|
);
|
|
2806
2856
|
}
|
|
2807
2857
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
2808
|
-
fsCache: config.skipCache ? false :
|
|
2858
|
+
fsCache: config.skipCache ? false : _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2809
2859
|
config.workspaceRoot,
|
|
2810
2860
|
config.directories.cache || "node_modules/.cache/storm",
|
|
2811
2861
|
"jiti"
|
|
@@ -2827,7 +2877,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
2827
2877
|
{
|
|
2828
2878
|
stubOptions: {
|
|
2829
2879
|
jiti: {
|
|
2830
|
-
fsCache: config.skipCache ? false :
|
|
2880
|
+
fsCache: config.skipCache ? false : _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
2831
2881
|
config.workspaceRoot,
|
|
2832
2882
|
config.directories.cache || "node_modules/.cache/storm",
|
|
2833
2883
|
"jiti"
|
|
@@ -2876,10 +2926,10 @@ var executor_default9 = withRunExecutor(
|
|
|
2876
2926
|
);
|
|
2877
2927
|
|
|
2878
2928
|
// ../workspace-tools/generators.ts
|
|
2879
|
-
|
|
2929
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2880
2930
|
|
|
2881
2931
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2882
|
-
|
|
2932
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2883
2933
|
|
|
2884
2934
|
|
|
2885
2935
|
|
|
@@ -2888,7 +2938,7 @@ _chunkVVOOG5R3js.init_cjs_shims.call(void 0, );
|
|
|
2888
2938
|
|
|
2889
2939
|
|
|
2890
2940
|
// ../workspace-tools/src/base/base-generator.ts
|
|
2891
|
-
|
|
2941
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2892
2942
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
2893
2943
|
skipReadingConfig: false
|
|
2894
2944
|
}) => async (tree, _options) => {
|
|
@@ -2908,7 +2958,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
2908
2958
|
);
|
|
2909
2959
|
config = await getConfig(workspaceRoot3);
|
|
2910
2960
|
}
|
|
2911
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2961
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _150 => _150.hooks, 'optionalAccess', _151 => _151.applyDefaultOptions])) {
|
|
2912
2962
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
2913
2963
|
options = await Promise.resolve(
|
|
2914
2964
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -2925,7 +2975,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
2925
2975
|
{ workspaceRoot: tree.root, config },
|
|
2926
2976
|
applyWorkspaceBaseTokens
|
|
2927
2977
|
);
|
|
2928
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2978
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _152 => _152.hooks, 'optionalAccess', _153 => _153.preProcess])) {
|
|
2929
2979
|
writeDebug("Running the preProcess hook...", config);
|
|
2930
2980
|
await Promise.resolve(
|
|
2931
2981
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -2936,15 +2986,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
2936
2986
|
generatorFn(tree, tokenized, config)
|
|
2937
2987
|
);
|
|
2938
2988
|
if (result) {
|
|
2939
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
2989
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _154 => _154.error, 'optionalAccess', _155 => _155.message]) && typeof _optionalChain([result, 'optionalAccess', _156 => _156.error, 'optionalAccess', _157 => _157.message]) === "string" && _optionalChain([result, 'optionalAccess', _158 => _158.error, 'optionalAccess', _159 => _159.name]) && typeof _optionalChain([result, 'optionalAccess', _160 => _160.error, 'optionalAccess', _161 => _161.name]) === "string") {
|
|
2940
2990
|
throw new Error(`The ${name} generator failed to run`, {
|
|
2941
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
2991
|
+
cause: _optionalChain([result, 'optionalAccess', _162 => _162.error])
|
|
2942
2992
|
});
|
|
2943
2993
|
} else if (result.success && result.data) {
|
|
2944
2994
|
return result;
|
|
2945
2995
|
}
|
|
2946
2996
|
}
|
|
2947
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2997
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _163 => _163.hooks, 'optionalAccess', _164 => _164.postProcess])) {
|
|
2948
2998
|
writeDebug("Running the postProcess hook...", config);
|
|
2949
2999
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
2950
3000
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -2972,7 +3022,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
2972
3022
|
};
|
|
2973
3023
|
|
|
2974
3024
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
2975
|
-
|
|
3025
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2976
3026
|
|
|
2977
3027
|
|
|
2978
3028
|
|
|
@@ -2994,7 +3044,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
2994
3044
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
2995
3045
|
|
|
2996
3046
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
2997
|
-
|
|
3047
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
2998
3048
|
var ProjectTagConstants = {
|
|
2999
3049
|
Language: {
|
|
3000
3050
|
TAG_ID: "language",
|
|
@@ -3055,7 +3105,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3055
3105
|
};
|
|
3056
3106
|
|
|
3057
3107
|
// ../workspace-tools/src/utils/versions.ts
|
|
3058
|
-
|
|
3108
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3059
3109
|
var typesNodeVersion = "20.9.0";
|
|
3060
3110
|
var nxVersion = "^18.0.4";
|
|
3061
3111
|
var nodeVersion = "20.11.0";
|
|
@@ -3088,16 +3138,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3088
3138
|
const projectConfig = {
|
|
3089
3139
|
root: normalized.directory,
|
|
3090
3140
|
projectType: "library",
|
|
3091
|
-
sourceRoot:
|
|
3141
|
+
sourceRoot: _chunkVBX7XODBjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3092
3142
|
targets: {
|
|
3093
3143
|
build: {
|
|
3094
3144
|
executor: options.buildExecutor,
|
|
3095
3145
|
outputs: ["{options.outputPath}"],
|
|
3096
3146
|
options: {
|
|
3097
|
-
entry: [
|
|
3147
|
+
entry: [_chunkVBX7XODBjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3098
3148
|
outputPath: getOutputPath(normalized),
|
|
3099
|
-
tsconfig:
|
|
3100
|
-
project:
|
|
3149
|
+
tsconfig: _chunkVBX7XODBjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3150
|
+
project: _chunkVBX7XODBjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3101
3151
|
defaultConfiguration: "production",
|
|
3102
3152
|
platform: "neutral",
|
|
3103
3153
|
assets: [
|
|
@@ -3139,22 +3189,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3139
3189
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3140
3190
|
let repository = {
|
|
3141
3191
|
type: "github",
|
|
3142
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3192
|
+
url: _optionalChain([config, 'optionalAccess', _165 => _165.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _166 => _166.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _167 => _167.namespace]) || _optionalChain([config, 'optionalAccess', _168 => _168.name]) || "repository"}.git`
|
|
3143
3193
|
};
|
|
3144
3194
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3145
3195
|
if (tree.exists("package.json")) {
|
|
3146
3196
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3147
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3197
|
+
if (_optionalChain([packageJson, 'optionalAccess', _169 => _169.repository])) {
|
|
3148
3198
|
repository = packageJson.repository;
|
|
3149
3199
|
}
|
|
3150
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3200
|
+
if (_optionalChain([packageJson, 'optionalAccess', _170 => _170.description])) {
|
|
3151
3201
|
description = packageJson.description;
|
|
3152
3202
|
}
|
|
3153
3203
|
}
|
|
3154
3204
|
if (!normalized.importPath) {
|
|
3155
3205
|
normalized.importPath = normalized.name;
|
|
3156
3206
|
}
|
|
3157
|
-
const packageJsonPath =
|
|
3207
|
+
const packageJsonPath = _chunkVBX7XODBjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3158
3208
|
if (tree.exists(packageJsonPath)) {
|
|
3159
3209
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3160
3210
|
if (!normalized.importPath) {
|
|
@@ -3202,34 +3252,34 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3202
3252
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3203
3253
|
...json,
|
|
3204
3254
|
pnpm: {
|
|
3205
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3255
|
+
..._optionalChain([json, 'optionalAccess', _171 => _171.pnpm]),
|
|
3206
3256
|
overrides: {
|
|
3207
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3257
|
+
..._optionalChain([json, 'optionalAccess', _172 => _172.pnpm, 'optionalAccess', _173 => _173.overrides]),
|
|
3208
3258
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3209
3259
|
}
|
|
3210
3260
|
}
|
|
3211
3261
|
}));
|
|
3212
3262
|
}
|
|
3213
3263
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3214
|
-
|
|
3264
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
3215
3265
|
normalized.projectRoot,
|
|
3216
3266
|
"./src",
|
|
3217
3267
|
`index.${normalized.js ? "js" : "ts"}`
|
|
3218
3268
|
)
|
|
3219
3269
|
]);
|
|
3220
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3221
|
-
|
|
3270
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkVBX7XODBjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3271
|
+
_chunkVBX7XODBjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3222
3272
|
]);
|
|
3223
3273
|
if (tree.exists("package.json")) {
|
|
3224
3274
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3225
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3275
|
+
if (_optionalChain([packageJson, 'optionalAccess', _174 => _174.repository])) {
|
|
3226
3276
|
repository = packageJson.repository;
|
|
3227
3277
|
}
|
|
3228
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3278
|
+
if (_optionalChain([packageJson, 'optionalAccess', _175 => _175.description])) {
|
|
3229
3279
|
description = packageJson.description;
|
|
3230
3280
|
}
|
|
3231
3281
|
}
|
|
3232
|
-
const tsconfigPath =
|
|
3282
|
+
const tsconfigPath = _chunkVBX7XODBjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3233
3283
|
if (tree.exists(tsconfigPath)) {
|
|
3234
3284
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3235
3285
|
json.composite ??= true;
|
|
@@ -3257,38 +3307,38 @@ function getOutputPath(options) {
|
|
|
3257
3307
|
} else {
|
|
3258
3308
|
parts.push(options.projectRoot);
|
|
3259
3309
|
}
|
|
3260
|
-
return
|
|
3310
|
+
return _chunkVBX7XODBjs.joinPaths.call(void 0, ...parts);
|
|
3261
3311
|
}
|
|
3262
3312
|
function createProjectTsConfigJson(tree, options) {
|
|
3263
3313
|
const tsconfig = {
|
|
3264
3314
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3265
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3315
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _176 => _176.tsconfigOptions]), () => ( {})),
|
|
3266
3316
|
compilerOptions: {
|
|
3267
3317
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3268
|
-
outDir:
|
|
3318
|
+
outDir: _chunkVBX7XODBjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3269
3319
|
noEmit: true,
|
|
3270
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3320
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _177 => _177.tsconfigOptions, 'optionalAccess', _178 => _178.compilerOptions]), () => ( {}))
|
|
3271
3321
|
},
|
|
3272
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3322
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _179 => _179.tsconfigOptions, 'optionalAccess', _180 => _180.files]), () => ( []))],
|
|
3273
3323
|
include: [
|
|
3274
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3324
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _181 => _181.tsconfigOptions, 'optionalAccess', _182 => _182.include]), () => ( [])),
|
|
3275
3325
|
"src/**/*.ts",
|
|
3276
3326
|
"src/**/*.js",
|
|
3277
3327
|
"bin/**/*"
|
|
3278
3328
|
],
|
|
3279
3329
|
exclude: [
|
|
3280
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3330
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _183 => _183.tsconfigOptions, 'optionalAccess', _184 => _184.exclude]), () => ( [])),
|
|
3281
3331
|
"jest.config.ts",
|
|
3282
3332
|
"src/**/*.spec.ts",
|
|
3283
3333
|
"src/**/*.test.ts"
|
|
3284
3334
|
]
|
|
3285
3335
|
};
|
|
3286
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3336
|
+
_devkit.writeJson.call(void 0, tree, _chunkVBX7XODBjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3287
3337
|
}
|
|
3288
3338
|
async function normalizeOptions(tree, options, config) {
|
|
3289
3339
|
let importPath = options.importPath;
|
|
3290
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3291
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3340
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _185 => _185.namespace])) {
|
|
3341
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _186 => _186.namespace])}/${options.name}`;
|
|
3292
3342
|
}
|
|
3293
3343
|
if (options.publishable) {
|
|
3294
3344
|
if (!importPath) {
|
|
@@ -3348,7 +3398,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3348
3398
|
|
|
3349
3399
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3350
3400
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3351
|
-
const filesDir =
|
|
3401
|
+
const filesDir = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
3352
3402
|
__dirname,
|
|
3353
3403
|
"src",
|
|
3354
3404
|
"generators",
|
|
@@ -3428,7 +3478,7 @@ var generator_default = withRunGenerator(
|
|
|
3428
3478
|
);
|
|
3429
3479
|
|
|
3430
3480
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3431
|
-
|
|
3481
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3432
3482
|
|
|
3433
3483
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
3434
3484
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3445,8 +3495,8 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3445
3495
|
});
|
|
3446
3496
|
writeTrace(jsonSchema, config);
|
|
3447
3497
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3448
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3449
|
-
_optionalChain([options, 'access',
|
|
3498
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _187 => _187.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3499
|
+
_optionalChain([options, 'access', _188 => _188.outputFile, 'optionalAccess', _189 => _189.startsWith, 'call', _190 => _190("./")]) ? "" : "./"
|
|
3450
3500
|
);
|
|
3451
3501
|
writeTrace(
|
|
3452
3502
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
@@ -3476,7 +3526,7 @@ var generator_default2 = withRunGenerator(
|
|
|
3476
3526
|
);
|
|
3477
3527
|
|
|
3478
3528
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3479
|
-
|
|
3529
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3480
3530
|
|
|
3481
3531
|
|
|
3482
3532
|
|
|
@@ -3504,7 +3554,7 @@ async function initGenerator(tree, schema) {
|
|
|
3504
3554
|
}
|
|
3505
3555
|
|
|
3506
3556
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3507
|
-
|
|
3557
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3508
3558
|
|
|
3509
3559
|
|
|
3510
3560
|
|
|
@@ -3512,7 +3562,7 @@ _chunkVVOOG5R3js.init_cjs_shims.call(void 0, );
|
|
|
3512
3562
|
|
|
3513
3563
|
|
|
3514
3564
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3515
|
-
const filesDir =
|
|
3565
|
+
const filesDir = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
3516
3566
|
__dirname,
|
|
3517
3567
|
"src",
|
|
3518
3568
|
"generators",
|
|
@@ -3564,7 +3614,7 @@ var generator_default3 = withRunGenerator(
|
|
|
3564
3614
|
);
|
|
3565
3615
|
|
|
3566
3616
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3567
|
-
|
|
3617
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3568
3618
|
|
|
3569
3619
|
|
|
3570
3620
|
|
|
@@ -3572,7 +3622,7 @@ _chunkVVOOG5R3js.init_cjs_shims.call(void 0, );
|
|
|
3572
3622
|
|
|
3573
3623
|
|
|
3574
3624
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3575
|
-
const filesDir =
|
|
3625
|
+
const filesDir = _chunkVBX7XODBjs.joinPaths.call(void 0,
|
|
3576
3626
|
__dirname,
|
|
3577
3627
|
"src",
|
|
3578
3628
|
"generators",
|
|
@@ -3626,7 +3676,7 @@ var generator_default4 = withRunGenerator(
|
|
|
3626
3676
|
);
|
|
3627
3677
|
|
|
3628
3678
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
3629
|
-
|
|
3679
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3630
3680
|
|
|
3631
3681
|
|
|
3632
3682
|
|
|
@@ -3865,7 +3915,7 @@ var generator_default5 = withRunGenerator(
|
|
|
3865
3915
|
);
|
|
3866
3916
|
|
|
3867
3917
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
3868
|
-
|
|
3918
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3869
3919
|
|
|
3870
3920
|
|
|
3871
3921
|
|
|
@@ -3878,13 +3928,13 @@ var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-ve
|
|
|
3878
3928
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
3879
3929
|
|
|
3880
3930
|
// ../git-tools/src/index.ts
|
|
3881
|
-
|
|
3931
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3882
3932
|
|
|
3883
3933
|
// ../git-tools/src/commit/config.ts
|
|
3884
|
-
|
|
3934
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3885
3935
|
|
|
3886
3936
|
// ../git-tools/src/types.ts
|
|
3887
|
-
|
|
3937
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
3888
3938
|
var DEFAULT_COMMIT_TYPES = {
|
|
3889
3939
|
/* --- Bumps version when selected --- */
|
|
3890
3940
|
chore: {
|
|
@@ -4082,7 +4132,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
4082
4132
|
};
|
|
4083
4133
|
|
|
4084
4134
|
// ../git-tools/src/release/config.ts
|
|
4085
|
-
|
|
4135
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4086
4136
|
|
|
4087
4137
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4088
4138
|
|
|
@@ -4105,10 +4155,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
4105
4155
|
var _semver3 = require('semver');
|
|
4106
4156
|
|
|
4107
4157
|
// ../workspace-tools/src/base/index.ts
|
|
4108
|
-
|
|
4158
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4109
4159
|
|
|
4110
4160
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4111
|
-
|
|
4161
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4112
4162
|
var _untyped = require('untyped');
|
|
4113
4163
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4114
4164
|
$schema: {
|
|
@@ -4128,7 +4178,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4128
4178
|
});
|
|
4129
4179
|
|
|
4130
4180
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4131
|
-
|
|
4181
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4132
4182
|
|
|
4133
4183
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4134
4184
|
$schema: {
|
|
@@ -4146,7 +4196,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4146
4196
|
});
|
|
4147
4197
|
|
|
4148
4198
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4149
|
-
|
|
4199
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4150
4200
|
|
|
4151
4201
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4152
4202
|
...base_executor_untyped_default,
|
|
@@ -4219,7 +4269,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4219
4269
|
});
|
|
4220
4270
|
|
|
4221
4271
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4222
|
-
|
|
4272
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4223
4273
|
|
|
4224
4274
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4225
4275
|
...base_executor_untyped_default,
|
|
@@ -4317,7 +4367,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4317
4367
|
]
|
|
4318
4368
|
},
|
|
4319
4369
|
$default: "esnext",
|
|
4320
|
-
$resolve: (val = "esnext") => val.toLowerCase()
|
|
4370
|
+
$resolve: (val = "esnext") => typeof val === "string" ? val.toLowerCase() : val
|
|
4321
4371
|
},
|
|
4322
4372
|
format: {
|
|
4323
4373
|
$schema: {
|
|
@@ -4371,7 +4421,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4371
4421
|
});
|
|
4372
4422
|
|
|
4373
4423
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4374
|
-
|
|
4424
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4375
4425
|
|
|
4376
4426
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4377
4427
|
...base_generator_untyped_default,
|
|
@@ -4477,24 +4527,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4477
4527
|
});
|
|
4478
4528
|
|
|
4479
4529
|
// ../workspace-tools/src/types.ts
|
|
4480
|
-
|
|
4530
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4481
4531
|
|
|
4482
4532
|
// ../workspace-tools/src/utils/index.ts
|
|
4483
|
-
|
|
4533
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4484
4534
|
|
|
4485
4535
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4486
|
-
|
|
4536
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4487
4537
|
|
|
4488
4538
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4489
|
-
|
|
4539
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4490
4540
|
|
|
4491
4541
|
|
|
4492
4542
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4493
|
-
|
|
4543
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4494
4544
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4495
4545
|
|
|
4496
4546
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4497
|
-
|
|
4547
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4498
4548
|
|
|
4499
4549
|
|
|
4500
4550
|
|
|
@@ -4522,7 +4572,7 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
4522
4572
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4523
4573
|
|
|
4524
4574
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4525
|
-
|
|
4575
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4526
4576
|
|
|
4527
4577
|
|
|
4528
4578
|
|
|
@@ -4530,14 +4580,14 @@ _chunkVVOOG5R3js.init_cjs_shims.call(void 0, );
|
|
|
4530
4580
|
|
|
4531
4581
|
|
|
4532
4582
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4533
|
-
|
|
4583
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4534
4584
|
|
|
4535
4585
|
|
|
4536
4586
|
|
|
4537
4587
|
|
|
4538
4588
|
|
|
4539
4589
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4540
|
-
|
|
4590
|
+
_chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );
|
|
4541
4591
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
4542
4592
|
|
|
4543
4593
|
// src/generators/init/generator.ts
|