@storm-software/projen 0.21.263 → 0.21.265
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 +36 -0
- package/README.md +1 -1
- package/dist/{chunk-5LBXV7EV.js → chunk-2454LXZN.js} +2 -2
- package/dist/{chunk-MUJXUCTC.js → chunk-4VJLVS5D.js} +280 -269
- package/dist/{chunk-PS7QMDBU.mjs → chunk-5TRPT4VB.mjs} +1 -1
- package/dist/{chunk-634ILUEB.mjs → chunk-5UYGFG6T.mjs} +1 -1
- package/dist/chunk-DVRU7Z34.js +6 -0
- package/dist/{chunk-VZJHYHPD.js → chunk-FUIH3CPO.js} +3 -3
- package/dist/{chunk-I6MRWTJB.mjs → chunk-RRICWF76.mjs} +33 -22
- package/dist/{chunk-S6LG3LAN.js → chunk-SSLMLODP.js} +2 -2
- package/dist/{chunk-5RZBKVU3.mjs → chunk-SXCMZQXX.mjs} +2 -2
- package/dist/{chunk-U3TLJ3PR.mjs → chunk-XFS5SL5Q.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 +7 -7
- package/dist/chunk-ICQF6LXX.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSSLMLODPjs = require('./chunk-SSLMLODP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2454LXZNjs = require('./chunk-2454LXZN.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
34
34
|
var _c12 = require('c12');
|
|
35
35
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
36
36
|
|
|
37
37
|
// ../config-tools/src/logger/console.ts
|
|
38
|
-
|
|
38
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
39
39
|
var _formatDistanceToNow = require('date-fns/formatDistanceToNow');
|
|
40
40
|
|
|
41
41
|
// ../config-tools/src/types.ts
|
|
42
|
-
|
|
42
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
43
43
|
var LogLevel = {
|
|
44
44
|
SILENT: 0,
|
|
45
45
|
FATAL: 10,
|
|
@@ -66,7 +66,7 @@ var LogLevelLabel = {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
// ../config-tools/src/utilities/colors.ts
|
|
69
|
-
|
|
69
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
70
70
|
var DEFAULT_COLOR_CONFIG = {
|
|
71
71
|
light: {
|
|
72
72
|
background: "#fafafa",
|
|
@@ -136,7 +136,7 @@ function getColor(key, config) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// ../config-tools/src/logger/chalk.ts
|
|
139
|
-
|
|
139
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
140
140
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
141
141
|
var chalkDefault = {
|
|
142
142
|
hex: (_) => (message) => message,
|
|
@@ -170,10 +170,10 @@ var getChalk = () => {
|
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
// ../config-tools/src/logger/console-icons.ts
|
|
173
|
-
|
|
173
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
177
177
|
function isUnicodeSupported() {
|
|
178
178
|
if (process.platform !== "win32") {
|
|
179
179
|
return process.env.TERM !== "linux";
|
|
@@ -199,13 +199,13 @@ var CONSOLE_ICONS = {
|
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
202
|
-
|
|
202
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
203
203
|
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
204
204
|
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
// ../config-tools/src/logger/get-log-level.ts
|
|
208
|
-
|
|
208
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
209
209
|
var getLogLevel = (label) => {
|
|
210
210
|
switch (label) {
|
|
211
211
|
case "all":
|
|
@@ -432,13 +432,13 @@ var _isFunction = (value) => {
|
|
|
432
432
|
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
433
433
|
|
|
434
434
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
435
|
-
|
|
435
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
436
436
|
|
|
437
437
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
438
|
-
|
|
438
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
439
439
|
|
|
440
440
|
// ../config-tools/src/utilities/find-up.ts
|
|
441
|
-
|
|
441
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
442
442
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
443
443
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
444
444
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -505,11 +505,11 @@ var rootDirectories = [
|
|
|
505
505
|
];
|
|
506
506
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
507
507
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
508
|
-
return
|
|
508
|
+
return _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
509
509
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
510
510
|
);
|
|
511
511
|
}
|
|
512
|
-
return
|
|
512
|
+
return _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
513
513
|
findFolderUp(
|
|
514
514
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
515
515
|
rootFiles,
|
|
@@ -604,13 +604,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
604
604
|
};
|
|
605
605
|
|
|
606
606
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
607
|
-
|
|
607
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
608
608
|
|
|
609
609
|
// ../config/src/index.ts
|
|
610
|
-
|
|
610
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
611
611
|
|
|
612
612
|
// ../config/src/constants.ts
|
|
613
|
-
|
|
613
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
614
614
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
615
615
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
616
616
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -629,10 +629,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
629
629
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
630
630
|
|
|
631
631
|
// ../config/src/define-config.ts
|
|
632
|
-
|
|
632
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
633
633
|
|
|
634
634
|
// ../config/src/schema.ts
|
|
635
|
-
|
|
635
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
636
636
|
var _mini = require('zod/v4/mini'); var z = _interopRequireWildcard(_mini);
|
|
637
637
|
var schemaRegistry = z.registry();
|
|
638
638
|
var colorSchema = z.string().check(
|
|
@@ -1202,7 +1202,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1202
1202
|
});
|
|
1203
1203
|
|
|
1204
1204
|
// ../config/src/types.ts
|
|
1205
|
-
|
|
1205
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
1206
1206
|
var COLOR_KEYS = [
|
|
1207
1207
|
"dark",
|
|
1208
1208
|
"light",
|
|
@@ -1236,7 +1236,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1236
1236
|
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1237
1237
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1238
1238
|
const file = await _promises.readFile.call(void 0,
|
|
1239
|
-
|
|
1239
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1240
1240
|
"utf8"
|
|
1241
1241
|
);
|
|
1242
1242
|
if (file) {
|
|
@@ -1309,6 +1309,18 @@ function applyDefaultConfig(config) {
|
|
|
1309
1309
|
return config;
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
+
// ../config-tools/src/utilities/toml.ts
|
|
1313
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
1314
|
+
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1315
|
+
function parseCargoToml(cargoString) {
|
|
1316
|
+
if (!cargoString) {
|
|
1317
|
+
throw new Error("Cargo.toml is empty");
|
|
1318
|
+
}
|
|
1319
|
+
return _jtoml2.default.parse(cargoString, {
|
|
1320
|
+
x: { comment: true }
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1312
1324
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
1313
1325
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
1314
1326
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
@@ -1320,7 +1332,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1320
1332
|
envName: _optionalChain([fileName, 'optionalAccess', _38 => _38.toUpperCase, 'call', _39 => _39()]),
|
|
1321
1333
|
jitiOptions: {
|
|
1322
1334
|
debug: false,
|
|
1323
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1335
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
1324
1336
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1325
1337
|
"jiti"
|
|
1326
1338
|
)
|
|
@@ -1334,7 +1346,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1334
1346
|
envName: _optionalChain([fileName, 'optionalAccess', _40 => _40.toUpperCase, 'call', _41 => _41()]),
|
|
1335
1347
|
jitiOptions: {
|
|
1336
1348
|
debug: false,
|
|
1337
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1349
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
1338
1350
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1339
1351
|
"jiti"
|
|
1340
1352
|
)
|
|
@@ -1386,12 +1398,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1386
1398
|
};
|
|
1387
1399
|
|
|
1388
1400
|
// ../config-tools/src/create-storm-config.ts
|
|
1389
|
-
|
|
1401
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
1390
1402
|
|
|
1391
1403
|
|
|
1392
1404
|
|
|
1393
1405
|
// ../config-tools/src/env/get-env.ts
|
|
1394
|
-
|
|
1406
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
1395
1407
|
var getExtensionEnv = (extensionName) => {
|
|
1396
1408
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1397
1409
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1453,15 +1465,15 @@ var getConfigEnv = () => {
|
|
|
1453
1465
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1454
1466
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1455
1467
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1456
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1457
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1468
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1469
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1458
1470
|
directories: {
|
|
1459
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1460
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1461
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1462
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1463
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1464
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1471
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1472
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1473
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1474
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1475
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1476
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkSSLMLODPjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1465
1477
|
},
|
|
1466
1478
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1467
1479
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1608,7 +1620,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1608
1620
|
};
|
|
1609
1621
|
|
|
1610
1622
|
// ../config-tools/src/env/set-env.ts
|
|
1611
|
-
|
|
1623
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
1612
1624
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1613
1625
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1614
1626
|
if (extension[key]) {
|
|
@@ -1756,42 +1768,42 @@ var setConfigEnv = (config) => {
|
|
|
1756
1768
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1757
1769
|
}
|
|
1758
1770
|
if (config.configFile) {
|
|
1759
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1771
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
1760
1772
|
config.configFile
|
|
1761
1773
|
);
|
|
1762
1774
|
}
|
|
1763
1775
|
if (config.workspaceRoot) {
|
|
1764
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1765
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1766
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1776
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkSSLMLODPjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1777
|
+
process.env.NX_WORKSPACE_ROOT = _chunkSSLMLODPjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1778
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkSSLMLODPjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1767
1779
|
}
|
|
1768
1780
|
if (config.directories) {
|
|
1769
1781
|
if (!config.skipCache && config.directories.cache) {
|
|
1770
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1782
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
1771
1783
|
config.directories.cache
|
|
1772
1784
|
);
|
|
1773
1785
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1774
1786
|
}
|
|
1775
1787
|
if (config.directories.data) {
|
|
1776
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1788
|
+
process.env[`${prefix}DATA_DIR`] = _chunkSSLMLODPjs.correctPaths.call(void 0, config.directories.data);
|
|
1777
1789
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1778
1790
|
}
|
|
1779
1791
|
if (config.directories.config) {
|
|
1780
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1792
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
1781
1793
|
config.directories.config
|
|
1782
1794
|
);
|
|
1783
1795
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1784
1796
|
}
|
|
1785
1797
|
if (config.directories.temp) {
|
|
1786
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1798
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkSSLMLODPjs.correctPaths.call(void 0, config.directories.temp);
|
|
1787
1799
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1788
1800
|
}
|
|
1789
1801
|
if (config.directories.log) {
|
|
1790
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1802
|
+
process.env[`${prefix}LOG_DIR`] = _chunkSSLMLODPjs.correctPaths.call(void 0, config.directories.log);
|
|
1791
1803
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1792
1804
|
}
|
|
1793
1805
|
if (config.directories.build) {
|
|
1794
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1806
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
1795
1807
|
config.directories.build
|
|
1796
1808
|
);
|
|
1797
1809
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -2019,7 +2031,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, s
|
|
|
2019
2031
|
defaultConfig
|
|
2020
2032
|
);
|
|
2021
2033
|
if (!configInput.variant) {
|
|
2022
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
2034
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2023
2035
|
}
|
|
2024
2036
|
try {
|
|
2025
2037
|
const parseResult = await Promise.resolve(
|
|
@@ -2089,7 +2101,7 @@ ${formatLogMessage(config)}`,
|
|
|
2089
2101
|
};
|
|
2090
2102
|
|
|
2091
2103
|
// ../config-tools/src/get-config.ts
|
|
2092
|
-
|
|
2104
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2093
2105
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2094
2106
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2095
2107
|
}
|
|
@@ -2227,13 +2239,14 @@ var _isFunction2 = (value) => {
|
|
|
2227
2239
|
};
|
|
2228
2240
|
|
|
2229
2241
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2230
|
-
|
|
2242
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2231
2243
|
|
|
2232
2244
|
|
|
2233
2245
|
|
|
2234
2246
|
|
|
2235
2247
|
var _child_process = require('child_process');
|
|
2236
2248
|
|
|
2249
|
+
|
|
2237
2250
|
var INVALID_CARGO_ARGS = [
|
|
2238
2251
|
"allFeatures",
|
|
2239
2252
|
"allTargets",
|
|
@@ -2266,8 +2279,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2266
2279
|
args.push(`--${key}`, String(value));
|
|
2267
2280
|
}
|
|
2268
2281
|
}
|
|
2269
|
-
if (context.projectName) {
|
|
2270
|
-
|
|
2282
|
+
if (context.projectName && _optionalChain([context, 'access', _90 => _90.projectsConfigurations, 'optionalAccess', _91 => _91.projects]) && _optionalChain([context, 'access', _92 => _92.projectsConfigurations, 'optionalAccess', _93 => _93.projects, 'access', _94 => _94[context.projectName]]) && _optionalChain([context, 'access', _95 => _95.projectsConfigurations, 'optionalAccess', _96 => _96.projects, 'access', _97 => _97[context.projectName], 'optionalAccess', _98 => _98.root]) && _optionalChain([context, 'access', _99 => _99.projectsConfigurations, 'optionalAccess', _100 => _100.projects, 'access', _101 => _101[context.projectName], 'optionalAccess', _102 => _102.root, 'access', _103 => _103.includes, 'call', _104 => _104("Cargo.toml")])) {
|
|
2283
|
+
const cargoToml = parseCargoToml(
|
|
2284
|
+
_fs.readFileSync.call(void 0,
|
|
2285
|
+
_devkit.joinPathFragments.call(void 0,
|
|
2286
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
2287
|
+
"Cargo.toml"
|
|
2288
|
+
),
|
|
2289
|
+
"utf-8"
|
|
2290
|
+
)
|
|
2291
|
+
);
|
|
2292
|
+
args.push("-p", cargoToml.package.name);
|
|
2271
2293
|
}
|
|
2272
2294
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
2273
2295
|
args.push("--all-features");
|
|
@@ -2290,10 +2312,10 @@ async function cargoCommand(workspaceRoot2, ...args) {
|
|
|
2290
2312
|
}
|
|
2291
2313
|
function cargoCommandSync(args = "", options) {
|
|
2292
2314
|
const normalizedOptions = {
|
|
2293
|
-
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2315
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _105 => _105.stdio]), () => ( "inherit")),
|
|
2294
2316
|
env: {
|
|
2295
2317
|
...process.env,
|
|
2296
|
-
..._optionalChain([options, 'optionalAccess',
|
|
2318
|
+
..._optionalChain([options, 'optionalAccess', _106 => _106.env])
|
|
2297
2319
|
}
|
|
2298
2320
|
};
|
|
2299
2321
|
try {
|
|
@@ -2326,7 +2348,7 @@ function cargoMetadata() {
|
|
|
2326
2348
|
}
|
|
2327
2349
|
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
2328
2350
|
const metadata = cargoMetadata();
|
|
2329
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
2351
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _107 => _107.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot2, "dist")));
|
|
2330
2352
|
return new Promise((resolve2) => {
|
|
2331
2353
|
if (process.env.VERCEL) {
|
|
2332
2354
|
return resolve2({ success: true });
|
|
@@ -2367,7 +2389,7 @@ var executor_default = withRunExecutor(
|
|
|
2367
2389
|
);
|
|
2368
2390
|
|
|
2369
2391
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2370
|
-
|
|
2392
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2371
2393
|
async function cargoCheckExecutor(options, context) {
|
|
2372
2394
|
const command = buildCargoCommand("check", options, context);
|
|
2373
2395
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2387,7 +2409,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2387
2409
|
);
|
|
2388
2410
|
|
|
2389
2411
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2390
|
-
|
|
2412
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2391
2413
|
async function cargoClippyExecutor(options, context) {
|
|
2392
2414
|
const command = buildCargoCommand("clippy", options, context);
|
|
2393
2415
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2408,7 +2430,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2408
2430
|
);
|
|
2409
2431
|
|
|
2410
2432
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2411
|
-
|
|
2433
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2412
2434
|
async function cargoDocExecutor(options, context) {
|
|
2413
2435
|
const opts = { ...options };
|
|
2414
2436
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2438,7 +2460,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2438
2460
|
);
|
|
2439
2461
|
|
|
2440
2462
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2441
|
-
|
|
2463
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2442
2464
|
async function cargoFormatExecutor(options, context) {
|
|
2443
2465
|
const command = buildCargoCommand("fmt", options, context);
|
|
2444
2466
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2459,7 +2481,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2459
2481
|
);
|
|
2460
2482
|
|
|
2461
2483
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2462
|
-
|
|
2484
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2463
2485
|
|
|
2464
2486
|
|
|
2465
2487
|
|
|
@@ -2467,19 +2489,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2467
2489
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2468
2490
|
|
|
2469
2491
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2470
|
-
|
|
2492
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2471
2493
|
|
|
2472
2494
|
// ../esbuild/src/build.ts
|
|
2473
|
-
|
|
2495
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2474
2496
|
|
|
2475
2497
|
// ../esbuild/src/assets.ts
|
|
2476
|
-
|
|
2498
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2477
2499
|
|
|
2478
2500
|
// ../build-tools/src/index.ts
|
|
2479
|
-
|
|
2501
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2480
2502
|
|
|
2481
2503
|
// ../build-tools/src/config.ts
|
|
2482
|
-
|
|
2504
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2483
2505
|
var DEFAULT_JS_BANNER = `
|
|
2484
2506
|
// ---------------------------------------
|
|
2485
2507
|
// \u{1F5F2} Built by Storm Software
|
|
@@ -2495,36 +2517,36 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2495
2517
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2496
2518
|
|
|
2497
2519
|
// ../build-tools/src/plugins/index.ts
|
|
2498
|
-
|
|
2520
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2499
2521
|
|
|
2500
2522
|
// ../build-tools/src/plugins/analyze.ts
|
|
2501
|
-
|
|
2523
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2502
2524
|
|
|
2503
2525
|
// ../build-tools/src/plugins/swc.ts
|
|
2504
|
-
|
|
2526
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2505
2527
|
var _core = require('@swc/core');
|
|
2506
2528
|
|
|
2507
2529
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2508
|
-
|
|
2530
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2509
2531
|
|
|
2510
2532
|
var _module = require('module');
|
|
2511
2533
|
|
|
2512
2534
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2513
2535
|
|
|
2514
2536
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2515
|
-
|
|
2537
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2516
2538
|
|
|
2517
2539
|
|
|
2518
2540
|
|
|
2519
2541
|
// ../build-tools/src/types.ts
|
|
2520
|
-
|
|
2542
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2521
2543
|
|
|
2522
2544
|
// ../build-tools/src/utilities/index.ts
|
|
2523
|
-
|
|
2545
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2524
2546
|
|
|
2525
2547
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2526
|
-
|
|
2527
|
-
var
|
|
2548
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2549
|
+
var _internal = require('@nx/js/internal');
|
|
2528
2550
|
var _glob = require('glob');
|
|
2529
2551
|
|
|
2530
2552
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
@@ -2555,10 +2577,10 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2555
2577
|
}
|
|
2556
2578
|
writeTrace(
|
|
2557
2579
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2558
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2580
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkSSLMLODPjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2559
2581
|
config
|
|
2560
2582
|
);
|
|
2561
|
-
const assetHandler = new (0,
|
|
2583
|
+
const assetHandler = new (0, _internal.CopyAssetsHandler)({
|
|
2562
2584
|
projectDir: projectRoot,
|
|
2563
2585
|
rootDir: config.workspaceRoot,
|
|
2564
2586
|
outputDir: outputPath,
|
|
@@ -2568,17 +2590,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2568
2590
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2569
2591
|
if (includeSrc === true) {
|
|
2570
2592
|
writeDebug(
|
|
2571
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2593
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2572
2594
|
outputPath,
|
|
2573
2595
|
"src"
|
|
2574
2596
|
)}`,
|
|
2575
2597
|
config
|
|
2576
2598
|
);
|
|
2577
2599
|
const files = await _glob.glob.call(void 0, [
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2600
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2601
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2602
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2603
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2582
2604
|
]);
|
|
2583
2605
|
await Promise.allSettled(
|
|
2584
2606
|
files.map(
|
|
@@ -2596,8 +2618,8 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2596
2618
|
};
|
|
2597
2619
|
|
|
2598
2620
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2599
|
-
|
|
2600
|
-
|
|
2621
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2622
|
+
|
|
2601
2623
|
|
|
2602
2624
|
|
|
2603
2625
|
|
|
@@ -2619,7 +2641,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2619
2641
|
"The Build process failed because the project graph is not available. Please run the build command again."
|
|
2620
2642
|
);
|
|
2621
2643
|
}
|
|
2622
|
-
const projectDependencies =
|
|
2644
|
+
const projectDependencies = _internal.calculateProjectBuildableDependencies.call(void 0,
|
|
2623
2645
|
void 0,
|
|
2624
2646
|
projectGraph,
|
|
2625
2647
|
workspaceRoot2,
|
|
@@ -2630,11 +2652,11 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2630
2652
|
);
|
|
2631
2653
|
const localPackages = [];
|
|
2632
2654
|
for (const project of projectDependencies.dependencies.filter(
|
|
2633
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access',
|
|
2655
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _108 => _108.node, 'access', _109 => _109.data, 'optionalAccess', _110 => _110.root]) !== projectRoot && _optionalChain([dep, 'access', _111 => _111.node, 'access', _112 => _112.data, 'optionalAccess', _113 => _113.root]) !== workspaceRoot2
|
|
2634
2656
|
)) {
|
|
2635
2657
|
const projectNode = project.node;
|
|
2636
2658
|
if (projectNode.data.root) {
|
|
2637
|
-
const projectPackageJsonPath =
|
|
2659
|
+
const projectPackageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2638
2660
|
workspaceRoot2,
|
|
2639
2661
|
projectNode.data.root,
|
|
2640
2662
|
"package.json"
|
|
@@ -2656,20 +2678,20 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2656
2678
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2657
2679
|
);
|
|
2658
2680
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2659
|
-
|
|
2681
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2660
2682
|
"utf8"
|
|
2661
2683
|
);
|
|
2662
2684
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2663
2685
|
const projectName2 = projectJson.name;
|
|
2664
2686
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2665
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2687
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _114 => _114.projects, 'optionalAccess', _115 => _115[projectName2]])) {
|
|
2666
2688
|
throw new Error(
|
|
2667
2689
|
"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."
|
|
2668
2690
|
);
|
|
2669
2691
|
}
|
|
2670
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
2671
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
2672
|
-
const depPackageJsonPath =
|
|
2692
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _116 => _116.projects, 'optionalAccess', _117 => _117[projectName2], 'access', _118 => _118.implicitDependencies, 'optionalAccess', _119 => _119.reduce, 'call', _120 => _120((ret, dep) => {
|
|
2693
|
+
if (_optionalChain([projectConfigurations, 'access', _121 => _121.projects, 'optionalAccess', _122 => _122[dep]])) {
|
|
2694
|
+
const depPackageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2673
2695
|
workspaceRoot2,
|
|
2674
2696
|
projectConfigurations.projects[dep].root,
|
|
2675
2697
|
"package.json"
|
|
@@ -2688,13 +2710,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2688
2710
|
return ret;
|
|
2689
2711
|
}, [])]);
|
|
2690
2712
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
2691
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
2713
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _123 => _123.includes, 'call', _124 => _124(localPackage.name)]) && _optionalChain([packageJson, 'access', _125 => _125.devDependencies, 'optionalAccess', _126 => _126[localPackage.name]]) === void 0) {
|
|
2692
2714
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2693
2715
|
}
|
|
2694
2716
|
return ret;
|
|
2695
2717
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
2696
2718
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
2697
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
2719
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _127 => _127.includes, 'call', _128 => _128(localPackage.name)]) && _optionalChain([packageJson, 'access', _129 => _129.dependencies, 'optionalAccess', _130 => _130[localPackage.name]]) === void 0) {
|
|
2698
2720
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2699
2721
|
}
|
|
2700
2722
|
return ret;
|
|
@@ -2707,7 +2729,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2707
2729
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2708
2730
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2709
2731
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2710
|
-
|
|
2732
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2711
2733
|
"utf8"
|
|
2712
2734
|
);
|
|
2713
2735
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2718,7 +2740,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2718
2740
|
if (distSrc.startsWith("/")) {
|
|
2719
2741
|
distSrc = distSrc.substring(1);
|
|
2720
2742
|
}
|
|
2721
|
-
packageJson.source ??= `${
|
|
2743
|
+
packageJson.source ??= `${_chunkSSLMLODPjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2722
2744
|
}
|
|
2723
2745
|
packageJson.files ??= ["dist/**/*"];
|
|
2724
2746
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2743,7 +2765,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2743
2765
|
packageJson.contributors = [packageJson.author];
|
|
2744
2766
|
}
|
|
2745
2767
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2746
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2768
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkSSLMLODPjs.joinPaths.call(void 0, "packages", projectName);
|
|
2747
2769
|
return packageJson;
|
|
2748
2770
|
};
|
|
2749
2771
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2768,11 +2790,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2768
2790
|
};
|
|
2769
2791
|
|
|
2770
2792
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2771
|
-
|
|
2793
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2772
2794
|
|
|
2773
2795
|
|
|
2774
2796
|
// ../build-tools/src/utilities/get-env.ts
|
|
2775
|
-
|
|
2797
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2776
2798
|
var getEnv = (builder, options) => {
|
|
2777
2799
|
return {
|
|
2778
2800
|
STORM_BUILD: builder,
|
|
@@ -2787,21 +2809,21 @@ var getEnv = (builder, options) => {
|
|
|
2787
2809
|
};
|
|
2788
2810
|
|
|
2789
2811
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2790
|
-
|
|
2812
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2791
2813
|
|
|
2792
2814
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2793
|
-
|
|
2815
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2794
2816
|
|
|
2795
2817
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2796
|
-
|
|
2818
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2797
2819
|
|
|
2798
2820
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2799
|
-
|
|
2821
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2800
2822
|
|
|
2801
2823
|
|
|
2802
2824
|
|
|
2803
2825
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2804
|
-
|
|
2826
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2805
2827
|
|
|
2806
2828
|
|
|
2807
2829
|
|
|
@@ -2809,7 +2831,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
2809
2831
|
|
|
2810
2832
|
// ../esbuild/src/assets.ts
|
|
2811
2833
|
async function copyBuildAssets(context) {
|
|
2812
|
-
if (!_optionalChain([context, 'access',
|
|
2834
|
+
if (!_optionalChain([context, 'access', _131 => _131.result, 'optionalAccess', _132 => _132.errors, 'access', _133 => _133.length]) && _optionalChain([context, 'access', _134 => _134.options, 'access', _135 => _135.assets, 'optionalAccess', _136 => _136.length])) {
|
|
2813
2835
|
writeDebug(
|
|
2814
2836
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
2815
2837
|
context.workspaceConfig
|
|
@@ -2830,14 +2852,14 @@ async function copyBuildAssets(context) {
|
|
|
2830
2852
|
}
|
|
2831
2853
|
|
|
2832
2854
|
// ../esbuild/src/clean.ts
|
|
2833
|
-
|
|
2855
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2834
2856
|
|
|
2835
2857
|
async function cleanDirectories(directory) {
|
|
2836
2858
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2837
2859
|
}
|
|
2838
2860
|
|
|
2839
2861
|
// ../esbuild/src/context.ts
|
|
2840
|
-
|
|
2862
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2841
2863
|
|
|
2842
2864
|
|
|
2843
2865
|
|
|
@@ -2848,7 +2870,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
2848
2870
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2849
2871
|
|
|
2850
2872
|
// ../esbuild/src/config.ts
|
|
2851
|
-
|
|
2873
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2852
2874
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2853
2875
|
platform: "node",
|
|
2854
2876
|
target: "node22",
|
|
@@ -2906,7 +2928,7 @@ async function resolveContext(userOptions) {
|
|
|
2906
2928
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2907
2929
|
exitOnError: true
|
|
2908
2930
|
});
|
|
2909
|
-
const projectJsonPath =
|
|
2931
|
+
const projectJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2910
2932
|
workspaceRoot2.dir,
|
|
2911
2933
|
projectRoot,
|
|
2912
2934
|
"project.json"
|
|
@@ -2918,14 +2940,14 @@ async function resolveContext(userOptions) {
|
|
|
2918
2940
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2919
2941
|
const projectName = projectJson.name || userOptions.name;
|
|
2920
2942
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2921
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2943
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _137 => _137.projects, 'optionalAccess', _138 => _138[projectName]])) {
|
|
2922
2944
|
throw new Error(
|
|
2923
2945
|
"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."
|
|
2924
2946
|
);
|
|
2925
2947
|
}
|
|
2926
2948
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2927
2949
|
options.name ??= projectName;
|
|
2928
|
-
const packageJsonPath =
|
|
2950
|
+
const packageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2929
2951
|
workspaceRoot2.dir,
|
|
2930
2952
|
options.projectRoot,
|
|
2931
2953
|
"package.json"
|
|
@@ -2937,7 +2959,7 @@ async function resolveContext(userOptions) {
|
|
|
2937
2959
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2938
2960
|
const resolvedOptions = {
|
|
2939
2961
|
...options,
|
|
2940
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2962
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkSSLMLODPjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2941
2963
|
metafile: userOptions.mode === "development",
|
|
2942
2964
|
clean: false,
|
|
2943
2965
|
env,
|
|
@@ -2962,8 +2984,8 @@ async function resolveContext(userOptions) {
|
|
|
2962
2984
|
projectConfigurations,
|
|
2963
2985
|
projectName,
|
|
2964
2986
|
projectGraph,
|
|
2965
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2966
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2987
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkSSLMLODPjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2988
|
+
outputPath: resolvedOptions.outputPath || _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2967
2989
|
workspaceConfig.workspaceRoot,
|
|
2968
2990
|
"dist",
|
|
2969
2991
|
resolvedOptions.projectRoot
|
|
@@ -2983,15 +3005,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2983
3005
|
}
|
|
2984
3006
|
|
|
2985
3007
|
// ../esbuild/src/package-json.ts
|
|
2986
|
-
|
|
3008
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
2987
3009
|
|
|
2988
3010
|
|
|
2989
3011
|
|
|
2990
3012
|
async function generatePackageJson(context) {
|
|
2991
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3013
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2992
3014
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2993
3015
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2994
|
-
const packageJsonPath =
|
|
3016
|
+
const packageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
2995
3017
|
context.options.projectRoot,
|
|
2996
3018
|
"project.json"
|
|
2997
3019
|
);
|
|
@@ -2999,7 +3021,7 @@ async function generatePackageJson(context) {
|
|
|
2999
3021
|
throw new Error("Cannot find package.json configuration");
|
|
3000
3022
|
}
|
|
3001
3023
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3002
|
-
|
|
3024
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3003
3025
|
context.workspaceConfig.workspaceRoot,
|
|
3004
3026
|
context.options.projectRoot,
|
|
3005
3027
|
"package.json"
|
|
@@ -3105,7 +3127,7 @@ async function generatePackageJson(context) {
|
|
|
3105
3127
|
}
|
|
3106
3128
|
}
|
|
3107
3129
|
await _devkit.writeJsonFile.call(void 0,
|
|
3108
|
-
|
|
3130
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
3109
3131
|
packageJson
|
|
3110
3132
|
);
|
|
3111
3133
|
stopwatch();
|
|
@@ -3114,10 +3136,10 @@ async function generatePackageJson(context) {
|
|
|
3114
3136
|
}
|
|
3115
3137
|
|
|
3116
3138
|
// ../esbuild/src/tsup.ts
|
|
3117
|
-
|
|
3139
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3118
3140
|
|
|
3119
3141
|
// ../tsup/src/index.ts
|
|
3120
|
-
|
|
3142
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3121
3143
|
var _tsup = require('tsup');
|
|
3122
3144
|
async function build(options) {
|
|
3123
3145
|
if (!options.silent) {
|
|
@@ -3142,7 +3164,7 @@ async function executeTsup(context) {
|
|
|
3142
3164
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3143
3165
|
await build({
|
|
3144
3166
|
...context.options,
|
|
3145
|
-
outDir: context.options.distDir ?
|
|
3167
|
+
outDir: context.options.distDir ? _chunkSSLMLODPjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3146
3168
|
workspaceConfig: context.workspaceConfig
|
|
3147
3169
|
});
|
|
3148
3170
|
stopwatch();
|
|
@@ -3151,7 +3173,7 @@ async function executeTsup(context) {
|
|
|
3151
3173
|
|
|
3152
3174
|
// ../esbuild/src/build.ts
|
|
3153
3175
|
async function reportResults(context) {
|
|
3154
|
-
if (_optionalChain([context, 'access',
|
|
3176
|
+
if (_optionalChain([context, 'access', _139 => _139.result, 'optionalAccess', _140 => _140.errors, 'access', _141 => _141.length]) === 0) {
|
|
3155
3177
|
if (context.result.warnings.length > 0) {
|
|
3156
3178
|
writeWarning(
|
|
3157
3179
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -3162,7 +3184,7 @@ async function reportResults(context) {
|
|
|
3162
3184
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
3163
3185
|
context.workspaceConfig
|
|
3164
3186
|
);
|
|
3165
|
-
} else if (_optionalChain([context, 'access',
|
|
3187
|
+
} else if (_optionalChain([context, 'access', _142 => _142.result, 'optionalAccess', _143 => _143.errors]) && _optionalChain([context, 'access', _144 => _144.result, 'optionalAccess', _145 => _145.errors, 'access', _146 => _146.length]) > 0) {
|
|
3166
3188
|
writeError(
|
|
3167
3189
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
3168
3190
|
context.workspaceConfig
|
|
@@ -3215,7 +3237,7 @@ async function build2(options) {
|
|
|
3215
3237
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
3216
3238
|
async function esbuildExecutorFn(options, context, config) {
|
|
3217
3239
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
3218
|
-
if (!_optionalChain([context, 'access',
|
|
3240
|
+
if (!_optionalChain([context, 'access', _147 => _147.projectsConfigurations, 'optionalAccess', _148 => _148.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context.projectName], 'optionalAccess', _152 => _152.root])) {
|
|
3219
3241
|
throw new Error(
|
|
3220
3242
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3221
3243
|
);
|
|
@@ -3224,10 +3246,10 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
3224
3246
|
...options,
|
|
3225
3247
|
projectRoot: (
|
|
3226
3248
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3227
|
-
_optionalChain([context, 'access',
|
|
3249
|
+
_optionalChain([context, 'access', _153 => _153.projectsConfigurations, 'access', _154 => _154.projects, 'optionalAccess', _155 => _155[context.projectName], 'access', _156 => _156.root])
|
|
3228
3250
|
),
|
|
3229
3251
|
name: context.projectName,
|
|
3230
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
3252
|
+
sourceRoot: _optionalChain([context, 'access', _157 => _157.projectsConfigurations, 'access', _158 => _158.projects, 'optionalAccess', _159 => _159[context.projectName], 'optionalAccess', _160 => _160.sourceRoot]),
|
|
3231
3253
|
format: options.format,
|
|
3232
3254
|
platform: options.platform
|
|
3233
3255
|
});
|
|
@@ -3252,12 +3274,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3252
3274
|
);
|
|
3253
3275
|
|
|
3254
3276
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3255
|
-
|
|
3277
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3256
3278
|
var _jiti = require('jiti');
|
|
3257
3279
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3258
3280
|
async function napiExecutor(options, context, config) {
|
|
3259
3281
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3260
|
-
fsCache: config.skipCache ? false :
|
|
3282
|
+
fsCache: config.skipCache ? false : _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3261
3283
|
config.workspaceRoot,
|
|
3262
3284
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3263
3285
|
"jiti"
|
|
@@ -3267,58 +3289,58 @@ async function napiExecutor(options, context, config) {
|
|
|
3267
3289
|
const { NapiCli } = await jiti.import(
|
|
3268
3290
|
jiti.esmResolve("@napi-rs/cli")
|
|
3269
3291
|
);
|
|
3270
|
-
if (!_optionalChain([context, 'access',
|
|
3292
|
+
if (!_optionalChain([context, 'access', _161 => _161.projectGraph, 'optionalAccess', _162 => _162.nodes, 'access', _163 => _163[_nullishCoalesce(context.projectName, () => ( ""))]])) {
|
|
3271
3293
|
throw new Error(
|
|
3272
3294
|
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
3273
3295
|
);
|
|
3274
3296
|
}
|
|
3275
|
-
const projectRoot = _optionalChain([context, 'access',
|
|
3276
|
-
const packageJson =
|
|
3297
|
+
const projectRoot = _optionalChain([context, 'access', _164 => _164.projectGraph, 'optionalAccess', _165 => _165.nodes, 'access', _166 => _166[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _167 => _167.data, 'access', _168 => _168.root]);
|
|
3298
|
+
const packageJson = _chunkSSLMLODPjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3277
3299
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3278
3300
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3279
3301
|
}
|
|
3280
3302
|
const napi = new NapiCli();
|
|
3281
3303
|
const normalizedOptions = { ...options };
|
|
3282
3304
|
const metadata = cargoMetadata();
|
|
3283
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess',
|
|
3305
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _169 => _169.target_directory]) || _chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3284
3306
|
normalizedOptions.outputDir = options.outputPath;
|
|
3285
3307
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
3286
3308
|
if (options.cwd) {
|
|
3287
|
-
normalizedOptions.cwd =
|
|
3309
|
+
normalizedOptions.cwd = _chunkSSLMLODPjs.correctPaths.call(void 0, options.cwd);
|
|
3288
3310
|
} else {
|
|
3289
|
-
const absoluteProjectRoot =
|
|
3290
|
-
|
|
3311
|
+
const absoluteProjectRoot = _chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
3312
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
|
|
3291
3313
|
);
|
|
3292
3314
|
normalizedOptions.cwd = absoluteProjectRoot;
|
|
3293
3315
|
if (normalizedOptions.outputDir) {
|
|
3294
|
-
normalizedOptions.outputDir =
|
|
3316
|
+
normalizedOptions.outputDir = _chunkSSLMLODPjs.relative.call(void 0,
|
|
3295
3317
|
normalizedOptions.cwd,
|
|
3296
|
-
|
|
3297
|
-
|
|
3318
|
+
_chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
3319
|
+
_chunkSSLMLODPjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3298
3320
|
)
|
|
3299
3321
|
);
|
|
3300
3322
|
}
|
|
3301
3323
|
if (normalizedOptions.packageJsonPath) {
|
|
3302
|
-
normalizedOptions.packageJsonPath =
|
|
3324
|
+
normalizedOptions.packageJsonPath = _chunkSSLMLODPjs.relative.call(void 0,
|
|
3303
3325
|
normalizedOptions.cwd,
|
|
3304
|
-
|
|
3305
|
-
|
|
3326
|
+
_chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
3327
|
+
_chunkSSLMLODPjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3306
3328
|
)
|
|
3307
3329
|
);
|
|
3308
3330
|
}
|
|
3309
3331
|
if (normalizedOptions.configPath) {
|
|
3310
|
-
normalizedOptions.configPath =
|
|
3332
|
+
normalizedOptions.configPath = _chunkSSLMLODPjs.relative.call(void 0,
|
|
3311
3333
|
normalizedOptions.cwd,
|
|
3312
|
-
|
|
3313
|
-
|
|
3334
|
+
_chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
3335
|
+
_chunkSSLMLODPjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3314
3336
|
)
|
|
3315
3337
|
);
|
|
3316
3338
|
}
|
|
3317
3339
|
if (normalizedOptions.manifestPath) {
|
|
3318
|
-
normalizedOptions.manifestPath =
|
|
3340
|
+
normalizedOptions.manifestPath = _chunkSSLMLODPjs.relative.call(void 0,
|
|
3319
3341
|
normalizedOptions.cwd,
|
|
3320
|
-
|
|
3321
|
-
|
|
3342
|
+
_chunkSSLMLODPjs.correctPaths.call(void 0,
|
|
3343
|
+
_chunkSSLMLODPjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkSSLMLODPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3322
3344
|
)
|
|
3323
3345
|
);
|
|
3324
3346
|
}
|
|
@@ -3361,17 +3383,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3361
3383
|
);
|
|
3362
3384
|
|
|
3363
3385
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3364
|
-
|
|
3386
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3365
3387
|
|
|
3366
3388
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3367
|
-
|
|
3389
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3368
3390
|
|
|
3369
3391
|
|
|
3370
3392
|
// ../npm-tools/src/constants.ts
|
|
3371
|
-
|
|
3393
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3372
3394
|
|
|
3373
3395
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3374
|
-
|
|
3396
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3375
3397
|
|
|
3376
3398
|
|
|
3377
3399
|
|
|
@@ -3381,10 +3403,10 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
3381
3403
|
var _prettier = require('prettier');
|
|
3382
3404
|
|
|
3383
3405
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3384
|
-
|
|
3406
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3385
3407
|
|
|
3386
3408
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3387
|
-
|
|
3409
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3388
3410
|
|
|
3389
3411
|
var _semver = require('semver');
|
|
3390
3412
|
var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
|
|
@@ -3393,10 +3415,10 @@ var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault
|
|
|
3393
3415
|
|
|
3394
3416
|
|
|
3395
3417
|
// ../pnpm-tools/src/helpers/format.ts
|
|
3396
|
-
|
|
3418
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3397
3419
|
|
|
3398
3420
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3399
|
-
|
|
3421
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3400
3422
|
|
|
3401
3423
|
|
|
3402
3424
|
var _yaml = require('yaml');
|
|
@@ -3407,11 +3429,11 @@ var _yaml = require('yaml');
|
|
|
3407
3429
|
|
|
3408
3430
|
|
|
3409
3431
|
// ../workspace-tools/src/utils/github.ts
|
|
3410
|
-
|
|
3432
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3411
3433
|
|
|
3412
3434
|
|
|
3413
3435
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3414
|
-
|
|
3436
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3415
3437
|
|
|
3416
3438
|
|
|
3417
3439
|
|
|
@@ -3423,10 +3445,10 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
3423
3445
|
|
|
3424
3446
|
|
|
3425
3447
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3426
|
-
|
|
3448
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3427
3449
|
|
|
3428
3450
|
// ../package-constants/src/tags.ts
|
|
3429
|
-
|
|
3451
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3430
3452
|
var ProjectTagConstants = {
|
|
3431
3453
|
Language: {
|
|
3432
3454
|
TAG_ID: "language",
|
|
@@ -3505,22 +3527,22 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3505
3527
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3506
3528
|
|
|
3507
3529
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3508
|
-
|
|
3530
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3509
3531
|
|
|
3510
3532
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3511
3533
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
3512
3534
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3513
3535
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
3514
3536
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
3515
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
3537
|
+
if (!_optionalChain([context, 'optionalAccess', _170 => _170.projectName]) || !_optionalChain([context, 'access', _171 => _171.projectsConfigurations, 'optionalAccess', _172 => _172.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3516
3538
|
throw new Error(
|
|
3517
3539
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
3518
3540
|
);
|
|
3519
3541
|
}
|
|
3520
3542
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
3521
3543
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
3522
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
3523
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
3544
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _173 => _173.projectsConfigurations, 'access', _174 => _174.projects, 'access', _175 => _175[context.projectName], 'optionalAccess', _176 => _176.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
3545
|
+
_nullishCoalesce(_optionalChain([context, 'access', _177 => _177.projectsConfigurations, 'access', _178 => _178.projects, 'access', _179 => _179[context.projectName], 'optionalAccess', _180 => _180.root]), () => ( "./")),
|
|
3524
3546
|
"src"
|
|
3525
3547
|
)))
|
|
3526
3548
|
}).then((result) => {
|
|
@@ -3547,10 +3569,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3547
3569
|
);
|
|
3548
3570
|
|
|
3549
3571
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3550
|
-
|
|
3572
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3551
3573
|
|
|
3552
3574
|
// ../tsdown/src/build.ts
|
|
3553
|
-
|
|
3575
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3554
3576
|
|
|
3555
3577
|
|
|
3556
3578
|
|
|
@@ -3562,14 +3584,14 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
3562
3584
|
var _tsdown = require('tsdown');
|
|
3563
3585
|
|
|
3564
3586
|
// ../tsdown/src/clean.ts
|
|
3565
|
-
|
|
3587
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3566
3588
|
|
|
3567
3589
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3568
3590
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3569
3591
|
}
|
|
3570
3592
|
|
|
3571
3593
|
// ../tsdown/src/config.ts
|
|
3572
|
-
|
|
3594
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3573
3595
|
function getDefaultOptions(config) {
|
|
3574
3596
|
return {
|
|
3575
3597
|
entry: ["./src/*.ts"],
|
|
@@ -3612,7 +3634,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3612
3634
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3613
3635
|
exitOnError: true
|
|
3614
3636
|
});
|
|
3615
|
-
const projectJsonPath =
|
|
3637
|
+
const projectJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3616
3638
|
workspaceRoot2,
|
|
3617
3639
|
options.projectRoot,
|
|
3618
3640
|
"project.json"
|
|
@@ -3624,12 +3646,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3624
3646
|
const projectJson = JSON.parse(projectJsonFile);
|
|
3625
3647
|
const projectName = projectJson.name;
|
|
3626
3648
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
3627
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
3649
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _181 => _181.projects, 'optionalAccess', _182 => _182[projectName]])) {
|
|
3628
3650
|
throw new Error(
|
|
3629
3651
|
"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."
|
|
3630
3652
|
);
|
|
3631
3653
|
}
|
|
3632
|
-
const packageJsonPath =
|
|
3654
|
+
const packageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3633
3655
|
workspaceRoot2,
|
|
3634
3656
|
options.projectRoot,
|
|
3635
3657
|
"package.json"
|
|
@@ -3638,13 +3660,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3638
3660
|
throw new Error("Cannot find package.json configuration");
|
|
3639
3661
|
}
|
|
3640
3662
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3641
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3663
|
+
const sourceRoot = projectJson.sourceRoot || _chunkSSLMLODPjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3642
3664
|
const result = {
|
|
3643
3665
|
name: projectName,
|
|
3644
3666
|
mode: "production",
|
|
3645
3667
|
target: DEFAULT_TARGET,
|
|
3646
3668
|
generatePackageJson: true,
|
|
3647
|
-
outDir:
|
|
3669
|
+
outDir: _chunkSSLMLODPjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3648
3670
|
minify: !debug,
|
|
3649
3671
|
plugins: [],
|
|
3650
3672
|
assets: [],
|
|
@@ -3655,12 +3677,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3655
3677
|
clean: false,
|
|
3656
3678
|
fixedExtension: true,
|
|
3657
3679
|
nodeProtocol: true,
|
|
3658
|
-
tsconfig:
|
|
3680
|
+
tsconfig: _chunkSSLMLODPjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3659
3681
|
debug,
|
|
3660
3682
|
sourceRoot,
|
|
3661
3683
|
cwd: workspaceConfig.workspaceRoot,
|
|
3662
3684
|
entry: {
|
|
3663
|
-
["index"]:
|
|
3685
|
+
["index"]: _chunkSSLMLODPjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3664
3686
|
},
|
|
3665
3687
|
workspace: true,
|
|
3666
3688
|
...options,
|
|
@@ -3679,15 +3701,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3679
3701
|
return result;
|
|
3680
3702
|
};
|
|
3681
3703
|
async function generatePackageJson2(options) {
|
|
3682
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3704
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3683
3705
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3684
3706
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3685
|
-
const packageJsonPath =
|
|
3707
|
+
const packageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3686
3708
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3687
3709
|
throw new Error("Cannot find package.json configuration");
|
|
3688
3710
|
}
|
|
3689
3711
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3690
|
-
|
|
3712
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3691
3713
|
options.workspaceConfig.workspaceRoot,
|
|
3692
3714
|
options.projectRoot,
|
|
3693
3715
|
"package.json"
|
|
@@ -3749,7 +3771,7 @@ async function generatePackageJson2(options) {
|
|
|
3749
3771
|
},
|
|
3750
3772
|
packageJson.exports
|
|
3751
3773
|
);
|
|
3752
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3774
|
+
await _devkit.writeJsonFile.call(void 0, _chunkSSLMLODPjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3753
3775
|
stopwatch();
|
|
3754
3776
|
}
|
|
3755
3777
|
return options;
|
|
@@ -3845,7 +3867,7 @@ async function build3(options) {
|
|
|
3845
3867
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3846
3868
|
async function tsdownExecutorFn(options, context, config) {
|
|
3847
3869
|
writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
3848
|
-
if (!_optionalChain([context, 'access',
|
|
3870
|
+
if (!_optionalChain([context, 'access', _183 => _183.projectsConfigurations, 'optionalAccess', _184 => _184.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _185 => _185.projectsConfigurations, 'access', _186 => _186.projects, 'access', _187 => _187[context.projectName], 'optionalAccess', _188 => _188.root])) {
|
|
3849
3871
|
throw new Error(
|
|
3850
3872
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3851
3873
|
);
|
|
@@ -3854,10 +3876,10 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
3854
3876
|
...options,
|
|
3855
3877
|
projectRoot: (
|
|
3856
3878
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3857
|
-
_optionalChain([context, 'access',
|
|
3879
|
+
_optionalChain([context, 'access', _189 => _189.projectsConfigurations, 'access', _190 => _190.projects, 'optionalAccess', _191 => _191[context.projectName], 'access', _192 => _192.root])
|
|
3858
3880
|
),
|
|
3859
3881
|
name: context.projectName,
|
|
3860
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
3882
|
+
sourceRoot: _optionalChain([context, 'access', _193 => _193.projectsConfigurations, 'access', _194 => _194.projects, 'optionalAccess', _195 => _195[context.projectName], 'optionalAccess', _196 => _196.sourceRoot]),
|
|
3861
3883
|
format: options.format,
|
|
3862
3884
|
platform: options.platform
|
|
3863
3885
|
});
|
|
@@ -3882,7 +3904,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3882
3904
|
);
|
|
3883
3905
|
|
|
3884
3906
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3885
|
-
|
|
3907
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3886
3908
|
var _fsextra = require('fs-extra');
|
|
3887
3909
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3888
3910
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3922,12 +3944,12 @@ var executor_default10 = withRunExecutor(
|
|
|
3922
3944
|
);
|
|
3923
3945
|
|
|
3924
3946
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3925
|
-
|
|
3947
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
3926
3948
|
|
|
3927
3949
|
|
|
3928
3950
|
async function unbuildExecutorFn(options, context, config) {
|
|
3929
3951
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3930
|
-
if (!_optionalChain([context, 'access',
|
|
3952
|
+
if (!_optionalChain([context, 'access', _197 => _197.projectsConfigurations, 'optionalAccess', _198 => _198.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3931
3953
|
throw new Error(
|
|
3932
3954
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
3933
3955
|
);
|
|
@@ -3943,7 +3965,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3943
3965
|
);
|
|
3944
3966
|
}
|
|
3945
3967
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3946
|
-
fsCache: config.skipCache ? false :
|
|
3968
|
+
fsCache: config.skipCache ? false : _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3947
3969
|
config.workspaceRoot,
|
|
3948
3970
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3949
3971
|
"jiti"
|
|
@@ -3965,7 +3987,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3965
3987
|
{
|
|
3966
3988
|
stubOptions: {
|
|
3967
3989
|
jiti: {
|
|
3968
|
-
fsCache: config.skipCache ? false :
|
|
3990
|
+
fsCache: config.skipCache ? false : _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
3969
3991
|
config.workspaceRoot,
|
|
3970
3992
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3971
3993
|
"jiti"
|
|
@@ -4014,10 +4036,10 @@ var executor_default11 = withRunExecutor(
|
|
|
4014
4036
|
);
|
|
4015
4037
|
|
|
4016
4038
|
// ../workspace-tools/generators.ts
|
|
4017
|
-
|
|
4039
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4018
4040
|
|
|
4019
4041
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4020
|
-
|
|
4042
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4021
4043
|
|
|
4022
4044
|
|
|
4023
4045
|
|
|
@@ -4026,7 +4048,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
4026
4048
|
|
|
4027
4049
|
|
|
4028
4050
|
// ../workspace-tools/src/base/base-generator.ts
|
|
4029
|
-
|
|
4051
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4030
4052
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
4031
4053
|
skipReadingConfig: false
|
|
4032
4054
|
}) => async (tree, _options) => {
|
|
@@ -4049,7 +4071,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
4049
4071
|
);
|
|
4050
4072
|
config = await getConfig(workspaceRoot2);
|
|
4051
4073
|
}
|
|
4052
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
4074
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _199 => _199.hooks, 'optionalAccess', _200 => _200.applyDefaultOptions])) {
|
|
4053
4075
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
4054
4076
|
options = await Promise.resolve(
|
|
4055
4077
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -4066,7 +4088,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4066
4088
|
{ workspaceRoot: tree.root, config },
|
|
4067
4089
|
applyWorkspaceBaseTokens
|
|
4068
4090
|
);
|
|
4069
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
4091
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _201 => _201.hooks, 'optionalAccess', _202 => _202.preProcess])) {
|
|
4070
4092
|
writeDebug("Running the preProcess hook...", config);
|
|
4071
4093
|
await Promise.resolve(
|
|
4072
4094
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -4077,15 +4099,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4077
4099
|
generatorFn(tree, tokenized, config)
|
|
4078
4100
|
);
|
|
4079
4101
|
if (result) {
|
|
4080
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
4102
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _203 => _203.error, 'optionalAccess', _204 => _204.message]) && typeof _optionalChain([result, 'optionalAccess', _205 => _205.error, 'optionalAccess', _206 => _206.message]) === "string" && _optionalChain([result, 'optionalAccess', _207 => _207.error, 'optionalAccess', _208 => _208.name]) && typeof _optionalChain([result, 'optionalAccess', _209 => _209.error, 'optionalAccess', _210 => _210.name]) === "string") {
|
|
4081
4103
|
throw new Error(`The ${name} generator failed to run`, {
|
|
4082
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
4104
|
+
cause: _optionalChain([result, 'optionalAccess', _211 => _211.error])
|
|
4083
4105
|
});
|
|
4084
4106
|
} else if (result.success && result.data) {
|
|
4085
4107
|
return result;
|
|
4086
4108
|
}
|
|
4087
4109
|
}
|
|
4088
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
4110
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _212 => _212.hooks, 'optionalAccess', _213 => _213.postProcess])) {
|
|
4089
4111
|
writeDebug("Running the postProcess hook...", config);
|
|
4090
4112
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
4091
4113
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -4113,7 +4135,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4113
4135
|
};
|
|
4114
4136
|
|
|
4115
4137
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
4116
|
-
|
|
4138
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4117
4139
|
|
|
4118
4140
|
|
|
4119
4141
|
|
|
@@ -4125,17 +4147,15 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
4125
4147
|
|
|
4126
4148
|
|
|
4127
4149
|
|
|
4128
|
-
var
|
|
4150
|
+
var _internal3 = require('@nx/devkit/internal');
|
|
4129
4151
|
|
|
4130
4152
|
|
|
4131
4153
|
|
|
4132
4154
|
|
|
4133
4155
|
var _js = require('@nx/js');
|
|
4134
|
-
var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopRequireDefault(_init);
|
|
4135
|
-
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
4136
4156
|
|
|
4137
4157
|
// ../workspace-tools/src/utils/versions.ts
|
|
4138
|
-
|
|
4158
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4139
4159
|
var typesNodeVersion = "20.9.0";
|
|
4140
4160
|
var nxVersion = "^18.0.4";
|
|
4141
4161
|
var nodeVersion = "20.11.0";
|
|
@@ -4145,12 +4165,6 @@ var pnpmVersion = "8.10.2";
|
|
|
4145
4165
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
4146
4166
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
4147
4167
|
const tasks = [];
|
|
4148
|
-
tasks.push(
|
|
4149
|
-
await _init2.default.call(void 0, tree, {
|
|
4150
|
-
...normalized,
|
|
4151
|
-
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
4152
|
-
})
|
|
4153
|
-
);
|
|
4154
4168
|
tasks.push(
|
|
4155
4169
|
_devkit.addDependenciesToPackageJson.call(void 0,
|
|
4156
4170
|
tree,
|
|
@@ -4162,22 +4176,19 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4162
4176
|
}
|
|
4163
4177
|
)
|
|
4164
4178
|
);
|
|
4165
|
-
if (normalized.publishable) {
|
|
4166
|
-
tasks.push(await _generator2.default.call(void 0, tree, { ...normalized, skipFormat: true }));
|
|
4167
|
-
}
|
|
4168
4179
|
const projectConfig = {
|
|
4169
4180
|
root: normalized.directory,
|
|
4170
4181
|
projectType: "library",
|
|
4171
|
-
sourceRoot:
|
|
4182
|
+
sourceRoot: _chunkSSLMLODPjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4172
4183
|
targets: {
|
|
4173
4184
|
build: {
|
|
4174
4185
|
executor: options.buildExecutor,
|
|
4175
4186
|
outputs: ["{options.outputPath}"],
|
|
4176
4187
|
options: {
|
|
4177
|
-
entry: [
|
|
4188
|
+
entry: [_chunkSSLMLODPjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4178
4189
|
outputPath: getOutputPath(normalized),
|
|
4179
|
-
tsconfig:
|
|
4180
|
-
project:
|
|
4190
|
+
tsconfig: _chunkSSLMLODPjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4191
|
+
project: _chunkSSLMLODPjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4181
4192
|
defaultConfiguration: "production",
|
|
4182
4193
|
platform: "neutral",
|
|
4183
4194
|
assets: [
|
|
@@ -4219,22 +4230,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4219
4230
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
4220
4231
|
let repository = {
|
|
4221
4232
|
type: "github",
|
|
4222
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
4233
|
+
url: _optionalChain([config, 'optionalAccess', _214 => _214.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _215 => _215.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _216 => _216.organization]) : _optionalChain([config, 'optionalAccess', _217 => _217.organization, 'optionalAccess', _218 => _218.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _219 => _219.namespace]) || _optionalChain([config, 'optionalAccess', _220 => _220.name]) || "repository"}.git`
|
|
4223
4234
|
};
|
|
4224
4235
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
4225
4236
|
if (tree.exists("package.json")) {
|
|
4226
4237
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
4227
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4238
|
+
if (_optionalChain([packageJson, 'optionalAccess', _221 => _221.repository])) {
|
|
4228
4239
|
repository = packageJson.repository;
|
|
4229
4240
|
}
|
|
4230
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4241
|
+
if (_optionalChain([packageJson, 'optionalAccess', _222 => _222.description])) {
|
|
4231
4242
|
description = packageJson.description;
|
|
4232
4243
|
}
|
|
4233
4244
|
}
|
|
4234
4245
|
if (!normalized.importPath) {
|
|
4235
4246
|
normalized.importPath = normalized.name;
|
|
4236
4247
|
}
|
|
4237
|
-
const packageJsonPath =
|
|
4248
|
+
const packageJsonPath = _chunkSSLMLODPjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4238
4249
|
if (tree.exists(packageJsonPath)) {
|
|
4239
4250
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4240
4251
|
if (!normalized.importPath) {
|
|
@@ -4282,34 +4293,34 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4282
4293
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
4283
4294
|
...json,
|
|
4284
4295
|
pnpm: {
|
|
4285
|
-
..._optionalChain([json, 'optionalAccess',
|
|
4296
|
+
..._optionalChain([json, 'optionalAccess', _223 => _223.pnpm]),
|
|
4286
4297
|
overrides: {
|
|
4287
|
-
..._optionalChain([json, 'optionalAccess',
|
|
4298
|
+
..._optionalChain([json, 'optionalAccess', _224 => _224.pnpm, 'optionalAccess', _225 => _225.overrides]),
|
|
4288
4299
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
4289
4300
|
}
|
|
4290
4301
|
}
|
|
4291
4302
|
}));
|
|
4292
4303
|
}
|
|
4293
4304
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4294
|
-
|
|
4305
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
4295
4306
|
normalized.projectRoot,
|
|
4296
4307
|
"./src",
|
|
4297
4308
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4298
4309
|
)
|
|
4299
4310
|
]);
|
|
4300
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4301
|
-
|
|
4311
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkSSLMLODPjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4312
|
+
_chunkSSLMLODPjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4302
4313
|
]);
|
|
4303
4314
|
if (tree.exists("package.json")) {
|
|
4304
4315
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
4305
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4316
|
+
if (_optionalChain([packageJson, 'optionalAccess', _226 => _226.repository])) {
|
|
4306
4317
|
repository = packageJson.repository;
|
|
4307
4318
|
}
|
|
4308
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4319
|
+
if (_optionalChain([packageJson, 'optionalAccess', _227 => _227.description])) {
|
|
4309
4320
|
description = packageJson.description;
|
|
4310
4321
|
}
|
|
4311
4322
|
}
|
|
4312
|
-
const tsconfigPath =
|
|
4323
|
+
const tsconfigPath = _chunkSSLMLODPjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4313
4324
|
if (tree.exists(tsconfigPath)) {
|
|
4314
4325
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4315
4326
|
json.composite ??= true;
|
|
@@ -4337,38 +4348,38 @@ function getOutputPath(options) {
|
|
|
4337
4348
|
} else {
|
|
4338
4349
|
parts.push(options.projectRoot);
|
|
4339
4350
|
}
|
|
4340
|
-
return
|
|
4351
|
+
return _chunkSSLMLODPjs.joinPaths.call(void 0, ...parts);
|
|
4341
4352
|
}
|
|
4342
4353
|
function createProjectTsConfigJson(tree, options) {
|
|
4343
4354
|
const tsconfig = {
|
|
4344
4355
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
4345
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4356
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _228 => _228.tsconfigOptions]), () => ( {})),
|
|
4346
4357
|
compilerOptions: {
|
|
4347
4358
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4348
|
-
outDir:
|
|
4359
|
+
outDir: _chunkSSLMLODPjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4349
4360
|
noEmit: true,
|
|
4350
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4361
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _229 => _229.tsconfigOptions, 'optionalAccess', _230 => _230.compilerOptions]), () => ( {}))
|
|
4351
4362
|
},
|
|
4352
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4363
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _231 => _231.tsconfigOptions, 'optionalAccess', _232 => _232.files]), () => ( []))],
|
|
4353
4364
|
include: [
|
|
4354
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4365
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _233 => _233.tsconfigOptions, 'optionalAccess', _234 => _234.include]), () => ( [])),
|
|
4355
4366
|
"src/**/*.ts",
|
|
4356
4367
|
"src/**/*.js",
|
|
4357
4368
|
"bin/**/*"
|
|
4358
4369
|
],
|
|
4359
4370
|
exclude: [
|
|
4360
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4371
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _235 => _235.tsconfigOptions, 'optionalAccess', _236 => _236.exclude]), () => ( [])),
|
|
4361
4372
|
"jest.config.ts",
|
|
4362
4373
|
"src/**/*.spec.ts",
|
|
4363
4374
|
"src/**/*.test.ts"
|
|
4364
4375
|
]
|
|
4365
4376
|
};
|
|
4366
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4377
|
+
_devkit.writeJson.call(void 0, tree, _chunkSSLMLODPjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4367
4378
|
}
|
|
4368
4379
|
async function normalizeOptions(tree, options, config) {
|
|
4369
4380
|
let importPath = options.importPath;
|
|
4370
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
4371
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
4381
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _237 => _237.namespace])) {
|
|
4382
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _238 => _238.namespace])}/${options.name}`;
|
|
4372
4383
|
}
|
|
4373
4384
|
if (options.publishable) {
|
|
4374
4385
|
if (!importPath) {
|
|
@@ -4388,7 +4399,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4388
4399
|
names: projectNames,
|
|
4389
4400
|
projectRoot,
|
|
4390
4401
|
importPath: normalizedImportPath
|
|
4391
|
-
} = await
|
|
4402
|
+
} = await _internal3.determineProjectNameAndRootOptions.call(void 0, tree, {
|
|
4392
4403
|
name: options.name,
|
|
4393
4404
|
projectType: "library",
|
|
4394
4405
|
directory: options.directory,
|
|
@@ -4428,7 +4439,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4428
4439
|
|
|
4429
4440
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4430
4441
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4431
|
-
const filesDir =
|
|
4442
|
+
const filesDir = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
4432
4443
|
__dirname,
|
|
4433
4444
|
"src",
|
|
4434
4445
|
"generators",
|
|
@@ -4508,7 +4519,7 @@ var generator_default = withRunGenerator(
|
|
|
4508
4519
|
);
|
|
4509
4520
|
|
|
4510
4521
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4511
|
-
|
|
4522
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4512
4523
|
|
|
4513
4524
|
var _zod2 = require('zod'); var z2 = _interopRequireWildcard(_zod2);
|
|
4514
4525
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4534,7 +4545,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
4534
4545
|
);
|
|
4535
4546
|
}
|
|
4536
4547
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
4537
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
4548
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
4538
4549
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
4539
4550
|
);
|
|
4540
4551
|
writeTrace(
|
|
@@ -4565,7 +4576,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4565
4576
|
);
|
|
4566
4577
|
|
|
4567
4578
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4568
|
-
|
|
4579
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4569
4580
|
|
|
4570
4581
|
|
|
4571
4582
|
|
|
@@ -4593,7 +4604,7 @@ async function initGenerator(tree, schema) {
|
|
|
4593
4604
|
}
|
|
4594
4605
|
|
|
4595
4606
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4596
|
-
|
|
4607
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4597
4608
|
|
|
4598
4609
|
|
|
4599
4610
|
|
|
@@ -4601,7 +4612,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
4601
4612
|
|
|
4602
4613
|
|
|
4603
4614
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4604
|
-
const filesDir =
|
|
4615
|
+
const filesDir = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
4605
4616
|
__dirname,
|
|
4606
4617
|
"src",
|
|
4607
4618
|
"generators",
|
|
@@ -4653,7 +4664,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4653
4664
|
);
|
|
4654
4665
|
|
|
4655
4666
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4656
|
-
|
|
4667
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4657
4668
|
|
|
4658
4669
|
|
|
4659
4670
|
|
|
@@ -4661,7 +4672,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
4661
4672
|
|
|
4662
4673
|
|
|
4663
4674
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4664
|
-
const filesDir =
|
|
4675
|
+
const filesDir = _chunkSSLMLODPjs.joinPaths.call(void 0,
|
|
4665
4676
|
__dirname,
|
|
4666
4677
|
"src",
|
|
4667
4678
|
"generators",
|
|
@@ -4715,7 +4726,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4715
4726
|
);
|
|
4716
4727
|
|
|
4717
4728
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4718
|
-
|
|
4729
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4719
4730
|
|
|
4720
4731
|
|
|
4721
4732
|
|
|
@@ -4954,10 +4965,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4954
4965
|
);
|
|
4955
4966
|
|
|
4956
4967
|
// ../workspace-tools/src/base/index.ts
|
|
4957
|
-
|
|
4968
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4958
4969
|
|
|
4959
4970
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4960
|
-
|
|
4971
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4961
4972
|
var _untyped = require('untyped');
|
|
4962
4973
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4963
4974
|
$schema: {
|
|
@@ -4976,7 +4987,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4976
4987
|
});
|
|
4977
4988
|
|
|
4978
4989
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4979
|
-
|
|
4990
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4980
4991
|
|
|
4981
4992
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4982
4993
|
$schema: {
|
|
@@ -4994,7 +5005,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4994
5005
|
});
|
|
4995
5006
|
|
|
4996
5007
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4997
|
-
|
|
5008
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
4998
5009
|
|
|
4999
5010
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5000
5011
|
...base_executor_untyped_default,
|
|
@@ -5067,7 +5078,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5067
5078
|
});
|
|
5068
5079
|
|
|
5069
5080
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5070
|
-
|
|
5081
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5071
5082
|
|
|
5072
5083
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5073
5084
|
...base_executor_untyped_default,
|
|
@@ -5219,7 +5230,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5219
5230
|
});
|
|
5220
5231
|
|
|
5221
5232
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5222
|
-
|
|
5233
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5223
5234
|
|
|
5224
5235
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5225
5236
|
...base_generator_untyped_default,
|
|
@@ -5325,45 +5336,45 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5325
5336
|
});
|
|
5326
5337
|
|
|
5327
5338
|
// ../workspace-tools/src/release/index.ts
|
|
5328
|
-
|
|
5339
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5329
5340
|
|
|
5330
5341
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5331
|
-
|
|
5332
|
-
var
|
|
5342
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5343
|
+
var _versionactions = require('@nx/js/src/release/version-actions'); var _versionactions2 = _interopRequireDefault(_versionactions);
|
|
5333
5344
|
|
|
5334
5345
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5335
|
-
|
|
5346
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5336
5347
|
|
|
5337
5348
|
|
|
5338
5349
|
|
|
5339
5350
|
var _release = require('nx/release');
|
|
5340
5351
|
|
|
5341
5352
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5342
|
-
|
|
5353
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5343
5354
|
|
|
5344
5355
|
|
|
5345
5356
|
// ../workspace-tools/src/types.ts
|
|
5346
|
-
|
|
5357
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5347
5358
|
|
|
5348
5359
|
// ../package-constants/src/types.ts
|
|
5349
|
-
|
|
5360
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5350
5361
|
|
|
5351
5362
|
// ../workspace-tools/src/utils/index.ts
|
|
5352
|
-
|
|
5363
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5353
5364
|
|
|
5354
5365
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5355
|
-
|
|
5366
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5356
5367
|
|
|
5357
5368
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5358
|
-
|
|
5369
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5359
5370
|
|
|
5360
5371
|
|
|
5361
5372
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5362
|
-
|
|
5373
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5363
5374
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5364
5375
|
|
|
5365
5376
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5366
|
-
|
|
5377
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5367
5378
|
|
|
5368
5379
|
|
|
5369
5380
|
|
|
@@ -5391,7 +5402,7 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5391
5402
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5392
5403
|
|
|
5393
5404
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5394
|
-
|
|
5405
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5395
5406
|
|
|
5396
5407
|
// ../workspace-tools/config/recommended.json
|
|
5397
5408
|
var recommended_default = {
|
|
@@ -5638,7 +5649,7 @@ var NAMED_INPUTS = {
|
|
|
5638
5649
|
var RELEASE = recommended_default.release;
|
|
5639
5650
|
|
|
5640
5651
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5641
|
-
|
|
5652
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5642
5653
|
|
|
5643
5654
|
|
|
5644
5655
|
|
|
@@ -5647,7 +5658,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
5647
5658
|
|
|
5648
5659
|
|
|
5649
5660
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5650
|
-
|
|
5661
|
+
_chunk2454LXZNjs.init_cjs_shims.call(void 0, );
|
|
5651
5662
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5652
5663
|
|
|
5653
5664
|
// src/generators/init/generator.ts
|