@storm-software/projen 0.21.165 → 0.21.167
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-C6P7LPQZ.mjs → chunk-2UGJBMPN.mjs} +1 -1
- package/dist/{chunk-JGVVXAAK.js → chunk-7NCOB2OS.js} +2 -2
- package/dist/{chunk-7RPW225Z.mjs → chunk-A24P3L2K.mjs} +1 -1
- package/dist/{chunk-MY3U2VKC.mjs → chunk-DIMP63EN.mjs} +1 -1
- package/dist/{chunk-HQ5CARNP.js → chunk-GEDAZQZ4.js} +209 -202
- package/dist/{chunk-RACS4B72.js → chunk-J7CQLAW3.js} +3 -3
- package/dist/{chunk-IWQXJDCD.js → chunk-NG224TJJ.js} +2 -2
- package/dist/{chunk-MVH5F34L.mjs → chunk-QULFGYFM.mjs} +15 -8
- package/dist/{chunk-Y62KVYPL.mjs → chunk-RC5DQK5S.mjs} +2 -2
- package/dist/chunk-W45SBDPH.js +6 -0
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +4 -4
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +6 -6
- package/dist/chunk-52V6ZYO5.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNG224TJJjs = require('./chunk-NG224TJJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7NCOB2OSjs = require('./chunk-7NCOB2OS.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
432
432
|
|
|
433
433
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
434
|
-
|
|
434
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
435
435
|
|
|
436
436
|
// ../config-tools/src/utilities/find-up.ts
|
|
437
|
-
|
|
437
|
+
_chunk7NCOB2OSjs.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 _chunkNG224TJJjs.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 _chunkNG224TJJjs.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
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
604
604
|
|
|
605
605
|
// ../config/src/index.ts
|
|
606
|
-
|
|
606
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
607
607
|
|
|
608
608
|
// ../config/src/constants.ts
|
|
609
|
-
|
|
609
|
+
_chunk7NCOB2OSjs.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
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
629
629
|
|
|
630
630
|
// ../config/src/schema.ts
|
|
631
|
-
|
|
631
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
632
632
|
var _mini = require('zod/v4/mini'); var z = _interopRequireWildcard(_mini);
|
|
633
633
|
var schemaRegistry = z.registry();
|
|
634
634
|
var colorSchema = z.string().check(
|
|
@@ -1198,7 +1198,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
|
|
1200
1200
|
// ../config/src/types.ts
|
|
1201
|
-
|
|
1201
|
+
_chunk7NCOB2OSjs.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
|
+
_chunkNG224TJJjs.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 : _chunkNG224TJJjs.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 : _chunkNG224TJJjs.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
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
1386
1386
|
|
|
1387
1387
|
|
|
1388
1388
|
|
|
1389
1389
|
// ../config-tools/src/env/get-env.ts
|
|
1390
|
-
|
|
1390
|
+
_chunk7NCOB2OSjs.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`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1453
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkNG224TJJjs.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`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1456
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1457
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1458
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1459
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1460
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkNG224TJJjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkNG224TJJjs.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
|
+
_chunk7NCOB2OSjs.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`] = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1761
|
+
process.env.NX_WORKSPACE_ROOT = _chunkNG224TJJjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1762
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.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`] = _chunkNG224TJJjs.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, _chunkNG224TJJjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkNG224TJJjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkNG224TJJjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkNG224TJJjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2019
2019
|
}
|
|
2020
2020
|
try {
|
|
2021
2021
|
const parseResult = await Promise.resolve(
|
|
@@ -2085,7 +2085,7 @@ ${formatLogMessage(config)}`,
|
|
|
2085
2085
|
};
|
|
2086
2086
|
|
|
2087
2087
|
// ../config-tools/src/get-config.ts
|
|
2088
|
-
|
|
2088
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2089
2089
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2090
2090
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2091
2091
|
}
|
|
@@ -2223,7 +2223,7 @@ var _isFunction2 = (value) => {
|
|
|
2223
2223
|
};
|
|
2224
2224
|
|
|
2225
2225
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2226
|
-
|
|
2226
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2227
2227
|
|
|
2228
2228
|
|
|
2229
2229
|
|
|
@@ -2361,7 +2361,7 @@ var executor_default = withRunExecutor(
|
|
|
2361
2361
|
);
|
|
2362
2362
|
|
|
2363
2363
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2364
|
-
|
|
2364
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2365
2365
|
async function cargoCheckExecutor(options, context) {
|
|
2366
2366
|
const command = buildCargoCommand("check", options, context);
|
|
2367
2367
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2381,7 +2381,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2381
2381
|
);
|
|
2382
2382
|
|
|
2383
2383
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2384
|
-
|
|
2384
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2385
2385
|
async function cargoClippyExecutor(options, context) {
|
|
2386
2386
|
const command = buildCargoCommand("clippy", options, context);
|
|
2387
2387
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2402,7 +2402,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2402
2402
|
);
|
|
2403
2403
|
|
|
2404
2404
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2405
|
-
|
|
2405
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2406
2406
|
async function cargoDocExecutor(options, context) {
|
|
2407
2407
|
const opts = { ...options };
|
|
2408
2408
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2432,7 +2432,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2432
2432
|
);
|
|
2433
2433
|
|
|
2434
2434
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2435
|
-
|
|
2435
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2436
2436
|
async function cargoFormatExecutor(options, context) {
|
|
2437
2437
|
const command = buildCargoCommand("fmt", options, context);
|
|
2438
2438
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2453,7 +2453,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2453
2453
|
);
|
|
2454
2454
|
|
|
2455
2455
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2456
|
-
|
|
2456
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2457
2457
|
|
|
2458
2458
|
|
|
2459
2459
|
|
|
@@ -2461,19 +2461,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2461
2461
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2462
2462
|
|
|
2463
2463
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2464
|
-
|
|
2464
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2465
2465
|
|
|
2466
2466
|
// ../esbuild/src/build.ts
|
|
2467
|
-
|
|
2467
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2468
2468
|
|
|
2469
2469
|
// ../esbuild/src/assets.ts
|
|
2470
|
-
|
|
2470
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2471
2471
|
|
|
2472
2472
|
// ../build-tools/src/index.ts
|
|
2473
|
-
|
|
2473
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2474
2474
|
|
|
2475
2475
|
// ../build-tools/src/config.ts
|
|
2476
|
-
|
|
2476
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2477
2477
|
var DEFAULT_JS_BANNER = `
|
|
2478
2478
|
// ---------------------------------------
|
|
2479
2479
|
// \u{1F5F2} Built by Storm Software
|
|
@@ -2489,35 +2489,35 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2489
2489
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2490
2490
|
|
|
2491
2491
|
// ../build-tools/src/plugins/index.ts
|
|
2492
|
-
|
|
2492
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2493
2493
|
|
|
2494
2494
|
// ../build-tools/src/plugins/analyze.ts
|
|
2495
|
-
|
|
2495
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2496
2496
|
|
|
2497
2497
|
// ../build-tools/src/plugins/swc.ts
|
|
2498
|
-
|
|
2498
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2499
2499
|
var _core = require('@swc/core');
|
|
2500
2500
|
|
|
2501
2501
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2502
|
-
|
|
2502
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2503
2503
|
|
|
2504
2504
|
var _module = require('module');
|
|
2505
2505
|
|
|
2506
2506
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2507
2507
|
|
|
2508
2508
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2509
|
-
|
|
2509
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2510
2510
|
|
|
2511
2511
|
|
|
2512
2512
|
|
|
2513
2513
|
// ../build-tools/src/types.ts
|
|
2514
|
-
|
|
2514
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2515
2515
|
|
|
2516
2516
|
// ../build-tools/src/utilities/index.ts
|
|
2517
|
-
|
|
2517
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2518
2518
|
|
|
2519
2519
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2520
|
-
|
|
2520
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2521
2521
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2522
2522
|
var _glob = require('glob');
|
|
2523
2523
|
|
|
@@ -2549,7 +2549,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2549
2549
|
}
|
|
2550
2550
|
writeTrace(
|
|
2551
2551
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2552
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2552
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkNG224TJJjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2553
2553
|
config
|
|
2554
2554
|
);
|
|
2555
2555
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2562,17 +2562,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2562
2562
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2563
2563
|
if (includeSrc === true) {
|
|
2564
2564
|
writeDebug(
|
|
2565
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2565
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2566
2566
|
outputPath,
|
|
2567
2567
|
"src"
|
|
2568
2568
|
)}`,
|
|
2569
2569
|
config
|
|
2570
2570
|
);
|
|
2571
2571
|
const files = await _glob.glob.call(void 0, [
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2572
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2573
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2574
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2575
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2576
2576
|
]);
|
|
2577
2577
|
await Promise.allSettled(
|
|
2578
2578
|
files.map(
|
|
@@ -2590,7 +2590,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2590
2590
|
};
|
|
2591
2591
|
|
|
2592
2592
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2593
|
-
|
|
2593
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2594
2594
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2595
2595
|
|
|
2596
2596
|
|
|
@@ -2628,7 +2628,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2628
2628
|
)) {
|
|
2629
2629
|
const projectNode = project.node;
|
|
2630
2630
|
if (projectNode.data.root) {
|
|
2631
|
-
const projectPackageJsonPath =
|
|
2631
|
+
const projectPackageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2632
2632
|
workspaceRoot2,
|
|
2633
2633
|
projectNode.data.root,
|
|
2634
2634
|
"package.json"
|
|
@@ -2650,7 +2650,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2650
2650
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2651
2651
|
);
|
|
2652
2652
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2653
|
-
|
|
2653
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2654
2654
|
"utf8"
|
|
2655
2655
|
);
|
|
2656
2656
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2663,7 +2663,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2663
2663
|
}
|
|
2664
2664
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _101 => _101.projects, 'optionalAccess', _102 => _102[projectName2], 'access', _103 => _103.implicitDependencies, 'optionalAccess', _104 => _104.reduce, 'call', _105 => _105((ret, dep) => {
|
|
2665
2665
|
if (_optionalChain([projectConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[dep]])) {
|
|
2666
|
-
const depPackageJsonPath =
|
|
2666
|
+
const depPackageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2667
2667
|
workspaceRoot2,
|
|
2668
2668
|
projectConfigurations.projects[dep].root,
|
|
2669
2669
|
"package.json"
|
|
@@ -2701,7 +2701,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2701
2701
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2702
2702
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2703
2703
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2704
|
-
|
|
2704
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2705
2705
|
"utf8"
|
|
2706
2706
|
);
|
|
2707
2707
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2712,7 +2712,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2712
2712
|
if (distSrc.startsWith("/")) {
|
|
2713
2713
|
distSrc = distSrc.substring(1);
|
|
2714
2714
|
}
|
|
2715
|
-
packageJson.source ??= `${
|
|
2715
|
+
packageJson.source ??= `${_chunkNG224TJJjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2716
2716
|
}
|
|
2717
2717
|
packageJson.files ??= ["dist/**/*"];
|
|
2718
2718
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2737,7 +2737,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2737
2737
|
packageJson.contributors = [packageJson.author];
|
|
2738
2738
|
}
|
|
2739
2739
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2740
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2740
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkNG224TJJjs.joinPaths.call(void 0, "packages", projectName);
|
|
2741
2741
|
return packageJson;
|
|
2742
2742
|
};
|
|
2743
2743
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2762,11 +2762,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2762
2762
|
};
|
|
2763
2763
|
|
|
2764
2764
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2765
|
-
|
|
2765
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2766
2766
|
|
|
2767
2767
|
|
|
2768
2768
|
// ../build-tools/src/utilities/get-env.ts
|
|
2769
|
-
|
|
2769
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2770
2770
|
var getEnv = (builder, options) => {
|
|
2771
2771
|
return {
|
|
2772
2772
|
STORM_BUILD: builder,
|
|
@@ -2781,21 +2781,21 @@ var getEnv = (builder, options) => {
|
|
|
2781
2781
|
};
|
|
2782
2782
|
|
|
2783
2783
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2784
|
-
|
|
2784
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2785
2785
|
|
|
2786
2786
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2787
|
-
|
|
2787
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2788
2788
|
|
|
2789
2789
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2790
|
-
|
|
2790
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2791
2791
|
|
|
2792
2792
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2793
|
-
|
|
2793
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2794
2794
|
|
|
2795
2795
|
|
|
2796
2796
|
|
|
2797
2797
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2798
|
-
|
|
2798
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2799
2799
|
|
|
2800
2800
|
|
|
2801
2801
|
|
|
@@ -2824,14 +2824,14 @@ async function copyBuildAssets(context) {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
2826
|
// ../esbuild/src/clean.ts
|
|
2827
|
-
|
|
2827
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2828
2828
|
|
|
2829
2829
|
async function cleanDirectories(directory) {
|
|
2830
2830
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2831
2831
|
}
|
|
2832
2832
|
|
|
2833
2833
|
// ../esbuild/src/context.ts
|
|
2834
|
-
|
|
2834
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2835
2835
|
|
|
2836
2836
|
|
|
2837
2837
|
|
|
@@ -2842,7 +2842,7 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
2842
2842
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2843
2843
|
|
|
2844
2844
|
// ../esbuild/src/config.ts
|
|
2845
|
-
|
|
2845
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2846
2846
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2847
2847
|
platform: "node",
|
|
2848
2848
|
target: "node22",
|
|
@@ -2900,7 +2900,7 @@ async function resolveContext(userOptions) {
|
|
|
2900
2900
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2901
2901
|
exitOnError: true
|
|
2902
2902
|
});
|
|
2903
|
-
const projectJsonPath =
|
|
2903
|
+
const projectJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2904
2904
|
workspaceRoot2.dir,
|
|
2905
2905
|
projectRoot,
|
|
2906
2906
|
"project.json"
|
|
@@ -2919,7 +2919,7 @@ async function resolveContext(userOptions) {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2921
2921
|
options.name ??= projectName;
|
|
2922
|
-
const packageJsonPath =
|
|
2922
|
+
const packageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2923
2923
|
workspaceRoot2.dir,
|
|
2924
2924
|
options.projectRoot,
|
|
2925
2925
|
"package.json"
|
|
@@ -2931,7 +2931,7 @@ async function resolveContext(userOptions) {
|
|
|
2931
2931
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2932
2932
|
const resolvedOptions = {
|
|
2933
2933
|
...options,
|
|
2934
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2934
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkNG224TJJjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2935
2935
|
metafile: userOptions.mode === "development",
|
|
2936
2936
|
clean: false,
|
|
2937
2937
|
env,
|
|
@@ -2956,8 +2956,8 @@ async function resolveContext(userOptions) {
|
|
|
2956
2956
|
projectConfigurations,
|
|
2957
2957
|
projectName,
|
|
2958
2958
|
projectGraph,
|
|
2959
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2960
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2959
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkNG224TJJjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2960
|
+
outputPath: resolvedOptions.outputPath || _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2961
2961
|
workspaceConfig.workspaceRoot,
|
|
2962
2962
|
"dist",
|
|
2963
2963
|
resolvedOptions.projectRoot
|
|
@@ -2977,15 +2977,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
2979
|
// ../esbuild/src/package-json.ts
|
|
2980
|
-
|
|
2980
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
2981
2981
|
|
|
2982
2982
|
|
|
2983
2983
|
|
|
2984
2984
|
async function generatePackageJson(context) {
|
|
2985
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2985
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkNG224TJJjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2986
2986
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2987
2987
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2988
|
-
const packageJsonPath =
|
|
2988
|
+
const packageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2989
2989
|
context.options.projectRoot,
|
|
2990
2990
|
"project.json"
|
|
2991
2991
|
);
|
|
@@ -2993,7 +2993,7 @@ async function generatePackageJson(context) {
|
|
|
2993
2993
|
throw new Error("Cannot find package.json configuration");
|
|
2994
2994
|
}
|
|
2995
2995
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2996
|
-
|
|
2996
|
+
_chunkNG224TJJjs.joinPaths.call(void 0,
|
|
2997
2997
|
context.workspaceConfig.workspaceRoot,
|
|
2998
2998
|
context.options.projectRoot,
|
|
2999
2999
|
"package.json"
|
|
@@ -3099,7 +3099,7 @@ async function generatePackageJson(context) {
|
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
3101
|
await _devkit.writeJsonFile.call(void 0,
|
|
3102
|
-
|
|
3102
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
3103
3103
|
packageJson
|
|
3104
3104
|
);
|
|
3105
3105
|
stopwatch();
|
|
@@ -3108,10 +3108,10 @@ async function generatePackageJson(context) {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
|
|
3110
3110
|
// ../esbuild/src/tsup.ts
|
|
3111
|
-
|
|
3111
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3112
3112
|
|
|
3113
3113
|
// ../tsup/src/index.ts
|
|
3114
|
-
|
|
3114
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3115
3115
|
var _tsup = require('tsup');
|
|
3116
3116
|
async function build(options) {
|
|
3117
3117
|
if (!options.silent) {
|
|
@@ -3136,7 +3136,7 @@ async function executeTsup(context) {
|
|
|
3136
3136
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3137
3137
|
await build({
|
|
3138
3138
|
...context.options,
|
|
3139
|
-
outDir: context.options.distDir ?
|
|
3139
|
+
outDir: context.options.distDir ? _chunkNG224TJJjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3140
3140
|
workspaceConfig: context.workspaceConfig
|
|
3141
3141
|
});
|
|
3142
3142
|
stopwatch();
|
|
@@ -3246,12 +3246,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3246
3246
|
);
|
|
3247
3247
|
|
|
3248
3248
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3249
|
-
|
|
3249
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3250
3250
|
var _jiti = require('jiti');
|
|
3251
3251
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3252
3252
|
async function napiExecutor(options, context, config) {
|
|
3253
3253
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3254
|
-
fsCache: config.skipCache ? false :
|
|
3254
|
+
fsCache: config.skipCache ? false : _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3255
3255
|
config.workspaceRoot,
|
|
3256
3256
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3257
3257
|
"jiti"
|
|
@@ -3267,53 +3267,50 @@ async function napiExecutor(options, context, config) {
|
|
|
3267
3267
|
);
|
|
3268
3268
|
}
|
|
3269
3269
|
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]);
|
|
3270
|
-
const packageJson =
|
|
3270
|
+
const packageJson = _chunkNG224TJJjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3271
3271
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3272
3272
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3273
3273
|
}
|
|
3274
3274
|
const napi = new NapiCli();
|
|
3275
3275
|
const normalizedOptions = { ...options };
|
|
3276
3276
|
const metadata = cargoMetadata();
|
|
3277
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) ||
|
|
3277
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) || _chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3278
3278
|
normalizedOptions.outputDir = options.outputPath;
|
|
3279
|
-
normalizedOptions.packageJsonPath
|
|
3279
|
+
normalizedOptions.packageJsonPath ??= packageJson;
|
|
3280
3280
|
if (options.cwd) {
|
|
3281
|
-
normalizedOptions.cwd =
|
|
3281
|
+
normalizedOptions.cwd = _chunkNG224TJJjs.correctPaths.call(void 0, options.cwd);
|
|
3282
3282
|
} else {
|
|
3283
|
-
normalizedOptions.cwd =
|
|
3284
|
-
const absoluteProjectRoot =
|
|
3283
|
+
normalizedOptions.cwd = _chunkNG224TJJjs.correctPaths.call(void 0, projectRoot);
|
|
3284
|
+
const absoluteProjectRoot = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3285
3285
|
config.workspaceRoot,
|
|
3286
3286
|
projectRoot || "."
|
|
3287
3287
|
);
|
|
3288
3288
|
if (normalizedOptions.outputDir) {
|
|
3289
|
-
normalizedOptions.outputDir =
|
|
3289
|
+
normalizedOptions.outputDir = _chunkNG224TJJjs.relative.call(void 0,
|
|
3290
3290
|
absoluteProjectRoot,
|
|
3291
|
-
|
|
3292
|
-
|
|
3291
|
+
_chunkNG224TJJjs.correctPaths.call(void 0,
|
|
3292
|
+
_chunkNG224TJJjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3293
3293
|
)
|
|
3294
3294
|
);
|
|
3295
3295
|
}
|
|
3296
3296
|
if (normalizedOptions.packageJsonPath) {
|
|
3297
|
-
normalizedOptions.packageJsonPath =
|
|
3298
|
-
|
|
3299
|
-
_chunkIWQXJDCDjs.correctPaths.call(void 0,
|
|
3300
|
-
_chunkIWQXJDCDjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkIWQXJDCDjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3301
|
-
)
|
|
3297
|
+
normalizedOptions.packageJsonPath = _chunkNG224TJJjs.correctPaths.call(void 0,
|
|
3298
|
+
_chunkNG224TJJjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3302
3299
|
);
|
|
3303
3300
|
}
|
|
3304
3301
|
if (normalizedOptions.configPath) {
|
|
3305
|
-
normalizedOptions.configPath =
|
|
3302
|
+
normalizedOptions.configPath = _chunkNG224TJJjs.relative.call(void 0,
|
|
3306
3303
|
absoluteProjectRoot,
|
|
3307
|
-
|
|
3308
|
-
|
|
3304
|
+
_chunkNG224TJJjs.correctPaths.call(void 0,
|
|
3305
|
+
_chunkNG224TJJjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3309
3306
|
)
|
|
3310
3307
|
);
|
|
3311
3308
|
}
|
|
3312
3309
|
if (normalizedOptions.manifestPath) {
|
|
3313
|
-
normalizedOptions.manifestPath =
|
|
3310
|
+
normalizedOptions.manifestPath = _chunkNG224TJJjs.relative.call(void 0,
|
|
3314
3311
|
absoluteProjectRoot,
|
|
3315
|
-
|
|
3316
|
-
|
|
3312
|
+
_chunkNG224TJJjs.correctPaths.call(void 0,
|
|
3313
|
+
_chunkNG224TJJjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkNG224TJJjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3317
3314
|
)
|
|
3318
3315
|
);
|
|
3319
3316
|
}
|
|
@@ -3321,6 +3318,16 @@ async function napiExecutor(options, context, config) {
|
|
|
3321
3318
|
if (process.env.VERCEL) {
|
|
3322
3319
|
return { success: true };
|
|
3323
3320
|
}
|
|
3321
|
+
writeDebug(
|
|
3322
|
+
`Normalized Napi Options:
|
|
3323
|
+
packageJsonPath: ${normalizedOptions.packageJsonPath}
|
|
3324
|
+
outputDir: ${normalizedOptions.outputDir}
|
|
3325
|
+
targetDir: ${normalizedOptions.targetDir}
|
|
3326
|
+
manifestPath: ${normalizedOptions.manifestPath}
|
|
3327
|
+
configPath: ${normalizedOptions.configPath}
|
|
3328
|
+
cwd: ${normalizedOptions.cwd}`,
|
|
3329
|
+
config
|
|
3330
|
+
);
|
|
3324
3331
|
const { task } = await napi.build(normalizedOptions);
|
|
3325
3332
|
return { success: true, terminalOutput: await task };
|
|
3326
3333
|
}
|
|
@@ -3346,17 +3353,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3346
3353
|
);
|
|
3347
3354
|
|
|
3348
3355
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3349
|
-
|
|
3356
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3350
3357
|
|
|
3351
3358
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3352
|
-
|
|
3359
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3353
3360
|
|
|
3354
3361
|
|
|
3355
3362
|
// ../npm-tools/src/constants.ts
|
|
3356
|
-
|
|
3363
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3357
3364
|
|
|
3358
3365
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3359
|
-
|
|
3366
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3360
3367
|
|
|
3361
3368
|
|
|
3362
3369
|
|
|
@@ -3366,17 +3373,17 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
3366
3373
|
var _prettier = require('prettier');
|
|
3367
3374
|
|
|
3368
3375
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3369
|
-
|
|
3376
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3370
3377
|
|
|
3371
3378
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3372
|
-
|
|
3379
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3373
3380
|
|
|
3374
3381
|
|
|
3375
3382
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3376
3383
|
var _semver = require('semver');
|
|
3377
3384
|
|
|
3378
3385
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3379
|
-
|
|
3386
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3380
3387
|
|
|
3381
3388
|
|
|
3382
3389
|
var _yaml = require('yaml');
|
|
@@ -3387,7 +3394,7 @@ var _yaml = require('yaml');
|
|
|
3387
3394
|
|
|
3388
3395
|
|
|
3389
3396
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3390
|
-
|
|
3397
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3391
3398
|
|
|
3392
3399
|
|
|
3393
3400
|
|
|
@@ -3399,7 +3406,7 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
3399
3406
|
|
|
3400
3407
|
|
|
3401
3408
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3402
|
-
|
|
3409
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3403
3410
|
var ProjectTagConstants = {
|
|
3404
3411
|
Language: {
|
|
3405
3412
|
TAG_ID: "language",
|
|
@@ -3476,7 +3483,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3476
3483
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3477
3484
|
|
|
3478
3485
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3479
|
-
|
|
3486
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3480
3487
|
|
|
3481
3488
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3482
3489
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3518,10 +3525,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3518
3525
|
);
|
|
3519
3526
|
|
|
3520
3527
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3521
|
-
|
|
3528
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3522
3529
|
|
|
3523
3530
|
// ../tsdown/src/build.ts
|
|
3524
|
-
|
|
3531
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3525
3532
|
|
|
3526
3533
|
|
|
3527
3534
|
|
|
@@ -3533,14 +3540,14 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
3533
3540
|
var _tsdown = require('tsdown');
|
|
3534
3541
|
|
|
3535
3542
|
// ../tsdown/src/clean.ts
|
|
3536
|
-
|
|
3543
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3537
3544
|
|
|
3538
3545
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3539
3546
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3540
3547
|
}
|
|
3541
3548
|
|
|
3542
3549
|
// ../tsdown/src/config.ts
|
|
3543
|
-
|
|
3550
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3544
3551
|
function getDefaultOptions(config) {
|
|
3545
3552
|
return {
|
|
3546
3553
|
entry: ["./src/*.ts"],
|
|
@@ -3583,7 +3590,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3583
3590
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3584
3591
|
exitOnError: true
|
|
3585
3592
|
});
|
|
3586
|
-
const projectJsonPath =
|
|
3593
|
+
const projectJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3587
3594
|
workspaceRoot2,
|
|
3588
3595
|
options.projectRoot,
|
|
3589
3596
|
"project.json"
|
|
@@ -3600,7 +3607,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3600
3607
|
"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."
|
|
3601
3608
|
);
|
|
3602
3609
|
}
|
|
3603
|
-
const packageJsonPath =
|
|
3610
|
+
const packageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3604
3611
|
workspaceRoot2,
|
|
3605
3612
|
options.projectRoot,
|
|
3606
3613
|
"package.json"
|
|
@@ -3609,13 +3616,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3609
3616
|
throw new Error("Cannot find package.json configuration");
|
|
3610
3617
|
}
|
|
3611
3618
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3612
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3619
|
+
const sourceRoot = projectJson.sourceRoot || _chunkNG224TJJjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3613
3620
|
const result = {
|
|
3614
3621
|
name: projectName,
|
|
3615
3622
|
mode: "production",
|
|
3616
3623
|
target: DEFAULT_TARGET,
|
|
3617
3624
|
generatePackageJson: true,
|
|
3618
|
-
outDir:
|
|
3625
|
+
outDir: _chunkNG224TJJjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3619
3626
|
minify: !debug,
|
|
3620
3627
|
plugins: [],
|
|
3621
3628
|
assets: [],
|
|
@@ -3627,12 +3634,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3627
3634
|
clean: false,
|
|
3628
3635
|
fixedExtension: true,
|
|
3629
3636
|
nodeProtocol: true,
|
|
3630
|
-
tsconfig:
|
|
3637
|
+
tsconfig: _chunkNG224TJJjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3631
3638
|
debug,
|
|
3632
3639
|
sourceRoot,
|
|
3633
3640
|
cwd: workspaceConfig.workspaceRoot,
|
|
3634
3641
|
entry: {
|
|
3635
|
-
["index"]:
|
|
3642
|
+
["index"]: _chunkNG224TJJjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3636
3643
|
},
|
|
3637
3644
|
workspace: true,
|
|
3638
3645
|
...options,
|
|
@@ -3651,15 +3658,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3651
3658
|
return result;
|
|
3652
3659
|
};
|
|
3653
3660
|
async function generatePackageJson2(options) {
|
|
3654
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3661
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkNG224TJJjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3655
3662
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3656
3663
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3657
|
-
const packageJsonPath =
|
|
3664
|
+
const packageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3658
3665
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3659
3666
|
throw new Error("Cannot find package.json configuration");
|
|
3660
3667
|
}
|
|
3661
3668
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3662
|
-
|
|
3669
|
+
_chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3663
3670
|
options.workspaceConfig.workspaceRoot,
|
|
3664
3671
|
options.projectRoot,
|
|
3665
3672
|
"package.json"
|
|
@@ -3721,7 +3728,7 @@ async function generatePackageJson2(options) {
|
|
|
3721
3728
|
},
|
|
3722
3729
|
packageJson.exports
|
|
3723
3730
|
);
|
|
3724
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3731
|
+
await _devkit.writeJsonFile.call(void 0, _chunkNG224TJJjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3725
3732
|
stopwatch();
|
|
3726
3733
|
}
|
|
3727
3734
|
return options;
|
|
@@ -3854,7 +3861,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3854
3861
|
);
|
|
3855
3862
|
|
|
3856
3863
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3857
|
-
|
|
3864
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3858
3865
|
var _fsextra = require('fs-extra');
|
|
3859
3866
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3860
3867
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3894,7 +3901,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3894
3901
|
);
|
|
3895
3902
|
|
|
3896
3903
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3897
|
-
|
|
3904
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3898
3905
|
|
|
3899
3906
|
|
|
3900
3907
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3915,7 +3922,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3915
3922
|
);
|
|
3916
3923
|
}
|
|
3917
3924
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3918
|
-
fsCache: config.skipCache ? false :
|
|
3925
|
+
fsCache: config.skipCache ? false : _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3919
3926
|
config.workspaceRoot,
|
|
3920
3927
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3921
3928
|
"jiti"
|
|
@@ -3937,7 +3944,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3937
3944
|
{
|
|
3938
3945
|
stubOptions: {
|
|
3939
3946
|
jiti: {
|
|
3940
|
-
fsCache: config.skipCache ? false :
|
|
3947
|
+
fsCache: config.skipCache ? false : _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
3941
3948
|
config.workspaceRoot,
|
|
3942
3949
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3943
3950
|
"jiti"
|
|
@@ -3986,10 +3993,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3986
3993
|
);
|
|
3987
3994
|
|
|
3988
3995
|
// ../workspace-tools/generators.ts
|
|
3989
|
-
|
|
3996
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3990
3997
|
|
|
3991
3998
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3992
|
-
|
|
3999
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
3993
4000
|
|
|
3994
4001
|
|
|
3995
4002
|
|
|
@@ -3998,7 +4005,7 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
3998
4005
|
|
|
3999
4006
|
|
|
4000
4007
|
// ../workspace-tools/src/base/base-generator.ts
|
|
4001
|
-
|
|
4008
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4002
4009
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
4003
4010
|
skipReadingConfig: false
|
|
4004
4011
|
}) => async (tree, _options) => {
|
|
@@ -4085,7 +4092,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4085
4092
|
};
|
|
4086
4093
|
|
|
4087
4094
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
4088
|
-
|
|
4095
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4089
4096
|
|
|
4090
4097
|
|
|
4091
4098
|
|
|
@@ -4107,7 +4114,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
4107
4114
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
4108
4115
|
|
|
4109
4116
|
// ../workspace-tools/src/utils/versions.ts
|
|
4110
|
-
|
|
4117
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4111
4118
|
var typesNodeVersion = "20.9.0";
|
|
4112
4119
|
var nxVersion = "^18.0.4";
|
|
4113
4120
|
var nodeVersion = "20.11.0";
|
|
@@ -4140,16 +4147,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4140
4147
|
const projectConfig = {
|
|
4141
4148
|
root: normalized.directory,
|
|
4142
4149
|
projectType: "library",
|
|
4143
|
-
sourceRoot:
|
|
4150
|
+
sourceRoot: _chunkNG224TJJjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4144
4151
|
targets: {
|
|
4145
4152
|
build: {
|
|
4146
4153
|
executor: options.buildExecutor,
|
|
4147
4154
|
outputs: ["{options.outputPath}"],
|
|
4148
4155
|
options: {
|
|
4149
|
-
entry: [
|
|
4156
|
+
entry: [_chunkNG224TJJjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4150
4157
|
outputPath: getOutputPath(normalized),
|
|
4151
|
-
tsconfig:
|
|
4152
|
-
project:
|
|
4158
|
+
tsconfig: _chunkNG224TJJjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4159
|
+
project: _chunkNG224TJJjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4153
4160
|
defaultConfiguration: "production",
|
|
4154
4161
|
platform: "neutral",
|
|
4155
4162
|
assets: [
|
|
@@ -4206,7 +4213,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4206
4213
|
if (!normalized.importPath) {
|
|
4207
4214
|
normalized.importPath = normalized.name;
|
|
4208
4215
|
}
|
|
4209
|
-
const packageJsonPath =
|
|
4216
|
+
const packageJsonPath = _chunkNG224TJJjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4210
4217
|
if (tree.exists(packageJsonPath)) {
|
|
4211
4218
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4212
4219
|
if (!normalized.importPath) {
|
|
@@ -4263,14 +4270,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4263
4270
|
}));
|
|
4264
4271
|
}
|
|
4265
4272
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4266
|
-
|
|
4273
|
+
_chunkNG224TJJjs.joinPaths.call(void 0,
|
|
4267
4274
|
normalized.projectRoot,
|
|
4268
4275
|
"./src",
|
|
4269
4276
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4270
4277
|
)
|
|
4271
4278
|
]);
|
|
4272
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4273
|
-
|
|
4279
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkNG224TJJjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4280
|
+
_chunkNG224TJJjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4274
4281
|
]);
|
|
4275
4282
|
if (tree.exists("package.json")) {
|
|
4276
4283
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4281,7 +4288,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4281
4288
|
description = packageJson.description;
|
|
4282
4289
|
}
|
|
4283
4290
|
}
|
|
4284
|
-
const tsconfigPath =
|
|
4291
|
+
const tsconfigPath = _chunkNG224TJJjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4285
4292
|
if (tree.exists(tsconfigPath)) {
|
|
4286
4293
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4287
4294
|
json.composite ??= true;
|
|
@@ -4309,7 +4316,7 @@ function getOutputPath(options) {
|
|
|
4309
4316
|
} else {
|
|
4310
4317
|
parts.push(options.projectRoot);
|
|
4311
4318
|
}
|
|
4312
|
-
return
|
|
4319
|
+
return _chunkNG224TJJjs.joinPaths.call(void 0, ...parts);
|
|
4313
4320
|
}
|
|
4314
4321
|
function createProjectTsConfigJson(tree, options) {
|
|
4315
4322
|
const tsconfig = {
|
|
@@ -4317,7 +4324,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4317
4324
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _213 => _213.tsconfigOptions]), () => ( {})),
|
|
4318
4325
|
compilerOptions: {
|
|
4319
4326
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4320
|
-
outDir:
|
|
4327
|
+
outDir: _chunkNG224TJJjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4321
4328
|
noEmit: true,
|
|
4322
4329
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _214 => _214.tsconfigOptions, 'optionalAccess', _215 => _215.compilerOptions]), () => ( {}))
|
|
4323
4330
|
},
|
|
@@ -4335,7 +4342,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4335
4342
|
"src/**/*.test.ts"
|
|
4336
4343
|
]
|
|
4337
4344
|
};
|
|
4338
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4345
|
+
_devkit.writeJson.call(void 0, tree, _chunkNG224TJJjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4339
4346
|
}
|
|
4340
4347
|
async function normalizeOptions(tree, options, config) {
|
|
4341
4348
|
let importPath = options.importPath;
|
|
@@ -4400,7 +4407,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4400
4407
|
|
|
4401
4408
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4402
4409
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4403
|
-
const filesDir =
|
|
4410
|
+
const filesDir = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
4404
4411
|
__dirname,
|
|
4405
4412
|
"src",
|
|
4406
4413
|
"generators",
|
|
@@ -4480,7 +4487,7 @@ var generator_default = withRunGenerator(
|
|
|
4480
4487
|
);
|
|
4481
4488
|
|
|
4482
4489
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4483
|
-
|
|
4490
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4484
4491
|
|
|
4485
4492
|
var _zod2 = require('zod'); var z2 = _interopRequireWildcard(_zod2);
|
|
4486
4493
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4537,7 +4544,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4537
4544
|
);
|
|
4538
4545
|
|
|
4539
4546
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4540
|
-
|
|
4547
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4541
4548
|
|
|
4542
4549
|
|
|
4543
4550
|
|
|
@@ -4565,7 +4572,7 @@ async function initGenerator(tree, schema) {
|
|
|
4565
4572
|
}
|
|
4566
4573
|
|
|
4567
4574
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4568
|
-
|
|
4575
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4569
4576
|
|
|
4570
4577
|
|
|
4571
4578
|
|
|
@@ -4573,7 +4580,7 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
4573
4580
|
|
|
4574
4581
|
|
|
4575
4582
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4576
|
-
const filesDir =
|
|
4583
|
+
const filesDir = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
4577
4584
|
__dirname,
|
|
4578
4585
|
"src",
|
|
4579
4586
|
"generators",
|
|
@@ -4625,7 +4632,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4625
4632
|
);
|
|
4626
4633
|
|
|
4627
4634
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4628
|
-
|
|
4635
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4629
4636
|
|
|
4630
4637
|
|
|
4631
4638
|
|
|
@@ -4633,7 +4640,7 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
4633
4640
|
|
|
4634
4641
|
|
|
4635
4642
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4636
|
-
const filesDir =
|
|
4643
|
+
const filesDir = _chunkNG224TJJjs.joinPaths.call(void 0,
|
|
4637
4644
|
__dirname,
|
|
4638
4645
|
"src",
|
|
4639
4646
|
"generators",
|
|
@@ -4687,7 +4694,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4687
4694
|
);
|
|
4688
4695
|
|
|
4689
4696
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4690
|
-
|
|
4697
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4691
4698
|
|
|
4692
4699
|
|
|
4693
4700
|
|
|
@@ -4926,10 +4933,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4926
4933
|
);
|
|
4927
4934
|
|
|
4928
4935
|
// ../workspace-tools/src/base/index.ts
|
|
4929
|
-
|
|
4936
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4930
4937
|
|
|
4931
4938
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4932
|
-
|
|
4939
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4933
4940
|
var _untyped = require('untyped');
|
|
4934
4941
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4935
4942
|
$schema: {
|
|
@@ -4949,7 +4956,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4949
4956
|
});
|
|
4950
4957
|
|
|
4951
4958
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4952
|
-
|
|
4959
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4953
4960
|
|
|
4954
4961
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4955
4962
|
$schema: {
|
|
@@ -4967,7 +4974,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4967
4974
|
});
|
|
4968
4975
|
|
|
4969
4976
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4970
|
-
|
|
4977
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
4971
4978
|
|
|
4972
4979
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4973
4980
|
...base_executor_untyped_default,
|
|
@@ -5040,7 +5047,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5040
5047
|
});
|
|
5041
5048
|
|
|
5042
5049
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5043
|
-
|
|
5050
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5044
5051
|
|
|
5045
5052
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5046
5053
|
...base_executor_untyped_default,
|
|
@@ -5192,7 +5199,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5192
5199
|
});
|
|
5193
5200
|
|
|
5194
5201
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5195
|
-
|
|
5202
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5196
5203
|
|
|
5197
5204
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5198
5205
|
...base_generator_untyped_default,
|
|
@@ -5298,42 +5305,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5298
5305
|
});
|
|
5299
5306
|
|
|
5300
5307
|
// ../workspace-tools/src/release/index.ts
|
|
5301
|
-
|
|
5308
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5302
5309
|
|
|
5303
5310
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5304
|
-
|
|
5311
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5305
5312
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5306
5313
|
|
|
5307
5314
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5308
|
-
|
|
5315
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5309
5316
|
|
|
5310
5317
|
|
|
5311
5318
|
|
|
5312
5319
|
var _release = require('nx/release');
|
|
5313
5320
|
|
|
5314
5321
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5315
|
-
|
|
5322
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5316
5323
|
|
|
5317
5324
|
|
|
5318
5325
|
// ../workspace-tools/src/types.ts
|
|
5319
|
-
|
|
5326
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5320
5327
|
|
|
5321
5328
|
// ../workspace-tools/src/utils/index.ts
|
|
5322
|
-
|
|
5329
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5323
5330
|
|
|
5324
5331
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5325
|
-
|
|
5332
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5326
5333
|
|
|
5327
5334
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5328
|
-
|
|
5335
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5329
5336
|
|
|
5330
5337
|
|
|
5331
5338
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5332
|
-
|
|
5339
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5333
5340
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5334
5341
|
|
|
5335
5342
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5336
|
-
|
|
5343
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5337
5344
|
|
|
5338
5345
|
|
|
5339
5346
|
|
|
@@ -5361,10 +5368,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5361
5368
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5362
5369
|
|
|
5363
5370
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5364
|
-
|
|
5371
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5365
5372
|
|
|
5366
5373
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5367
|
-
|
|
5374
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5368
5375
|
|
|
5369
5376
|
|
|
5370
5377
|
|
|
@@ -5373,7 +5380,7 @@ _chunkJGVVXAAKjs.init_cjs_shims.call(void 0, );
|
|
|
5373
5380
|
|
|
5374
5381
|
|
|
5375
5382
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5376
|
-
|
|
5383
|
+
_chunk7NCOB2OSjs.init_cjs_shims.call(void 0, );
|
|
5377
5384
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5378
5385
|
|
|
5379
5386
|
// src/generators/init/generator.ts
|