@storm-software/projen 0.21.169 → 0.21.171
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 +20 -0
- package/README.md +1 -1
- package/dist/chunk-245W3USJ.js +6 -0
- package/dist/{chunk-A24P3L2K.mjs → chunk-D5SAU6HF.mjs} +1 -1
- package/dist/{chunk-RC5DQK5S.mjs → chunk-DTCWZTHY.mjs} +2 -2
- package/dist/{chunk-47AHG2CF.js → chunk-H4Q35YMB.js} +205 -204
- package/dist/{chunk-J7CQLAW3.js → chunk-IFTRUSRD.js} +3 -3
- package/dist/{chunk-7NCOB2OS.js → chunk-LORECAU5.js} +2 -2
- package/dist/{chunk-2UGJBMPN.mjs → chunk-ND4P6SI5.mjs} +1 -1
- package/dist/{chunk-DIMP63EN.mjs → chunk-Q7YIVOAF.mjs} +1 -1
- package/dist/{chunk-XXCCWLGL.mjs → chunk-S2UM7MXT.mjs} +8 -7
- package/dist/{chunk-NG224TJJ.js → chunk-YIOJM56V.js} +2 -2
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +4 -4
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-W45SBDPH.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYIOJM56Vjs = require('./chunk-YIOJM56V.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLORECAU5js = require('./chunk-LORECAU5.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunkLORECAU5js.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
|
+
_chunkLORECAU5js.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
|
+
_chunkLORECAU5js.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
|
+
_chunkLORECAU5js.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
|
+
_chunkLORECAU5js.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
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunkLORECAU5js.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
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
203
203
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
204
204
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
// ../config-tools/src/logger/get-log-level.ts
|
|
208
|
-
|
|
208
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
209
209
|
var getLogLevel = (label) => {
|
|
210
210
|
switch (label) {
|
|
211
211
|
case "all":
|
|
@@ -428,13 +428,13 @@ var _isFunction = (value) => {
|
|
|
428
428
|
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
429
429
|
|
|
430
430
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
431
|
-
|
|
431
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
432
432
|
|
|
433
433
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
434
|
-
|
|
434
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
435
435
|
|
|
436
436
|
// ../config-tools/src/utilities/find-up.ts
|
|
437
|
-
|
|
437
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
438
438
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
439
439
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
440
440
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -501,11 +501,11 @@ var rootDirectories = [
|
|
|
501
501
|
];
|
|
502
502
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
503
503
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
504
|
-
return
|
|
504
|
+
return _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
505
505
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
506
506
|
);
|
|
507
507
|
}
|
|
508
|
-
return
|
|
508
|
+
return _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
509
509
|
findFolderUp(
|
|
510
510
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
511
511
|
rootFiles,
|
|
@@ -600,13 +600,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
600
600
|
};
|
|
601
601
|
|
|
602
602
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
603
|
-
|
|
603
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
604
604
|
|
|
605
605
|
// ../config/src/index.ts
|
|
606
|
-
|
|
606
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
607
607
|
|
|
608
608
|
// ../config/src/constants.ts
|
|
609
|
-
|
|
609
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
610
610
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
611
611
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
612
612
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -625,10 +625,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
625
625
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
626
626
|
|
|
627
627
|
// ../config/src/define-config.ts
|
|
628
|
-
|
|
628
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
629
629
|
|
|
630
630
|
// ../config/src/schema.ts
|
|
631
|
-
|
|
631
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
632
632
|
var _mini = require('zod/v4/mini'); var z = _interopRequireWildcard(_mini);
|
|
633
633
|
var schemaRegistry = z.registry();
|
|
634
634
|
var colorSchema = z.string().check(
|
|
@@ -1198,7 +1198,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
|
|
1200
1200
|
// ../config/src/types.ts
|
|
1201
|
-
|
|
1201
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
1202
1202
|
var COLOR_KEYS = [
|
|
1203
1203
|
"dark",
|
|
1204
1204
|
"light",
|
|
@@ -1232,7 +1232,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1232
1232
|
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1233
1233
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1234
1234
|
const file = await _promises.readFile.call(void 0,
|
|
1235
|
-
|
|
1235
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1236
1236
|
"utf8"
|
|
1237
1237
|
);
|
|
1238
1238
|
if (file) {
|
|
@@ -1316,7 +1316,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1316
1316
|
envName: _optionalChain([fileName, 'optionalAccess', _38 => _38.toUpperCase, 'call', _39 => _39()]),
|
|
1317
1317
|
jitiOptions: {
|
|
1318
1318
|
debug: false,
|
|
1319
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1319
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
1320
1320
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1321
1321
|
"jiti"
|
|
1322
1322
|
)
|
|
@@ -1330,7 +1330,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1330
1330
|
envName: _optionalChain([fileName, 'optionalAccess', _40 => _40.toUpperCase, 'call', _41 => _41()]),
|
|
1331
1331
|
jitiOptions: {
|
|
1332
1332
|
debug: false,
|
|
1333
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1333
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
1334
1334
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1335
1335
|
"jiti"
|
|
1336
1336
|
)
|
|
@@ -1382,12 +1382,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1382
1382
|
};
|
|
1383
1383
|
|
|
1384
1384
|
// ../config-tools/src/create-storm-config.ts
|
|
1385
|
-
|
|
1385
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
1386
1386
|
|
|
1387
1387
|
|
|
1388
1388
|
|
|
1389
1389
|
// ../config-tools/src/env/get-env.ts
|
|
1390
|
-
|
|
1390
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
1391
1391
|
var getExtensionEnv = (extensionName) => {
|
|
1392
1392
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1393
1393
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1449,15 +1449,15 @@ var getConfigEnv = () => {
|
|
|
1449
1449
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1450
1450
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1451
1451
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1452
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1453
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1452
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1453
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1454
1454
|
directories: {
|
|
1455
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1456
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1457
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1458
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1459
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1460
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1455
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1456
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1457
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1458
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1459
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1460
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkYIOJM56Vjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1461
1461
|
},
|
|
1462
1462
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1463
1463
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1604,7 +1604,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1604
1604
|
};
|
|
1605
1605
|
|
|
1606
1606
|
// ../config-tools/src/env/set-env.ts
|
|
1607
|
-
|
|
1607
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
1608
1608
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1609
1609
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1610
1610
|
if (extension[key]) {
|
|
@@ -1752,42 +1752,42 @@ var setConfigEnv = (config) => {
|
|
|
1752
1752
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1753
1753
|
}
|
|
1754
1754
|
if (config.configFile) {
|
|
1755
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1755
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
1756
1756
|
config.configFile
|
|
1757
1757
|
);
|
|
1758
1758
|
}
|
|
1759
1759
|
if (config.workspaceRoot) {
|
|
1760
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1761
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1762
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1760
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkYIOJM56Vjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1761
|
+
process.env.NX_WORKSPACE_ROOT = _chunkYIOJM56Vjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1762
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkYIOJM56Vjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1763
1763
|
}
|
|
1764
1764
|
if (config.directories) {
|
|
1765
1765
|
if (!config.skipCache && config.directories.cache) {
|
|
1766
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1766
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
1767
1767
|
config.directories.cache
|
|
1768
1768
|
);
|
|
1769
1769
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1770
1770
|
}
|
|
1771
1771
|
if (config.directories.data) {
|
|
1772
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1772
|
+
process.env[`${prefix}DATA_DIR`] = _chunkYIOJM56Vjs.correctPaths.call(void 0, config.directories.data);
|
|
1773
1773
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1774
1774
|
}
|
|
1775
1775
|
if (config.directories.config) {
|
|
1776
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1776
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
1777
1777
|
config.directories.config
|
|
1778
1778
|
);
|
|
1779
1779
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1780
1780
|
}
|
|
1781
1781
|
if (config.directories.temp) {
|
|
1782
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1782
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkYIOJM56Vjs.correctPaths.call(void 0, config.directories.temp);
|
|
1783
1783
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1784
1784
|
}
|
|
1785
1785
|
if (config.directories.log) {
|
|
1786
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1786
|
+
process.env[`${prefix}LOG_DIR`] = _chunkYIOJM56Vjs.correctPaths.call(void 0, config.directories.log);
|
|
1787
1787
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1788
1788
|
}
|
|
1789
1789
|
if (config.directories.build) {
|
|
1790
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1790
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
1791
1791
|
config.directories.build
|
|
1792
1792
|
);
|
|
1793
1793
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -2015,7 +2015,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, s
|
|
|
2015
2015
|
defaultConfig
|
|
2016
2016
|
);
|
|
2017
2017
|
if (!configInput.variant) {
|
|
2018
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
2018
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2019
2019
|
}
|
|
2020
2020
|
try {
|
|
2021
2021
|
const parseResult = await Promise.resolve(
|
|
@@ -2085,7 +2085,7 @@ ${formatLogMessage(config)}`,
|
|
|
2085
2085
|
};
|
|
2086
2086
|
|
|
2087
2087
|
// ../config-tools/src/get-config.ts
|
|
2088
|
-
|
|
2088
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2089
2089
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2090
2090
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2091
2091
|
}
|
|
@@ -2223,7 +2223,7 @@ var _isFunction2 = (value) => {
|
|
|
2223
2223
|
};
|
|
2224
2224
|
|
|
2225
2225
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2226
|
-
|
|
2226
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2227
2227
|
|
|
2228
2228
|
|
|
2229
2229
|
|
|
@@ -2244,7 +2244,9 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2244
2244
|
args.push(`+${options.toolchain}`);
|
|
2245
2245
|
}
|
|
2246
2246
|
args.push(baseCommand);
|
|
2247
|
-
for (const [key, value] of Object.entries(options)
|
|
2247
|
+
for (const [key, value] of Object.entries(options).filter(
|
|
2248
|
+
([key2]) => key2 && key2 !== "_"
|
|
2249
|
+
)) {
|
|
2248
2250
|
if (key === "toolchain" || key === "release" || INVALID_CARGO_ARGS.includes(key)) {
|
|
2249
2251
|
continue;
|
|
2250
2252
|
}
|
|
@@ -2254,7 +2256,7 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2254
2256
|
}
|
|
2255
2257
|
} else if (Array.isArray(value)) {
|
|
2256
2258
|
for (const item of value) {
|
|
2257
|
-
args.push(`--${key}`, item);
|
|
2259
|
+
args.push(`--${key}`, String(item));
|
|
2258
2260
|
}
|
|
2259
2261
|
} else {
|
|
2260
2262
|
args.push(`--${key}`, String(value));
|
|
@@ -2303,7 +2305,7 @@ function cargoCommandSync(args = "", options) {
|
|
|
2303
2305
|
};
|
|
2304
2306
|
} catch (e) {
|
|
2305
2307
|
return {
|
|
2306
|
-
output: e,
|
|
2308
|
+
output: e.message,
|
|
2307
2309
|
success: false
|
|
2308
2310
|
};
|
|
2309
2311
|
}
|
|
@@ -2361,7 +2363,7 @@ var executor_default = withRunExecutor(
|
|
|
2361
2363
|
);
|
|
2362
2364
|
|
|
2363
2365
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2364
|
-
|
|
2366
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2365
2367
|
async function cargoCheckExecutor(options, context) {
|
|
2366
2368
|
const command = buildCargoCommand("check", options, context);
|
|
2367
2369
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2381,7 +2383,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2381
2383
|
);
|
|
2382
2384
|
|
|
2383
2385
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2384
|
-
|
|
2386
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2385
2387
|
async function cargoClippyExecutor(options, context) {
|
|
2386
2388
|
const command = buildCargoCommand("clippy", options, context);
|
|
2387
2389
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2402,7 +2404,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2402
2404
|
);
|
|
2403
2405
|
|
|
2404
2406
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2405
|
-
|
|
2407
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2406
2408
|
async function cargoDocExecutor(options, context) {
|
|
2407
2409
|
const opts = { ...options };
|
|
2408
2410
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2432,7 +2434,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2432
2434
|
);
|
|
2433
2435
|
|
|
2434
2436
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2435
|
-
|
|
2437
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2436
2438
|
async function cargoFormatExecutor(options, context) {
|
|
2437
2439
|
const command = buildCargoCommand("fmt", options, context);
|
|
2438
2440
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2453,7 +2455,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2453
2455
|
);
|
|
2454
2456
|
|
|
2455
2457
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2456
|
-
|
|
2458
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2457
2459
|
|
|
2458
2460
|
|
|
2459
2461
|
|
|
@@ -2461,19 +2463,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2461
2463
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2462
2464
|
|
|
2463
2465
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2464
|
-
|
|
2466
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2465
2467
|
|
|
2466
2468
|
// ../esbuild/src/build.ts
|
|
2467
|
-
|
|
2469
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2468
2470
|
|
|
2469
2471
|
// ../esbuild/src/assets.ts
|
|
2470
|
-
|
|
2472
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2471
2473
|
|
|
2472
2474
|
// ../build-tools/src/index.ts
|
|
2473
|
-
|
|
2475
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2474
2476
|
|
|
2475
2477
|
// ../build-tools/src/config.ts
|
|
2476
|
-
|
|
2478
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2477
2479
|
var DEFAULT_JS_BANNER = `
|
|
2478
2480
|
// ---------------------------------------
|
|
2479
2481
|
// \u{1F5F2} Built by Storm Software
|
|
@@ -2489,35 +2491,35 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2489
2491
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2490
2492
|
|
|
2491
2493
|
// ../build-tools/src/plugins/index.ts
|
|
2492
|
-
|
|
2494
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2493
2495
|
|
|
2494
2496
|
// ../build-tools/src/plugins/analyze.ts
|
|
2495
|
-
|
|
2497
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2496
2498
|
|
|
2497
2499
|
// ../build-tools/src/plugins/swc.ts
|
|
2498
|
-
|
|
2500
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2499
2501
|
var _core = require('@swc/core');
|
|
2500
2502
|
|
|
2501
2503
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2502
|
-
|
|
2504
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2503
2505
|
|
|
2504
2506
|
var _module = require('module');
|
|
2505
2507
|
|
|
2506
2508
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2507
2509
|
|
|
2508
2510
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2509
|
-
|
|
2511
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2510
2512
|
|
|
2511
2513
|
|
|
2512
2514
|
|
|
2513
2515
|
// ../build-tools/src/types.ts
|
|
2514
|
-
|
|
2516
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2515
2517
|
|
|
2516
2518
|
// ../build-tools/src/utilities/index.ts
|
|
2517
|
-
|
|
2519
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2518
2520
|
|
|
2519
2521
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2520
|
-
|
|
2522
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2521
2523
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2522
2524
|
var _glob = require('glob');
|
|
2523
2525
|
|
|
@@ -2549,7 +2551,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2549
2551
|
}
|
|
2550
2552
|
writeTrace(
|
|
2551
2553
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2552
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2554
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkYIOJM56Vjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2553
2555
|
config
|
|
2554
2556
|
);
|
|
2555
2557
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2562,17 +2564,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2562
2564
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2563
2565
|
if (includeSrc === true) {
|
|
2564
2566
|
writeDebug(
|
|
2565
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2567
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2566
2568
|
outputPath,
|
|
2567
2569
|
"src"
|
|
2568
2570
|
)}`,
|
|
2569
2571
|
config
|
|
2570
2572
|
);
|
|
2571
2573
|
const files = await _glob.glob.call(void 0, [
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2574
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2575
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2576
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2577
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2576
2578
|
]);
|
|
2577
2579
|
await Promise.allSettled(
|
|
2578
2580
|
files.map(
|
|
@@ -2590,7 +2592,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2590
2592
|
};
|
|
2591
2593
|
|
|
2592
2594
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2593
|
-
|
|
2595
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2594
2596
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2595
2597
|
|
|
2596
2598
|
|
|
@@ -2628,7 +2630,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2628
2630
|
)) {
|
|
2629
2631
|
const projectNode = project.node;
|
|
2630
2632
|
if (projectNode.data.root) {
|
|
2631
|
-
const projectPackageJsonPath =
|
|
2633
|
+
const projectPackageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2632
2634
|
workspaceRoot2,
|
|
2633
2635
|
projectNode.data.root,
|
|
2634
2636
|
"package.json"
|
|
@@ -2650,7 +2652,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2650
2652
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2651
2653
|
);
|
|
2652
2654
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2653
|
-
|
|
2655
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2654
2656
|
"utf8"
|
|
2655
2657
|
);
|
|
2656
2658
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2663,7 +2665,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2663
2665
|
}
|
|
2664
2666
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _101 => _101.projects, 'optionalAccess', _102 => _102[projectName2], 'access', _103 => _103.implicitDependencies, 'optionalAccess', _104 => _104.reduce, 'call', _105 => _105((ret, dep) => {
|
|
2665
2667
|
if (_optionalChain([projectConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[dep]])) {
|
|
2666
|
-
const depPackageJsonPath =
|
|
2668
|
+
const depPackageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2667
2669
|
workspaceRoot2,
|
|
2668
2670
|
projectConfigurations.projects[dep].root,
|
|
2669
2671
|
"package.json"
|
|
@@ -2701,7 +2703,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2701
2703
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2702
2704
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2703
2705
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2704
|
-
|
|
2706
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2705
2707
|
"utf8"
|
|
2706
2708
|
);
|
|
2707
2709
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2712,7 +2714,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2712
2714
|
if (distSrc.startsWith("/")) {
|
|
2713
2715
|
distSrc = distSrc.substring(1);
|
|
2714
2716
|
}
|
|
2715
|
-
packageJson.source ??= `${
|
|
2717
|
+
packageJson.source ??= `${_chunkYIOJM56Vjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2716
2718
|
}
|
|
2717
2719
|
packageJson.files ??= ["dist/**/*"];
|
|
2718
2720
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2737,7 +2739,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2737
2739
|
packageJson.contributors = [packageJson.author];
|
|
2738
2740
|
}
|
|
2739
2741
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2740
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2742
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkYIOJM56Vjs.joinPaths.call(void 0, "packages", projectName);
|
|
2741
2743
|
return packageJson;
|
|
2742
2744
|
};
|
|
2743
2745
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2762,11 +2764,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2762
2764
|
};
|
|
2763
2765
|
|
|
2764
2766
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2765
|
-
|
|
2767
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2766
2768
|
|
|
2767
2769
|
|
|
2768
2770
|
// ../build-tools/src/utilities/get-env.ts
|
|
2769
|
-
|
|
2771
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2770
2772
|
var getEnv = (builder, options) => {
|
|
2771
2773
|
return {
|
|
2772
2774
|
STORM_BUILD: builder,
|
|
@@ -2781,21 +2783,21 @@ var getEnv = (builder, options) => {
|
|
|
2781
2783
|
};
|
|
2782
2784
|
|
|
2783
2785
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2784
|
-
|
|
2786
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2785
2787
|
|
|
2786
2788
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2787
|
-
|
|
2789
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2788
2790
|
|
|
2789
2791
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2790
|
-
|
|
2792
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2791
2793
|
|
|
2792
2794
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2793
|
-
|
|
2795
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2794
2796
|
|
|
2795
2797
|
|
|
2796
2798
|
|
|
2797
2799
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2798
|
-
|
|
2800
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2799
2801
|
|
|
2800
2802
|
|
|
2801
2803
|
|
|
@@ -2824,14 +2826,14 @@ async function copyBuildAssets(context) {
|
|
|
2824
2826
|
}
|
|
2825
2827
|
|
|
2826
2828
|
// ../esbuild/src/clean.ts
|
|
2827
|
-
|
|
2829
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2828
2830
|
|
|
2829
2831
|
async function cleanDirectories(directory) {
|
|
2830
2832
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2831
2833
|
}
|
|
2832
2834
|
|
|
2833
2835
|
// ../esbuild/src/context.ts
|
|
2834
|
-
|
|
2836
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2835
2837
|
|
|
2836
2838
|
|
|
2837
2839
|
|
|
@@ -2842,7 +2844,7 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
2842
2844
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2843
2845
|
|
|
2844
2846
|
// ../esbuild/src/config.ts
|
|
2845
|
-
|
|
2847
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2846
2848
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2847
2849
|
platform: "node",
|
|
2848
2850
|
target: "node22",
|
|
@@ -2900,7 +2902,7 @@ async function resolveContext(userOptions) {
|
|
|
2900
2902
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2901
2903
|
exitOnError: true
|
|
2902
2904
|
});
|
|
2903
|
-
const projectJsonPath =
|
|
2905
|
+
const projectJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2904
2906
|
workspaceRoot2.dir,
|
|
2905
2907
|
projectRoot,
|
|
2906
2908
|
"project.json"
|
|
@@ -2919,7 +2921,7 @@ async function resolveContext(userOptions) {
|
|
|
2919
2921
|
}
|
|
2920
2922
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2921
2923
|
options.name ??= projectName;
|
|
2922
|
-
const packageJsonPath =
|
|
2924
|
+
const packageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2923
2925
|
workspaceRoot2.dir,
|
|
2924
2926
|
options.projectRoot,
|
|
2925
2927
|
"package.json"
|
|
@@ -2931,7 +2933,7 @@ async function resolveContext(userOptions) {
|
|
|
2931
2933
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2932
2934
|
const resolvedOptions = {
|
|
2933
2935
|
...options,
|
|
2934
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2936
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkYIOJM56Vjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2935
2937
|
metafile: userOptions.mode === "development",
|
|
2936
2938
|
clean: false,
|
|
2937
2939
|
env,
|
|
@@ -2956,8 +2958,8 @@ async function resolveContext(userOptions) {
|
|
|
2956
2958
|
projectConfigurations,
|
|
2957
2959
|
projectName,
|
|
2958
2960
|
projectGraph,
|
|
2959
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2960
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2961
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkYIOJM56Vjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2962
|
+
outputPath: resolvedOptions.outputPath || _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2961
2963
|
workspaceConfig.workspaceRoot,
|
|
2962
2964
|
"dist",
|
|
2963
2965
|
resolvedOptions.projectRoot
|
|
@@ -2977,15 +2979,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2977
2979
|
}
|
|
2978
2980
|
|
|
2979
2981
|
// ../esbuild/src/package-json.ts
|
|
2980
|
-
|
|
2982
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
2981
2983
|
|
|
2982
2984
|
|
|
2983
2985
|
|
|
2984
2986
|
async function generatePackageJson(context) {
|
|
2985
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2987
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2986
2988
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2987
2989
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2988
|
-
const packageJsonPath =
|
|
2990
|
+
const packageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2989
2991
|
context.options.projectRoot,
|
|
2990
2992
|
"project.json"
|
|
2991
2993
|
);
|
|
@@ -2993,7 +2995,7 @@ async function generatePackageJson(context) {
|
|
|
2993
2995
|
throw new Error("Cannot find package.json configuration");
|
|
2994
2996
|
}
|
|
2995
2997
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2996
|
-
|
|
2998
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
2997
2999
|
context.workspaceConfig.workspaceRoot,
|
|
2998
3000
|
context.options.projectRoot,
|
|
2999
3001
|
"package.json"
|
|
@@ -3099,7 +3101,7 @@ async function generatePackageJson(context) {
|
|
|
3099
3101
|
}
|
|
3100
3102
|
}
|
|
3101
3103
|
await _devkit.writeJsonFile.call(void 0,
|
|
3102
|
-
|
|
3104
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
3103
3105
|
packageJson
|
|
3104
3106
|
);
|
|
3105
3107
|
stopwatch();
|
|
@@ -3108,10 +3110,10 @@ async function generatePackageJson(context) {
|
|
|
3108
3110
|
}
|
|
3109
3111
|
|
|
3110
3112
|
// ../esbuild/src/tsup.ts
|
|
3111
|
-
|
|
3113
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3112
3114
|
|
|
3113
3115
|
// ../tsup/src/index.ts
|
|
3114
|
-
|
|
3116
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3115
3117
|
var _tsup = require('tsup');
|
|
3116
3118
|
async function build(options) {
|
|
3117
3119
|
if (!options.silent) {
|
|
@@ -3136,7 +3138,7 @@ async function executeTsup(context) {
|
|
|
3136
3138
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3137
3139
|
await build({
|
|
3138
3140
|
...context.options,
|
|
3139
|
-
outDir: context.options.distDir ?
|
|
3141
|
+
outDir: context.options.distDir ? _chunkYIOJM56Vjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3140
3142
|
workspaceConfig: context.workspaceConfig
|
|
3141
3143
|
});
|
|
3142
3144
|
stopwatch();
|
|
@@ -3246,12 +3248,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3246
3248
|
);
|
|
3247
3249
|
|
|
3248
3250
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3249
|
-
|
|
3251
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3250
3252
|
var _jiti = require('jiti');
|
|
3251
3253
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3252
3254
|
async function napiExecutor(options, context, config) {
|
|
3253
3255
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3254
|
-
fsCache: config.skipCache ? false :
|
|
3256
|
+
fsCache: config.skipCache ? false : _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
3255
3257
|
config.workspaceRoot,
|
|
3256
3258
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3257
3259
|
"jiti"
|
|
@@ -3267,52 +3269,52 @@ async function napiExecutor(options, context, config) {
|
|
|
3267
3269
|
);
|
|
3268
3270
|
}
|
|
3269
3271
|
const projectRoot = _optionalChain([context, 'access', _149 => _149.projectGraph, 'optionalAccess', _150 => _150.nodes, 'access', _151 => _151[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _152 => _152.data, 'access', _153 => _153.root]);
|
|
3270
|
-
const packageJson =
|
|
3272
|
+
const packageJson = _chunkYIOJM56Vjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3271
3273
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3272
3274
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3273
3275
|
}
|
|
3274
3276
|
const napi = new NapiCli();
|
|
3275
3277
|
const normalizedOptions = { ...options };
|
|
3276
3278
|
const metadata = cargoMetadata();
|
|
3277
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) ||
|
|
3279
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) || _chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3278
3280
|
normalizedOptions.outputDir = options.outputPath;
|
|
3279
3281
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
3280
3282
|
if (options.cwd) {
|
|
3281
|
-
normalizedOptions.cwd =
|
|
3283
|
+
normalizedOptions.cwd = _chunkYIOJM56Vjs.correctPaths.call(void 0, options.cwd);
|
|
3282
3284
|
} else {
|
|
3283
|
-
const absoluteProjectRoot =
|
|
3284
|
-
|
|
3285
|
+
const absoluteProjectRoot = _chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
3286
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
|
|
3285
3287
|
);
|
|
3286
3288
|
normalizedOptions.cwd = absoluteProjectRoot;
|
|
3287
3289
|
if (normalizedOptions.outputDir) {
|
|
3288
|
-
normalizedOptions.outputDir =
|
|
3290
|
+
normalizedOptions.outputDir = _chunkYIOJM56Vjs.relative.call(void 0,
|
|
3289
3291
|
normalizedOptions.cwd,
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
+
_chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
3293
|
+
_chunkYIOJM56Vjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3292
3294
|
)
|
|
3293
3295
|
);
|
|
3294
3296
|
}
|
|
3295
3297
|
if (normalizedOptions.packageJsonPath) {
|
|
3296
|
-
normalizedOptions.packageJsonPath =
|
|
3298
|
+
normalizedOptions.packageJsonPath = _chunkYIOJM56Vjs.relative.call(void 0,
|
|
3297
3299
|
normalizedOptions.cwd,
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
+
_chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
3301
|
+
_chunkYIOJM56Vjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3300
3302
|
)
|
|
3301
3303
|
);
|
|
3302
3304
|
}
|
|
3303
3305
|
if (normalizedOptions.configPath) {
|
|
3304
|
-
normalizedOptions.configPath =
|
|
3306
|
+
normalizedOptions.configPath = _chunkYIOJM56Vjs.relative.call(void 0,
|
|
3305
3307
|
normalizedOptions.cwd,
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
+
_chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
3309
|
+
_chunkYIOJM56Vjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3308
3310
|
)
|
|
3309
3311
|
);
|
|
3310
3312
|
}
|
|
3311
3313
|
if (normalizedOptions.manifestPath) {
|
|
3312
|
-
normalizedOptions.manifestPath =
|
|
3314
|
+
normalizedOptions.manifestPath = _chunkYIOJM56Vjs.relative.call(void 0,
|
|
3313
3315
|
normalizedOptions.cwd,
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
+
_chunkYIOJM56Vjs.correctPaths.call(void 0,
|
|
3317
|
+
_chunkYIOJM56Vjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkYIOJM56Vjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3316
3318
|
)
|
|
3317
3319
|
);
|
|
3318
3320
|
}
|
|
@@ -3355,17 +3357,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3355
3357
|
);
|
|
3356
3358
|
|
|
3357
3359
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3358
|
-
|
|
3360
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3359
3361
|
|
|
3360
3362
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3361
|
-
|
|
3363
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3362
3364
|
|
|
3363
3365
|
|
|
3364
3366
|
// ../npm-tools/src/constants.ts
|
|
3365
|
-
|
|
3367
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3366
3368
|
|
|
3367
3369
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3368
|
-
|
|
3370
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3369
3371
|
|
|
3370
3372
|
|
|
3371
3373
|
|
|
@@ -3375,17 +3377,17 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
3375
3377
|
var _prettier = require('prettier');
|
|
3376
3378
|
|
|
3377
3379
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3378
|
-
|
|
3380
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3379
3381
|
|
|
3380
3382
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3381
|
-
|
|
3383
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3382
3384
|
|
|
3383
3385
|
|
|
3384
3386
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3385
3387
|
var _semver = require('semver');
|
|
3386
3388
|
|
|
3387
3389
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3388
|
-
|
|
3390
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3389
3391
|
|
|
3390
3392
|
|
|
3391
3393
|
var _yaml = require('yaml');
|
|
@@ -3396,7 +3398,7 @@ var _yaml = require('yaml');
|
|
|
3396
3398
|
|
|
3397
3399
|
|
|
3398
3400
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3399
|
-
|
|
3401
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3400
3402
|
|
|
3401
3403
|
|
|
3402
3404
|
|
|
@@ -3408,7 +3410,7 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
3408
3410
|
|
|
3409
3411
|
|
|
3410
3412
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3411
|
-
|
|
3413
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3412
3414
|
var ProjectTagConstants = {
|
|
3413
3415
|
Language: {
|
|
3414
3416
|
TAG_ID: "language",
|
|
@@ -3485,7 +3487,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3485
3487
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3486
3488
|
|
|
3487
3489
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3488
|
-
|
|
3490
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3489
3491
|
|
|
3490
3492
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3491
3493
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3527,10 +3529,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3527
3529
|
);
|
|
3528
3530
|
|
|
3529
3531
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3530
|
-
|
|
3532
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3531
3533
|
|
|
3532
3534
|
// ../tsdown/src/build.ts
|
|
3533
|
-
|
|
3535
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3534
3536
|
|
|
3535
3537
|
|
|
3536
3538
|
|
|
@@ -3542,14 +3544,14 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
3542
3544
|
var _tsdown = require('tsdown');
|
|
3543
3545
|
|
|
3544
3546
|
// ../tsdown/src/clean.ts
|
|
3545
|
-
|
|
3547
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3546
3548
|
|
|
3547
3549
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3548
3550
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3549
3551
|
}
|
|
3550
3552
|
|
|
3551
3553
|
// ../tsdown/src/config.ts
|
|
3552
|
-
|
|
3554
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3553
3555
|
function getDefaultOptions(config) {
|
|
3554
3556
|
return {
|
|
3555
3557
|
entry: ["./src/*.ts"],
|
|
@@ -3592,7 +3594,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3592
3594
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3593
3595
|
exitOnError: true
|
|
3594
3596
|
});
|
|
3595
|
-
const projectJsonPath =
|
|
3597
|
+
const projectJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
3596
3598
|
workspaceRoot2,
|
|
3597
3599
|
options.projectRoot,
|
|
3598
3600
|
"project.json"
|
|
@@ -3609,7 +3611,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3609
3611
|
"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."
|
|
3610
3612
|
);
|
|
3611
3613
|
}
|
|
3612
|
-
const packageJsonPath =
|
|
3614
|
+
const packageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
3613
3615
|
workspaceRoot2,
|
|
3614
3616
|
options.projectRoot,
|
|
3615
3617
|
"package.json"
|
|
@@ -3618,13 +3620,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3618
3620
|
throw new Error("Cannot find package.json configuration");
|
|
3619
3621
|
}
|
|
3620
3622
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3621
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3623
|
+
const sourceRoot = projectJson.sourceRoot || _chunkYIOJM56Vjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3622
3624
|
const result = {
|
|
3623
3625
|
name: projectName,
|
|
3624
3626
|
mode: "production",
|
|
3625
3627
|
target: DEFAULT_TARGET,
|
|
3626
3628
|
generatePackageJson: true,
|
|
3627
|
-
outDir:
|
|
3629
|
+
outDir: _chunkYIOJM56Vjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3628
3630
|
minify: !debug,
|
|
3629
3631
|
plugins: [],
|
|
3630
3632
|
assets: [],
|
|
@@ -3636,12 +3638,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3636
3638
|
clean: false,
|
|
3637
3639
|
fixedExtension: true,
|
|
3638
3640
|
nodeProtocol: true,
|
|
3639
|
-
tsconfig:
|
|
3641
|
+
tsconfig: _chunkYIOJM56Vjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3640
3642
|
debug,
|
|
3641
3643
|
sourceRoot,
|
|
3642
3644
|
cwd: workspaceConfig.workspaceRoot,
|
|
3643
3645
|
entry: {
|
|
3644
|
-
["index"]:
|
|
3646
|
+
["index"]: _chunkYIOJM56Vjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3645
3647
|
},
|
|
3646
3648
|
workspace: true,
|
|
3647
3649
|
...options,
|
|
@@ -3660,15 +3662,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3660
3662
|
return result;
|
|
3661
3663
|
};
|
|
3662
3664
|
async function generatePackageJson2(options) {
|
|
3663
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3665
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3664
3666
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3665
3667
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3666
|
-
const packageJsonPath =
|
|
3668
|
+
const packageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3667
3669
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3668
3670
|
throw new Error("Cannot find package.json configuration");
|
|
3669
3671
|
}
|
|
3670
3672
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3671
|
-
|
|
3673
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
3672
3674
|
options.workspaceConfig.workspaceRoot,
|
|
3673
3675
|
options.projectRoot,
|
|
3674
3676
|
"package.json"
|
|
@@ -3730,7 +3732,7 @@ async function generatePackageJson2(options) {
|
|
|
3730
3732
|
},
|
|
3731
3733
|
packageJson.exports
|
|
3732
3734
|
);
|
|
3733
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3735
|
+
await _devkit.writeJsonFile.call(void 0, _chunkYIOJM56Vjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3734
3736
|
stopwatch();
|
|
3735
3737
|
}
|
|
3736
3738
|
return options;
|
|
@@ -3863,7 +3865,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3863
3865
|
);
|
|
3864
3866
|
|
|
3865
3867
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3866
|
-
|
|
3868
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3867
3869
|
var _fsextra = require('fs-extra');
|
|
3868
3870
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3869
3871
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3903,7 +3905,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3903
3905
|
);
|
|
3904
3906
|
|
|
3905
3907
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3906
|
-
|
|
3908
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3907
3909
|
|
|
3908
3910
|
|
|
3909
3911
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3924,7 +3926,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3924
3926
|
);
|
|
3925
3927
|
}
|
|
3926
3928
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3927
|
-
fsCache: config.skipCache ? false :
|
|
3929
|
+
fsCache: config.skipCache ? false : _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
3928
3930
|
config.workspaceRoot,
|
|
3929
3931
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3930
3932
|
"jiti"
|
|
@@ -3946,7 +3948,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3946
3948
|
{
|
|
3947
3949
|
stubOptions: {
|
|
3948
3950
|
jiti: {
|
|
3949
|
-
fsCache: config.skipCache ? false :
|
|
3951
|
+
fsCache: config.skipCache ? false : _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
3950
3952
|
config.workspaceRoot,
|
|
3951
3953
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3952
3954
|
"jiti"
|
|
@@ -3995,10 +3997,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3995
3997
|
);
|
|
3996
3998
|
|
|
3997
3999
|
// ../workspace-tools/generators.ts
|
|
3998
|
-
|
|
4000
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
3999
4001
|
|
|
4000
4002
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4001
|
-
|
|
4003
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4002
4004
|
|
|
4003
4005
|
|
|
4004
4006
|
|
|
@@ -4007,7 +4009,7 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
4007
4009
|
|
|
4008
4010
|
|
|
4009
4011
|
// ../workspace-tools/src/base/base-generator.ts
|
|
4010
|
-
|
|
4012
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4011
4013
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
4012
4014
|
skipReadingConfig: false
|
|
4013
4015
|
}) => async (tree, _options) => {
|
|
@@ -4094,7 +4096,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4094
4096
|
};
|
|
4095
4097
|
|
|
4096
4098
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
4097
|
-
|
|
4099
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4098
4100
|
|
|
4099
4101
|
|
|
4100
4102
|
|
|
@@ -4116,7 +4118,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
4116
4118
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
4117
4119
|
|
|
4118
4120
|
// ../workspace-tools/src/utils/versions.ts
|
|
4119
|
-
|
|
4121
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4120
4122
|
var typesNodeVersion = "20.9.0";
|
|
4121
4123
|
var nxVersion = "^18.0.4";
|
|
4122
4124
|
var nodeVersion = "20.11.0";
|
|
@@ -4149,16 +4151,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4149
4151
|
const projectConfig = {
|
|
4150
4152
|
root: normalized.directory,
|
|
4151
4153
|
projectType: "library",
|
|
4152
|
-
sourceRoot:
|
|
4154
|
+
sourceRoot: _chunkYIOJM56Vjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4153
4155
|
targets: {
|
|
4154
4156
|
build: {
|
|
4155
4157
|
executor: options.buildExecutor,
|
|
4156
4158
|
outputs: ["{options.outputPath}"],
|
|
4157
4159
|
options: {
|
|
4158
|
-
entry: [
|
|
4160
|
+
entry: [_chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4159
4161
|
outputPath: getOutputPath(normalized),
|
|
4160
|
-
tsconfig:
|
|
4161
|
-
project:
|
|
4162
|
+
tsconfig: _chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4163
|
+
project: _chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4162
4164
|
defaultConfiguration: "production",
|
|
4163
4165
|
platform: "neutral",
|
|
4164
4166
|
assets: [
|
|
@@ -4215,7 +4217,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4215
4217
|
if (!normalized.importPath) {
|
|
4216
4218
|
normalized.importPath = normalized.name;
|
|
4217
4219
|
}
|
|
4218
|
-
const packageJsonPath =
|
|
4220
|
+
const packageJsonPath = _chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4219
4221
|
if (tree.exists(packageJsonPath)) {
|
|
4220
4222
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4221
4223
|
if (!normalized.importPath) {
|
|
@@ -4272,14 +4274,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4272
4274
|
}));
|
|
4273
4275
|
}
|
|
4274
4276
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4275
|
-
|
|
4277
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
4276
4278
|
normalized.projectRoot,
|
|
4277
4279
|
"./src",
|
|
4278
4280
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4279
4281
|
)
|
|
4280
4282
|
]);
|
|
4281
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4282
|
-
|
|
4283
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4284
|
+
_chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4283
4285
|
]);
|
|
4284
4286
|
if (tree.exists("package.json")) {
|
|
4285
4287
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4290,7 +4292,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4290
4292
|
description = packageJson.description;
|
|
4291
4293
|
}
|
|
4292
4294
|
}
|
|
4293
|
-
const tsconfigPath =
|
|
4295
|
+
const tsconfigPath = _chunkYIOJM56Vjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4294
4296
|
if (tree.exists(tsconfigPath)) {
|
|
4295
4297
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4296
4298
|
json.composite ??= true;
|
|
@@ -4318,7 +4320,7 @@ function getOutputPath(options) {
|
|
|
4318
4320
|
} else {
|
|
4319
4321
|
parts.push(options.projectRoot);
|
|
4320
4322
|
}
|
|
4321
|
-
return
|
|
4323
|
+
return _chunkYIOJM56Vjs.joinPaths.call(void 0, ...parts);
|
|
4322
4324
|
}
|
|
4323
4325
|
function createProjectTsConfigJson(tree, options) {
|
|
4324
4326
|
const tsconfig = {
|
|
@@ -4326,7 +4328,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4326
4328
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _213 => _213.tsconfigOptions]), () => ( {})),
|
|
4327
4329
|
compilerOptions: {
|
|
4328
4330
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4329
|
-
outDir:
|
|
4331
|
+
outDir: _chunkYIOJM56Vjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4330
4332
|
noEmit: true,
|
|
4331
4333
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _214 => _214.tsconfigOptions, 'optionalAccess', _215 => _215.compilerOptions]), () => ( {}))
|
|
4332
4334
|
},
|
|
@@ -4344,7 +4346,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4344
4346
|
"src/**/*.test.ts"
|
|
4345
4347
|
]
|
|
4346
4348
|
};
|
|
4347
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4349
|
+
_devkit.writeJson.call(void 0, tree, _chunkYIOJM56Vjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4348
4350
|
}
|
|
4349
4351
|
async function normalizeOptions(tree, options, config) {
|
|
4350
4352
|
let importPath = options.importPath;
|
|
@@ -4409,7 +4411,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4409
4411
|
|
|
4410
4412
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4411
4413
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4412
|
-
const filesDir =
|
|
4414
|
+
const filesDir = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
4413
4415
|
__dirname,
|
|
4414
4416
|
"src",
|
|
4415
4417
|
"generators",
|
|
@@ -4489,7 +4491,7 @@ var generator_default = withRunGenerator(
|
|
|
4489
4491
|
);
|
|
4490
4492
|
|
|
4491
4493
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4492
|
-
|
|
4494
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4493
4495
|
|
|
4494
4496
|
var _zod2 = require('zod'); var z2 = _interopRequireWildcard(_zod2);
|
|
4495
4497
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4546,7 +4548,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4546
4548
|
);
|
|
4547
4549
|
|
|
4548
4550
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4549
|
-
|
|
4551
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4550
4552
|
|
|
4551
4553
|
|
|
4552
4554
|
|
|
@@ -4574,7 +4576,7 @@ async function initGenerator(tree, schema) {
|
|
|
4574
4576
|
}
|
|
4575
4577
|
|
|
4576
4578
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4577
|
-
|
|
4579
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4578
4580
|
|
|
4579
4581
|
|
|
4580
4582
|
|
|
@@ -4582,7 +4584,7 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
4582
4584
|
|
|
4583
4585
|
|
|
4584
4586
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4585
|
-
const filesDir =
|
|
4587
|
+
const filesDir = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
4586
4588
|
__dirname,
|
|
4587
4589
|
"src",
|
|
4588
4590
|
"generators",
|
|
@@ -4634,7 +4636,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4634
4636
|
);
|
|
4635
4637
|
|
|
4636
4638
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4637
|
-
|
|
4639
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4638
4640
|
|
|
4639
4641
|
|
|
4640
4642
|
|
|
@@ -4642,7 +4644,7 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
4642
4644
|
|
|
4643
4645
|
|
|
4644
4646
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4645
|
-
const filesDir =
|
|
4647
|
+
const filesDir = _chunkYIOJM56Vjs.joinPaths.call(void 0,
|
|
4646
4648
|
__dirname,
|
|
4647
4649
|
"src",
|
|
4648
4650
|
"generators",
|
|
@@ -4696,7 +4698,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4696
4698
|
);
|
|
4697
4699
|
|
|
4698
4700
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4699
|
-
|
|
4701
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4700
4702
|
|
|
4701
4703
|
|
|
4702
4704
|
|
|
@@ -4935,10 +4937,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4935
4937
|
);
|
|
4936
4938
|
|
|
4937
4939
|
// ../workspace-tools/src/base/index.ts
|
|
4938
|
-
|
|
4940
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4939
4941
|
|
|
4940
4942
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4941
|
-
|
|
4943
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4942
4944
|
var _untyped = require('untyped');
|
|
4943
4945
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4944
4946
|
$schema: {
|
|
@@ -4952,13 +4954,12 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4952
4954
|
type: "string",
|
|
4953
4955
|
format: "path",
|
|
4954
4956
|
description: "The output path for the build"
|
|
4955
|
-
}
|
|
4956
|
-
$default: "dist/{projectRoot}"
|
|
4957
|
+
}
|
|
4957
4958
|
}
|
|
4958
4959
|
});
|
|
4959
4960
|
|
|
4960
4961
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4961
|
-
|
|
4962
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4962
4963
|
|
|
4963
4964
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4964
4965
|
$schema: {
|
|
@@ -4976,7 +4977,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4976
4977
|
});
|
|
4977
4978
|
|
|
4978
4979
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4979
|
-
|
|
4980
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
4980
4981
|
|
|
4981
4982
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4982
4983
|
...base_executor_untyped_default,
|
|
@@ -5049,7 +5050,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5049
5050
|
});
|
|
5050
5051
|
|
|
5051
5052
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5052
|
-
|
|
5053
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5053
5054
|
|
|
5054
5055
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5055
5056
|
...base_executor_untyped_default,
|
|
@@ -5201,7 +5202,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5201
5202
|
});
|
|
5202
5203
|
|
|
5203
5204
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5204
|
-
|
|
5205
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5205
5206
|
|
|
5206
5207
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5207
5208
|
...base_generator_untyped_default,
|
|
@@ -5307,42 +5308,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5307
5308
|
});
|
|
5308
5309
|
|
|
5309
5310
|
// ../workspace-tools/src/release/index.ts
|
|
5310
|
-
|
|
5311
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5311
5312
|
|
|
5312
5313
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5313
|
-
|
|
5314
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5314
5315
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5315
5316
|
|
|
5316
5317
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5317
|
-
|
|
5318
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5318
5319
|
|
|
5319
5320
|
|
|
5320
5321
|
|
|
5321
5322
|
var _release = require('nx/release');
|
|
5322
5323
|
|
|
5323
5324
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5324
|
-
|
|
5325
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5325
5326
|
|
|
5326
5327
|
|
|
5327
5328
|
// ../workspace-tools/src/types.ts
|
|
5328
|
-
|
|
5329
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5329
5330
|
|
|
5330
5331
|
// ../workspace-tools/src/utils/index.ts
|
|
5331
|
-
|
|
5332
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5332
5333
|
|
|
5333
5334
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5334
|
-
|
|
5335
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5335
5336
|
|
|
5336
5337
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5337
|
-
|
|
5338
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5338
5339
|
|
|
5339
5340
|
|
|
5340
5341
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5341
|
-
|
|
5342
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5342
5343
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5343
5344
|
|
|
5344
5345
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5345
|
-
|
|
5346
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5346
5347
|
|
|
5347
5348
|
|
|
5348
5349
|
|
|
@@ -5370,10 +5371,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5370
5371
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5371
5372
|
|
|
5372
5373
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5373
|
-
|
|
5374
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5374
5375
|
|
|
5375
5376
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5376
|
-
|
|
5377
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5377
5378
|
|
|
5378
5379
|
|
|
5379
5380
|
|
|
@@ -5382,7 +5383,7 @@ _chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
|
5382
5383
|
|
|
5383
5384
|
|
|
5384
5385
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5385
|
-
|
|
5386
|
+
_chunkLORECAU5js.init_cjs_shims.call(void 0, );
|
|
5386
5387
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5387
5388
|
|
|
5388
5389
|
// src/generators/init/generator.ts
|