@storm-software/projen 0.21.136 → 0.21.138
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-V45PWHBM.js → chunk-6MFQSZS2.js} +202 -202
- package/dist/{chunk-VA6NYD3O.mjs → chunk-CUJZA5ZF.mjs} +1 -1
- package/dist/{chunk-VPU4Q2F4.js → chunk-G4XGYIWX.js} +2 -2
- package/dist/{chunk-UMMZUUGT.js → chunk-IJS342TN.js} +2 -2
- package/dist/{chunk-EPZ7JDGO.mjs → chunk-JF5ZQZ2R.mjs} +2 -2
- package/dist/{chunk-ILS5O2LT.mjs → chunk-L6652HLC.mjs} +5 -5
- package/dist/{chunk-HRDQBXGH.mjs → chunk-OFD277XM.mjs} +1 -1
- package/dist/{chunk-XFASZH2I.js → chunk-PPHOMSJK.js} +3 -3
- package/dist/chunk-R2TFRYVG.js +6 -0
- package/dist/{chunk-55TKGWYM.mjs → chunk-TPKL6UHQ.mjs} +1 -1
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- 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-3DUQDMAA.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIJS342TNjs = require('./chunk-IJS342TN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkG4XGYIWXjs = require('./chunk-G4XGYIWX.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
70
70
|
var DEFAULT_COLOR_CONFIG = {
|
|
71
71
|
light: {
|
|
72
72
|
background: "#fafafa",
|
|
@@ -80,7 +80,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
80
80
|
warning: "#e3b341",
|
|
81
81
|
danger: "#D8314A",
|
|
82
82
|
fatal: "#51070f",
|
|
83
|
-
performance: "#
|
|
83
|
+
performance: "#13c302",
|
|
84
84
|
link: "#3fa6ff",
|
|
85
85
|
positive: "#22c55e",
|
|
86
86
|
negative: "#dc2626",
|
|
@@ -98,7 +98,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
98
98
|
warning: "#f3d371",
|
|
99
99
|
danger: "#D8314A",
|
|
100
100
|
fatal: "#a40e26",
|
|
101
|
-
performance: "#
|
|
101
|
+
performance: "#80fd74",
|
|
102
102
|
link: "#3fa6ff",
|
|
103
103
|
positive: "#22c55e",
|
|
104
104
|
negative: "#dc2626",
|
|
@@ -136,7 +136,7 @@ function getColor(key, config) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// ../config-tools/src/logger/chalk.ts
|
|
139
|
-
|
|
139
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
432
432
|
|
|
433
433
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
434
|
-
|
|
434
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
435
435
|
|
|
436
436
|
// ../config-tools/src/utilities/find-up.ts
|
|
437
|
-
|
|
437
|
+
_chunkG4XGYIWXjs.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 _chunkIJS342TNjs.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 _chunkIJS342TNjs.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
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
604
604
|
|
|
605
605
|
// ../config/src/index.ts
|
|
606
|
-
|
|
606
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
607
607
|
|
|
608
608
|
// ../config/src/constants.ts
|
|
609
|
-
|
|
609
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
629
629
|
|
|
630
630
|
// ../config/src/schema.ts
|
|
631
|
-
|
|
631
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
632
632
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
633
633
|
var schemaRegistry = z.registry();
|
|
634
634
|
var colorSchema = z.string().check(
|
|
@@ -692,7 +692,7 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
692
692
|
schemaRegistry.add(fatalColorSchema, {
|
|
693
693
|
description: "The fatal color of the workspace"
|
|
694
694
|
});
|
|
695
|
-
var performanceColorSchema = z._default(colorSchema, "#
|
|
695
|
+
var performanceColorSchema = z._default(colorSchema, "#80fd74");
|
|
696
696
|
schemaRegistry.add(performanceColorSchema, {
|
|
697
697
|
description: "The performance color of the workspace"
|
|
698
698
|
});
|
|
@@ -1198,7 +1198,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
|
|
1200
1200
|
// ../config/src/types.ts
|
|
1201
|
-
|
|
1201
|
+
_chunkG4XGYIWXjs.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
|
+
_chunkIJS342TNjs.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 : _chunkIJS342TNjs.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 : _chunkIJS342TNjs.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
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
1386
1386
|
|
|
1387
1387
|
|
|
1388
1388
|
|
|
1389
1389
|
// ../config-tools/src/env/get-env.ts
|
|
1390
|
-
|
|
1390
|
+
_chunkG4XGYIWXjs.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`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1453
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkIJS342TNjs.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`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1456
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1457
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1458
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1459
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1460
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkIJS342TNjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkIJS342TNjs.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
|
+
_chunkG4XGYIWXjs.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`] = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1761
|
+
process.env.NX_WORKSPACE_ROOT = _chunkIJS342TNjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1762
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.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`] = _chunkIJS342TNjs.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, _chunkIJS342TNjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkIJS342TNjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkIJS342TNjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkIJS342TNjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2019
2019
|
}
|
|
2020
2020
|
try {
|
|
2021
2021
|
result = applyDefaultConfig(
|
|
@@ -2081,7 +2081,7 @@ ${formatLogMessage(config)}`,
|
|
|
2081
2081
|
};
|
|
2082
2082
|
|
|
2083
2083
|
// ../config-tools/src/get-config.ts
|
|
2084
|
-
|
|
2084
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2085
2085
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2086
2086
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2087
2087
|
}
|
|
@@ -2219,7 +2219,7 @@ var _isFunction2 = (value) => {
|
|
|
2219
2219
|
};
|
|
2220
2220
|
|
|
2221
2221
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2222
|
-
|
|
2222
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2223
2223
|
|
|
2224
2224
|
|
|
2225
2225
|
|
|
@@ -2357,7 +2357,7 @@ var executor_default = withRunExecutor(
|
|
|
2357
2357
|
);
|
|
2358
2358
|
|
|
2359
2359
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2360
|
-
|
|
2360
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2361
2361
|
async function cargoCheckExecutor(options, context) {
|
|
2362
2362
|
const command = buildCargoCommand("check", options, context);
|
|
2363
2363
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2377,7 +2377,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2377
2377
|
);
|
|
2378
2378
|
|
|
2379
2379
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2380
|
-
|
|
2380
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2381
2381
|
async function cargoClippyExecutor(options, context) {
|
|
2382
2382
|
const command = buildCargoCommand("clippy", options, context);
|
|
2383
2383
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2398,7 +2398,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2398
2398
|
);
|
|
2399
2399
|
|
|
2400
2400
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2401
|
-
|
|
2401
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2402
2402
|
async function cargoDocExecutor(options, context) {
|
|
2403
2403
|
const opts = { ...options };
|
|
2404
2404
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2428,7 +2428,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2428
2428
|
);
|
|
2429
2429
|
|
|
2430
2430
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2431
|
-
|
|
2431
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2432
2432
|
async function cargoFormatExecutor(options, context) {
|
|
2433
2433
|
const command = buildCargoCommand("fmt", options, context);
|
|
2434
2434
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2449,7 +2449,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2449
2449
|
);
|
|
2450
2450
|
|
|
2451
2451
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2452
|
-
|
|
2452
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2453
2453
|
|
|
2454
2454
|
|
|
2455
2455
|
|
|
@@ -2457,19 +2457,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2457
2457
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2458
2458
|
|
|
2459
2459
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2460
|
-
|
|
2460
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2461
2461
|
|
|
2462
2462
|
// ../esbuild/src/build.ts
|
|
2463
|
-
|
|
2463
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2464
2464
|
|
|
2465
2465
|
// ../esbuild/src/assets.ts
|
|
2466
|
-
|
|
2466
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2467
2467
|
|
|
2468
2468
|
// ../build-tools/src/index.ts
|
|
2469
|
-
|
|
2469
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2470
2470
|
|
|
2471
2471
|
// ../build-tools/src/config.ts
|
|
2472
|
-
|
|
2472
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2473
2473
|
var DEFAULT_JS_BANNER = `
|
|
2474
2474
|
// ---------------------------------------
|
|
2475
2475
|
// \u{1F5F2} Built by Storm Software
|
|
@@ -2485,35 +2485,35 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2485
2485
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2486
2486
|
|
|
2487
2487
|
// ../build-tools/src/plugins/index.ts
|
|
2488
|
-
|
|
2488
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2489
2489
|
|
|
2490
2490
|
// ../build-tools/src/plugins/analyze.ts
|
|
2491
|
-
|
|
2491
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2492
2492
|
|
|
2493
2493
|
// ../build-tools/src/plugins/swc.ts
|
|
2494
|
-
|
|
2494
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2495
2495
|
var _core = require('@swc/core');
|
|
2496
2496
|
|
|
2497
2497
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2498
|
-
|
|
2498
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2499
2499
|
|
|
2500
2500
|
var _module = require('module');
|
|
2501
2501
|
|
|
2502
2502
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2503
2503
|
|
|
2504
2504
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2505
|
-
|
|
2505
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2506
2506
|
|
|
2507
2507
|
|
|
2508
2508
|
|
|
2509
2509
|
// ../build-tools/src/types.ts
|
|
2510
|
-
|
|
2510
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2511
2511
|
|
|
2512
2512
|
// ../build-tools/src/utilities/index.ts
|
|
2513
|
-
|
|
2513
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2514
2514
|
|
|
2515
2515
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2516
|
-
|
|
2516
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2517
2517
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2518
2518
|
var _glob = require('glob');
|
|
2519
2519
|
|
|
@@ -2545,7 +2545,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2545
2545
|
}
|
|
2546
2546
|
writeTrace(
|
|
2547
2547
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2548
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2548
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkIJS342TNjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2549
2549
|
config
|
|
2550
2550
|
);
|
|
2551
2551
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2558,17 +2558,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2558
2558
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2559
2559
|
if (includeSrc === true) {
|
|
2560
2560
|
writeDebug(
|
|
2561
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2561
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2562
2562
|
outputPath,
|
|
2563
2563
|
"src"
|
|
2564
2564
|
)}`,
|
|
2565
2565
|
config
|
|
2566
2566
|
);
|
|
2567
2567
|
const files = await _glob.glob.call(void 0, [
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2568
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2569
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2570
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2571
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2572
2572
|
]);
|
|
2573
2573
|
await Promise.allSettled(
|
|
2574
2574
|
files.map(
|
|
@@ -2586,7 +2586,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2586
2586
|
};
|
|
2587
2587
|
|
|
2588
2588
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2589
|
-
|
|
2589
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2590
2590
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2591
2591
|
|
|
2592
2592
|
|
|
@@ -2624,7 +2624,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2624
2624
|
)) {
|
|
2625
2625
|
const projectNode = project.node;
|
|
2626
2626
|
if (projectNode.data.root) {
|
|
2627
|
-
const projectPackageJsonPath =
|
|
2627
|
+
const projectPackageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2628
2628
|
workspaceRoot2,
|
|
2629
2629
|
projectNode.data.root,
|
|
2630
2630
|
"package.json"
|
|
@@ -2646,7 +2646,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2646
2646
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2647
2647
|
);
|
|
2648
2648
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2649
|
-
|
|
2649
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2650
2650
|
"utf8"
|
|
2651
2651
|
);
|
|
2652
2652
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2659,7 +2659,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2659
2659
|
}
|
|
2660
2660
|
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) => {
|
|
2661
2661
|
if (_optionalChain([projectConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[dep]])) {
|
|
2662
|
-
const depPackageJsonPath =
|
|
2662
|
+
const depPackageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2663
2663
|
workspaceRoot2,
|
|
2664
2664
|
projectConfigurations.projects[dep].root,
|
|
2665
2665
|
"package.json"
|
|
@@ -2697,7 +2697,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2697
2697
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2698
2698
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2699
2699
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2700
|
-
|
|
2700
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2701
2701
|
"utf8"
|
|
2702
2702
|
);
|
|
2703
2703
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2708,7 +2708,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2708
2708
|
if (distSrc.startsWith("/")) {
|
|
2709
2709
|
distSrc = distSrc.substring(1);
|
|
2710
2710
|
}
|
|
2711
|
-
packageJson.source ??= `${
|
|
2711
|
+
packageJson.source ??= `${_chunkIJS342TNjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2712
2712
|
}
|
|
2713
2713
|
packageJson.files ??= ["dist/**/*"];
|
|
2714
2714
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2733,7 +2733,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2733
2733
|
packageJson.contributors = [packageJson.author];
|
|
2734
2734
|
}
|
|
2735
2735
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2736
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2736
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkIJS342TNjs.joinPaths.call(void 0, "packages", projectName);
|
|
2737
2737
|
return packageJson;
|
|
2738
2738
|
};
|
|
2739
2739
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2758,11 +2758,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2758
2758
|
};
|
|
2759
2759
|
|
|
2760
2760
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2761
|
-
|
|
2761
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2762
2762
|
|
|
2763
2763
|
|
|
2764
2764
|
// ../build-tools/src/utilities/get-env.ts
|
|
2765
|
-
|
|
2765
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2766
2766
|
var getEnv = (builder, options) => {
|
|
2767
2767
|
return {
|
|
2768
2768
|
STORM_BUILD: builder,
|
|
@@ -2777,21 +2777,21 @@ var getEnv = (builder, options) => {
|
|
|
2777
2777
|
};
|
|
2778
2778
|
|
|
2779
2779
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2780
|
-
|
|
2780
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2781
2781
|
|
|
2782
2782
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2783
|
-
|
|
2783
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2784
2784
|
|
|
2785
2785
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2786
|
-
|
|
2786
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2787
2787
|
|
|
2788
2788
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2789
|
-
|
|
2789
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2790
2790
|
|
|
2791
2791
|
|
|
2792
2792
|
|
|
2793
2793
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2794
|
-
|
|
2794
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2795
2795
|
|
|
2796
2796
|
|
|
2797
2797
|
|
|
@@ -2820,14 +2820,14 @@ async function copyBuildAssets(context) {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
2822
|
// ../esbuild/src/clean.ts
|
|
2823
|
-
|
|
2823
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2824
2824
|
|
|
2825
2825
|
async function cleanDirectories(directory) {
|
|
2826
2826
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2827
2827
|
}
|
|
2828
2828
|
|
|
2829
2829
|
// ../esbuild/src/context.ts
|
|
2830
|
-
|
|
2830
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2831
2831
|
|
|
2832
2832
|
|
|
2833
2833
|
|
|
@@ -2838,7 +2838,7 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
2838
2838
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2839
2839
|
|
|
2840
2840
|
// ../esbuild/src/config.ts
|
|
2841
|
-
|
|
2841
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2842
2842
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2843
2843
|
platform: "node",
|
|
2844
2844
|
target: "node22",
|
|
@@ -2896,7 +2896,7 @@ async function resolveContext(userOptions) {
|
|
|
2896
2896
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2897
2897
|
exitOnError: true
|
|
2898
2898
|
});
|
|
2899
|
-
const projectJsonPath =
|
|
2899
|
+
const projectJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2900
2900
|
workspaceRoot2.dir,
|
|
2901
2901
|
projectRoot,
|
|
2902
2902
|
"project.json"
|
|
@@ -2915,7 +2915,7 @@ async function resolveContext(userOptions) {
|
|
|
2915
2915
|
}
|
|
2916
2916
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2917
2917
|
options.name ??= projectName;
|
|
2918
|
-
const packageJsonPath =
|
|
2918
|
+
const packageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2919
2919
|
workspaceRoot2.dir,
|
|
2920
2920
|
options.projectRoot,
|
|
2921
2921
|
"package.json"
|
|
@@ -2927,7 +2927,7 @@ async function resolveContext(userOptions) {
|
|
|
2927
2927
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2928
2928
|
const resolvedOptions = {
|
|
2929
2929
|
...options,
|
|
2930
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2930
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkIJS342TNjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2931
2931
|
metafile: userOptions.mode === "development",
|
|
2932
2932
|
clean: false,
|
|
2933
2933
|
env,
|
|
@@ -2952,8 +2952,8 @@ async function resolveContext(userOptions) {
|
|
|
2952
2952
|
projectConfigurations,
|
|
2953
2953
|
projectName,
|
|
2954
2954
|
projectGraph,
|
|
2955
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2956
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2955
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkIJS342TNjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2956
|
+
outputPath: resolvedOptions.outputPath || _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2957
2957
|
workspaceConfig.workspaceRoot,
|
|
2958
2958
|
"dist",
|
|
2959
2959
|
resolvedOptions.projectRoot
|
|
@@ -2973,15 +2973,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2973
2973
|
}
|
|
2974
2974
|
|
|
2975
2975
|
// ../esbuild/src/package-json.ts
|
|
2976
|
-
|
|
2976
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
2977
2977
|
|
|
2978
2978
|
|
|
2979
2979
|
|
|
2980
2980
|
async function generatePackageJson(context) {
|
|
2981
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2981
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkIJS342TNjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2982
2982
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2983
2983
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2984
|
-
const packageJsonPath =
|
|
2984
|
+
const packageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2985
2985
|
context.options.projectRoot,
|
|
2986
2986
|
"project.json"
|
|
2987
2987
|
);
|
|
@@ -2989,7 +2989,7 @@ async function generatePackageJson(context) {
|
|
|
2989
2989
|
throw new Error("Cannot find package.json configuration");
|
|
2990
2990
|
}
|
|
2991
2991
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2992
|
-
|
|
2992
|
+
_chunkIJS342TNjs.joinPaths.call(void 0,
|
|
2993
2993
|
context.workspaceConfig.workspaceRoot,
|
|
2994
2994
|
context.options.projectRoot,
|
|
2995
2995
|
"package.json"
|
|
@@ -3095,7 +3095,7 @@ async function generatePackageJson(context) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
3097
|
await _devkit.writeJsonFile.call(void 0,
|
|
3098
|
-
|
|
3098
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
3099
3099
|
packageJson
|
|
3100
3100
|
);
|
|
3101
3101
|
stopwatch();
|
|
@@ -3104,10 +3104,10 @@ async function generatePackageJson(context) {
|
|
|
3104
3104
|
}
|
|
3105
3105
|
|
|
3106
3106
|
// ../esbuild/src/tsup.ts
|
|
3107
|
-
|
|
3107
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3108
3108
|
|
|
3109
3109
|
// ../tsup/src/index.ts
|
|
3110
|
-
|
|
3110
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3111
3111
|
var _tsup = require('tsup');
|
|
3112
3112
|
async function build(options) {
|
|
3113
3113
|
if (!options.silent) {
|
|
@@ -3132,7 +3132,7 @@ async function executeTsup(context) {
|
|
|
3132
3132
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3133
3133
|
await build({
|
|
3134
3134
|
...context.options,
|
|
3135
|
-
outDir: context.options.distDir ?
|
|
3135
|
+
outDir: context.options.distDir ? _chunkIJS342TNjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3136
3136
|
workspaceConfig: context.workspaceConfig
|
|
3137
3137
|
});
|
|
3138
3138
|
stopwatch();
|
|
@@ -3242,12 +3242,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3242
3242
|
);
|
|
3243
3243
|
|
|
3244
3244
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3245
|
-
|
|
3245
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3246
3246
|
var _jiti = require('jiti');
|
|
3247
3247
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3248
3248
|
async function napiExecutor(options, context, config) {
|
|
3249
3249
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3250
|
-
fsCache: config.skipCache ? false :
|
|
3250
|
+
fsCache: config.skipCache ? false : _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3251
3251
|
config.workspaceRoot,
|
|
3252
3252
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3253
3253
|
"jiti"
|
|
@@ -3263,53 +3263,53 @@ async function napiExecutor(options, context, config) {
|
|
|
3263
3263
|
);
|
|
3264
3264
|
}
|
|
3265
3265
|
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]);
|
|
3266
|
-
const packageJson =
|
|
3266
|
+
const packageJson = _chunkIJS342TNjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3267
3267
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3268
3268
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3269
3269
|
}
|
|
3270
3270
|
const napi = new NapiCli();
|
|
3271
3271
|
const normalizedOptions = { ...options };
|
|
3272
3272
|
const metadata = cargoMetadata();
|
|
3273
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) ||
|
|
3273
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) || _chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3274
3274
|
normalizedOptions.outputDir = options.outputPath;
|
|
3275
3275
|
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
3276
3276
|
if (options.cwd) {
|
|
3277
|
-
normalizedOptions.cwd =
|
|
3277
|
+
normalizedOptions.cwd = _chunkIJS342TNjs.correctPaths.call(void 0, options.cwd);
|
|
3278
3278
|
} else {
|
|
3279
|
-
normalizedOptions.cwd =
|
|
3280
|
-
const absoluteProjectRoot =
|
|
3279
|
+
normalizedOptions.cwd = _chunkIJS342TNjs.correctPaths.call(void 0, projectRoot);
|
|
3280
|
+
const absoluteProjectRoot = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3281
3281
|
config.workspaceRoot,
|
|
3282
3282
|
projectRoot || "."
|
|
3283
3283
|
);
|
|
3284
3284
|
if (normalizedOptions.outputDir) {
|
|
3285
|
-
normalizedOptions.outputDir =
|
|
3285
|
+
normalizedOptions.outputDir = _chunkIJS342TNjs.relative.call(void 0,
|
|
3286
3286
|
absoluteProjectRoot,
|
|
3287
|
-
|
|
3288
|
-
|
|
3287
|
+
_chunkIJS342TNjs.correctPaths.call(void 0,
|
|
3288
|
+
_chunkIJS342TNjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3289
3289
|
)
|
|
3290
3290
|
);
|
|
3291
3291
|
}
|
|
3292
3292
|
if (normalizedOptions.packageJsonPath) {
|
|
3293
|
-
normalizedOptions.packageJsonPath =
|
|
3293
|
+
normalizedOptions.packageJsonPath = _chunkIJS342TNjs.relative.call(void 0,
|
|
3294
3294
|
absoluteProjectRoot,
|
|
3295
|
-
|
|
3296
|
-
|
|
3295
|
+
_chunkIJS342TNjs.correctPaths.call(void 0,
|
|
3296
|
+
_chunkIJS342TNjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3297
3297
|
)
|
|
3298
3298
|
);
|
|
3299
3299
|
}
|
|
3300
3300
|
if (normalizedOptions.configPath) {
|
|
3301
|
-
normalizedOptions.configPath =
|
|
3301
|
+
normalizedOptions.configPath = _chunkIJS342TNjs.relative.call(void 0,
|
|
3302
3302
|
absoluteProjectRoot,
|
|
3303
|
-
|
|
3304
|
-
|
|
3303
|
+
_chunkIJS342TNjs.correctPaths.call(void 0,
|
|
3304
|
+
_chunkIJS342TNjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3305
3305
|
)
|
|
3306
3306
|
);
|
|
3307
3307
|
}
|
|
3308
3308
|
if (normalizedOptions.manifestPath) {
|
|
3309
|
-
normalizedOptions.manifestPath =
|
|
3309
|
+
normalizedOptions.manifestPath = _chunkIJS342TNjs.relative.call(void 0,
|
|
3310
3310
|
absoluteProjectRoot,
|
|
3311
|
-
|
|
3312
|
-
|
|
3311
|
+
_chunkIJS342TNjs.correctPaths.call(void 0,
|
|
3312
|
+
_chunkIJS342TNjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkIJS342TNjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3313
3313
|
)
|
|
3314
3314
|
);
|
|
3315
3315
|
}
|
|
@@ -3342,17 +3342,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3342
3342
|
);
|
|
3343
3343
|
|
|
3344
3344
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3345
|
-
|
|
3345
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3346
3346
|
|
|
3347
3347
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3348
|
-
|
|
3348
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3349
3349
|
|
|
3350
3350
|
|
|
3351
3351
|
// ../npm-tools/src/constants.ts
|
|
3352
|
-
|
|
3352
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3353
3353
|
|
|
3354
3354
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3355
|
-
|
|
3355
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3356
3356
|
|
|
3357
3357
|
|
|
3358
3358
|
|
|
@@ -3362,17 +3362,17 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
3362
3362
|
var _prettier = require('prettier');
|
|
3363
3363
|
|
|
3364
3364
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3365
|
-
|
|
3365
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3366
3366
|
|
|
3367
3367
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3368
|
-
|
|
3368
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3369
3369
|
|
|
3370
3370
|
|
|
3371
3371
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3372
3372
|
var _semver = require('semver');
|
|
3373
3373
|
|
|
3374
3374
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3375
|
-
|
|
3375
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3376
3376
|
|
|
3377
3377
|
|
|
3378
3378
|
var _yaml = require('yaml');
|
|
@@ -3383,7 +3383,7 @@ var _yaml = require('yaml');
|
|
|
3383
3383
|
|
|
3384
3384
|
|
|
3385
3385
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3386
|
-
|
|
3386
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3387
3387
|
|
|
3388
3388
|
|
|
3389
3389
|
|
|
@@ -3395,7 +3395,7 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
3395
3395
|
|
|
3396
3396
|
|
|
3397
3397
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3398
|
-
|
|
3398
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3399
3399
|
var ProjectTagConstants = {
|
|
3400
3400
|
Language: {
|
|
3401
3401
|
TAG_ID: "language",
|
|
@@ -3472,7 +3472,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3472
3472
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3473
3473
|
|
|
3474
3474
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3475
|
-
|
|
3475
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3476
3476
|
|
|
3477
3477
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3478
3478
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3514,10 +3514,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3514
3514
|
);
|
|
3515
3515
|
|
|
3516
3516
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3517
|
-
|
|
3517
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3518
3518
|
|
|
3519
3519
|
// ../tsdown/src/build.ts
|
|
3520
|
-
|
|
3520
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3521
3521
|
|
|
3522
3522
|
|
|
3523
3523
|
|
|
@@ -3529,14 +3529,14 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
3529
3529
|
var _tsdown = require('tsdown');
|
|
3530
3530
|
|
|
3531
3531
|
// ../tsdown/src/clean.ts
|
|
3532
|
-
|
|
3532
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3533
3533
|
|
|
3534
3534
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3535
3535
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3536
3536
|
}
|
|
3537
3537
|
|
|
3538
3538
|
// ../tsdown/src/config.ts
|
|
3539
|
-
|
|
3539
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3540
3540
|
function getDefaultOptions(config) {
|
|
3541
3541
|
return {
|
|
3542
3542
|
entry: ["./src/*.ts"],
|
|
@@ -3579,7 +3579,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3579
3579
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3580
3580
|
exitOnError: true
|
|
3581
3581
|
});
|
|
3582
|
-
const projectJsonPath =
|
|
3582
|
+
const projectJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3583
3583
|
workspaceRoot2,
|
|
3584
3584
|
options.projectRoot,
|
|
3585
3585
|
"project.json"
|
|
@@ -3596,7 +3596,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3596
3596
|
"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."
|
|
3597
3597
|
);
|
|
3598
3598
|
}
|
|
3599
|
-
const packageJsonPath =
|
|
3599
|
+
const packageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3600
3600
|
workspaceRoot2,
|
|
3601
3601
|
options.projectRoot,
|
|
3602
3602
|
"package.json"
|
|
@@ -3605,13 +3605,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3605
3605
|
throw new Error("Cannot find package.json configuration");
|
|
3606
3606
|
}
|
|
3607
3607
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3608
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3608
|
+
const sourceRoot = projectJson.sourceRoot || _chunkIJS342TNjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3609
3609
|
const result = {
|
|
3610
3610
|
name: projectName,
|
|
3611
3611
|
mode: "production",
|
|
3612
3612
|
target: DEFAULT_TARGET,
|
|
3613
3613
|
generatePackageJson: true,
|
|
3614
|
-
outDir:
|
|
3614
|
+
outDir: _chunkIJS342TNjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3615
3615
|
minify: !debug,
|
|
3616
3616
|
plugins: [],
|
|
3617
3617
|
assets: [],
|
|
@@ -3623,12 +3623,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3623
3623
|
clean: false,
|
|
3624
3624
|
fixedExtension: true,
|
|
3625
3625
|
nodeProtocol: true,
|
|
3626
|
-
tsconfig:
|
|
3626
|
+
tsconfig: _chunkIJS342TNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3627
3627
|
debug,
|
|
3628
3628
|
sourceRoot,
|
|
3629
3629
|
cwd: workspaceConfig.workspaceRoot,
|
|
3630
3630
|
entry: {
|
|
3631
|
-
["index"]:
|
|
3631
|
+
["index"]: _chunkIJS342TNjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3632
3632
|
},
|
|
3633
3633
|
workspace: true,
|
|
3634
3634
|
...options,
|
|
@@ -3647,15 +3647,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3647
3647
|
return result;
|
|
3648
3648
|
};
|
|
3649
3649
|
async function generatePackageJson2(options) {
|
|
3650
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3650
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkIJS342TNjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3651
3651
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3652
3652
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3653
|
-
const packageJsonPath =
|
|
3653
|
+
const packageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3654
3654
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3655
3655
|
throw new Error("Cannot find package.json configuration");
|
|
3656
3656
|
}
|
|
3657
3657
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3658
|
-
|
|
3658
|
+
_chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3659
3659
|
options.workspaceConfig.workspaceRoot,
|
|
3660
3660
|
options.projectRoot,
|
|
3661
3661
|
"package.json"
|
|
@@ -3717,7 +3717,7 @@ async function generatePackageJson2(options) {
|
|
|
3717
3717
|
},
|
|
3718
3718
|
packageJson.exports
|
|
3719
3719
|
);
|
|
3720
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3720
|
+
await _devkit.writeJsonFile.call(void 0, _chunkIJS342TNjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3721
3721
|
stopwatch();
|
|
3722
3722
|
}
|
|
3723
3723
|
return options;
|
|
@@ -3850,7 +3850,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3850
3850
|
);
|
|
3851
3851
|
|
|
3852
3852
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3853
|
-
|
|
3853
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3854
3854
|
var _fsextra = require('fs-extra');
|
|
3855
3855
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3856
3856
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3890,7 +3890,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3890
3890
|
);
|
|
3891
3891
|
|
|
3892
3892
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3893
|
-
|
|
3893
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3894
3894
|
|
|
3895
3895
|
|
|
3896
3896
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3911,7 +3911,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3911
3911
|
);
|
|
3912
3912
|
}
|
|
3913
3913
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3914
|
-
fsCache: config.skipCache ? false :
|
|
3914
|
+
fsCache: config.skipCache ? false : _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3915
3915
|
config.workspaceRoot,
|
|
3916
3916
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3917
3917
|
"jiti"
|
|
@@ -3933,7 +3933,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3933
3933
|
{
|
|
3934
3934
|
stubOptions: {
|
|
3935
3935
|
jiti: {
|
|
3936
|
-
fsCache: config.skipCache ? false :
|
|
3936
|
+
fsCache: config.skipCache ? false : _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
3937
3937
|
config.workspaceRoot,
|
|
3938
3938
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3939
3939
|
"jiti"
|
|
@@ -3982,10 +3982,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3982
3982
|
);
|
|
3983
3983
|
|
|
3984
3984
|
// ../workspace-tools/generators.ts
|
|
3985
|
-
|
|
3985
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3986
3986
|
|
|
3987
3987
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3988
|
-
|
|
3988
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3989
3989
|
|
|
3990
3990
|
|
|
3991
3991
|
|
|
@@ -3994,7 +3994,7 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
3994
3994
|
|
|
3995
3995
|
|
|
3996
3996
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3997
|
-
|
|
3997
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
3998
3998
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3999
3999
|
skipReadingConfig: false
|
|
4000
4000
|
}) => async (tree, _options) => {
|
|
@@ -4081,7 +4081,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4081
4081
|
};
|
|
4082
4082
|
|
|
4083
4083
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
4084
|
-
|
|
4084
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4085
4085
|
|
|
4086
4086
|
|
|
4087
4087
|
|
|
@@ -4103,7 +4103,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
4103
4103
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
4104
4104
|
|
|
4105
4105
|
// ../workspace-tools/src/utils/versions.ts
|
|
4106
|
-
|
|
4106
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4107
4107
|
var typesNodeVersion = "20.9.0";
|
|
4108
4108
|
var nxVersion = "^18.0.4";
|
|
4109
4109
|
var nodeVersion = "20.11.0";
|
|
@@ -4136,16 +4136,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4136
4136
|
const projectConfig = {
|
|
4137
4137
|
root: normalized.directory,
|
|
4138
4138
|
projectType: "library",
|
|
4139
|
-
sourceRoot:
|
|
4139
|
+
sourceRoot: _chunkIJS342TNjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4140
4140
|
targets: {
|
|
4141
4141
|
build: {
|
|
4142
4142
|
executor: options.buildExecutor,
|
|
4143
4143
|
outputs: ["{options.outputPath}"],
|
|
4144
4144
|
options: {
|
|
4145
|
-
entry: [
|
|
4145
|
+
entry: [_chunkIJS342TNjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4146
4146
|
outputPath: getOutputPath(normalized),
|
|
4147
|
-
tsconfig:
|
|
4148
|
-
project:
|
|
4147
|
+
tsconfig: _chunkIJS342TNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4148
|
+
project: _chunkIJS342TNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4149
4149
|
defaultConfiguration: "production",
|
|
4150
4150
|
platform: "neutral",
|
|
4151
4151
|
assets: [
|
|
@@ -4202,7 +4202,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4202
4202
|
if (!normalized.importPath) {
|
|
4203
4203
|
normalized.importPath = normalized.name;
|
|
4204
4204
|
}
|
|
4205
|
-
const packageJsonPath =
|
|
4205
|
+
const packageJsonPath = _chunkIJS342TNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4206
4206
|
if (tree.exists(packageJsonPath)) {
|
|
4207
4207
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4208
4208
|
if (!normalized.importPath) {
|
|
@@ -4259,14 +4259,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4259
4259
|
}));
|
|
4260
4260
|
}
|
|
4261
4261
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4262
|
-
|
|
4262
|
+
_chunkIJS342TNjs.joinPaths.call(void 0,
|
|
4263
4263
|
normalized.projectRoot,
|
|
4264
4264
|
"./src",
|
|
4265
4265
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4266
4266
|
)
|
|
4267
4267
|
]);
|
|
4268
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4269
|
-
|
|
4268
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkIJS342TNjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4269
|
+
_chunkIJS342TNjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4270
4270
|
]);
|
|
4271
4271
|
if (tree.exists("package.json")) {
|
|
4272
4272
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4277,7 +4277,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4277
4277
|
description = packageJson.description;
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
|
-
const tsconfigPath =
|
|
4280
|
+
const tsconfigPath = _chunkIJS342TNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4281
4281
|
if (tree.exists(tsconfigPath)) {
|
|
4282
4282
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4283
4283
|
json.composite ??= true;
|
|
@@ -4305,7 +4305,7 @@ function getOutputPath(options) {
|
|
|
4305
4305
|
} else {
|
|
4306
4306
|
parts.push(options.projectRoot);
|
|
4307
4307
|
}
|
|
4308
|
-
return
|
|
4308
|
+
return _chunkIJS342TNjs.joinPaths.call(void 0, ...parts);
|
|
4309
4309
|
}
|
|
4310
4310
|
function createProjectTsConfigJson(tree, options) {
|
|
4311
4311
|
const tsconfig = {
|
|
@@ -4313,7 +4313,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4313
4313
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _213 => _213.tsconfigOptions]), () => ( {})),
|
|
4314
4314
|
compilerOptions: {
|
|
4315
4315
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4316
|
-
outDir:
|
|
4316
|
+
outDir: _chunkIJS342TNjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4317
4317
|
noEmit: true,
|
|
4318
4318
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _214 => _214.tsconfigOptions, 'optionalAccess', _215 => _215.compilerOptions]), () => ( {}))
|
|
4319
4319
|
},
|
|
@@ -4331,7 +4331,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4331
4331
|
"src/**/*.test.ts"
|
|
4332
4332
|
]
|
|
4333
4333
|
};
|
|
4334
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4334
|
+
_devkit.writeJson.call(void 0, tree, _chunkIJS342TNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4335
4335
|
}
|
|
4336
4336
|
async function normalizeOptions(tree, options, config) {
|
|
4337
4337
|
let importPath = options.importPath;
|
|
@@ -4396,7 +4396,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4396
4396
|
|
|
4397
4397
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4398
4398
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4399
|
-
const filesDir =
|
|
4399
|
+
const filesDir = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
4400
4400
|
__dirname,
|
|
4401
4401
|
"src",
|
|
4402
4402
|
"generators",
|
|
@@ -4476,7 +4476,7 @@ var generator_default = withRunGenerator(
|
|
|
4476
4476
|
);
|
|
4477
4477
|
|
|
4478
4478
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4479
|
-
|
|
4479
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4480
4480
|
|
|
4481
4481
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
4482
4482
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4533,7 +4533,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4533
4533
|
);
|
|
4534
4534
|
|
|
4535
4535
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4536
|
-
|
|
4536
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4537
4537
|
|
|
4538
4538
|
|
|
4539
4539
|
|
|
@@ -4561,7 +4561,7 @@ async function initGenerator(tree, schema) {
|
|
|
4561
4561
|
}
|
|
4562
4562
|
|
|
4563
4563
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4564
|
-
|
|
4564
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4565
4565
|
|
|
4566
4566
|
|
|
4567
4567
|
|
|
@@ -4569,7 +4569,7 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
4569
4569
|
|
|
4570
4570
|
|
|
4571
4571
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4572
|
-
const filesDir =
|
|
4572
|
+
const filesDir = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
4573
4573
|
__dirname,
|
|
4574
4574
|
"src",
|
|
4575
4575
|
"generators",
|
|
@@ -4621,7 +4621,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4621
4621
|
);
|
|
4622
4622
|
|
|
4623
4623
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4624
|
-
|
|
4624
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4625
4625
|
|
|
4626
4626
|
|
|
4627
4627
|
|
|
@@ -4629,7 +4629,7 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
4629
4629
|
|
|
4630
4630
|
|
|
4631
4631
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4632
|
-
const filesDir =
|
|
4632
|
+
const filesDir = _chunkIJS342TNjs.joinPaths.call(void 0,
|
|
4633
4633
|
__dirname,
|
|
4634
4634
|
"src",
|
|
4635
4635
|
"generators",
|
|
@@ -4683,7 +4683,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4683
4683
|
);
|
|
4684
4684
|
|
|
4685
4685
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4686
|
-
|
|
4686
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4687
4687
|
|
|
4688
4688
|
|
|
4689
4689
|
|
|
@@ -4922,10 +4922,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4922
4922
|
);
|
|
4923
4923
|
|
|
4924
4924
|
// ../workspace-tools/src/base/index.ts
|
|
4925
|
-
|
|
4925
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4926
4926
|
|
|
4927
4927
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4928
|
-
|
|
4928
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4929
4929
|
var _untyped = require('untyped');
|
|
4930
4930
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4931
4931
|
$schema: {
|
|
@@ -4945,7 +4945,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4945
4945
|
});
|
|
4946
4946
|
|
|
4947
4947
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4948
|
-
|
|
4948
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4949
4949
|
|
|
4950
4950
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4951
4951
|
$schema: {
|
|
@@ -4963,7 +4963,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4963
4963
|
});
|
|
4964
4964
|
|
|
4965
4965
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4966
|
-
|
|
4966
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
4967
4967
|
|
|
4968
4968
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4969
4969
|
...base_executor_untyped_default,
|
|
@@ -5036,7 +5036,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5036
5036
|
});
|
|
5037
5037
|
|
|
5038
5038
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5039
|
-
|
|
5039
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5040
5040
|
|
|
5041
5041
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5042
5042
|
...base_executor_untyped_default,
|
|
@@ -5188,7 +5188,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5188
5188
|
});
|
|
5189
5189
|
|
|
5190
5190
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5191
|
-
|
|
5191
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5192
5192
|
|
|
5193
5193
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5194
5194
|
...base_generator_untyped_default,
|
|
@@ -5294,42 +5294,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5294
5294
|
});
|
|
5295
5295
|
|
|
5296
5296
|
// ../workspace-tools/src/release/index.ts
|
|
5297
|
-
|
|
5297
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5298
5298
|
|
|
5299
5299
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5300
|
-
|
|
5300
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5301
5301
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5302
5302
|
|
|
5303
5303
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5304
|
-
|
|
5304
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5305
5305
|
|
|
5306
5306
|
|
|
5307
5307
|
|
|
5308
5308
|
var _release = require('nx/release');
|
|
5309
5309
|
|
|
5310
5310
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5311
|
-
|
|
5311
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5312
5312
|
|
|
5313
5313
|
|
|
5314
5314
|
// ../workspace-tools/src/types.ts
|
|
5315
|
-
|
|
5315
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5316
5316
|
|
|
5317
5317
|
// ../workspace-tools/src/utils/index.ts
|
|
5318
|
-
|
|
5318
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5319
5319
|
|
|
5320
5320
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5321
|
-
|
|
5321
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5322
5322
|
|
|
5323
5323
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5324
|
-
|
|
5324
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5325
5325
|
|
|
5326
5326
|
|
|
5327
5327
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5328
|
-
|
|
5328
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5329
5329
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5330
5330
|
|
|
5331
5331
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5332
|
-
|
|
5332
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5333
5333
|
|
|
5334
5334
|
|
|
5335
5335
|
|
|
@@ -5357,10 +5357,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5357
5357
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5358
5358
|
|
|
5359
5359
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5360
|
-
|
|
5360
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5361
5361
|
|
|
5362
5362
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5363
|
-
|
|
5363
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5364
5364
|
|
|
5365
5365
|
|
|
5366
5366
|
|
|
@@ -5369,7 +5369,7 @@ _chunkVPU4Q2F4js.init_cjs_shims.call(void 0, );
|
|
|
5369
5369
|
|
|
5370
5370
|
|
|
5371
5371
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5372
|
-
|
|
5372
|
+
_chunkG4XGYIWXjs.init_cjs_shims.call(void 0, );
|
|
5373
5373
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5374
5374
|
|
|
5375
5375
|
// src/generators/init/generator.ts
|