@storm-software/projen 0.15.43 → 0.15.46
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 +42 -0
- package/README.md +2 -1
- package/dist/{chunk-5UXDEQBC.mjs → chunk-4ZPSQCOZ.mjs} +1 -1
- package/dist/{chunk-PQKN2KBC.mjs → chunk-6GPGD7JA.mjs} +1 -1
- package/dist/{chunk-MWIFWHR4.js → chunk-7XKBQKWN.js} +2 -2
- package/dist/{chunk-ULH77QLV.mjs → chunk-AGHTPA2Y.mjs} +2 -2
- package/dist/{chunk-5EYS5COY.js → chunk-D3YKB7J7.js} +231 -227
- package/dist/{chunk-LP4I3FEY.js → chunk-IJDMYMA3.js} +2 -2
- package/dist/{chunk-6B5O7UU7.mjs → chunk-LSBJN6NP.mjs} +10 -6
- package/dist/{chunk-KFR27Y3K.js → chunk-NZBLT23D.js} +3 -3
- package/dist/chunk-PJBUP6EY.js +6 -0
- package/dist/{chunk-IYQFGVQK.mjs → chunk-T3OIAZKV.mjs} +1 -1
- 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 +6 -6
- package/dist/chunk-3MCIDYYV.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 _chunkIJDMYMA3js = require('./chunk-IJDMYMA3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7XKBQKWNjs = require('./chunk-7XKBQKWN.js');
|
|
9
9
|
|
|
10
10
|
// src/generators/init/generator.ts
|
|
11
|
-
|
|
11
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -17,27 +17,27 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
|
17
17
|
var _devkit = require('@nx/devkit');
|
|
18
18
|
|
|
19
19
|
// ../workspace-tools/index.ts
|
|
20
|
-
|
|
20
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
21
21
|
|
|
22
22
|
// ../workspace-tools/executors.ts
|
|
23
|
-
|
|
23
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
24
24
|
|
|
25
25
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
26
|
-
|
|
26
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
|
|
28
28
|
// ../workspace-tools/src/base/base-executor.ts
|
|
29
|
-
|
|
29
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
30
30
|
|
|
31
31
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
32
|
-
|
|
32
|
+
_chunk7XKBQKWNjs.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
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
38
38
|
|
|
39
39
|
// ../config-tools/src/types.ts
|
|
40
|
-
|
|
40
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
41
41
|
var LogLevel = {
|
|
42
42
|
SILENT: 0,
|
|
43
43
|
FATAL: 10,
|
|
@@ -62,13 +62,13 @@ var LogLevelLabel = {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
65
|
-
|
|
65
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
66
66
|
|
|
67
67
|
// ../config/src/index.ts
|
|
68
|
-
|
|
68
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
69
69
|
|
|
70
70
|
// ../config/src/constants.ts
|
|
71
|
-
|
|
71
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
72
72
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
73
73
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
74
74
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -90,10 +90,10 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
90
90
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
91
91
|
|
|
92
92
|
// ../config/src/define-config.ts
|
|
93
|
-
|
|
93
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
94
94
|
|
|
95
95
|
// ../config/src/schema.ts
|
|
96
|
-
|
|
96
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
97
97
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod); var z2 = _interopRequireWildcard(_zod);
|
|
98
98
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
99
99
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
@@ -313,7 +313,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
313
313
|
);
|
|
314
314
|
|
|
315
315
|
// ../config/src/types.ts
|
|
316
|
-
|
|
316
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
317
317
|
var COLOR_KEYS = [
|
|
318
318
|
"dark",
|
|
319
319
|
"light",
|
|
@@ -338,10 +338,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
|
|
|
338
338
|
var _path = require('path'); var path3 = _interopRequireWildcard(_path);
|
|
339
339
|
|
|
340
340
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
341
|
-
|
|
341
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
342
342
|
|
|
343
343
|
// ../config-tools/src/utilities/find-up.ts
|
|
344
|
-
|
|
344
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -410,11 +410,11 @@ var rootDirectories = [
|
|
|
410
410
|
];
|
|
411
411
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
412
412
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
413
|
-
return
|
|
413
|
+
return _chunkIJDMYMA3js.correctPaths.call(void 0,
|
|
414
414
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
|
-
return
|
|
417
|
+
return _chunkIJDMYMA3js.correctPaths.call(void 0,
|
|
418
418
|
findFolderUp(
|
|
419
419
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
420
420
|
rootFiles,
|
|
@@ -475,7 +475,7 @@ async function getPackageJsonConfig(root) {
|
|
|
475
475
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
476
476
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
477
477
|
const file = await _promises.readFile.call(void 0,
|
|
478
|
-
|
|
478
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
479
479
|
"utf8"
|
|
480
480
|
);
|
|
481
481
|
if (file) {
|
|
@@ -549,21 +549,25 @@ function applyDefaultConfig(config) {
|
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
// ../config-tools/src/logger/chalk.ts
|
|
552
|
-
|
|
552
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
553
553
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
554
554
|
var chalkDefault = {
|
|
555
555
|
hex: (_) => (message) => message,
|
|
556
556
|
bgHex: (_) => ({
|
|
557
|
-
whiteBright: (message) => message
|
|
557
|
+
whiteBright: (message) => message,
|
|
558
|
+
white: (message) => message
|
|
558
559
|
}),
|
|
560
|
+
white: (message) => message,
|
|
559
561
|
whiteBright: (message) => message,
|
|
560
562
|
gray: (message) => message,
|
|
561
563
|
bold: {
|
|
562
564
|
hex: (_) => (message) => message,
|
|
563
565
|
bgHex: (_) => ({
|
|
564
|
-
whiteBright: (message) => message
|
|
566
|
+
whiteBright: (message) => message,
|
|
567
|
+
white: (message) => message
|
|
565
568
|
}),
|
|
566
|
-
whiteBright: (message) => message
|
|
569
|
+
whiteBright: (message) => message,
|
|
570
|
+
white: (message) => message
|
|
567
571
|
},
|
|
568
572
|
dim: {
|
|
569
573
|
hex: (_) => (message) => message,
|
|
@@ -572,17 +576,17 @@ var chalkDefault = {
|
|
|
572
576
|
};
|
|
573
577
|
var getChalk = () => {
|
|
574
578
|
let _chalk = _chalk3.default;
|
|
575
|
-
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])) {
|
|
579
|
+
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]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
|
|
576
580
|
_chalk = chalkDefault;
|
|
577
581
|
}
|
|
578
582
|
return _chalk;
|
|
579
583
|
};
|
|
580
584
|
|
|
581
585
|
// ../config-tools/src/logger/console-icons.ts
|
|
582
|
-
|
|
586
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
583
587
|
|
|
584
588
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
585
|
-
|
|
589
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
586
590
|
function isUnicodeSupported() {
|
|
587
591
|
if (process.platform !== "win32") {
|
|
588
592
|
return process.env.TERM !== "linux";
|
|
@@ -607,13 +611,13 @@ var CONSOLE_ICONS = {
|
|
|
607
611
|
};
|
|
608
612
|
|
|
609
613
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
610
|
-
|
|
614
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
611
615
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
612
616
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
613
617
|
};
|
|
614
618
|
|
|
615
619
|
// ../config-tools/src/logger/get-log-level.ts
|
|
616
|
-
|
|
620
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
617
621
|
var getLogLevel = (label) => {
|
|
618
622
|
switch (label) {
|
|
619
623
|
case "all":
|
|
@@ -666,7 +670,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
666
670
|
|
|
667
671
|
// ../config-tools/src/logger/console.ts
|
|
668
672
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
669
|
-
const colors = !_optionalChain([config, 'access',
|
|
673
|
+
const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
670
674
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
671
675
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
672
676
|
return (_) => {
|
|
@@ -782,14 +786,14 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
782
786
|
};
|
|
783
787
|
var _isFunction = (value) => {
|
|
784
788
|
try {
|
|
785
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
789
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
|
|
786
790
|
} catch (e) {
|
|
787
791
|
return false;
|
|
788
792
|
}
|
|
789
793
|
};
|
|
790
794
|
|
|
791
795
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
792
|
-
|
|
796
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
793
797
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
794
798
|
let result = option;
|
|
795
799
|
if (!result) {
|
|
@@ -802,7 +806,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
802
806
|
if (result.includes(`{${optionKey}}`)) {
|
|
803
807
|
result = result.replaceAll(
|
|
804
808
|
`{${optionKey}}`,
|
|
805
|
-
_optionalChain([tokenParams, 'optionalAccess',
|
|
809
|
+
_optionalChain([tokenParams, 'optionalAccess', _31 => _31[optionKey]]) || ""
|
|
806
810
|
);
|
|
807
811
|
}
|
|
808
812
|
}
|
|
@@ -824,7 +828,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
824
828
|
if (result.includes("{workspaceRoot}")) {
|
|
825
829
|
result = result.replaceAll(
|
|
826
830
|
"{workspaceRoot}",
|
|
827
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access',
|
|
831
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _32 => _32.config, 'optionalAccess', _33 => _33.workspaceRoot]))), () => ( findWorkspaceRoot()))
|
|
828
832
|
);
|
|
829
833
|
}
|
|
830
834
|
return result;
|
|
@@ -869,10 +873,10 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
869
873
|
cwd: workspacePath,
|
|
870
874
|
packageJson: true,
|
|
871
875
|
name: fileName,
|
|
872
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
876
|
+
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
873
877
|
jitiOptions: {
|
|
874
878
|
debug: false,
|
|
875
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
879
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
876
880
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
877
881
|
"jiti"
|
|
878
882
|
)
|
|
@@ -883,10 +887,10 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
883
887
|
cwd: workspacePath,
|
|
884
888
|
packageJson: true,
|
|
885
889
|
name: fileName,
|
|
886
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
890
|
+
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
887
891
|
jitiOptions: {
|
|
888
892
|
debug: false,
|
|
889
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
893
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
890
894
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
891
895
|
"jiti"
|
|
892
896
|
)
|
|
@@ -917,7 +921,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
917
921
|
)
|
|
918
922
|
);
|
|
919
923
|
for (const result2 of results) {
|
|
920
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
924
|
+
if (_optionalChain([result2, 'optionalAccess', _38 => _38.config]) && _optionalChain([result2, 'optionalAccess', _39 => _39.configFile]) && Object.keys(result2.config).length > 0) {
|
|
921
925
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
922
926
|
writeTrace(
|
|
923
927
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
@@ -938,11 +942,11 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
938
942
|
};
|
|
939
943
|
|
|
940
944
|
// ../config-tools/src/create-storm-config.ts
|
|
941
|
-
|
|
945
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
942
946
|
|
|
943
947
|
|
|
944
948
|
// ../config-tools/src/env/get-env.ts
|
|
945
|
-
|
|
949
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
946
950
|
var getExtensionEnv = (extensionName) => {
|
|
947
951
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
948
952
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1000,15 +1004,15 @@ var getConfigEnv = () => {
|
|
|
1000
1004
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1001
1005
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1002
1006
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1003
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
1004
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1007
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
1008
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1005
1009
|
directories: {
|
|
1006
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1007
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1008
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1009
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1010
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1011
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1010
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1011
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1012
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1013
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1014
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1015
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkIJDMYMA3js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1012
1016
|
},
|
|
1013
1017
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1014
1018
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1125,20 +1129,20 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
1125
1129
|
};
|
|
1126
1130
|
|
|
1127
1131
|
// ../config-tools/src/env/set-env.ts
|
|
1128
|
-
|
|
1132
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1129
1133
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1130
1134
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1131
1135
|
if (extension[key]) {
|
|
1132
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
1136
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _40 => _40.replace, 'call', _41 => _41(
|
|
1133
1137
|
/([A-Z])+/g,
|
|
1134
|
-
(input) => input ? _optionalChain([input, 'access',
|
|
1135
|
-
), 'access',
|
|
1138
|
+
(input) => input ? _optionalChain([input, 'access', _42 => _42[0], 'optionalAccess', _43 => _43.toUpperCase, 'call', _44 => _44()]) + input.slice(1) : ""
|
|
1139
|
+
), 'access', _45 => _45.split, 'call', _46 => _46(/(?=[A-Z])|[.\-\s_]/), 'access', _47 => _47.map, 'call', _48 => _48((x) => x.toLowerCase())]), () => ( []));
|
|
1136
1140
|
let extensionKey;
|
|
1137
1141
|
if (result.length === 0) {
|
|
1138
1142
|
return;
|
|
1139
1143
|
}
|
|
1140
1144
|
if (result.length === 1) {
|
|
1141
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
1145
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _49 => _49[0], 'optionalAccess', _50 => _50.toUpperCase, 'call', _51 => _51()]), () => ( ""));
|
|
1142
1146
|
} else {
|
|
1143
1147
|
extensionKey = result.reduce((ret, part) => {
|
|
1144
1148
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -1260,40 +1264,40 @@ var setConfigEnv = (config) => {
|
|
|
1260
1264
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1261
1265
|
}
|
|
1262
1266
|
if (config.configFile) {
|
|
1263
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
1267
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkIJDMYMA3js.correctPaths.call(void 0, config.configFile);
|
|
1264
1268
|
}
|
|
1265
1269
|
if (config.workspaceRoot) {
|
|
1266
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1267
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1268
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1270
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkIJDMYMA3js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1271
|
+
process.env.NX_WORKSPACE_ROOT = _chunkIJDMYMA3js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1272
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkIJDMYMA3js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1269
1273
|
}
|
|
1270
1274
|
if (config.directories) {
|
|
1271
1275
|
if (!config.skipCache && config.directories.cache) {
|
|
1272
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1276
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkIJDMYMA3js.correctPaths.call(void 0,
|
|
1273
1277
|
config.directories.cache
|
|
1274
1278
|
);
|
|
1275
1279
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1276
1280
|
}
|
|
1277
1281
|
if (config.directories.data) {
|
|
1278
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1282
|
+
process.env[`${prefix}DATA_DIR`] = _chunkIJDMYMA3js.correctPaths.call(void 0, config.directories.data);
|
|
1279
1283
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1280
1284
|
}
|
|
1281
1285
|
if (config.directories.config) {
|
|
1282
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1286
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkIJDMYMA3js.correctPaths.call(void 0,
|
|
1283
1287
|
config.directories.config
|
|
1284
1288
|
);
|
|
1285
1289
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1286
1290
|
}
|
|
1287
1291
|
if (config.directories.temp) {
|
|
1288
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1292
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkIJDMYMA3js.correctPaths.call(void 0, config.directories.temp);
|
|
1289
1293
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1290
1294
|
}
|
|
1291
1295
|
if (config.directories.log) {
|
|
1292
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1296
|
+
process.env[`${prefix}LOG_DIR`] = _chunkIJDMYMA3js.correctPaths.call(void 0, config.directories.log);
|
|
1293
1297
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1294
1298
|
}
|
|
1295
1299
|
if (config.directories.build) {
|
|
1296
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1300
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkIJDMYMA3js.correctPaths.call(void 0,
|
|
1297
1301
|
config.directories.build
|
|
1298
1302
|
);
|
|
1299
1303
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1311,7 +1315,7 @@ var setConfigEnv = (config) => {
|
|
|
1311
1315
|
process.env.NODE_ENV = config.mode;
|
|
1312
1316
|
process.env.ENVIRONMENT = config.mode;
|
|
1313
1317
|
}
|
|
1314
|
-
if (_optionalChain([config, 'access',
|
|
1318
|
+
if (_optionalChain([config, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.light]) || _optionalChain([config, 'access', _55 => _55.colors, 'optionalAccess', _56 => _56.base, 'optionalAccess', _57 => _57.dark])) {
|
|
1315
1319
|
for (const key of Object.keys(config.colors)) {
|
|
1316
1320
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1317
1321
|
}
|
|
@@ -1372,7 +1376,7 @@ var setConfigEnv = (config) => {
|
|
|
1372
1376
|
}
|
|
1373
1377
|
};
|
|
1374
1378
|
var setThemeColorConfigEnv = (prefix, config) => {
|
|
1375
|
-
return _optionalChain([config, 'optionalAccess',
|
|
1379
|
+
return _optionalChain([config, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
1376
1380
|
};
|
|
1377
1381
|
var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
1378
1382
|
if (config.dark) {
|
|
@@ -1474,7 +1478,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
1474
1478
|
var _static_cache = void 0;
|
|
1475
1479
|
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
|
|
1476
1480
|
let result;
|
|
1477
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
1481
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _62 => _62.data]) || !_optionalChain([_static_cache, 'optionalAccess', _63 => _63.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1478
1482
|
let _workspaceRoot = workspaceRoot3;
|
|
1479
1483
|
if (!_workspaceRoot) {
|
|
1480
1484
|
_workspaceRoot = findWorkspaceRoot();
|
|
@@ -1505,7 +1509,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
|
|
|
1505
1509
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1506
1510
|
} catch (error) {
|
|
1507
1511
|
throw new Error(
|
|
1508
|
-
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess',
|
|
1512
|
+
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _64 => _64.message]) ? `: ${error.message}` : ""}
|
|
1509
1513
|
|
|
1510
1514
|
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
|
|
1511
1515
|
configInput
|
|
@@ -1562,7 +1566,7 @@ ${formatLogMessage(config)}`,
|
|
|
1562
1566
|
};
|
|
1563
1567
|
|
|
1564
1568
|
// ../config-tools/src/get-config.ts
|
|
1565
|
-
|
|
1569
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1566
1570
|
var getConfig = (workspaceRoot3, skipLogs = false) => {
|
|
1567
1571
|
return loadStormWorkspaceConfig(workspaceRoot3, skipLogs);
|
|
1568
1572
|
};
|
|
@@ -1581,7 +1585,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1581
1585
|
let options = _options;
|
|
1582
1586
|
let config = {};
|
|
1583
1587
|
try {
|
|
1584
|
-
if (!_optionalChain([context, 'access',
|
|
1588
|
+
if (!_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1585
1589
|
throw new Error(
|
|
1586
1590
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1587
1591
|
);
|
|
@@ -1604,7 +1608,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1604
1608
|
);
|
|
1605
1609
|
config = await getConfig(workspaceRoot3);
|
|
1606
1610
|
}
|
|
1607
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1611
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.applyDefaultOptions])) {
|
|
1608
1612
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
1609
1613
|
options = await Promise.resolve(
|
|
1610
1614
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -1632,7 +1636,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1632
1636
|
`,
|
|
1633
1637
|
config
|
|
1634
1638
|
);
|
|
1635
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1639
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _69 => _69.hooks, 'optionalAccess', _70 => _70.preProcess])) {
|
|
1636
1640
|
writeDebug("Running the preProcess hook...", config);
|
|
1637
1641
|
await Promise.resolve(
|
|
1638
1642
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -1640,7 +1644,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1640
1644
|
writeDebug("Completed the preProcess hook", config);
|
|
1641
1645
|
}
|
|
1642
1646
|
const ret = executorFn(tokenized, context, config);
|
|
1643
|
-
if (_isFunction2(_optionalChain([ret, 'optionalAccess',
|
|
1647
|
+
if (_isFunction2(_optionalChain([ret, 'optionalAccess', _71 => _71.next]))) {
|
|
1644
1648
|
const asyncGen = ret;
|
|
1645
1649
|
for await (const iter of asyncGen) {
|
|
1646
1650
|
void iter;
|
|
@@ -1649,7 +1653,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1649
1653
|
const result = await Promise.resolve(
|
|
1650
1654
|
ret
|
|
1651
1655
|
);
|
|
1652
|
-
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess',
|
|
1656
|
+
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) && typeof _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.message]) === "string" && _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) && typeof _optionalChain([result, 'optionalAccess', _78 => _78.error, 'optionalAccess', _79 => _79.name]) === "string")) {
|
|
1653
1657
|
writeTrace(
|
|
1654
1658
|
`Failure determined by the ${name} executor
|
|
1655
1659
|
${formatLogMessage(result)}`,
|
|
@@ -1657,10 +1661,10 @@ ${formatLogMessage(result)}`,
|
|
|
1657
1661
|
);
|
|
1658
1662
|
console.error(result);
|
|
1659
1663
|
throw new Error(`The ${name} executor failed to run`, {
|
|
1660
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1664
|
+
cause: _optionalChain([result, 'optionalAccess', _80 => _80.error])
|
|
1661
1665
|
});
|
|
1662
1666
|
}
|
|
1663
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1667
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
|
|
1664
1668
|
writeDebug("Running the postProcess hook...", config);
|
|
1665
1669
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
1666
1670
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -1690,14 +1694,14 @@ ${formatLogMessage(result)}`,
|
|
|
1690
1694
|
};
|
|
1691
1695
|
var _isFunction2 = (value) => {
|
|
1692
1696
|
try {
|
|
1693
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
1697
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _83 => _83.constructor]) && _optionalChain([value, 'optionalAccess', _84 => _84.call]) && _optionalChain([value, 'optionalAccess', _85 => _85.apply]));
|
|
1694
1698
|
} catch (e) {
|
|
1695
1699
|
return false;
|
|
1696
1700
|
}
|
|
1697
1701
|
};
|
|
1698
1702
|
|
|
1699
1703
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1700
|
-
|
|
1704
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1701
1705
|
|
|
1702
1706
|
|
|
1703
1707
|
|
|
@@ -1758,10 +1762,10 @@ async function cargoCommand(...args) {
|
|
|
1758
1762
|
}
|
|
1759
1763
|
function cargoCommandSync(args = "", options) {
|
|
1760
1764
|
const normalizedOptions = {
|
|
1761
|
-
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1765
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _86 => _86.stdio]), () => ( "inherit")),
|
|
1762
1766
|
env: {
|
|
1763
1767
|
...process.env,
|
|
1764
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1768
|
+
..._optionalChain([options, 'optionalAccess', _87 => _87.env])
|
|
1765
1769
|
}
|
|
1766
1770
|
};
|
|
1767
1771
|
try {
|
|
@@ -1794,7 +1798,7 @@ function cargoMetadata() {
|
|
|
1794
1798
|
}
|
|
1795
1799
|
function runProcess(processCmd, ...args) {
|
|
1796
1800
|
const metadata = cargoMetadata();
|
|
1797
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
1801
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _88 => _88.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
|
|
1798
1802
|
return new Promise((resolve2) => {
|
|
1799
1803
|
if (process.env.VERCEL) {
|
|
1800
1804
|
return resolve2({ success: true });
|
|
@@ -1835,7 +1839,7 @@ var executor_default = withRunExecutor(
|
|
|
1835
1839
|
);
|
|
1836
1840
|
|
|
1837
1841
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1838
|
-
|
|
1842
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1839
1843
|
async function cargoCheckExecutor(options, context) {
|
|
1840
1844
|
const command = buildCargoCommand("check", options, context);
|
|
1841
1845
|
return await cargoCommand(...command);
|
|
@@ -1855,7 +1859,7 @@ var executor_default2 = withRunExecutor(
|
|
|
1855
1859
|
);
|
|
1856
1860
|
|
|
1857
1861
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1858
|
-
|
|
1862
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1859
1863
|
async function cargoClippyExecutor(options, context) {
|
|
1860
1864
|
const command = buildCargoCommand("clippy", options, context);
|
|
1861
1865
|
return await cargoCommand(...command);
|
|
@@ -1876,7 +1880,7 @@ var executor_default3 = withRunExecutor(
|
|
|
1876
1880
|
);
|
|
1877
1881
|
|
|
1878
1882
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1879
|
-
|
|
1883
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1880
1884
|
async function cargoDocExecutor(options, context) {
|
|
1881
1885
|
const opts = { ...options };
|
|
1882
1886
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -1906,7 +1910,7 @@ var executor_default4 = withRunExecutor(
|
|
|
1906
1910
|
);
|
|
1907
1911
|
|
|
1908
1912
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1909
|
-
|
|
1913
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1910
1914
|
async function cargoFormatExecutor(options, context) {
|
|
1911
1915
|
const command = buildCargoCommand("fmt", options, context);
|
|
1912
1916
|
return await cargoCommand(...command);
|
|
@@ -1927,7 +1931,7 @@ var executor_default5 = withRunExecutor(
|
|
|
1927
1931
|
);
|
|
1928
1932
|
|
|
1929
1933
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1930
|
-
|
|
1934
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1931
1935
|
|
|
1932
1936
|
|
|
1933
1937
|
|
|
@@ -1935,21 +1939,21 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
1935
1939
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
1936
1940
|
|
|
1937
1941
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1938
|
-
|
|
1942
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1939
1943
|
|
|
1940
1944
|
// ../esbuild/src/build.ts
|
|
1941
|
-
|
|
1945
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1942
1946
|
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
1943
1947
|
var _globby = require('globby');
|
|
1944
1948
|
|
|
1945
1949
|
// ../esbuild/src/assets.ts
|
|
1946
|
-
|
|
1950
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1947
1951
|
|
|
1948
1952
|
// ../build-tools/src/index.ts
|
|
1949
|
-
|
|
1953
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1950
1954
|
|
|
1951
1955
|
// ../build-tools/src/config.ts
|
|
1952
|
-
|
|
1956
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1953
1957
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
1954
1958
|
*
|
|
1955
1959
|
* \u26A1 Built by Storm Software
|
|
@@ -1960,35 +1964,35 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
1960
1964
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1961
1965
|
|
|
1962
1966
|
// ../build-tools/src/plugins/index.ts
|
|
1963
|
-
|
|
1967
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1964
1968
|
|
|
1965
1969
|
// ../build-tools/src/plugins/analyze.ts
|
|
1966
|
-
|
|
1970
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1967
1971
|
|
|
1968
1972
|
// ../build-tools/src/plugins/swc.ts
|
|
1969
|
-
|
|
1973
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1970
1974
|
var _core = require('@swc/core');
|
|
1971
1975
|
|
|
1972
1976
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1973
|
-
|
|
1977
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1974
1978
|
|
|
1975
1979
|
var _module = require('module');
|
|
1976
1980
|
|
|
1977
1981
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1978
1982
|
|
|
1979
1983
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1980
|
-
|
|
1984
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1981
1985
|
|
|
1982
1986
|
|
|
1983
1987
|
|
|
1984
1988
|
// ../build-tools/src/types.ts
|
|
1985
|
-
|
|
1989
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1986
1990
|
|
|
1987
1991
|
// ../build-tools/src/utilities/index.ts
|
|
1988
|
-
|
|
1992
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1989
1993
|
|
|
1990
1994
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1991
|
-
|
|
1995
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
1992
1996
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
1993
1997
|
var _glob = require('glob');
|
|
1994
1998
|
|
|
@@ -2020,7 +2024,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2020
2024
|
}
|
|
2021
2025
|
writeTrace(
|
|
2022
2026
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2023
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2027
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkIJDMYMA3js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2024
2028
|
config
|
|
2025
2029
|
);
|
|
2026
2030
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2033,17 +2037,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2033
2037
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2034
2038
|
if (includeSrc === true) {
|
|
2035
2039
|
writeDebug(
|
|
2036
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2040
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2037
2041
|
outputPath,
|
|
2038
2042
|
"src"
|
|
2039
2043
|
)}`,
|
|
2040
2044
|
config
|
|
2041
2045
|
);
|
|
2042
2046
|
const files = await _glob.glob.call(void 0, [
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2048
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2049
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2050
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2047
2051
|
]);
|
|
2048
2052
|
await Promise.allSettled(
|
|
2049
2053
|
files.map(
|
|
@@ -2061,7 +2065,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2061
2065
|
};
|
|
2062
2066
|
|
|
2063
2067
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2064
|
-
|
|
2068
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2065
2069
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2066
2070
|
|
|
2067
2071
|
|
|
@@ -2095,11 +2099,11 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2095
2099
|
);
|
|
2096
2100
|
const localPackages = [];
|
|
2097
2101
|
for (const project of projectDependencies.dependencies.filter(
|
|
2098
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access',
|
|
2102
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _89 => _89.node, 'access', _90 => _90.data, 'optionalAccess', _91 => _91.root]) !== projectRoot && _optionalChain([dep, 'access', _92 => _92.node, 'access', _93 => _93.data, 'optionalAccess', _94 => _94.root]) !== workspaceRoot3
|
|
2099
2103
|
)) {
|
|
2100
2104
|
const projectNode = project.node;
|
|
2101
2105
|
if (projectNode.data.root) {
|
|
2102
|
-
const projectPackageJsonPath =
|
|
2106
|
+
const projectPackageJsonPath = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2103
2107
|
workspaceRoot3,
|
|
2104
2108
|
projectNode.data.root,
|
|
2105
2109
|
"package.json"
|
|
@@ -2121,20 +2125,20 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2121
2125
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2122
2126
|
);
|
|
2123
2127
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2124
|
-
|
|
2128
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2125
2129
|
"utf8"
|
|
2126
2130
|
);
|
|
2127
2131
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2128
2132
|
const projectName2 = projectJson.name;
|
|
2129
2133
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2130
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2134
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _95 => _95.projects, 'optionalAccess', _96 => _96[projectName2]])) {
|
|
2131
2135
|
throw new Error(
|
|
2132
2136
|
"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."
|
|
2133
2137
|
);
|
|
2134
2138
|
}
|
|
2135
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
2136
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
2137
|
-
const depPackageJsonPath =
|
|
2139
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName2], 'access', _99 => _99.implicitDependencies, 'optionalAccess', _100 => _100.reduce, 'call', _101 => _101((ret, dep) => {
|
|
2140
|
+
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2141
|
+
const depPackageJsonPath = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2138
2142
|
workspaceRoot3,
|
|
2139
2143
|
projectConfigurations.projects[dep].root,
|
|
2140
2144
|
"package.json"
|
|
@@ -2153,13 +2157,13 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2153
2157
|
return ret;
|
|
2154
2158
|
}, [])]);
|
|
2155
2159
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
2156
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
2160
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _104 => _104.includes, 'call', _105 => _105(localPackage.name)]) && _optionalChain([packageJson, 'access', _106 => _106.devDependencies, 'optionalAccess', _107 => _107[localPackage.name]]) === void 0) {
|
|
2157
2161
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2158
2162
|
}
|
|
2159
2163
|
return ret;
|
|
2160
2164
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
2161
2165
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
2162
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
2166
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _108 => _108.includes, 'call', _109 => _109(localPackage.name)]) && _optionalChain([packageJson, 'access', _110 => _110.dependencies, 'optionalAccess', _111 => _111[localPackage.name]]) === void 0) {
|
|
2163
2167
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2164
2168
|
}
|
|
2165
2169
|
return ret;
|
|
@@ -2172,7 +2176,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2172
2176
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2173
2177
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2174
2178
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2175
|
-
|
|
2179
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
2176
2180
|
"utf8"
|
|
2177
2181
|
);
|
|
2178
2182
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2183,7 +2187,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2183
2187
|
if (distSrc.startsWith("/")) {
|
|
2184
2188
|
distSrc = distSrc.substring(1);
|
|
2185
2189
|
}
|
|
2186
|
-
packageJson.source ??= `${
|
|
2190
|
+
packageJson.source ??= `${_chunkIJDMYMA3js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2187
2191
|
}
|
|
2188
2192
|
packageJson.files ??= ["dist/**/*"];
|
|
2189
2193
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2208,16 +2212,16 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2208
2212
|
packageJson.contributors = [packageJson.author];
|
|
2209
2213
|
}
|
|
2210
2214
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2211
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2215
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkIJDMYMA3js.joinPaths.call(void 0, "packages", projectName);
|
|
2212
2216
|
return packageJson;
|
|
2213
2217
|
};
|
|
2214
2218
|
|
|
2215
2219
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2216
|
-
|
|
2220
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2217
2221
|
|
|
2218
2222
|
|
|
2219
2223
|
// ../build-tools/src/utilities/get-env.ts
|
|
2220
|
-
|
|
2224
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2221
2225
|
var getEnv = (builder, options) => {
|
|
2222
2226
|
return {
|
|
2223
2227
|
STORM_BUILD: builder,
|
|
@@ -2232,21 +2236,21 @@ var getEnv = (builder, options) => {
|
|
|
2232
2236
|
};
|
|
2233
2237
|
|
|
2234
2238
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2235
|
-
|
|
2239
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2236
2240
|
|
|
2237
2241
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2238
|
-
|
|
2242
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2239
2243
|
|
|
2240
2244
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2241
|
-
|
|
2245
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2242
2246
|
|
|
2243
2247
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2244
|
-
|
|
2248
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2245
2249
|
|
|
2246
2250
|
|
|
2247
2251
|
|
|
2248
2252
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2249
|
-
|
|
2253
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2250
2254
|
|
|
2251
2255
|
|
|
2252
2256
|
|
|
@@ -2254,7 +2258,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
2254
2258
|
|
|
2255
2259
|
// ../esbuild/src/assets.ts
|
|
2256
2260
|
async function copyBuildAssets(context) {
|
|
2257
|
-
if (!_optionalChain([context, 'access',
|
|
2261
|
+
if (!_optionalChain([context, 'access', _112 => _112.result, 'optionalAccess', _113 => _113.errors, 'access', _114 => _114.length]) && _optionalChain([context, 'access', _115 => _115.options, 'access', _116 => _116.assets, 'optionalAccess', _117 => _117.length])) {
|
|
2258
2262
|
writeDebug(
|
|
2259
2263
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
2260
2264
|
context.workspaceConfig
|
|
@@ -2275,14 +2279,14 @@ async function copyBuildAssets(context) {
|
|
|
2275
2279
|
}
|
|
2276
2280
|
|
|
2277
2281
|
// ../esbuild/src/clean.ts
|
|
2278
|
-
|
|
2282
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2279
2283
|
|
|
2280
2284
|
async function cleanDirectories(directory) {
|
|
2281
2285
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2282
2286
|
}
|
|
2283
2287
|
|
|
2284
2288
|
// ../esbuild/src/context.ts
|
|
2285
|
-
|
|
2289
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2286
2290
|
|
|
2287
2291
|
|
|
2288
2292
|
|
|
@@ -2293,7 +2297,7 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
|
2293
2297
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2294
2298
|
|
|
2295
2299
|
// ../esbuild/src/config.ts
|
|
2296
|
-
|
|
2300
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2297
2301
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2298
2302
|
platform: "node",
|
|
2299
2303
|
target: "node22",
|
|
@@ -2351,7 +2355,7 @@ async function resolveContext(userOptions) {
|
|
|
2351
2355
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2352
2356
|
exitOnError: true
|
|
2353
2357
|
});
|
|
2354
|
-
const projectJsonPath =
|
|
2358
|
+
const projectJsonPath = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2355
2359
|
workspaceRoot3.dir,
|
|
2356
2360
|
projectRoot,
|
|
2357
2361
|
"project.json"
|
|
@@ -2363,14 +2367,14 @@ async function resolveContext(userOptions) {
|
|
|
2363
2367
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2364
2368
|
const projectName = projectJson.name || userOptions.name;
|
|
2365
2369
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2366
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2370
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _118 => _118.projects, 'optionalAccess', _119 => _119[projectName]])) {
|
|
2367
2371
|
throw new Error(
|
|
2368
2372
|
"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."
|
|
2369
2373
|
);
|
|
2370
2374
|
}
|
|
2371
2375
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2372
2376
|
options.name ??= projectName;
|
|
2373
|
-
const packageJsonPath =
|
|
2377
|
+
const packageJsonPath = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2374
2378
|
workspaceRoot3.dir,
|
|
2375
2379
|
options.projectRoot,
|
|
2376
2380
|
"package.json"
|
|
@@ -2382,7 +2386,7 @@ async function resolveContext(userOptions) {
|
|
|
2382
2386
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2383
2387
|
const resolvedOptions = {
|
|
2384
2388
|
...options,
|
|
2385
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2389
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkIJDMYMA3js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2386
2390
|
metafile: userOptions.mode === "development",
|
|
2387
2391
|
clean: false,
|
|
2388
2392
|
env,
|
|
@@ -2407,8 +2411,8 @@ async function resolveContext(userOptions) {
|
|
|
2407
2411
|
projectConfigurations,
|
|
2408
2412
|
projectName,
|
|
2409
2413
|
projectGraph,
|
|
2410
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2411
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2414
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkIJDMYMA3js.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2415
|
+
outputPath: resolvedOptions.outputPath || _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2412
2416
|
workspaceConfig.workspaceRoot,
|
|
2413
2417
|
"dist",
|
|
2414
2418
|
resolvedOptions.projectRoot
|
|
@@ -2428,15 +2432,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2428
2432
|
}
|
|
2429
2433
|
|
|
2430
2434
|
// ../esbuild/src/package-json.ts
|
|
2431
|
-
|
|
2435
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2432
2436
|
|
|
2433
2437
|
|
|
2434
2438
|
|
|
2435
2439
|
async function generatePackageJson(context) {
|
|
2436
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2440
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkIJDMYMA3js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2437
2441
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2438
2442
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2439
|
-
const packageJsonPath =
|
|
2443
|
+
const packageJsonPath = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2440
2444
|
context.options.projectRoot,
|
|
2441
2445
|
"project.json"
|
|
2442
2446
|
);
|
|
@@ -2444,7 +2448,7 @@ async function generatePackageJson(context) {
|
|
|
2444
2448
|
throw new Error("Cannot find package.json configuration");
|
|
2445
2449
|
}
|
|
2446
2450
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2447
|
-
|
|
2451
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2448
2452
|
context.workspaceConfig.workspaceRoot,
|
|
2449
2453
|
context.options.projectRoot,
|
|
2450
2454
|
"package.json"
|
|
@@ -2550,7 +2554,7 @@ async function generatePackageJson(context) {
|
|
|
2550
2554
|
}
|
|
2551
2555
|
}
|
|
2552
2556
|
await _devkit.writeJsonFile.call(void 0,
|
|
2553
|
-
|
|
2557
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2554
2558
|
packageJson
|
|
2555
2559
|
);
|
|
2556
2560
|
stopwatch();
|
|
@@ -2559,7 +2563,7 @@ async function generatePackageJson(context) {
|
|
|
2559
2563
|
}
|
|
2560
2564
|
|
|
2561
2565
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2562
|
-
|
|
2566
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2563
2567
|
|
|
2564
2568
|
|
|
2565
2569
|
var unusedIgnore = [
|
|
@@ -2591,7 +2595,7 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
2591
2595
|
name: "storm:deps-check",
|
|
2592
2596
|
setup(build3) {
|
|
2593
2597
|
const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
|
|
2594
|
-
const pkgContents =
|
|
2598
|
+
const pkgContents = _chunk7XKBQKWNjs.__require.call(void 0, pkgJsonPath);
|
|
2595
2599
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2596
2600
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2597
2601
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -2642,7 +2646,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2642
2646
|
});
|
|
2643
2647
|
|
|
2644
2648
|
// ../esbuild/src/tsup.ts
|
|
2645
|
-
|
|
2649
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2646
2650
|
var _tsup = require('tsup');
|
|
2647
2651
|
async function executeTsup(context) {
|
|
2648
2652
|
writeDebug(
|
|
@@ -2652,7 +2656,7 @@ async function executeTsup(context) {
|
|
|
2652
2656
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
2653
2657
|
await _tsup.build.call(void 0, {
|
|
2654
2658
|
...context.options,
|
|
2655
|
-
outDir: context.options.distDir ?
|
|
2659
|
+
outDir: context.options.distDir ? _chunkIJDMYMA3js.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
2656
2660
|
workspaceConfig: context.workspaceConfig
|
|
2657
2661
|
});
|
|
2658
2662
|
stopwatch();
|
|
@@ -2661,7 +2665,7 @@ async function executeTsup(context) {
|
|
|
2661
2665
|
|
|
2662
2666
|
// ../esbuild/src/build.ts
|
|
2663
2667
|
async function reportResults(context) {
|
|
2664
|
-
if (_optionalChain([context, 'access',
|
|
2668
|
+
if (_optionalChain([context, 'access', _120 => _120.result, 'optionalAccess', _121 => _121.errors, 'access', _122 => _122.length]) === 0) {
|
|
2665
2669
|
if (context.result.warnings.length > 0) {
|
|
2666
2670
|
writeWarning(
|
|
2667
2671
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -2672,7 +2676,7 @@ async function reportResults(context) {
|
|
|
2672
2676
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
2673
2677
|
context.workspaceConfig
|
|
2674
2678
|
);
|
|
2675
|
-
} else if (_optionalChain([context, 'access',
|
|
2679
|
+
} else if (_optionalChain([context, 'access', _123 => _123.result, 'optionalAccess', _124 => _124.errors]) && _optionalChain([context, 'access', _125 => _125.result, 'optionalAccess', _126 => _126.errors, 'access', _127 => _127.length]) > 0) {
|
|
2676
2680
|
writeError(
|
|
2677
2681
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
2678
2682
|
context.workspaceConfig
|
|
@@ -2751,16 +2755,16 @@ async function build2(options) {
|
|
|
2751
2755
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2752
2756
|
async function esbuildExecutorFn(options, context, config) {
|
|
2753
2757
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2754
|
-
if (!_optionalChain([context, 'access',
|
|
2758
|
+
if (!_optionalChain([context, 'access', _128 => _128.projectsConfigurations, 'optionalAccess', _129 => _129.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _130 => _130.projectsConfigurations, 'access', _131 => _131.projects, 'access', _132 => _132[context.projectName], 'optionalAccess', _133 => _133.root])) {
|
|
2755
2759
|
throw new Error(
|
|
2756
2760
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
2757
2761
|
);
|
|
2758
2762
|
}
|
|
2759
2763
|
await build2({
|
|
2760
2764
|
...options,
|
|
2761
|
-
projectRoot: _optionalChain([context, 'access',
|
|
2765
|
+
projectRoot: _optionalChain([context, 'access', _134 => _134.projectsConfigurations, 'access', _135 => _135.projects, 'optionalAccess', _136 => _136[context.projectName], 'access', _137 => _137.root]),
|
|
2762
2766
|
name: context.projectName,
|
|
2763
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
2767
|
+
sourceRoot: _optionalChain([context, 'access', _138 => _138.projectsConfigurations, 'access', _139 => _139.projects, 'optionalAccess', _140 => _140[context.projectName], 'optionalAccess', _141 => _141.sourceRoot]),
|
|
2764
2768
|
format: options.format,
|
|
2765
2769
|
platform: options.format
|
|
2766
2770
|
});
|
|
@@ -2785,13 +2789,13 @@ var executor_default6 = withRunExecutor(
|
|
|
2785
2789
|
);
|
|
2786
2790
|
|
|
2787
2791
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2788
|
-
|
|
2792
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2789
2793
|
|
|
2790
2794
|
|
|
2791
2795
|
var _prettier = require('prettier');
|
|
2792
2796
|
|
|
2793
2797
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
2794
|
-
|
|
2798
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2795
2799
|
|
|
2796
2800
|
|
|
2797
2801
|
|
|
@@ -2803,7 +2807,7 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
|
2803
2807
|
|
|
2804
2808
|
|
|
2805
2809
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
2806
|
-
|
|
2810
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2807
2811
|
var ProjectTagConstants = {
|
|
2808
2812
|
Language: {
|
|
2809
2813
|
TAG_ID: "language",
|
|
@@ -2864,7 +2868,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
2864
2868
|
};
|
|
2865
2869
|
|
|
2866
2870
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2867
|
-
|
|
2871
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2868
2872
|
|
|
2869
2873
|
|
|
2870
2874
|
|
|
@@ -2878,22 +2882,22 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
2878
2882
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
2879
2883
|
|
|
2880
2884
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2881
|
-
|
|
2885
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2882
2886
|
|
|
2883
2887
|
var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
|
|
2884
2888
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
2885
2889
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
2886
2890
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
2887
2891
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
2888
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
2892
|
+
if (!_optionalChain([context, 'optionalAccess', _142 => _142.projectName]) || !_optionalChain([context, 'access', _143 => _143.projectsConfigurations, 'optionalAccess', _144 => _144.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2889
2893
|
throw new Error(
|
|
2890
2894
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
2891
2895
|
);
|
|
2892
2896
|
}
|
|
2893
2897
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
2894
2898
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
|
|
2895
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
2896
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
2899
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _145 => _145.projectsConfigurations, 'access', _146 => _146.projects, 'access', _147 => _147[context.projectName], 'optionalAccess', _148 => _148.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
2900
|
+
_nullishCoalesce(_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context.projectName], 'optionalAccess', _152 => _152.root]), () => ( "./")),
|
|
2897
2901
|
"src"
|
|
2898
2902
|
)))
|
|
2899
2903
|
}).then((result) => {
|
|
@@ -2920,7 +2924,7 @@ var executor_default7 = withRunExecutor(
|
|
|
2920
2924
|
);
|
|
2921
2925
|
|
|
2922
2926
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
2923
|
-
|
|
2927
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2924
2928
|
var _fsextra = require('fs-extra');
|
|
2925
2929
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
2926
2930
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -2960,12 +2964,12 @@ var executor_default8 = withRunExecutor(
|
|
|
2960
2964
|
);
|
|
2961
2965
|
|
|
2962
2966
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
2963
|
-
|
|
2967
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
2964
2968
|
|
|
2965
2969
|
var _jiti = require('jiti');
|
|
2966
2970
|
async function unbuildExecutorFn(options, context, config) {
|
|
2967
2971
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
2968
|
-
if (!_optionalChain([context, 'access',
|
|
2972
|
+
if (!_optionalChain([context, 'access', _153 => _153.projectsConfigurations, 'optionalAccess', _154 => _154.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2969
2973
|
throw new Error(
|
|
2970
2974
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
2971
2975
|
);
|
|
@@ -2981,7 +2985,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
2981
2985
|
);
|
|
2982
2986
|
}
|
|
2983
2987
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
2984
|
-
fsCache: config.skipCache ? false :
|
|
2988
|
+
fsCache: config.skipCache ? false : _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
2985
2989
|
config.workspaceRoot,
|
|
2986
2990
|
config.directories.cache || "node_modules/.cache/storm",
|
|
2987
2991
|
"jiti"
|
|
@@ -3003,7 +3007,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3003
3007
|
{
|
|
3004
3008
|
stubOptions: {
|
|
3005
3009
|
jiti: {
|
|
3006
|
-
fsCache: config.skipCache ? false :
|
|
3010
|
+
fsCache: config.skipCache ? false : _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
3007
3011
|
config.workspaceRoot,
|
|
3008
3012
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3009
3013
|
"jiti"
|
|
@@ -3052,10 +3056,10 @@ var executor_default9 = withRunExecutor(
|
|
|
3052
3056
|
);
|
|
3053
3057
|
|
|
3054
3058
|
// ../workspace-tools/generators.ts
|
|
3055
|
-
|
|
3059
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3056
3060
|
|
|
3057
3061
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3058
|
-
|
|
3062
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3059
3063
|
|
|
3060
3064
|
|
|
3061
3065
|
|
|
@@ -3064,7 +3068,7 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
|
3064
3068
|
|
|
3065
3069
|
|
|
3066
3070
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3067
|
-
|
|
3071
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3068
3072
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3069
3073
|
skipReadingConfig: false
|
|
3070
3074
|
}) => async (tree, _options) => {
|
|
@@ -3084,7 +3088,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
3084
3088
|
);
|
|
3085
3089
|
config = await getConfig(workspaceRoot3);
|
|
3086
3090
|
}
|
|
3087
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3091
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _155 => _155.hooks, 'optionalAccess', _156 => _156.applyDefaultOptions])) {
|
|
3088
3092
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
3089
3093
|
options = await Promise.resolve(
|
|
3090
3094
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -3101,7 +3105,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3101
3105
|
{ workspaceRoot: tree.root, config },
|
|
3102
3106
|
applyWorkspaceBaseTokens
|
|
3103
3107
|
);
|
|
3104
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3108
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _157 => _157.hooks, 'optionalAccess', _158 => _158.preProcess])) {
|
|
3105
3109
|
writeDebug("Running the preProcess hook...", config);
|
|
3106
3110
|
await Promise.resolve(
|
|
3107
3111
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -3112,15 +3116,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3112
3116
|
generatorFn(tree, tokenized, config)
|
|
3113
3117
|
);
|
|
3114
3118
|
if (result) {
|
|
3115
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
3119
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _159 => _159.error, 'optionalAccess', _160 => _160.message]) && typeof _optionalChain([result, 'optionalAccess', _161 => _161.error, 'optionalAccess', _162 => _162.message]) === "string" && _optionalChain([result, 'optionalAccess', _163 => _163.error, 'optionalAccess', _164 => _164.name]) && typeof _optionalChain([result, 'optionalAccess', _165 => _165.error, 'optionalAccess', _166 => _166.name]) === "string") {
|
|
3116
3120
|
throw new Error(`The ${name} generator failed to run`, {
|
|
3117
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
3121
|
+
cause: _optionalChain([result, 'optionalAccess', _167 => _167.error])
|
|
3118
3122
|
});
|
|
3119
3123
|
} else if (result.success && result.data) {
|
|
3120
3124
|
return result;
|
|
3121
3125
|
}
|
|
3122
3126
|
}
|
|
3123
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3127
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _168 => _168.hooks, 'optionalAccess', _169 => _169.postProcess])) {
|
|
3124
3128
|
writeDebug("Running the postProcess hook...", config);
|
|
3125
3129
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
3126
3130
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -3148,7 +3152,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3148
3152
|
};
|
|
3149
3153
|
|
|
3150
3154
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3151
|
-
|
|
3155
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3152
3156
|
|
|
3153
3157
|
|
|
3154
3158
|
|
|
@@ -3170,7 +3174,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3170
3174
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3171
3175
|
|
|
3172
3176
|
// ../workspace-tools/src/utils/versions.ts
|
|
3173
|
-
|
|
3177
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3174
3178
|
var typesNodeVersion = "20.9.0";
|
|
3175
3179
|
var nxVersion = "^18.0.4";
|
|
3176
3180
|
var nodeVersion = "20.11.0";
|
|
@@ -3203,16 +3207,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3203
3207
|
const projectConfig = {
|
|
3204
3208
|
root: normalized.directory,
|
|
3205
3209
|
projectType: "library",
|
|
3206
|
-
sourceRoot:
|
|
3210
|
+
sourceRoot: _chunkIJDMYMA3js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3207
3211
|
targets: {
|
|
3208
3212
|
build: {
|
|
3209
3213
|
executor: options.buildExecutor,
|
|
3210
3214
|
outputs: ["{options.outputPath}"],
|
|
3211
3215
|
options: {
|
|
3212
|
-
entry: [
|
|
3216
|
+
entry: [_chunkIJDMYMA3js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3213
3217
|
outputPath: getOutputPath(normalized),
|
|
3214
|
-
tsconfig:
|
|
3215
|
-
project:
|
|
3218
|
+
tsconfig: _chunkIJDMYMA3js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3219
|
+
project: _chunkIJDMYMA3js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3216
3220
|
defaultConfiguration: "production",
|
|
3217
3221
|
platform: "neutral",
|
|
3218
3222
|
assets: [
|
|
@@ -3254,22 +3258,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3254
3258
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3255
3259
|
let repository = {
|
|
3256
3260
|
type: "github",
|
|
3257
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3261
|
+
url: _optionalChain([config, 'optionalAccess', _170 => _170.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _171 => _171.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _172 => _172.organization]) : _optionalChain([config, 'optionalAccess', _173 => _173.organization, 'optionalAccess', _174 => _174.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _175 => _175.namespace]) || _optionalChain([config, 'optionalAccess', _176 => _176.name]) || "repository"}.git`
|
|
3258
3262
|
};
|
|
3259
3263
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3260
3264
|
if (tree.exists("package.json")) {
|
|
3261
3265
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3262
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3266
|
+
if (_optionalChain([packageJson, 'optionalAccess', _177 => _177.repository])) {
|
|
3263
3267
|
repository = packageJson.repository;
|
|
3264
3268
|
}
|
|
3265
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3269
|
+
if (_optionalChain([packageJson, 'optionalAccess', _178 => _178.description])) {
|
|
3266
3270
|
description = packageJson.description;
|
|
3267
3271
|
}
|
|
3268
3272
|
}
|
|
3269
3273
|
if (!normalized.importPath) {
|
|
3270
3274
|
normalized.importPath = normalized.name;
|
|
3271
3275
|
}
|
|
3272
|
-
const packageJsonPath =
|
|
3276
|
+
const packageJsonPath = _chunkIJDMYMA3js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3273
3277
|
if (tree.exists(packageJsonPath)) {
|
|
3274
3278
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3275
3279
|
if (!normalized.importPath) {
|
|
@@ -3317,34 +3321,34 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3317
3321
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3318
3322
|
...json,
|
|
3319
3323
|
pnpm: {
|
|
3320
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3324
|
+
..._optionalChain([json, 'optionalAccess', _179 => _179.pnpm]),
|
|
3321
3325
|
overrides: {
|
|
3322
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3326
|
+
..._optionalChain([json, 'optionalAccess', _180 => _180.pnpm, 'optionalAccess', _181 => _181.overrides]),
|
|
3323
3327
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3324
3328
|
}
|
|
3325
3329
|
}
|
|
3326
3330
|
}));
|
|
3327
3331
|
}
|
|
3328
3332
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3329
|
-
|
|
3333
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
3330
3334
|
normalized.projectRoot,
|
|
3331
3335
|
"./src",
|
|
3332
3336
|
`index.${normalized.js ? "js" : "ts"}`
|
|
3333
3337
|
)
|
|
3334
3338
|
]);
|
|
3335
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3336
|
-
|
|
3339
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkIJDMYMA3js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3340
|
+
_chunkIJDMYMA3js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3337
3341
|
]);
|
|
3338
3342
|
if (tree.exists("package.json")) {
|
|
3339
3343
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3340
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3344
|
+
if (_optionalChain([packageJson, 'optionalAccess', _182 => _182.repository])) {
|
|
3341
3345
|
repository = packageJson.repository;
|
|
3342
3346
|
}
|
|
3343
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3347
|
+
if (_optionalChain([packageJson, 'optionalAccess', _183 => _183.description])) {
|
|
3344
3348
|
description = packageJson.description;
|
|
3345
3349
|
}
|
|
3346
3350
|
}
|
|
3347
|
-
const tsconfigPath =
|
|
3351
|
+
const tsconfigPath = _chunkIJDMYMA3js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3348
3352
|
if (tree.exists(tsconfigPath)) {
|
|
3349
3353
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3350
3354
|
json.composite ??= true;
|
|
@@ -3372,38 +3376,38 @@ function getOutputPath(options) {
|
|
|
3372
3376
|
} else {
|
|
3373
3377
|
parts.push(options.projectRoot);
|
|
3374
3378
|
}
|
|
3375
|
-
return
|
|
3379
|
+
return _chunkIJDMYMA3js.joinPaths.call(void 0, ...parts);
|
|
3376
3380
|
}
|
|
3377
3381
|
function createProjectTsConfigJson(tree, options) {
|
|
3378
3382
|
const tsconfig = {
|
|
3379
3383
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3380
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3384
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions]), () => ( {})),
|
|
3381
3385
|
compilerOptions: {
|
|
3382
3386
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3383
|
-
outDir:
|
|
3387
|
+
outDir: _chunkIJDMYMA3js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3384
3388
|
noEmit: true,
|
|
3385
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3389
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.compilerOptions]), () => ( {}))
|
|
3386
3390
|
},
|
|
3387
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3391
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _187 => _187.tsconfigOptions, 'optionalAccess', _188 => _188.files]), () => ( []))],
|
|
3388
3392
|
include: [
|
|
3389
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3393
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _189 => _189.tsconfigOptions, 'optionalAccess', _190 => _190.include]), () => ( [])),
|
|
3390
3394
|
"src/**/*.ts",
|
|
3391
3395
|
"src/**/*.js",
|
|
3392
3396
|
"bin/**/*"
|
|
3393
3397
|
],
|
|
3394
3398
|
exclude: [
|
|
3395
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3399
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _191 => _191.tsconfigOptions, 'optionalAccess', _192 => _192.exclude]), () => ( [])),
|
|
3396
3400
|
"jest.config.ts",
|
|
3397
3401
|
"src/**/*.spec.ts",
|
|
3398
3402
|
"src/**/*.test.ts"
|
|
3399
3403
|
]
|
|
3400
3404
|
};
|
|
3401
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3405
|
+
_devkit.writeJson.call(void 0, tree, _chunkIJDMYMA3js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3402
3406
|
}
|
|
3403
3407
|
async function normalizeOptions(tree, options, config) {
|
|
3404
3408
|
let importPath = options.importPath;
|
|
3405
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3406
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3409
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _193 => _193.namespace])) {
|
|
3410
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _194 => _194.namespace])}/${options.name}`;
|
|
3407
3411
|
}
|
|
3408
3412
|
if (options.publishable) {
|
|
3409
3413
|
if (!importPath) {
|
|
@@ -3463,7 +3467,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3463
3467
|
|
|
3464
3468
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3465
3469
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3466
|
-
const filesDir =
|
|
3470
|
+
const filesDir = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
3467
3471
|
__dirname,
|
|
3468
3472
|
"src",
|
|
3469
3473
|
"generators",
|
|
@@ -3543,7 +3547,7 @@ var generator_default = withRunGenerator(
|
|
|
3543
3547
|
);
|
|
3544
3548
|
|
|
3545
3549
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3546
|
-
|
|
3550
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3547
3551
|
|
|
3548
3552
|
|
|
3549
3553
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3568,7 +3572,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3568
3572
|
);
|
|
3569
3573
|
}
|
|
3570
3574
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3571
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3575
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _195 => _195.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3572
3576
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
3573
3577
|
);
|
|
3574
3578
|
writeTrace(
|
|
@@ -3599,7 +3603,7 @@ var generator_default2 = withRunGenerator(
|
|
|
3599
3603
|
);
|
|
3600
3604
|
|
|
3601
3605
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3602
|
-
|
|
3606
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3603
3607
|
|
|
3604
3608
|
|
|
3605
3609
|
|
|
@@ -3627,7 +3631,7 @@ async function initGenerator(tree, schema) {
|
|
|
3627
3631
|
}
|
|
3628
3632
|
|
|
3629
3633
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3630
|
-
|
|
3634
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3631
3635
|
|
|
3632
3636
|
|
|
3633
3637
|
|
|
@@ -3635,7 +3639,7 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
|
3635
3639
|
|
|
3636
3640
|
|
|
3637
3641
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3638
|
-
const filesDir =
|
|
3642
|
+
const filesDir = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
3639
3643
|
__dirname,
|
|
3640
3644
|
"src",
|
|
3641
3645
|
"generators",
|
|
@@ -3687,7 +3691,7 @@ var generator_default3 = withRunGenerator(
|
|
|
3687
3691
|
);
|
|
3688
3692
|
|
|
3689
3693
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3690
|
-
|
|
3694
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3691
3695
|
|
|
3692
3696
|
|
|
3693
3697
|
|
|
@@ -3695,7 +3699,7 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
|
3695
3699
|
|
|
3696
3700
|
|
|
3697
3701
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3698
|
-
const filesDir =
|
|
3702
|
+
const filesDir = _chunkIJDMYMA3js.joinPaths.call(void 0,
|
|
3699
3703
|
__dirname,
|
|
3700
3704
|
"src",
|
|
3701
3705
|
"generators",
|
|
@@ -3749,7 +3753,7 @@ var generator_default4 = withRunGenerator(
|
|
|
3749
3753
|
);
|
|
3750
3754
|
|
|
3751
3755
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
3752
|
-
|
|
3756
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3753
3757
|
|
|
3754
3758
|
|
|
3755
3759
|
|
|
@@ -3988,7 +3992,7 @@ var generator_default5 = withRunGenerator(
|
|
|
3988
3992
|
);
|
|
3989
3993
|
|
|
3990
3994
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
3991
|
-
|
|
3995
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
3992
3996
|
|
|
3993
3997
|
|
|
3994
3998
|
|
|
@@ -4001,13 +4005,13 @@ var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-ve
|
|
|
4001
4005
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
4002
4006
|
|
|
4003
4007
|
// ../git-tools/src/index.ts
|
|
4004
|
-
|
|
4008
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4005
4009
|
|
|
4006
4010
|
// ../git-tools/src/commit/config.ts
|
|
4007
|
-
|
|
4011
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4008
4012
|
|
|
4009
4013
|
// ../git-tools/src/types.ts
|
|
4010
|
-
|
|
4014
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4011
4015
|
var COMMIT_TYPES = {
|
|
4012
4016
|
/* --- Bumps version when selected --- */
|
|
4013
4017
|
"chore": {
|
|
@@ -4205,7 +4209,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
4205
4209
|
};
|
|
4206
4210
|
|
|
4207
4211
|
// ../git-tools/src/release/config.ts
|
|
4208
|
-
|
|
4212
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4209
4213
|
|
|
4210
4214
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4211
4215
|
|
|
@@ -4228,10 +4232,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
4228
4232
|
var _semver3 = require('semver');
|
|
4229
4233
|
|
|
4230
4234
|
// ../workspace-tools/src/base/index.ts
|
|
4231
|
-
|
|
4235
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4232
4236
|
|
|
4233
4237
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4234
|
-
|
|
4238
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4235
4239
|
var _untyped = require('untyped');
|
|
4236
4240
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4237
4241
|
$schema: {
|
|
@@ -4251,7 +4255,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4251
4255
|
});
|
|
4252
4256
|
|
|
4253
4257
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4254
|
-
|
|
4258
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4255
4259
|
|
|
4256
4260
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4257
4261
|
$schema: {
|
|
@@ -4269,7 +4273,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4269
4273
|
});
|
|
4270
4274
|
|
|
4271
4275
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4272
|
-
|
|
4276
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4273
4277
|
|
|
4274
4278
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4275
4279
|
...base_executor_untyped_default,
|
|
@@ -4342,7 +4346,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4342
4346
|
});
|
|
4343
4347
|
|
|
4344
4348
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4345
|
-
|
|
4349
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4346
4350
|
|
|
4347
4351
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4348
4352
|
...base_executor_untyped_default,
|
|
@@ -4494,7 +4498,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4494
4498
|
});
|
|
4495
4499
|
|
|
4496
4500
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4497
|
-
|
|
4501
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4498
4502
|
|
|
4499
4503
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4500
4504
|
...base_generator_untyped_default,
|
|
@@ -4600,24 +4604,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4600
4604
|
});
|
|
4601
4605
|
|
|
4602
4606
|
// ../workspace-tools/src/types.ts
|
|
4603
|
-
|
|
4607
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4604
4608
|
|
|
4605
4609
|
// ../workspace-tools/src/utils/index.ts
|
|
4606
|
-
|
|
4610
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4607
4611
|
|
|
4608
4612
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4609
|
-
|
|
4613
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4610
4614
|
|
|
4611
4615
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4612
|
-
|
|
4616
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4613
4617
|
|
|
4614
4618
|
|
|
4615
4619
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4616
|
-
|
|
4620
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4617
4621
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4618
4622
|
|
|
4619
4623
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4620
|
-
|
|
4624
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4621
4625
|
|
|
4622
4626
|
|
|
4623
4627
|
|
|
@@ -4645,14 +4649,14 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
4645
4649
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4646
4650
|
|
|
4647
4651
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4648
|
-
|
|
4652
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4649
4653
|
|
|
4650
4654
|
|
|
4651
4655
|
|
|
4652
4656
|
|
|
4653
4657
|
|
|
4654
4658
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4655
|
-
|
|
4659
|
+
_chunk7XKBQKWNjs.init_cjs_shims.call(void 0, );
|
|
4656
4660
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
4657
4661
|
|
|
4658
4662
|
// src/generators/init/generator.ts
|