@storm-software/projen 0.21.153 → 0.21.155
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 +24 -0
- package/README.md +1 -1
- package/dist/{chunk-6OLTJ27L.mjs → chunk-4TE5DWCM.mjs} +9 -5
- package/dist/{chunk-G4XGYIWX.js → chunk-6FDS5BKB.js} +2 -2
- package/dist/{chunk-CUJZA5ZF.mjs → chunk-6JC4L6E7.mjs} +1 -1
- package/dist/{chunk-QWCY4XNM.js → chunk-CU6JYUTN.js} +209 -205
- package/dist/{chunk-OFD277XM.mjs → chunk-FKR7AWCB.mjs} +1 -1
- package/dist/{chunk-TPKL6UHQ.mjs → chunk-JSYT6UWB.mjs} +1 -1
- package/dist/{chunk-IJS342TN.js → chunk-QYSNEPTB.js} +2 -2
- package/dist/chunk-RIUOO3HC.js +6 -0
- package/dist/{chunk-JF5ZQZ2R.mjs → chunk-TS6X2KG6.mjs} +2 -2
- package/dist/{chunk-PPHOMSJK.js → chunk-V7TNJQR7.js} +3 -3
- 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 +5 -5
- package/dist/chunk-R2TFRYVG.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQYSNEPTBjs = require('./chunk-QYSNEPTB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk6FDS5BKBjs = require('./chunk-6FDS5BKB.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.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
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
432
432
|
|
|
433
433
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
434
|
-
|
|
434
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
435
435
|
|
|
436
436
|
// ../config-tools/src/utilities/find-up.ts
|
|
437
|
-
|
|
437
|
+
_chunk6FDS5BKBjs.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 _chunkQYSNEPTBjs.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 _chunkQYSNEPTBjs.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
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
604
604
|
|
|
605
605
|
// ../config/src/index.ts
|
|
606
|
-
|
|
606
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
607
607
|
|
|
608
608
|
// ../config/src/constants.ts
|
|
609
|
-
|
|
609
|
+
_chunk6FDS5BKBjs.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,11 +625,11 @@ 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
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
629
629
|
|
|
630
630
|
// ../config/src/schema.ts
|
|
631
|
-
|
|
632
|
-
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
631
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
632
|
+
var _mini = require('zod/v4/mini'); var z = _interopRequireWildcard(_mini);
|
|
633
633
|
var schemaRegistry = z.registry();
|
|
634
634
|
var colorSchema = z.string().check(
|
|
635
635
|
z.length(7),
|
|
@@ -1198,7 +1198,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
|
|
1200
1200
|
// ../config/src/types.ts
|
|
1201
|
-
|
|
1201
|
+
_chunk6FDS5BKBjs.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
|
+
_chunkQYSNEPTBjs.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 : _chunkQYSNEPTBjs.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 : _chunkQYSNEPTBjs.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
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
1386
1386
|
|
|
1387
1387
|
|
|
1388
1388
|
|
|
1389
1389
|
// ../config-tools/src/env/get-env.ts
|
|
1390
|
-
|
|
1390
|
+
_chunk6FDS5BKBjs.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`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1453
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkQYSNEPTBjs.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`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1456
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1457
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1458
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1459
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1460
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkQYSNEPTBjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkQYSNEPTBjs.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
|
+
_chunk6FDS5BKBjs.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`] = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1761
|
+
process.env.NX_WORKSPACE_ROOT = _chunkQYSNEPTBjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1762
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.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`] = _chunkQYSNEPTBjs.correctPaths.call(void 0,
|
|
1791
1791
|
config.directories.build
|
|
1792
1792
|
);
|
|
1793
1793
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -2015,12 +2015,16 @@ 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, _chunkQYSNEPTBjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkQYSNEPTBjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkQYSNEPTBjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkQYSNEPTBjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2019
2019
|
}
|
|
2020
2020
|
try {
|
|
2021
|
-
|
|
2022
|
-
|
|
2021
|
+
const parseResult = await Promise.resolve(
|
|
2022
|
+
workspaceConfigSchema._zod.parse(
|
|
2023
|
+
{ value: configInput, issues: [] },
|
|
2024
|
+
{ async: true }
|
|
2025
|
+
)
|
|
2023
2026
|
);
|
|
2027
|
+
result = applyDefaultConfig(parseResult.value);
|
|
2024
2028
|
result.workspaceRoot ??= _workspaceRoot;
|
|
2025
2029
|
} catch (error) {
|
|
2026
2030
|
throw new Error(
|
|
@@ -2081,7 +2085,7 @@ ${formatLogMessage(config)}`,
|
|
|
2081
2085
|
};
|
|
2082
2086
|
|
|
2083
2087
|
// ../config-tools/src/get-config.ts
|
|
2084
|
-
|
|
2088
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2085
2089
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2086
2090
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2087
2091
|
}
|
|
@@ -2219,7 +2223,7 @@ var _isFunction2 = (value) => {
|
|
|
2219
2223
|
};
|
|
2220
2224
|
|
|
2221
2225
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2222
|
-
|
|
2226
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2223
2227
|
|
|
2224
2228
|
|
|
2225
2229
|
|
|
@@ -2357,7 +2361,7 @@ var executor_default = withRunExecutor(
|
|
|
2357
2361
|
);
|
|
2358
2362
|
|
|
2359
2363
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2360
|
-
|
|
2364
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2361
2365
|
async function cargoCheckExecutor(options, context) {
|
|
2362
2366
|
const command = buildCargoCommand("check", options, context);
|
|
2363
2367
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2377,7 +2381,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2377
2381
|
);
|
|
2378
2382
|
|
|
2379
2383
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2380
|
-
|
|
2384
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2381
2385
|
async function cargoClippyExecutor(options, context) {
|
|
2382
2386
|
const command = buildCargoCommand("clippy", options, context);
|
|
2383
2387
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2398,7 +2402,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2398
2402
|
);
|
|
2399
2403
|
|
|
2400
2404
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2401
|
-
|
|
2405
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2402
2406
|
async function cargoDocExecutor(options, context) {
|
|
2403
2407
|
const opts = { ...options };
|
|
2404
2408
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2428,7 +2432,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2428
2432
|
);
|
|
2429
2433
|
|
|
2430
2434
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2431
|
-
|
|
2435
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2432
2436
|
async function cargoFormatExecutor(options, context) {
|
|
2433
2437
|
const command = buildCargoCommand("fmt", options, context);
|
|
2434
2438
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2449,7 +2453,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2449
2453
|
);
|
|
2450
2454
|
|
|
2451
2455
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2452
|
-
|
|
2456
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2453
2457
|
|
|
2454
2458
|
|
|
2455
2459
|
|
|
@@ -2457,19 +2461,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2457
2461
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2458
2462
|
|
|
2459
2463
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2460
|
-
|
|
2464
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2461
2465
|
|
|
2462
2466
|
// ../esbuild/src/build.ts
|
|
2463
|
-
|
|
2467
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2464
2468
|
|
|
2465
2469
|
// ../esbuild/src/assets.ts
|
|
2466
|
-
|
|
2470
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2467
2471
|
|
|
2468
2472
|
// ../build-tools/src/index.ts
|
|
2469
|
-
|
|
2473
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2470
2474
|
|
|
2471
2475
|
// ../build-tools/src/config.ts
|
|
2472
|
-
|
|
2476
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2473
2477
|
var DEFAULT_JS_BANNER = `
|
|
2474
2478
|
// ---------------------------------------
|
|
2475
2479
|
// \u{1F5F2} Built by Storm Software
|
|
@@ -2485,41 +2489,41 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2485
2489
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2486
2490
|
|
|
2487
2491
|
// ../build-tools/src/constants/index.ts
|
|
2488
|
-
|
|
2492
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2489
2493
|
|
|
2490
2494
|
// ../build-tools/src/constants/internal-packages.ts
|
|
2491
|
-
|
|
2495
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2492
2496
|
|
|
2493
2497
|
// ../build-tools/src/plugins/index.ts
|
|
2494
|
-
|
|
2498
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2495
2499
|
|
|
2496
2500
|
// ../build-tools/src/plugins/analyze.ts
|
|
2497
|
-
|
|
2501
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2498
2502
|
|
|
2499
2503
|
// ../build-tools/src/plugins/swc.ts
|
|
2500
|
-
|
|
2504
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2501
2505
|
var _core = require('@swc/core');
|
|
2502
2506
|
|
|
2503
2507
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2504
|
-
|
|
2508
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2505
2509
|
|
|
2506
2510
|
var _module = require('module');
|
|
2507
2511
|
|
|
2508
2512
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2509
2513
|
|
|
2510
2514
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2511
|
-
|
|
2515
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2512
2516
|
|
|
2513
2517
|
|
|
2514
2518
|
|
|
2515
2519
|
// ../build-tools/src/types.ts
|
|
2516
|
-
|
|
2520
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2517
2521
|
|
|
2518
2522
|
// ../build-tools/src/utilities/index.ts
|
|
2519
|
-
|
|
2523
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2520
2524
|
|
|
2521
2525
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2522
|
-
|
|
2526
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2523
2527
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2524
2528
|
var _glob = require('glob');
|
|
2525
2529
|
|
|
@@ -2551,7 +2555,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2551
2555
|
}
|
|
2552
2556
|
writeTrace(
|
|
2553
2557
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2554
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2558
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkQYSNEPTBjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2555
2559
|
config
|
|
2556
2560
|
);
|
|
2557
2561
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2564,17 +2568,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2564
2568
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2565
2569
|
if (includeSrc === true) {
|
|
2566
2570
|
writeDebug(
|
|
2567
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2571
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2568
2572
|
outputPath,
|
|
2569
2573
|
"src"
|
|
2570
2574
|
)}`,
|
|
2571
2575
|
config
|
|
2572
2576
|
);
|
|
2573
2577
|
const files = await _glob.glob.call(void 0, [
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2579
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2580
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2581
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2578
2582
|
]);
|
|
2579
2583
|
await Promise.allSettled(
|
|
2580
2584
|
files.map(
|
|
@@ -2592,7 +2596,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2592
2596
|
};
|
|
2593
2597
|
|
|
2594
2598
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2595
|
-
|
|
2599
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2596
2600
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2597
2601
|
|
|
2598
2602
|
|
|
@@ -2630,7 +2634,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2630
2634
|
)) {
|
|
2631
2635
|
const projectNode = project.node;
|
|
2632
2636
|
if (projectNode.data.root) {
|
|
2633
|
-
const projectPackageJsonPath =
|
|
2637
|
+
const projectPackageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2634
2638
|
workspaceRoot2,
|
|
2635
2639
|
projectNode.data.root,
|
|
2636
2640
|
"package.json"
|
|
@@ -2652,7 +2656,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2652
2656
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2653
2657
|
);
|
|
2654
2658
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2655
|
-
|
|
2659
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2656
2660
|
"utf8"
|
|
2657
2661
|
);
|
|
2658
2662
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2665,7 +2669,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2665
2669
|
}
|
|
2666
2670
|
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) => {
|
|
2667
2671
|
if (_optionalChain([projectConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[dep]])) {
|
|
2668
|
-
const depPackageJsonPath =
|
|
2672
|
+
const depPackageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2669
2673
|
workspaceRoot2,
|
|
2670
2674
|
projectConfigurations.projects[dep].root,
|
|
2671
2675
|
"package.json"
|
|
@@ -2703,7 +2707,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2703
2707
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2704
2708
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2705
2709
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2706
|
-
|
|
2710
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2707
2711
|
"utf8"
|
|
2708
2712
|
);
|
|
2709
2713
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2714,7 +2718,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2714
2718
|
if (distSrc.startsWith("/")) {
|
|
2715
2719
|
distSrc = distSrc.substring(1);
|
|
2716
2720
|
}
|
|
2717
|
-
packageJson.source ??= `${
|
|
2721
|
+
packageJson.source ??= `${_chunkQYSNEPTBjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2718
2722
|
}
|
|
2719
2723
|
packageJson.files ??= ["dist/**/*"];
|
|
2720
2724
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2739,7 +2743,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2739
2743
|
packageJson.contributors = [packageJson.author];
|
|
2740
2744
|
}
|
|
2741
2745
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2742
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2746
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkQYSNEPTBjs.joinPaths.call(void 0, "packages", projectName);
|
|
2743
2747
|
return packageJson;
|
|
2744
2748
|
};
|
|
2745
2749
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2764,11 +2768,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2764
2768
|
};
|
|
2765
2769
|
|
|
2766
2770
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2767
|
-
|
|
2771
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2768
2772
|
|
|
2769
2773
|
|
|
2770
2774
|
// ../build-tools/src/utilities/get-env.ts
|
|
2771
|
-
|
|
2775
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2772
2776
|
var getEnv = (builder, options) => {
|
|
2773
2777
|
return {
|
|
2774
2778
|
STORM_BUILD: builder,
|
|
@@ -2783,21 +2787,21 @@ var getEnv = (builder, options) => {
|
|
|
2783
2787
|
};
|
|
2784
2788
|
|
|
2785
2789
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2786
|
-
|
|
2790
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2787
2791
|
|
|
2788
2792
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2789
|
-
|
|
2793
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2790
2794
|
|
|
2791
2795
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2792
|
-
|
|
2796
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2793
2797
|
|
|
2794
2798
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2795
|
-
|
|
2799
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2796
2800
|
|
|
2797
2801
|
|
|
2798
2802
|
|
|
2799
2803
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2800
|
-
|
|
2804
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2801
2805
|
|
|
2802
2806
|
|
|
2803
2807
|
|
|
@@ -2826,14 +2830,14 @@ async function copyBuildAssets(context) {
|
|
|
2826
2830
|
}
|
|
2827
2831
|
|
|
2828
2832
|
// ../esbuild/src/clean.ts
|
|
2829
|
-
|
|
2833
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2830
2834
|
|
|
2831
2835
|
async function cleanDirectories(directory) {
|
|
2832
2836
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2833
2837
|
}
|
|
2834
2838
|
|
|
2835
2839
|
// ../esbuild/src/context.ts
|
|
2836
|
-
|
|
2840
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2837
2841
|
|
|
2838
2842
|
|
|
2839
2843
|
|
|
@@ -2844,7 +2848,7 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
2844
2848
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2845
2849
|
|
|
2846
2850
|
// ../esbuild/src/config.ts
|
|
2847
|
-
|
|
2851
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2848
2852
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2849
2853
|
platform: "node",
|
|
2850
2854
|
target: "node22",
|
|
@@ -2902,7 +2906,7 @@ async function resolveContext(userOptions) {
|
|
|
2902
2906
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2903
2907
|
exitOnError: true
|
|
2904
2908
|
});
|
|
2905
|
-
const projectJsonPath =
|
|
2909
|
+
const projectJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2906
2910
|
workspaceRoot2.dir,
|
|
2907
2911
|
projectRoot,
|
|
2908
2912
|
"project.json"
|
|
@@ -2921,7 +2925,7 @@ async function resolveContext(userOptions) {
|
|
|
2921
2925
|
}
|
|
2922
2926
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2923
2927
|
options.name ??= projectName;
|
|
2924
|
-
const packageJsonPath =
|
|
2928
|
+
const packageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2925
2929
|
workspaceRoot2.dir,
|
|
2926
2930
|
options.projectRoot,
|
|
2927
2931
|
"package.json"
|
|
@@ -2933,7 +2937,7 @@ async function resolveContext(userOptions) {
|
|
|
2933
2937
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2934
2938
|
const resolvedOptions = {
|
|
2935
2939
|
...options,
|
|
2936
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2940
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkQYSNEPTBjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2937
2941
|
metafile: userOptions.mode === "development",
|
|
2938
2942
|
clean: false,
|
|
2939
2943
|
env,
|
|
@@ -2958,8 +2962,8 @@ async function resolveContext(userOptions) {
|
|
|
2958
2962
|
projectConfigurations,
|
|
2959
2963
|
projectName,
|
|
2960
2964
|
projectGraph,
|
|
2961
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2962
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2965
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkQYSNEPTBjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2966
|
+
outputPath: resolvedOptions.outputPath || _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2963
2967
|
workspaceConfig.workspaceRoot,
|
|
2964
2968
|
"dist",
|
|
2965
2969
|
resolvedOptions.projectRoot
|
|
@@ -2979,15 +2983,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2979
2983
|
}
|
|
2980
2984
|
|
|
2981
2985
|
// ../esbuild/src/package-json.ts
|
|
2982
|
-
|
|
2986
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
2983
2987
|
|
|
2984
2988
|
|
|
2985
2989
|
|
|
2986
2990
|
async function generatePackageJson(context) {
|
|
2987
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2991
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkQYSNEPTBjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2988
2992
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2989
2993
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2990
|
-
const packageJsonPath =
|
|
2994
|
+
const packageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2991
2995
|
context.options.projectRoot,
|
|
2992
2996
|
"project.json"
|
|
2993
2997
|
);
|
|
@@ -2995,7 +2999,7 @@ async function generatePackageJson(context) {
|
|
|
2995
2999
|
throw new Error("Cannot find package.json configuration");
|
|
2996
3000
|
}
|
|
2997
3001
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2998
|
-
|
|
3002
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
2999
3003
|
context.workspaceConfig.workspaceRoot,
|
|
3000
3004
|
context.options.projectRoot,
|
|
3001
3005
|
"package.json"
|
|
@@ -3101,7 +3105,7 @@ async function generatePackageJson(context) {
|
|
|
3101
3105
|
}
|
|
3102
3106
|
}
|
|
3103
3107
|
await _devkit.writeJsonFile.call(void 0,
|
|
3104
|
-
|
|
3108
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
3105
3109
|
packageJson
|
|
3106
3110
|
);
|
|
3107
3111
|
stopwatch();
|
|
@@ -3110,10 +3114,10 @@ async function generatePackageJson(context) {
|
|
|
3110
3114
|
}
|
|
3111
3115
|
|
|
3112
3116
|
// ../esbuild/src/tsup.ts
|
|
3113
|
-
|
|
3117
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3114
3118
|
|
|
3115
3119
|
// ../tsup/src/index.ts
|
|
3116
|
-
|
|
3120
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3117
3121
|
var _tsup = require('tsup');
|
|
3118
3122
|
async function build(options) {
|
|
3119
3123
|
if (!options.silent) {
|
|
@@ -3138,7 +3142,7 @@ async function executeTsup(context) {
|
|
|
3138
3142
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3139
3143
|
await build({
|
|
3140
3144
|
...context.options,
|
|
3141
|
-
outDir: context.options.distDir ?
|
|
3145
|
+
outDir: context.options.distDir ? _chunkQYSNEPTBjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3142
3146
|
workspaceConfig: context.workspaceConfig
|
|
3143
3147
|
});
|
|
3144
3148
|
stopwatch();
|
|
@@ -3248,12 +3252,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3248
3252
|
);
|
|
3249
3253
|
|
|
3250
3254
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3251
|
-
|
|
3255
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3252
3256
|
var _jiti = require('jiti');
|
|
3253
3257
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3254
3258
|
async function napiExecutor(options, context, config) {
|
|
3255
3259
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3256
|
-
fsCache: config.skipCache ? false :
|
|
3260
|
+
fsCache: config.skipCache ? false : _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3257
3261
|
config.workspaceRoot,
|
|
3258
3262
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3259
3263
|
"jiti"
|
|
@@ -3269,53 +3273,53 @@ async function napiExecutor(options, context, config) {
|
|
|
3269
3273
|
);
|
|
3270
3274
|
}
|
|
3271
3275
|
const projectRoot = _optionalChain([context, 'access', _149 => _149.projectGraph, 'optionalAccess', _150 => _150.nodes, 'access', _151 => _151[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _152 => _152.data, 'access', _153 => _153.root]);
|
|
3272
|
-
const packageJson =
|
|
3276
|
+
const packageJson = _chunkQYSNEPTBjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3273
3277
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3274
3278
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3275
3279
|
}
|
|
3276
3280
|
const napi = new NapiCli();
|
|
3277
3281
|
const normalizedOptions = { ...options };
|
|
3278
3282
|
const metadata = cargoMetadata();
|
|
3279
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) ||
|
|
3283
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) || _chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3280
3284
|
normalizedOptions.outputDir = options.outputPath;
|
|
3281
3285
|
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
3282
3286
|
if (options.cwd) {
|
|
3283
|
-
normalizedOptions.cwd =
|
|
3287
|
+
normalizedOptions.cwd = _chunkQYSNEPTBjs.correctPaths.call(void 0, options.cwd);
|
|
3284
3288
|
} else {
|
|
3285
|
-
normalizedOptions.cwd =
|
|
3286
|
-
const absoluteProjectRoot =
|
|
3289
|
+
normalizedOptions.cwd = _chunkQYSNEPTBjs.correctPaths.call(void 0, projectRoot);
|
|
3290
|
+
const absoluteProjectRoot = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3287
3291
|
config.workspaceRoot,
|
|
3288
3292
|
projectRoot || "."
|
|
3289
3293
|
);
|
|
3290
3294
|
if (normalizedOptions.outputDir) {
|
|
3291
|
-
normalizedOptions.outputDir =
|
|
3295
|
+
normalizedOptions.outputDir = _chunkQYSNEPTBjs.relative.call(void 0,
|
|
3292
3296
|
absoluteProjectRoot,
|
|
3293
|
-
|
|
3294
|
-
|
|
3297
|
+
_chunkQYSNEPTBjs.correctPaths.call(void 0,
|
|
3298
|
+
_chunkQYSNEPTBjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3295
3299
|
)
|
|
3296
3300
|
);
|
|
3297
3301
|
}
|
|
3298
3302
|
if (normalizedOptions.packageJsonPath) {
|
|
3299
|
-
normalizedOptions.packageJsonPath =
|
|
3303
|
+
normalizedOptions.packageJsonPath = _chunkQYSNEPTBjs.relative.call(void 0,
|
|
3300
3304
|
absoluteProjectRoot,
|
|
3301
|
-
|
|
3302
|
-
|
|
3305
|
+
_chunkQYSNEPTBjs.correctPaths.call(void 0,
|
|
3306
|
+
_chunkQYSNEPTBjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3303
3307
|
)
|
|
3304
3308
|
);
|
|
3305
3309
|
}
|
|
3306
3310
|
if (normalizedOptions.configPath) {
|
|
3307
|
-
normalizedOptions.configPath =
|
|
3311
|
+
normalizedOptions.configPath = _chunkQYSNEPTBjs.relative.call(void 0,
|
|
3308
3312
|
absoluteProjectRoot,
|
|
3309
|
-
|
|
3310
|
-
|
|
3313
|
+
_chunkQYSNEPTBjs.correctPaths.call(void 0,
|
|
3314
|
+
_chunkQYSNEPTBjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3311
3315
|
)
|
|
3312
3316
|
);
|
|
3313
3317
|
}
|
|
3314
3318
|
if (normalizedOptions.manifestPath) {
|
|
3315
|
-
normalizedOptions.manifestPath =
|
|
3319
|
+
normalizedOptions.manifestPath = _chunkQYSNEPTBjs.relative.call(void 0,
|
|
3316
3320
|
absoluteProjectRoot,
|
|
3317
|
-
|
|
3318
|
-
|
|
3321
|
+
_chunkQYSNEPTBjs.correctPaths.call(void 0,
|
|
3322
|
+
_chunkQYSNEPTBjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkQYSNEPTBjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3319
3323
|
)
|
|
3320
3324
|
);
|
|
3321
3325
|
}
|
|
@@ -3348,17 +3352,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3348
3352
|
);
|
|
3349
3353
|
|
|
3350
3354
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3351
|
-
|
|
3355
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3352
3356
|
|
|
3353
3357
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3354
|
-
|
|
3358
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3355
3359
|
|
|
3356
3360
|
|
|
3357
3361
|
// ../npm-tools/src/constants.ts
|
|
3358
|
-
|
|
3362
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3359
3363
|
|
|
3360
3364
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3361
|
-
|
|
3365
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3362
3366
|
|
|
3363
3367
|
|
|
3364
3368
|
|
|
@@ -3368,17 +3372,17 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
3368
3372
|
var _prettier = require('prettier');
|
|
3369
3373
|
|
|
3370
3374
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3371
|
-
|
|
3375
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3372
3376
|
|
|
3373
3377
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3374
|
-
|
|
3378
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3375
3379
|
|
|
3376
3380
|
|
|
3377
3381
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3378
3382
|
var _semver = require('semver');
|
|
3379
3383
|
|
|
3380
3384
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3381
|
-
|
|
3385
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3382
3386
|
|
|
3383
3387
|
|
|
3384
3388
|
var _yaml = require('yaml');
|
|
@@ -3389,7 +3393,7 @@ var _yaml = require('yaml');
|
|
|
3389
3393
|
|
|
3390
3394
|
|
|
3391
3395
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3392
|
-
|
|
3396
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3393
3397
|
|
|
3394
3398
|
|
|
3395
3399
|
|
|
@@ -3401,7 +3405,7 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
3401
3405
|
|
|
3402
3406
|
|
|
3403
3407
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3404
|
-
|
|
3408
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3405
3409
|
var ProjectTagConstants = {
|
|
3406
3410
|
Language: {
|
|
3407
3411
|
TAG_ID: "language",
|
|
@@ -3478,7 +3482,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3478
3482
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3479
3483
|
|
|
3480
3484
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3481
|
-
|
|
3485
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3482
3486
|
|
|
3483
3487
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3484
3488
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3520,10 +3524,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3520
3524
|
);
|
|
3521
3525
|
|
|
3522
3526
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3523
|
-
|
|
3527
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3524
3528
|
|
|
3525
3529
|
// ../tsdown/src/build.ts
|
|
3526
|
-
|
|
3530
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3527
3531
|
|
|
3528
3532
|
|
|
3529
3533
|
|
|
@@ -3535,14 +3539,14 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
3535
3539
|
var _tsdown = require('tsdown');
|
|
3536
3540
|
|
|
3537
3541
|
// ../tsdown/src/clean.ts
|
|
3538
|
-
|
|
3542
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3539
3543
|
|
|
3540
3544
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3541
3545
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3542
3546
|
}
|
|
3543
3547
|
|
|
3544
3548
|
// ../tsdown/src/config.ts
|
|
3545
|
-
|
|
3549
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3546
3550
|
function getDefaultOptions(config) {
|
|
3547
3551
|
return {
|
|
3548
3552
|
entry: ["./src/*.ts"],
|
|
@@ -3585,7 +3589,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3585
3589
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3586
3590
|
exitOnError: true
|
|
3587
3591
|
});
|
|
3588
|
-
const projectJsonPath =
|
|
3592
|
+
const projectJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3589
3593
|
workspaceRoot2,
|
|
3590
3594
|
options.projectRoot,
|
|
3591
3595
|
"project.json"
|
|
@@ -3602,7 +3606,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3602
3606
|
"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."
|
|
3603
3607
|
);
|
|
3604
3608
|
}
|
|
3605
|
-
const packageJsonPath =
|
|
3609
|
+
const packageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3606
3610
|
workspaceRoot2,
|
|
3607
3611
|
options.projectRoot,
|
|
3608
3612
|
"package.json"
|
|
@@ -3611,13 +3615,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3611
3615
|
throw new Error("Cannot find package.json configuration");
|
|
3612
3616
|
}
|
|
3613
3617
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3614
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3618
|
+
const sourceRoot = projectJson.sourceRoot || _chunkQYSNEPTBjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3615
3619
|
const result = {
|
|
3616
3620
|
name: projectName,
|
|
3617
3621
|
mode: "production",
|
|
3618
3622
|
target: DEFAULT_TARGET,
|
|
3619
3623
|
generatePackageJson: true,
|
|
3620
|
-
outDir:
|
|
3624
|
+
outDir: _chunkQYSNEPTBjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3621
3625
|
minify: !debug,
|
|
3622
3626
|
plugins: [],
|
|
3623
3627
|
assets: [],
|
|
@@ -3629,12 +3633,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3629
3633
|
clean: false,
|
|
3630
3634
|
fixedExtension: true,
|
|
3631
3635
|
nodeProtocol: true,
|
|
3632
|
-
tsconfig:
|
|
3636
|
+
tsconfig: _chunkQYSNEPTBjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3633
3637
|
debug,
|
|
3634
3638
|
sourceRoot,
|
|
3635
3639
|
cwd: workspaceConfig.workspaceRoot,
|
|
3636
3640
|
entry: {
|
|
3637
|
-
["index"]:
|
|
3641
|
+
["index"]: _chunkQYSNEPTBjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3638
3642
|
},
|
|
3639
3643
|
workspace: true,
|
|
3640
3644
|
...options,
|
|
@@ -3653,15 +3657,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3653
3657
|
return result;
|
|
3654
3658
|
};
|
|
3655
3659
|
async function generatePackageJson2(options) {
|
|
3656
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3660
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkQYSNEPTBjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3657
3661
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3658
3662
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3659
|
-
const packageJsonPath =
|
|
3663
|
+
const packageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3660
3664
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3661
3665
|
throw new Error("Cannot find package.json configuration");
|
|
3662
3666
|
}
|
|
3663
3667
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3664
|
-
|
|
3668
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3665
3669
|
options.workspaceConfig.workspaceRoot,
|
|
3666
3670
|
options.projectRoot,
|
|
3667
3671
|
"package.json"
|
|
@@ -3723,7 +3727,7 @@ async function generatePackageJson2(options) {
|
|
|
3723
3727
|
},
|
|
3724
3728
|
packageJson.exports
|
|
3725
3729
|
);
|
|
3726
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3730
|
+
await _devkit.writeJsonFile.call(void 0, _chunkQYSNEPTBjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3727
3731
|
stopwatch();
|
|
3728
3732
|
}
|
|
3729
3733
|
return options;
|
|
@@ -3856,7 +3860,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3856
3860
|
);
|
|
3857
3861
|
|
|
3858
3862
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3859
|
-
|
|
3863
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3860
3864
|
var _fsextra = require('fs-extra');
|
|
3861
3865
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3862
3866
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3896,7 +3900,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3896
3900
|
);
|
|
3897
3901
|
|
|
3898
3902
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3899
|
-
|
|
3903
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3900
3904
|
|
|
3901
3905
|
|
|
3902
3906
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3917,7 +3921,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3917
3921
|
);
|
|
3918
3922
|
}
|
|
3919
3923
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3920
|
-
fsCache: config.skipCache ? false :
|
|
3924
|
+
fsCache: config.skipCache ? false : _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3921
3925
|
config.workspaceRoot,
|
|
3922
3926
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3923
3927
|
"jiti"
|
|
@@ -3939,7 +3943,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3939
3943
|
{
|
|
3940
3944
|
stubOptions: {
|
|
3941
3945
|
jiti: {
|
|
3942
|
-
fsCache: config.skipCache ? false :
|
|
3946
|
+
fsCache: config.skipCache ? false : _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
3943
3947
|
config.workspaceRoot,
|
|
3944
3948
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3945
3949
|
"jiti"
|
|
@@ -3988,10 +3992,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3988
3992
|
);
|
|
3989
3993
|
|
|
3990
3994
|
// ../workspace-tools/generators.ts
|
|
3991
|
-
|
|
3995
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3992
3996
|
|
|
3993
3997
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3994
|
-
|
|
3998
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
3995
3999
|
|
|
3996
4000
|
|
|
3997
4001
|
|
|
@@ -4000,7 +4004,7 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
4000
4004
|
|
|
4001
4005
|
|
|
4002
4006
|
// ../workspace-tools/src/base/base-generator.ts
|
|
4003
|
-
|
|
4007
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4004
4008
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
4005
4009
|
skipReadingConfig: false
|
|
4006
4010
|
}) => async (tree, _options) => {
|
|
@@ -4087,7 +4091,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4087
4091
|
};
|
|
4088
4092
|
|
|
4089
4093
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
4090
|
-
|
|
4094
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4091
4095
|
|
|
4092
4096
|
|
|
4093
4097
|
|
|
@@ -4109,7 +4113,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
4109
4113
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
4110
4114
|
|
|
4111
4115
|
// ../workspace-tools/src/utils/versions.ts
|
|
4112
|
-
|
|
4116
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4113
4117
|
var typesNodeVersion = "20.9.0";
|
|
4114
4118
|
var nxVersion = "^18.0.4";
|
|
4115
4119
|
var nodeVersion = "20.11.0";
|
|
@@ -4142,16 +4146,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4142
4146
|
const projectConfig = {
|
|
4143
4147
|
root: normalized.directory,
|
|
4144
4148
|
projectType: "library",
|
|
4145
|
-
sourceRoot:
|
|
4149
|
+
sourceRoot: _chunkQYSNEPTBjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4146
4150
|
targets: {
|
|
4147
4151
|
build: {
|
|
4148
4152
|
executor: options.buildExecutor,
|
|
4149
4153
|
outputs: ["{options.outputPath}"],
|
|
4150
4154
|
options: {
|
|
4151
|
-
entry: [
|
|
4155
|
+
entry: [_chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4152
4156
|
outputPath: getOutputPath(normalized),
|
|
4153
|
-
tsconfig:
|
|
4154
|
-
project:
|
|
4157
|
+
tsconfig: _chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4158
|
+
project: _chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4155
4159
|
defaultConfiguration: "production",
|
|
4156
4160
|
platform: "neutral",
|
|
4157
4161
|
assets: [
|
|
@@ -4208,7 +4212,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4208
4212
|
if (!normalized.importPath) {
|
|
4209
4213
|
normalized.importPath = normalized.name;
|
|
4210
4214
|
}
|
|
4211
|
-
const packageJsonPath =
|
|
4215
|
+
const packageJsonPath = _chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4212
4216
|
if (tree.exists(packageJsonPath)) {
|
|
4213
4217
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4214
4218
|
if (!normalized.importPath) {
|
|
@@ -4265,14 +4269,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4265
4269
|
}));
|
|
4266
4270
|
}
|
|
4267
4271
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4268
|
-
|
|
4272
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
4269
4273
|
normalized.projectRoot,
|
|
4270
4274
|
"./src",
|
|
4271
4275
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4272
4276
|
)
|
|
4273
4277
|
]);
|
|
4274
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4275
|
-
|
|
4278
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4279
|
+
_chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4276
4280
|
]);
|
|
4277
4281
|
if (tree.exists("package.json")) {
|
|
4278
4282
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4283,7 +4287,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4283
4287
|
description = packageJson.description;
|
|
4284
4288
|
}
|
|
4285
4289
|
}
|
|
4286
|
-
const tsconfigPath =
|
|
4290
|
+
const tsconfigPath = _chunkQYSNEPTBjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4287
4291
|
if (tree.exists(tsconfigPath)) {
|
|
4288
4292
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4289
4293
|
json.composite ??= true;
|
|
@@ -4311,7 +4315,7 @@ function getOutputPath(options) {
|
|
|
4311
4315
|
} else {
|
|
4312
4316
|
parts.push(options.projectRoot);
|
|
4313
4317
|
}
|
|
4314
|
-
return
|
|
4318
|
+
return _chunkQYSNEPTBjs.joinPaths.call(void 0, ...parts);
|
|
4315
4319
|
}
|
|
4316
4320
|
function createProjectTsConfigJson(tree, options) {
|
|
4317
4321
|
const tsconfig = {
|
|
@@ -4319,7 +4323,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4319
4323
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _213 => _213.tsconfigOptions]), () => ( {})),
|
|
4320
4324
|
compilerOptions: {
|
|
4321
4325
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4322
|
-
outDir:
|
|
4326
|
+
outDir: _chunkQYSNEPTBjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4323
4327
|
noEmit: true,
|
|
4324
4328
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _214 => _214.tsconfigOptions, 'optionalAccess', _215 => _215.compilerOptions]), () => ( {}))
|
|
4325
4329
|
},
|
|
@@ -4337,7 +4341,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4337
4341
|
"src/**/*.test.ts"
|
|
4338
4342
|
]
|
|
4339
4343
|
};
|
|
4340
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4344
|
+
_devkit.writeJson.call(void 0, tree, _chunkQYSNEPTBjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4341
4345
|
}
|
|
4342
4346
|
async function normalizeOptions(tree, options, config) {
|
|
4343
4347
|
let importPath = options.importPath;
|
|
@@ -4402,7 +4406,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4402
4406
|
|
|
4403
4407
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4404
4408
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4405
|
-
const filesDir =
|
|
4409
|
+
const filesDir = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
4406
4410
|
__dirname,
|
|
4407
4411
|
"src",
|
|
4408
4412
|
"generators",
|
|
@@ -4482,9 +4486,9 @@ var generator_default = withRunGenerator(
|
|
|
4482
4486
|
);
|
|
4483
4487
|
|
|
4484
4488
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4485
|
-
|
|
4489
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4486
4490
|
|
|
4487
|
-
var
|
|
4491
|
+
var _zod2 = require('zod'); var z2 = _interopRequireWildcard(_zod2);
|
|
4488
4492
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
4489
4493
|
writeInfo(
|
|
4490
4494
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
@@ -4539,7 +4543,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4539
4543
|
);
|
|
4540
4544
|
|
|
4541
4545
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4542
|
-
|
|
4546
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4543
4547
|
|
|
4544
4548
|
|
|
4545
4549
|
|
|
@@ -4567,7 +4571,7 @@ async function initGenerator(tree, schema) {
|
|
|
4567
4571
|
}
|
|
4568
4572
|
|
|
4569
4573
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4570
|
-
|
|
4574
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4571
4575
|
|
|
4572
4576
|
|
|
4573
4577
|
|
|
@@ -4575,7 +4579,7 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
4575
4579
|
|
|
4576
4580
|
|
|
4577
4581
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4578
|
-
const filesDir =
|
|
4582
|
+
const filesDir = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
4579
4583
|
__dirname,
|
|
4580
4584
|
"src",
|
|
4581
4585
|
"generators",
|
|
@@ -4627,7 +4631,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4627
4631
|
);
|
|
4628
4632
|
|
|
4629
4633
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4630
|
-
|
|
4634
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4631
4635
|
|
|
4632
4636
|
|
|
4633
4637
|
|
|
@@ -4635,7 +4639,7 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
4635
4639
|
|
|
4636
4640
|
|
|
4637
4641
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4638
|
-
const filesDir =
|
|
4642
|
+
const filesDir = _chunkQYSNEPTBjs.joinPaths.call(void 0,
|
|
4639
4643
|
__dirname,
|
|
4640
4644
|
"src",
|
|
4641
4645
|
"generators",
|
|
@@ -4689,7 +4693,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4689
4693
|
);
|
|
4690
4694
|
|
|
4691
4695
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4692
|
-
|
|
4696
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4693
4697
|
|
|
4694
4698
|
|
|
4695
4699
|
|
|
@@ -4928,10 +4932,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4928
4932
|
);
|
|
4929
4933
|
|
|
4930
4934
|
// ../workspace-tools/src/base/index.ts
|
|
4931
|
-
|
|
4935
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4932
4936
|
|
|
4933
4937
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4934
|
-
|
|
4938
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4935
4939
|
var _untyped = require('untyped');
|
|
4936
4940
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4937
4941
|
$schema: {
|
|
@@ -4951,7 +4955,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4951
4955
|
});
|
|
4952
4956
|
|
|
4953
4957
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4954
|
-
|
|
4958
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4955
4959
|
|
|
4956
4960
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4957
4961
|
$schema: {
|
|
@@ -4969,7 +4973,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4969
4973
|
});
|
|
4970
4974
|
|
|
4971
4975
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4972
|
-
|
|
4976
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
4973
4977
|
|
|
4974
4978
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4975
4979
|
...base_executor_untyped_default,
|
|
@@ -5042,7 +5046,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5042
5046
|
});
|
|
5043
5047
|
|
|
5044
5048
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5045
|
-
|
|
5049
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5046
5050
|
|
|
5047
5051
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5048
5052
|
...base_executor_untyped_default,
|
|
@@ -5194,7 +5198,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5194
5198
|
});
|
|
5195
5199
|
|
|
5196
5200
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5197
|
-
|
|
5201
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5198
5202
|
|
|
5199
5203
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5200
5204
|
...base_generator_untyped_default,
|
|
@@ -5300,42 +5304,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5300
5304
|
});
|
|
5301
5305
|
|
|
5302
5306
|
// ../workspace-tools/src/release/index.ts
|
|
5303
|
-
|
|
5307
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5304
5308
|
|
|
5305
5309
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5306
|
-
|
|
5310
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5307
5311
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5308
5312
|
|
|
5309
5313
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5310
|
-
|
|
5314
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5311
5315
|
|
|
5312
5316
|
|
|
5313
5317
|
|
|
5314
5318
|
var _release = require('nx/release');
|
|
5315
5319
|
|
|
5316
5320
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5317
|
-
|
|
5321
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5318
5322
|
|
|
5319
5323
|
|
|
5320
5324
|
// ../workspace-tools/src/types.ts
|
|
5321
|
-
|
|
5325
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5322
5326
|
|
|
5323
5327
|
// ../workspace-tools/src/utils/index.ts
|
|
5324
|
-
|
|
5328
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5325
5329
|
|
|
5326
5330
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5327
|
-
|
|
5331
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5328
5332
|
|
|
5329
5333
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5330
|
-
|
|
5334
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5331
5335
|
|
|
5332
5336
|
|
|
5333
5337
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5334
|
-
|
|
5338
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5335
5339
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5336
5340
|
|
|
5337
5341
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5338
|
-
|
|
5342
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5339
5343
|
|
|
5340
5344
|
|
|
5341
5345
|
|
|
@@ -5363,10 +5367,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5363
5367
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5364
5368
|
|
|
5365
5369
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5366
|
-
|
|
5370
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5367
5371
|
|
|
5368
5372
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5369
|
-
|
|
5373
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5370
5374
|
|
|
5371
5375
|
|
|
5372
5376
|
|
|
@@ -5375,7 +5379,7 @@ _chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
|
5375
5379
|
|
|
5376
5380
|
|
|
5377
5381
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5378
|
-
|
|
5382
|
+
_chunk6FDS5BKBjs.init_cjs_shims.call(void 0, );
|
|
5379
5383
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5380
5384
|
|
|
5381
5385
|
// src/generators/init/generator.ts
|