@storm-software/projen 0.21.275 → 0.21.282
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 +69 -0
- package/README.md +1 -1
- package/dist/{chunk-PEAVGRTD.mjs → chunk-2XEHJ5AZ.mjs} +2 -2
- package/dist/{chunk-5D7MNJJG.mjs → chunk-5OS37CGT.mjs} +1 -1
- package/dist/{chunk-YPZC3HAQ.js → chunk-7RAWZTDF.js} +2 -2
- package/dist/{chunk-PTF6IW2S.js → chunk-H4K2FM6O.js} +3 -3
- package/dist/{chunk-LDQSXIL7.mjs → chunk-JM5OPK33.mjs} +1 -1
- package/dist/{chunk-V6EDXEZM.mjs → chunk-JUHNSJSN.mjs} +5 -3
- package/dist/{chunk-B55HWXHA.mjs → chunk-SF4ICFUE.mjs} +1 -1
- package/dist/chunk-W37IAZ6L.js +6 -0
- package/dist/{chunk-QQOQQB3L.js → chunk-WXQ57IJL.js} +193 -191
- package/dist/{chunk-YWHLDYZ3.js → chunk-ZAPGC4XP.js} +2 -2
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +4 -4
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-4A3WQDKD.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZAPGC4XPjs = require('./chunk-ZAPGC4XP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7RAWZTDFjs = require('./chunk-7RAWZTDF.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunk7RAWZTDFjs.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
|
+
_chunk7RAWZTDFjs.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
|
+
_chunk7RAWZTDFjs.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
|
+
_chunk7RAWZTDFjs.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
|
+
_chunk7RAWZTDFjs.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
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunk7RAWZTDFjs.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
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
203
203
|
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
204
204
|
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
// ../config-tools/src/logger/get-log-level.ts
|
|
208
|
-
|
|
208
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
209
209
|
var getLogLevel = (label) => {
|
|
210
210
|
switch (label) {
|
|
211
211
|
case "all":
|
|
@@ -432,13 +432,13 @@ var _isFunction = (value) => {
|
|
|
432
432
|
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
433
433
|
|
|
434
434
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
435
|
-
|
|
435
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
436
436
|
|
|
437
437
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
438
|
-
|
|
438
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
439
439
|
|
|
440
440
|
// ../config-tools/src/utilities/find-up.ts
|
|
441
|
-
|
|
441
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
442
442
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
443
443
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
444
444
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -493,7 +493,9 @@ var rootFiles = [
|
|
|
493
493
|
"npm-lock.yml",
|
|
494
494
|
"yarn-lock.yml",
|
|
495
495
|
"pnpm-lock.yml",
|
|
496
|
-
"bun.lockb"
|
|
496
|
+
"bun.lockb",
|
|
497
|
+
"bun.lock",
|
|
498
|
+
"bunfig.toml"
|
|
497
499
|
];
|
|
498
500
|
var rootDirectories = [
|
|
499
501
|
".storm-workspace",
|
|
@@ -505,11 +507,11 @@ var rootDirectories = [
|
|
|
505
507
|
];
|
|
506
508
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
507
509
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
508
|
-
return
|
|
510
|
+
return _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
509
511
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
510
512
|
);
|
|
511
513
|
}
|
|
512
|
-
return
|
|
514
|
+
return _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
513
515
|
findFolderUp(
|
|
514
516
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
515
517
|
rootFiles,
|
|
@@ -604,13 +606,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
604
606
|
};
|
|
605
607
|
|
|
606
608
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
607
|
-
|
|
609
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
608
610
|
|
|
609
611
|
// ../config/src/index.ts
|
|
610
|
-
|
|
612
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
611
613
|
|
|
612
614
|
// ../config/src/constants.ts
|
|
613
|
-
|
|
615
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
614
616
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
615
617
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
616
618
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -629,10 +631,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
629
631
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
630
632
|
|
|
631
633
|
// ../config/src/define-config.ts
|
|
632
|
-
|
|
634
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
633
635
|
|
|
634
636
|
// ../config/src/schema.ts
|
|
635
|
-
|
|
637
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
636
638
|
var _mini = require('zod/v4/mini'); var z = _interopRequireWildcard(_mini);
|
|
637
639
|
var schemaRegistry = z.registry();
|
|
638
640
|
var colorSchema = z.string().check(
|
|
@@ -1202,7 +1204,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1202
1204
|
});
|
|
1203
1205
|
|
|
1204
1206
|
// ../config/src/types.ts
|
|
1205
|
-
|
|
1207
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
1206
1208
|
var COLOR_KEYS = [
|
|
1207
1209
|
"dark",
|
|
1208
1210
|
"light",
|
|
@@ -1236,7 +1238,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1236
1238
|
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1237
1239
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1238
1240
|
const file = await _promises.readFile.call(void 0,
|
|
1239
|
-
|
|
1241
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1240
1242
|
"utf8"
|
|
1241
1243
|
);
|
|
1242
1244
|
if (file) {
|
|
@@ -1310,7 +1312,7 @@ function applyDefaultConfig(config) {
|
|
|
1310
1312
|
}
|
|
1311
1313
|
|
|
1312
1314
|
// ../config-tools/src/utilities/toml.ts
|
|
1313
|
-
|
|
1315
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
1314
1316
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1315
1317
|
function parseCargoToml(cargoString) {
|
|
1316
1318
|
if (!cargoString) {
|
|
@@ -1332,7 +1334,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1332
1334
|
envName: _optionalChain([fileName, 'optionalAccess', _38 => _38.toUpperCase, 'call', _39 => _39()]),
|
|
1333
1335
|
jitiOptions: {
|
|
1334
1336
|
debug: false,
|
|
1335
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1337
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
1336
1338
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1337
1339
|
"jiti"
|
|
1338
1340
|
)
|
|
@@ -1346,7 +1348,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1346
1348
|
envName: _optionalChain([fileName, 'optionalAccess', _40 => _40.toUpperCase, 'call', _41 => _41()]),
|
|
1347
1349
|
jitiOptions: {
|
|
1348
1350
|
debug: false,
|
|
1349
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1351
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
1350
1352
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1351
1353
|
"jiti"
|
|
1352
1354
|
)
|
|
@@ -1398,12 +1400,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1398
1400
|
};
|
|
1399
1401
|
|
|
1400
1402
|
// ../config-tools/src/create-storm-config.ts
|
|
1401
|
-
|
|
1403
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
1402
1404
|
|
|
1403
1405
|
|
|
1404
1406
|
|
|
1405
1407
|
// ../config-tools/src/env/get-env.ts
|
|
1406
|
-
|
|
1408
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
1407
1409
|
var getExtensionEnv = (extensionName) => {
|
|
1408
1410
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1409
1411
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1465,15 +1467,15 @@ var getConfigEnv = () => {
|
|
|
1465
1467
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1466
1468
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1467
1469
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1468
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1469
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1470
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1471
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1470
1472
|
directories: {
|
|
1471
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1472
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1473
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1474
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1475
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1476
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1473
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1474
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1475
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1476
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1477
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1478
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkZAPGC4XPjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1477
1479
|
},
|
|
1478
1480
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1479
1481
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1620,7 +1622,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1620
1622
|
};
|
|
1621
1623
|
|
|
1622
1624
|
// ../config-tools/src/env/set-env.ts
|
|
1623
|
-
|
|
1625
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
1624
1626
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1625
1627
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1626
1628
|
if (extension[key]) {
|
|
@@ -1768,42 +1770,42 @@ var setConfigEnv = (config) => {
|
|
|
1768
1770
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1769
1771
|
}
|
|
1770
1772
|
if (config.configFile) {
|
|
1771
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1773
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
1772
1774
|
config.configFile
|
|
1773
1775
|
);
|
|
1774
1776
|
}
|
|
1775
1777
|
if (config.workspaceRoot) {
|
|
1776
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1777
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1778
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1778
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkZAPGC4XPjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1779
|
+
process.env.NX_WORKSPACE_ROOT = _chunkZAPGC4XPjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1780
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkZAPGC4XPjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1779
1781
|
}
|
|
1780
1782
|
if (config.directories) {
|
|
1781
1783
|
if (!config.skipCache && config.directories.cache) {
|
|
1782
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1784
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
1783
1785
|
config.directories.cache
|
|
1784
1786
|
);
|
|
1785
1787
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1786
1788
|
}
|
|
1787
1789
|
if (config.directories.data) {
|
|
1788
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1790
|
+
process.env[`${prefix}DATA_DIR`] = _chunkZAPGC4XPjs.correctPaths.call(void 0, config.directories.data);
|
|
1789
1791
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1790
1792
|
}
|
|
1791
1793
|
if (config.directories.config) {
|
|
1792
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1794
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
1793
1795
|
config.directories.config
|
|
1794
1796
|
);
|
|
1795
1797
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1796
1798
|
}
|
|
1797
1799
|
if (config.directories.temp) {
|
|
1798
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1800
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkZAPGC4XPjs.correctPaths.call(void 0, config.directories.temp);
|
|
1799
1801
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1800
1802
|
}
|
|
1801
1803
|
if (config.directories.log) {
|
|
1802
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1804
|
+
process.env[`${prefix}LOG_DIR`] = _chunkZAPGC4XPjs.correctPaths.call(void 0, config.directories.log);
|
|
1803
1805
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1804
1806
|
}
|
|
1805
1807
|
if (config.directories.build) {
|
|
1806
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1808
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
1807
1809
|
config.directories.build
|
|
1808
1810
|
);
|
|
1809
1811
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -2031,7 +2033,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, s
|
|
|
2031
2033
|
defaultConfig
|
|
2032
2034
|
);
|
|
2033
2035
|
if (!configInput.variant) {
|
|
2034
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
2036
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkZAPGC4XPjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkZAPGC4XPjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkZAPGC4XPjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkZAPGC4XPjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2035
2037
|
}
|
|
2036
2038
|
try {
|
|
2037
2039
|
const parseResult = await Promise.resolve(
|
|
@@ -2101,7 +2103,7 @@ ${formatLogMessage(config)}`,
|
|
|
2101
2103
|
};
|
|
2102
2104
|
|
|
2103
2105
|
// ../config-tools/src/get-config.ts
|
|
2104
|
-
|
|
2106
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2105
2107
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2106
2108
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2107
2109
|
}
|
|
@@ -2239,7 +2241,7 @@ var _isFunction2 = (value) => {
|
|
|
2239
2241
|
};
|
|
2240
2242
|
|
|
2241
2243
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2242
|
-
|
|
2244
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2243
2245
|
|
|
2244
2246
|
|
|
2245
2247
|
|
|
@@ -2389,7 +2391,7 @@ var executor_default = withRunExecutor(
|
|
|
2389
2391
|
);
|
|
2390
2392
|
|
|
2391
2393
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2392
|
-
|
|
2394
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2393
2395
|
async function cargoCheckExecutor(options, context) {
|
|
2394
2396
|
const command = buildCargoCommand("check", options, context);
|
|
2395
2397
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2409,7 +2411,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2409
2411
|
);
|
|
2410
2412
|
|
|
2411
2413
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2412
|
-
|
|
2414
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2413
2415
|
async function cargoClippyExecutor(options, context) {
|
|
2414
2416
|
const command = buildCargoCommand("clippy", options, context);
|
|
2415
2417
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2430,7 +2432,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2430
2432
|
);
|
|
2431
2433
|
|
|
2432
2434
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2433
|
-
|
|
2435
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2434
2436
|
async function cargoDocExecutor(options, context) {
|
|
2435
2437
|
const opts = { ...options };
|
|
2436
2438
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2460,7 +2462,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2460
2462
|
);
|
|
2461
2463
|
|
|
2462
2464
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2463
|
-
|
|
2465
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2464
2466
|
async function cargoFormatExecutor(options, context) {
|
|
2465
2467
|
const command = buildCargoCommand("fmt", options, context);
|
|
2466
2468
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2481,7 +2483,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2481
2483
|
);
|
|
2482
2484
|
|
|
2483
2485
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2484
|
-
|
|
2486
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2485
2487
|
|
|
2486
2488
|
|
|
2487
2489
|
|
|
@@ -2489,7 +2491,7 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2489
2491
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2490
2492
|
|
|
2491
2493
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2492
|
-
|
|
2494
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2493
2495
|
var _jiti = require('jiti');
|
|
2494
2496
|
async function esbuildExecutorFn(options, context, config) {
|
|
2495
2497
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
@@ -2499,7 +2501,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
2499
2501
|
);
|
|
2500
2502
|
}
|
|
2501
2503
|
const jiti = _jiti.createJiti.call(void 0, _optionalChain([config, 'optionalAccess', _114 => _114.workspaceRoot]) || process.cwd(), {
|
|
2502
|
-
fsCache: _optionalChain([config, 'optionalAccess', _115 => _115.skipCache]) ? false :
|
|
2504
|
+
fsCache: _optionalChain([config, 'optionalAccess', _115 => _115.skipCache]) ? false : _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
2503
2505
|
_optionalChain([config, 'optionalAccess', _116 => _116.workspaceRoot]) || process.cwd(),
|
|
2504
2506
|
_optionalChain([config, 'optionalAccess', _117 => _117.directories, 'optionalAccess', _118 => _118.cache]) || "node_modules/.cache/storm",
|
|
2505
2507
|
"jiti"
|
|
@@ -2539,12 +2541,12 @@ var executor_default6 = withRunExecutor(
|
|
|
2539
2541
|
);
|
|
2540
2542
|
|
|
2541
2543
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
2542
|
-
|
|
2544
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2543
2545
|
|
|
2544
2546
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
2545
2547
|
async function napiExecutor(options, context, config) {
|
|
2546
2548
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
2547
|
-
fsCache: config.skipCache ? false :
|
|
2549
|
+
fsCache: config.skipCache ? false : _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
2548
2550
|
config.workspaceRoot,
|
|
2549
2551
|
config.directories.cache || "node_modules/.cache/storm",
|
|
2550
2552
|
"jiti"
|
|
@@ -2560,52 +2562,52 @@ async function napiExecutor(options, context, config) {
|
|
|
2560
2562
|
);
|
|
2561
2563
|
}
|
|
2562
2564
|
const projectRoot = _optionalChain([context, 'access', _130 => _130.projectGraph, 'optionalAccess', _131 => _131.nodes, 'access', _132 => _132[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _133 => _133.data, 'access', _134 => _134.root]);
|
|
2563
|
-
const packageJson =
|
|
2565
|
+
const packageJson = _chunkZAPGC4XPjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
2564
2566
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
2565
2567
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
2566
2568
|
}
|
|
2567
2569
|
const napi = new NapiCli();
|
|
2568
2570
|
const normalizedOptions = { ...options };
|
|
2569
2571
|
const metadata = cargoMetadata();
|
|
2570
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _135 => _135.target_directory]) ||
|
|
2572
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _135 => _135.target_directory]) || _chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
2571
2573
|
normalizedOptions.outputDir = options.outputPath;
|
|
2572
2574
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
2573
2575
|
if (options.cwd) {
|
|
2574
|
-
normalizedOptions.cwd =
|
|
2576
|
+
normalizedOptions.cwd = _chunkZAPGC4XPjs.correctPaths.call(void 0, options.cwd);
|
|
2575
2577
|
} else {
|
|
2576
|
-
const absoluteProjectRoot =
|
|
2577
|
-
|
|
2578
|
+
const absoluteProjectRoot = _chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
2579
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
|
|
2578
2580
|
);
|
|
2579
2581
|
normalizedOptions.cwd = absoluteProjectRoot;
|
|
2580
2582
|
if (normalizedOptions.outputDir) {
|
|
2581
|
-
normalizedOptions.outputDir =
|
|
2583
|
+
normalizedOptions.outputDir = _chunkZAPGC4XPjs.relative.call(void 0,
|
|
2582
2584
|
normalizedOptions.cwd,
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
+
_chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
2586
|
+
_chunkZAPGC4XPjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
2585
2587
|
)
|
|
2586
2588
|
);
|
|
2587
2589
|
}
|
|
2588
2590
|
if (normalizedOptions.packageJsonPath) {
|
|
2589
|
-
normalizedOptions.packageJsonPath =
|
|
2591
|
+
normalizedOptions.packageJsonPath = _chunkZAPGC4XPjs.relative.call(void 0,
|
|
2590
2592
|
normalizedOptions.cwd,
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
+
_chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
2594
|
+
_chunkZAPGC4XPjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
2593
2595
|
)
|
|
2594
2596
|
);
|
|
2595
2597
|
}
|
|
2596
2598
|
if (normalizedOptions.configPath) {
|
|
2597
|
-
normalizedOptions.configPath =
|
|
2599
|
+
normalizedOptions.configPath = _chunkZAPGC4XPjs.relative.call(void 0,
|
|
2598
2600
|
normalizedOptions.cwd,
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
+
_chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
2602
|
+
_chunkZAPGC4XPjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
2601
2603
|
)
|
|
2602
2604
|
);
|
|
2603
2605
|
}
|
|
2604
2606
|
if (normalizedOptions.manifestPath) {
|
|
2605
|
-
normalizedOptions.manifestPath =
|
|
2607
|
+
normalizedOptions.manifestPath = _chunkZAPGC4XPjs.relative.call(void 0,
|
|
2606
2608
|
normalizedOptions.cwd,
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
+
_chunkZAPGC4XPjs.correctPaths.call(void 0,
|
|
2610
|
+
_chunkZAPGC4XPjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
2609
2611
|
)
|
|
2610
2612
|
);
|
|
2611
2613
|
}
|
|
@@ -2648,44 +2650,44 @@ var executor_default7 = withRunExecutor(
|
|
|
2648
2650
|
);
|
|
2649
2651
|
|
|
2650
2652
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2651
|
-
|
|
2653
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2652
2654
|
|
|
2653
2655
|
// ../pnpm-tools/src/index.ts
|
|
2654
|
-
|
|
2656
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2655
2657
|
|
|
2656
2658
|
// ../pnpm-tools/src/helpers/index.ts
|
|
2657
|
-
|
|
2659
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2658
2660
|
|
|
2659
2661
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
2660
|
-
|
|
2662
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2661
2663
|
|
|
2662
2664
|
// ../npm-tools/src/constants.ts
|
|
2663
|
-
|
|
2665
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2664
2666
|
|
|
2665
2667
|
// ../npm-tools/src/helpers/get-version.ts
|
|
2666
|
-
|
|
2668
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2667
2669
|
|
|
2668
2670
|
var _semver = require('semver');
|
|
2669
2671
|
var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
|
|
2670
2672
|
|
|
2671
2673
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
2672
|
-
|
|
2674
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2673
2675
|
|
|
2674
2676
|
|
|
2675
2677
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
2676
2678
|
|
|
2677
2679
|
|
|
2678
2680
|
// ../pnpm-tools/src/helpers/format.ts
|
|
2679
|
-
|
|
2681
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2680
2682
|
|
|
2681
2683
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
2682
|
-
|
|
2684
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2683
2685
|
|
|
2684
2686
|
|
|
2685
2687
|
var _yaml = require('yaml');
|
|
2686
2688
|
|
|
2687
2689
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
2688
|
-
|
|
2690
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2689
2691
|
|
|
2690
2692
|
|
|
2691
2693
|
|
|
@@ -2695,7 +2697,7 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
2695
2697
|
var _prettier = require('prettier');
|
|
2696
2698
|
|
|
2697
2699
|
// ../pnpm-tools/src/types.ts
|
|
2698
|
-
|
|
2700
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2699
2701
|
|
|
2700
2702
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2701
2703
|
|
|
@@ -2704,11 +2706,11 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
2704
2706
|
|
|
2705
2707
|
|
|
2706
2708
|
// ../workspace-tools/src/utils/github.ts
|
|
2707
|
-
|
|
2709
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2708
2710
|
|
|
2709
2711
|
|
|
2710
2712
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
2711
|
-
|
|
2713
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2712
2714
|
|
|
2713
2715
|
|
|
2714
2716
|
|
|
@@ -2720,10 +2722,10 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
2720
2722
|
|
|
2721
2723
|
|
|
2722
2724
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
2723
|
-
|
|
2725
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2724
2726
|
|
|
2725
2727
|
// ../package-constants/src/tags.ts
|
|
2726
|
-
|
|
2728
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2727
2729
|
var ProjectTagConstants = {
|
|
2728
2730
|
Language: {
|
|
2729
2731
|
TAG_ID: "language",
|
|
@@ -2802,7 +2804,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
2802
2804
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
2803
2805
|
|
|
2804
2806
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2805
|
-
|
|
2807
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2806
2808
|
|
|
2807
2809
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
2808
2810
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -2844,10 +2846,10 @@ var executor_default8 = withRunExecutor(
|
|
|
2844
2846
|
);
|
|
2845
2847
|
|
|
2846
2848
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
2847
|
-
|
|
2849
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2848
2850
|
|
|
2849
2851
|
// ../tsdown/src/build.ts
|
|
2850
|
-
|
|
2852
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2851
2853
|
|
|
2852
2854
|
|
|
2853
2855
|
|
|
@@ -2855,44 +2857,44 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
2855
2857
|
|
|
2856
2858
|
|
|
2857
2859
|
// ../build-tools/src/index.ts
|
|
2858
|
-
|
|
2860
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2859
2861
|
|
|
2860
2862
|
// ../build-tools/src/config.ts
|
|
2861
|
-
|
|
2863
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2862
2864
|
var DEFAULT_ENVIRONMENT = "production";
|
|
2863
2865
|
var DEFAULT_TARGET = "esnext";
|
|
2864
2866
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2865
2867
|
|
|
2866
2868
|
// ../build-tools/src/plugins/index.ts
|
|
2867
|
-
|
|
2869
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2868
2870
|
|
|
2869
2871
|
// ../build-tools/src/plugins/analyze.ts
|
|
2870
|
-
|
|
2872
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2871
2873
|
|
|
2872
2874
|
// ../build-tools/src/plugins/swc.ts
|
|
2873
|
-
|
|
2875
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2874
2876
|
var _core = require('@swc/core');
|
|
2875
2877
|
|
|
2876
2878
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2877
|
-
|
|
2879
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2878
2880
|
|
|
2879
2881
|
var _module = require('module');
|
|
2880
2882
|
|
|
2881
2883
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2882
2884
|
|
|
2883
2885
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2884
|
-
|
|
2886
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2885
2887
|
|
|
2886
2888
|
|
|
2887
2889
|
|
|
2888
2890
|
// ../build-tools/src/types.ts
|
|
2889
|
-
|
|
2891
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2890
2892
|
|
|
2891
2893
|
// ../build-tools/src/utilities/index.ts
|
|
2892
|
-
|
|
2894
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2893
2895
|
|
|
2894
2896
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2895
|
-
|
|
2897
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2896
2898
|
var _internal = require('@nx/js/internal');
|
|
2897
2899
|
var _glob = require('glob');
|
|
2898
2900
|
|
|
@@ -2924,7 +2926,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2924
2926
|
}
|
|
2925
2927
|
writeTrace(
|
|
2926
2928
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2927
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2929
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkZAPGC4XPjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2928
2930
|
config
|
|
2929
2931
|
);
|
|
2930
2932
|
const assetHandler = new (0, _internal.CopyAssetsHandler)({
|
|
@@ -2937,17 +2939,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2937
2939
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2938
2940
|
if (includeSrc === true) {
|
|
2939
2941
|
writeDebug(
|
|
2940
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2942
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
2941
2943
|
outputPath,
|
|
2942
2944
|
"src"
|
|
2943
2945
|
)}`,
|
|
2944
2946
|
config
|
|
2945
2947
|
);
|
|
2946
2948
|
const files = await _glob.glob.call(void 0, [
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2949
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2950
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2951
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2952
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2951
2953
|
]);
|
|
2952
2954
|
await Promise.allSettled(
|
|
2953
2955
|
files.map(
|
|
@@ -2965,7 +2967,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2965
2967
|
};
|
|
2966
2968
|
|
|
2967
2969
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2968
|
-
|
|
2970
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
2969
2971
|
|
|
2970
2972
|
|
|
2971
2973
|
|
|
@@ -3003,7 +3005,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3003
3005
|
)) {
|
|
3004
3006
|
const projectNode = project.node;
|
|
3005
3007
|
if (projectNode.data.root) {
|
|
3006
|
-
const projectPackageJsonPath =
|
|
3008
|
+
const projectPackageJsonPath = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3007
3009
|
workspaceRoot2,
|
|
3008
3010
|
projectNode.data.root,
|
|
3009
3011
|
"package.json"
|
|
@@ -3025,7 +3027,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3025
3027
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
3026
3028
|
);
|
|
3027
3029
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
3028
|
-
|
|
3030
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
3029
3031
|
"utf8"
|
|
3030
3032
|
);
|
|
3031
3033
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -3038,7 +3040,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3038
3040
|
}
|
|
3039
3041
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _155 => _155.projects, 'optionalAccess', _156 => _156[projectName2], 'access', _157 => _157.implicitDependencies, 'optionalAccess', _158 => _158.reduce, 'call', _159 => _159((ret, dep) => {
|
|
3040
3042
|
if (_optionalChain([projectConfigurations, 'access', _160 => _160.projects, 'optionalAccess', _161 => _161[dep]])) {
|
|
3041
|
-
const depPackageJsonPath =
|
|
3043
|
+
const depPackageJsonPath = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3042
3044
|
workspaceRoot2,
|
|
3043
3045
|
projectConfigurations.projects[dep].root,
|
|
3044
3046
|
"package.json"
|
|
@@ -3076,7 +3078,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3076
3078
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
3077
3079
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
3078
3080
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
3079
|
-
|
|
3081
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
3080
3082
|
"utf8"
|
|
3081
3083
|
);
|
|
3082
3084
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -3087,7 +3089,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
3087
3089
|
if (distSrc.startsWith("/")) {
|
|
3088
3090
|
distSrc = distSrc.substring(1);
|
|
3089
3091
|
}
|
|
3090
|
-
packageJson.source ??= `${
|
|
3092
|
+
packageJson.source ??= `${_chunkZAPGC4XPjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
3091
3093
|
}
|
|
3092
3094
|
packageJson.files ??= ["dist/**/*"];
|
|
3093
3095
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -3112,7 +3114,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
3112
3114
|
packageJson.contributors = [packageJson.author];
|
|
3113
3115
|
}
|
|
3114
3116
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
3115
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
3117
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkZAPGC4XPjs.joinPaths.call(void 0, "packages", projectName);
|
|
3116
3118
|
return packageJson;
|
|
3117
3119
|
};
|
|
3118
3120
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -3137,11 +3139,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
3137
3139
|
};
|
|
3138
3140
|
|
|
3139
3141
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
3140
|
-
|
|
3142
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3141
3143
|
|
|
3142
3144
|
|
|
3143
3145
|
// ../build-tools/src/utilities/get-env.ts
|
|
3144
|
-
|
|
3146
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3145
3147
|
var getEnv = (builder, options) => {
|
|
3146
3148
|
return {
|
|
3147
3149
|
STORM_BUILD: builder,
|
|
@@ -3156,21 +3158,21 @@ var getEnv = (builder, options) => {
|
|
|
3156
3158
|
};
|
|
3157
3159
|
|
|
3158
3160
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
3159
|
-
|
|
3161
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3160
3162
|
|
|
3161
3163
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
3162
|
-
|
|
3164
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3163
3165
|
|
|
3164
3166
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
3165
|
-
|
|
3167
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3166
3168
|
|
|
3167
3169
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
3168
|
-
|
|
3170
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3169
3171
|
|
|
3170
3172
|
|
|
3171
3173
|
|
|
3172
3174
|
// ../build-tools/src/utilities/task-graph.ts
|
|
3173
|
-
|
|
3175
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3174
3176
|
|
|
3175
3177
|
|
|
3176
3178
|
|
|
@@ -3183,14 +3185,14 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
3183
3185
|
var _tsdown = require('tsdown');
|
|
3184
3186
|
|
|
3185
3187
|
// ../tsdown/src/clean.ts
|
|
3186
|
-
|
|
3188
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3187
3189
|
|
|
3188
3190
|
async function cleanDirectories(name = "TSDown", directory, config) {
|
|
3189
3191
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3190
3192
|
}
|
|
3191
3193
|
|
|
3192
3194
|
// ../tsdown/src/config.ts
|
|
3193
|
-
|
|
3195
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3194
3196
|
function getDefaultOptions(config) {
|
|
3195
3197
|
return {
|
|
3196
3198
|
entry: ["./src/*.ts"],
|
|
@@ -3233,7 +3235,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3233
3235
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3234
3236
|
exitOnError: true
|
|
3235
3237
|
});
|
|
3236
|
-
const projectJsonPath =
|
|
3238
|
+
const projectJsonPath = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3237
3239
|
workspaceRoot2,
|
|
3238
3240
|
options.projectRoot,
|
|
3239
3241
|
"project.json"
|
|
@@ -3250,7 +3252,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3250
3252
|
"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."
|
|
3251
3253
|
);
|
|
3252
3254
|
}
|
|
3253
|
-
const packageJsonPath =
|
|
3255
|
+
const packageJsonPath = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3254
3256
|
workspaceRoot2,
|
|
3255
3257
|
options.projectRoot,
|
|
3256
3258
|
"package.json"
|
|
@@ -3259,13 +3261,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3259
3261
|
throw new Error("Cannot find package.json configuration");
|
|
3260
3262
|
}
|
|
3261
3263
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3262
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3264
|
+
const sourceRoot = projectJson.sourceRoot || _chunkZAPGC4XPjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3263
3265
|
const result = {
|
|
3264
3266
|
name: projectName,
|
|
3265
3267
|
mode: "production",
|
|
3266
3268
|
target: DEFAULT_TARGET,
|
|
3267
3269
|
generatePackageJson: true,
|
|
3268
|
-
outDir:
|
|
3270
|
+
outDir: _chunkZAPGC4XPjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3269
3271
|
minify: !debug,
|
|
3270
3272
|
plugins: [],
|
|
3271
3273
|
assets: [],
|
|
@@ -3276,12 +3278,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3276
3278
|
clean: false,
|
|
3277
3279
|
fixedExtension: true,
|
|
3278
3280
|
nodeProtocol: true,
|
|
3279
|
-
tsconfig:
|
|
3281
|
+
tsconfig: _chunkZAPGC4XPjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3280
3282
|
debug,
|
|
3281
3283
|
sourceRoot,
|
|
3282
3284
|
cwd: workspaceConfig.workspaceRoot,
|
|
3283
3285
|
entry: {
|
|
3284
|
-
["index"]:
|
|
3286
|
+
["index"]: _chunkZAPGC4XPjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3285
3287
|
},
|
|
3286
3288
|
workspace: true,
|
|
3287
3289
|
...options,
|
|
@@ -3300,15 +3302,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3300
3302
|
return result;
|
|
3301
3303
|
};
|
|
3302
3304
|
async function generatePackageJson(options) {
|
|
3303
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3305
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkZAPGC4XPjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3304
3306
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3305
3307
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3306
|
-
const packageJsonPath =
|
|
3308
|
+
const packageJsonPath = _chunkZAPGC4XPjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3307
3309
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3308
3310
|
throw new Error("Cannot find package.json configuration");
|
|
3309
3311
|
}
|
|
3310
3312
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3311
|
-
|
|
3313
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3312
3314
|
options.workspaceConfig.workspaceRoot,
|
|
3313
3315
|
options.projectRoot,
|
|
3314
3316
|
"package.json"
|
|
@@ -3370,7 +3372,7 @@ async function generatePackageJson(options) {
|
|
|
3370
3372
|
},
|
|
3371
3373
|
packageJson.exports
|
|
3372
3374
|
);
|
|
3373
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3375
|
+
await _devkit.writeJsonFile.call(void 0, _chunkZAPGC4XPjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3374
3376
|
stopwatch();
|
|
3375
3377
|
}
|
|
3376
3378
|
return options;
|
|
@@ -3503,7 +3505,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3503
3505
|
);
|
|
3504
3506
|
|
|
3505
3507
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3506
|
-
|
|
3508
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3507
3509
|
var _fsextra = require('fs-extra');
|
|
3508
3510
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3509
3511
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3543,7 +3545,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3543
3545
|
);
|
|
3544
3546
|
|
|
3545
3547
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3546
|
-
|
|
3548
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3547
3549
|
|
|
3548
3550
|
|
|
3549
3551
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3564,7 +3566,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3564
3566
|
);
|
|
3565
3567
|
}
|
|
3566
3568
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3567
|
-
fsCache: config.skipCache ? false :
|
|
3569
|
+
fsCache: config.skipCache ? false : _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3568
3570
|
config.workspaceRoot,
|
|
3569
3571
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3570
3572
|
"jiti"
|
|
@@ -3586,7 +3588,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3586
3588
|
{
|
|
3587
3589
|
stubOptions: {
|
|
3588
3590
|
jiti: {
|
|
3589
|
-
fsCache: config.skipCache ? false :
|
|
3591
|
+
fsCache: config.skipCache ? false : _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3590
3592
|
config.workspaceRoot,
|
|
3591
3593
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3592
3594
|
"jiti"
|
|
@@ -3635,10 +3637,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3635
3637
|
);
|
|
3636
3638
|
|
|
3637
3639
|
// ../workspace-tools/generators.ts
|
|
3638
|
-
|
|
3640
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3639
3641
|
|
|
3640
3642
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3641
|
-
|
|
3643
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3642
3644
|
|
|
3643
3645
|
|
|
3644
3646
|
|
|
@@ -3647,7 +3649,7 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
3647
3649
|
|
|
3648
3650
|
|
|
3649
3651
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3650
|
-
|
|
3652
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3651
3653
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3652
3654
|
skipReadingConfig: false
|
|
3653
3655
|
}) => async (tree, _options) => {
|
|
@@ -3734,7 +3736,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3734
3736
|
};
|
|
3735
3737
|
|
|
3736
3738
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3737
|
-
|
|
3739
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3738
3740
|
|
|
3739
3741
|
|
|
3740
3742
|
|
|
@@ -3754,7 +3756,7 @@ var _internal3 = require('@nx/devkit/internal');
|
|
|
3754
3756
|
var _js = require('@nx/js');
|
|
3755
3757
|
|
|
3756
3758
|
// ../workspace-tools/src/utils/versions.ts
|
|
3757
|
-
|
|
3759
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
3758
3760
|
var typesNodeVersion = "20.9.0";
|
|
3759
3761
|
var nxVersion = "^18.0.4";
|
|
3760
3762
|
var nodeVersion = "20.11.0";
|
|
@@ -3778,16 +3780,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3778
3780
|
const projectConfig = {
|
|
3779
3781
|
root: normalized.directory,
|
|
3780
3782
|
projectType: "library",
|
|
3781
|
-
sourceRoot:
|
|
3783
|
+
sourceRoot: _chunkZAPGC4XPjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3782
3784
|
targets: {
|
|
3783
3785
|
build: {
|
|
3784
3786
|
executor: options.buildExecutor,
|
|
3785
3787
|
outputs: ["{options.outputPath}"],
|
|
3786
3788
|
options: {
|
|
3787
|
-
entry: [
|
|
3789
|
+
entry: [_chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3788
3790
|
outputPath: getOutputPath(normalized),
|
|
3789
|
-
tsconfig:
|
|
3790
|
-
project:
|
|
3791
|
+
tsconfig: _chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3792
|
+
project: _chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3791
3793
|
defaultConfiguration: "production",
|
|
3792
3794
|
platform: "neutral",
|
|
3793
3795
|
assets: [
|
|
@@ -3844,7 +3846,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3844
3846
|
if (!normalized.importPath) {
|
|
3845
3847
|
normalized.importPath = normalized.name;
|
|
3846
3848
|
}
|
|
3847
|
-
const packageJsonPath =
|
|
3849
|
+
const packageJsonPath = _chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3848
3850
|
if (tree.exists(packageJsonPath)) {
|
|
3849
3851
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3850
3852
|
if (!normalized.importPath) {
|
|
@@ -3901,14 +3903,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3901
3903
|
}));
|
|
3902
3904
|
}
|
|
3903
3905
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3904
|
-
|
|
3906
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
3905
3907
|
normalized.projectRoot,
|
|
3906
3908
|
"./src",
|
|
3907
3909
|
`index.${normalized.js ? "js" : "ts"}`
|
|
3908
3910
|
)
|
|
3909
3911
|
]);
|
|
3910
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3911
|
-
|
|
3912
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3913
|
+
_chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3912
3914
|
]);
|
|
3913
3915
|
if (tree.exists("package.json")) {
|
|
3914
3916
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -3919,7 +3921,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3919
3921
|
description = packageJson.description;
|
|
3920
3922
|
}
|
|
3921
3923
|
}
|
|
3922
|
-
const tsconfigPath =
|
|
3924
|
+
const tsconfigPath = _chunkZAPGC4XPjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3923
3925
|
if (tree.exists(tsconfigPath)) {
|
|
3924
3926
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3925
3927
|
json.composite ??= true;
|
|
@@ -3947,7 +3949,7 @@ function getOutputPath(options) {
|
|
|
3947
3949
|
} else {
|
|
3948
3950
|
parts.push(options.projectRoot);
|
|
3949
3951
|
}
|
|
3950
|
-
return
|
|
3952
|
+
return _chunkZAPGC4XPjs.joinPaths.call(void 0, ...parts);
|
|
3951
3953
|
}
|
|
3952
3954
|
function createProjectTsConfigJson(tree, options) {
|
|
3953
3955
|
const tsconfig = {
|
|
@@ -3955,7 +3957,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3955
3957
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _217 => _217.tsconfigOptions]), () => ( {})),
|
|
3956
3958
|
compilerOptions: {
|
|
3957
3959
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3958
|
-
outDir:
|
|
3960
|
+
outDir: _chunkZAPGC4XPjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3959
3961
|
noEmit: true,
|
|
3960
3962
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _218 => _218.tsconfigOptions, 'optionalAccess', _219 => _219.compilerOptions]), () => ( {}))
|
|
3961
3963
|
},
|
|
@@ -3973,7 +3975,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3973
3975
|
"src/**/*.test.ts"
|
|
3974
3976
|
]
|
|
3975
3977
|
};
|
|
3976
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3978
|
+
_devkit.writeJson.call(void 0, tree, _chunkZAPGC4XPjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3977
3979
|
}
|
|
3978
3980
|
async function normalizeOptions(tree, options, config) {
|
|
3979
3981
|
let importPath = options.importPath;
|
|
@@ -4038,7 +4040,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4038
4040
|
|
|
4039
4041
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4040
4042
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4041
|
-
const filesDir =
|
|
4043
|
+
const filesDir = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
4042
4044
|
__dirname,
|
|
4043
4045
|
"src",
|
|
4044
4046
|
"generators",
|
|
@@ -4118,7 +4120,7 @@ var generator_default = withRunGenerator(
|
|
|
4118
4120
|
);
|
|
4119
4121
|
|
|
4120
4122
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4121
|
-
|
|
4123
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4122
4124
|
|
|
4123
4125
|
var _zod2 = require('zod'); var z2 = _interopRequireWildcard(_zod2);
|
|
4124
4126
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4175,7 +4177,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4175
4177
|
);
|
|
4176
4178
|
|
|
4177
4179
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4178
|
-
|
|
4180
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4179
4181
|
|
|
4180
4182
|
|
|
4181
4183
|
|
|
@@ -4203,7 +4205,7 @@ async function initGenerator(tree, schema) {
|
|
|
4203
4205
|
}
|
|
4204
4206
|
|
|
4205
4207
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4206
|
-
|
|
4208
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4207
4209
|
|
|
4208
4210
|
|
|
4209
4211
|
|
|
@@ -4211,7 +4213,7 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
4211
4213
|
|
|
4212
4214
|
|
|
4213
4215
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4214
|
-
const filesDir =
|
|
4216
|
+
const filesDir = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
4215
4217
|
__dirname,
|
|
4216
4218
|
"src",
|
|
4217
4219
|
"generators",
|
|
@@ -4263,7 +4265,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4263
4265
|
);
|
|
4264
4266
|
|
|
4265
4267
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4266
|
-
|
|
4268
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4267
4269
|
|
|
4268
4270
|
|
|
4269
4271
|
|
|
@@ -4271,7 +4273,7 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
4271
4273
|
|
|
4272
4274
|
|
|
4273
4275
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4274
|
-
const filesDir =
|
|
4276
|
+
const filesDir = _chunkZAPGC4XPjs.joinPaths.call(void 0,
|
|
4275
4277
|
__dirname,
|
|
4276
4278
|
"src",
|
|
4277
4279
|
"generators",
|
|
@@ -4325,7 +4327,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4325
4327
|
);
|
|
4326
4328
|
|
|
4327
4329
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4328
|
-
|
|
4330
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4329
4331
|
|
|
4330
4332
|
|
|
4331
4333
|
|
|
@@ -4564,10 +4566,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4564
4566
|
);
|
|
4565
4567
|
|
|
4566
4568
|
// ../workspace-tools/src/base/index.ts
|
|
4567
|
-
|
|
4569
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4568
4570
|
|
|
4569
4571
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4570
|
-
|
|
4572
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4571
4573
|
var _untyped = require('untyped');
|
|
4572
4574
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4573
4575
|
$schema: {
|
|
@@ -4586,7 +4588,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4586
4588
|
});
|
|
4587
4589
|
|
|
4588
4590
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4589
|
-
|
|
4591
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4590
4592
|
|
|
4591
4593
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4592
4594
|
$schema: {
|
|
@@ -4604,7 +4606,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4604
4606
|
});
|
|
4605
4607
|
|
|
4606
4608
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4607
|
-
|
|
4609
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4608
4610
|
|
|
4609
4611
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4610
4612
|
...base_executor_untyped_default,
|
|
@@ -4677,7 +4679,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4677
4679
|
});
|
|
4678
4680
|
|
|
4679
4681
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4680
|
-
|
|
4682
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4681
4683
|
|
|
4682
4684
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4683
4685
|
...base_executor_untyped_default,
|
|
@@ -4829,7 +4831,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4829
4831
|
});
|
|
4830
4832
|
|
|
4831
4833
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4832
|
-
|
|
4834
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4833
4835
|
|
|
4834
4836
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4835
4837
|
...base_generator_untyped_default,
|
|
@@ -4935,45 +4937,45 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4935
4937
|
});
|
|
4936
4938
|
|
|
4937
4939
|
// ../workspace-tools/src/release/index.ts
|
|
4938
|
-
|
|
4940
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4939
4941
|
|
|
4940
4942
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
4941
|
-
|
|
4943
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4942
4944
|
var _versionactions = require('@nx/js/src/release/version-actions'); var _versionactions2 = _interopRequireDefault(_versionactions);
|
|
4943
4945
|
|
|
4944
4946
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
4945
|
-
|
|
4947
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4946
4948
|
|
|
4947
4949
|
|
|
4948
4950
|
|
|
4949
4951
|
var _release = require('nx/release');
|
|
4950
4952
|
|
|
4951
4953
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
4952
|
-
|
|
4954
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4953
4955
|
|
|
4954
4956
|
|
|
4955
4957
|
// ../workspace-tools/src/types.ts
|
|
4956
|
-
|
|
4958
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4957
4959
|
|
|
4958
4960
|
// ../package-constants/src/types.ts
|
|
4959
|
-
|
|
4961
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4960
4962
|
|
|
4961
4963
|
// ../workspace-tools/src/utils/index.ts
|
|
4962
|
-
|
|
4964
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4963
4965
|
|
|
4964
4966
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4965
|
-
|
|
4967
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4966
4968
|
|
|
4967
4969
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4968
|
-
|
|
4970
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4969
4971
|
|
|
4970
4972
|
|
|
4971
4973
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4972
|
-
|
|
4974
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4973
4975
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4974
4976
|
|
|
4975
4977
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4976
|
-
|
|
4978
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
4977
4979
|
|
|
4978
4980
|
|
|
4979
4981
|
|
|
@@ -5001,7 +5003,7 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5001
5003
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5002
5004
|
|
|
5003
5005
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5004
|
-
|
|
5006
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
5005
5007
|
|
|
5006
5008
|
// ../workspace-tools/config/recommended.json
|
|
5007
5009
|
var recommended_default = {
|
|
@@ -5248,7 +5250,7 @@ var NAMED_INPUTS = {
|
|
|
5248
5250
|
var RELEASE = recommended_default.release;
|
|
5249
5251
|
|
|
5250
5252
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5251
|
-
|
|
5253
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
5252
5254
|
|
|
5253
5255
|
|
|
5254
5256
|
|
|
@@ -5257,7 +5259,7 @@ _chunkYPZC3HAQjs.init_cjs_shims.call(void 0, );
|
|
|
5257
5259
|
|
|
5258
5260
|
|
|
5259
5261
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5260
|
-
|
|
5262
|
+
_chunk7RAWZTDFjs.init_cjs_shims.call(void 0, );
|
|
5261
5263
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5262
5264
|
|
|
5263
5265
|
// src/generators/init/generator.ts
|