@storm-software/projen 0.21.182 → 0.21.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/{chunk-WZLUGDXN.mjs → chunk-4NHWDU3U.mjs} +2 -2
- package/dist/{chunk-H3YSTBXP.js → chunk-6NXL6X5E.js} +201 -201
- package/dist/{chunk-OCQ72GU2.mjs → chunk-AWERJ6LP.mjs} +1 -1
- package/dist/{chunk-JY67PKZW.mjs → chunk-C7UERAMJ.mjs} +1 -1
- package/dist/{chunk-KDFOWT5R.js → chunk-G2LCTHK4.js} +2 -2
- package/dist/{chunk-G5NKTYSB.js → chunk-KGCAHNF5.js} +3 -3
- package/dist/chunk-UHDMGC7S.js +6 -0
- package/dist/{chunk-URNMYTJZ.mjs → chunk-XGP2QTJP.mjs} +1 -1
- package/dist/{chunk-3IEKGEBM.mjs → chunk-XTTFAFFS.mjs} +2 -2
- package/dist/{chunk-NVWTQQXD.js → chunk-Z2626ZY7.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 +7 -7
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +4 -4
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +27 -34
- package/dist/chunk-HTHC5JMP.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZ2626ZY7js = require('./chunk-Z2626ZY7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkG2LCTHK4js = require('./chunk-G2LCTHK4.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
174
174
|
|
|
175
175
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
176
|
-
|
|
176
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.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
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
209
209
|
var getLogLevel = (label) => {
|
|
210
210
|
switch (label) {
|
|
211
211
|
case "all":
|
|
@@ -417,13 +417,13 @@ var _isFunction = (value) => {
|
|
|
417
417
|
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
418
418
|
|
|
419
419
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
420
|
-
|
|
420
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
421
421
|
|
|
422
422
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
423
|
-
|
|
423
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
424
424
|
|
|
425
425
|
// ../config-tools/src/utilities/find-up.ts
|
|
426
|
-
|
|
426
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
427
427
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
428
428
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
429
429
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -490,11 +490,11 @@ var rootDirectories = [
|
|
|
490
490
|
];
|
|
491
491
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
492
492
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
493
|
-
return
|
|
493
|
+
return _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
494
494
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
495
495
|
);
|
|
496
496
|
}
|
|
497
|
-
return
|
|
497
|
+
return _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
498
498
|
findFolderUp(
|
|
499
499
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
500
500
|
rootFiles,
|
|
@@ -589,13 +589,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
589
589
|
};
|
|
590
590
|
|
|
591
591
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
592
|
-
|
|
592
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
593
593
|
|
|
594
594
|
// ../config/src/index.ts
|
|
595
|
-
|
|
595
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
596
596
|
|
|
597
597
|
// ../config/src/constants.ts
|
|
598
|
-
|
|
598
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
599
599
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
600
600
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
601
601
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -614,10 +614,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
614
614
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
615
615
|
|
|
616
616
|
// ../config/src/define-config.ts
|
|
617
|
-
|
|
617
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
618
618
|
|
|
619
619
|
// ../config/src/schema.ts
|
|
620
|
-
|
|
620
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
621
621
|
var _mini = require('zod/v4/mini'); var z = _interopRequireWildcard(_mini);
|
|
622
622
|
var schemaRegistry = z.registry();
|
|
623
623
|
var colorSchema = z.string().check(
|
|
@@ -1187,7 +1187,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1187
1187
|
});
|
|
1188
1188
|
|
|
1189
1189
|
// ../config/src/types.ts
|
|
1190
|
-
|
|
1190
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
1191
1191
|
var COLOR_KEYS = [
|
|
1192
1192
|
"dark",
|
|
1193
1193
|
"light",
|
|
@@ -1221,7 +1221,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1221
1221
|
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1222
1222
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1223
1223
|
const file = await _promises.readFile.call(void 0,
|
|
1224
|
-
|
|
1224
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1225
1225
|
"utf8"
|
|
1226
1226
|
);
|
|
1227
1227
|
if (file) {
|
|
@@ -1305,7 +1305,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1305
1305
|
envName: _optionalChain([fileName, 'optionalAccess', _38 => _38.toUpperCase, 'call', _39 => _39()]),
|
|
1306
1306
|
jitiOptions: {
|
|
1307
1307
|
debug: false,
|
|
1308
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1308
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
1309
1309
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1310
1310
|
"jiti"
|
|
1311
1311
|
)
|
|
@@ -1319,7 +1319,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1319
1319
|
envName: _optionalChain([fileName, 'optionalAccess', _40 => _40.toUpperCase, 'call', _41 => _41()]),
|
|
1320
1320
|
jitiOptions: {
|
|
1321
1321
|
debug: false,
|
|
1322
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1322
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
1323
1323
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1324
1324
|
"jiti"
|
|
1325
1325
|
)
|
|
@@ -1371,12 +1371,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1371
1371
|
};
|
|
1372
1372
|
|
|
1373
1373
|
// ../config-tools/src/create-storm-config.ts
|
|
1374
|
-
|
|
1374
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
1375
1375
|
|
|
1376
1376
|
|
|
1377
1377
|
|
|
1378
1378
|
// ../config-tools/src/env/get-env.ts
|
|
1379
|
-
|
|
1379
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
1380
1380
|
var getExtensionEnv = (extensionName) => {
|
|
1381
1381
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1382
1382
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1438,15 +1438,15 @@ var getConfigEnv = () => {
|
|
|
1438
1438
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1439
1439
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1440
1440
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1441
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1442
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1441
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1442
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1443
1443
|
directories: {
|
|
1444
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1445
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1446
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1447
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1448
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1449
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1444
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1445
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1446
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1447
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1448
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1449
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkZ2626ZY7js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1450
1450
|
},
|
|
1451
1451
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1452
1452
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1593,7 +1593,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1593
1593
|
};
|
|
1594
1594
|
|
|
1595
1595
|
// ../config-tools/src/env/set-env.ts
|
|
1596
|
-
|
|
1596
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
1597
1597
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1598
1598
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1599
1599
|
if (extension[key]) {
|
|
@@ -1741,42 +1741,42 @@ var setConfigEnv = (config) => {
|
|
|
1741
1741
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1742
1742
|
}
|
|
1743
1743
|
if (config.configFile) {
|
|
1744
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1744
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
1745
1745
|
config.configFile
|
|
1746
1746
|
);
|
|
1747
1747
|
}
|
|
1748
1748
|
if (config.workspaceRoot) {
|
|
1749
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1750
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1751
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1749
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkZ2626ZY7js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1750
|
+
process.env.NX_WORKSPACE_ROOT = _chunkZ2626ZY7js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1751
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkZ2626ZY7js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1752
1752
|
}
|
|
1753
1753
|
if (config.directories) {
|
|
1754
1754
|
if (!config.skipCache && config.directories.cache) {
|
|
1755
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1755
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
1756
1756
|
config.directories.cache
|
|
1757
1757
|
);
|
|
1758
1758
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1759
1759
|
}
|
|
1760
1760
|
if (config.directories.data) {
|
|
1761
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1761
|
+
process.env[`${prefix}DATA_DIR`] = _chunkZ2626ZY7js.correctPaths.call(void 0, config.directories.data);
|
|
1762
1762
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1763
1763
|
}
|
|
1764
1764
|
if (config.directories.config) {
|
|
1765
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1765
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
1766
1766
|
config.directories.config
|
|
1767
1767
|
);
|
|
1768
1768
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1769
1769
|
}
|
|
1770
1770
|
if (config.directories.temp) {
|
|
1771
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1771
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkZ2626ZY7js.correctPaths.call(void 0, config.directories.temp);
|
|
1772
1772
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1773
1773
|
}
|
|
1774
1774
|
if (config.directories.log) {
|
|
1775
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1775
|
+
process.env[`${prefix}LOG_DIR`] = _chunkZ2626ZY7js.correctPaths.call(void 0, config.directories.log);
|
|
1776
1776
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1777
1777
|
}
|
|
1778
1778
|
if (config.directories.build) {
|
|
1779
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1779
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
1780
1780
|
config.directories.build
|
|
1781
1781
|
);
|
|
1782
1782
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -2004,7 +2004,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, s
|
|
|
2004
2004
|
defaultConfig
|
|
2005
2005
|
);
|
|
2006
2006
|
if (!configInput.variant) {
|
|
2007
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
2007
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
2008
2008
|
}
|
|
2009
2009
|
try {
|
|
2010
2010
|
const parseResult = await Promise.resolve(
|
|
@@ -2074,7 +2074,7 @@ ${formatLogMessage(config)}`,
|
|
|
2074
2074
|
};
|
|
2075
2075
|
|
|
2076
2076
|
// ../config-tools/src/get-config.ts
|
|
2077
|
-
|
|
2077
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2078
2078
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2079
2079
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2080
2080
|
}
|
|
@@ -2212,7 +2212,7 @@ var _isFunction2 = (value) => {
|
|
|
2212
2212
|
};
|
|
2213
2213
|
|
|
2214
2214
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2215
|
-
|
|
2215
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2216
2216
|
|
|
2217
2217
|
|
|
2218
2218
|
|
|
@@ -2352,7 +2352,7 @@ var executor_default = withRunExecutor(
|
|
|
2352
2352
|
);
|
|
2353
2353
|
|
|
2354
2354
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2355
|
-
|
|
2355
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2356
2356
|
async function cargoCheckExecutor(options, context) {
|
|
2357
2357
|
const command = buildCargoCommand("check", options, context);
|
|
2358
2358
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2372,7 +2372,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2372
2372
|
);
|
|
2373
2373
|
|
|
2374
2374
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2375
|
-
|
|
2375
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2376
2376
|
async function cargoClippyExecutor(options, context) {
|
|
2377
2377
|
const command = buildCargoCommand("clippy", options, context);
|
|
2378
2378
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2393,7 +2393,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2393
2393
|
);
|
|
2394
2394
|
|
|
2395
2395
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2396
|
-
|
|
2396
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2397
2397
|
async function cargoDocExecutor(options, context) {
|
|
2398
2398
|
const opts = { ...options };
|
|
2399
2399
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2423,7 +2423,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2423
2423
|
);
|
|
2424
2424
|
|
|
2425
2425
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2426
|
-
|
|
2426
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2427
2427
|
async function cargoFormatExecutor(options, context) {
|
|
2428
2428
|
const command = buildCargoCommand("fmt", options, context);
|
|
2429
2429
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2444,7 +2444,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2444
2444
|
);
|
|
2445
2445
|
|
|
2446
2446
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2447
|
-
|
|
2447
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2448
2448
|
|
|
2449
2449
|
|
|
2450
2450
|
|
|
@@ -2452,19 +2452,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2452
2452
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2453
2453
|
|
|
2454
2454
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2455
|
-
|
|
2455
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2456
2456
|
|
|
2457
2457
|
// ../esbuild/src/build.ts
|
|
2458
|
-
|
|
2458
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2459
2459
|
|
|
2460
2460
|
// ../esbuild/src/assets.ts
|
|
2461
|
-
|
|
2461
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2462
2462
|
|
|
2463
2463
|
// ../build-tools/src/index.ts
|
|
2464
|
-
|
|
2464
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2465
2465
|
|
|
2466
2466
|
// ../build-tools/src/config.ts
|
|
2467
|
-
|
|
2467
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2468
2468
|
var DEFAULT_JS_BANNER = `
|
|
2469
2469
|
// ---------------------------------------
|
|
2470
2470
|
// \u{1F5F2} Built by Storm Software
|
|
@@ -2480,35 +2480,35 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2480
2480
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2481
2481
|
|
|
2482
2482
|
// ../build-tools/src/plugins/index.ts
|
|
2483
|
-
|
|
2483
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2484
2484
|
|
|
2485
2485
|
// ../build-tools/src/plugins/analyze.ts
|
|
2486
|
-
|
|
2486
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2487
2487
|
|
|
2488
2488
|
// ../build-tools/src/plugins/swc.ts
|
|
2489
|
-
|
|
2489
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2490
2490
|
var _core = require('@swc/core');
|
|
2491
2491
|
|
|
2492
2492
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2493
|
-
|
|
2493
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2494
2494
|
|
|
2495
2495
|
var _module = require('module');
|
|
2496
2496
|
|
|
2497
2497
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2498
2498
|
|
|
2499
2499
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2500
|
-
|
|
2500
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2501
2501
|
|
|
2502
2502
|
|
|
2503
2503
|
|
|
2504
2504
|
// ../build-tools/src/types.ts
|
|
2505
|
-
|
|
2505
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2506
2506
|
|
|
2507
2507
|
// ../build-tools/src/utilities/index.ts
|
|
2508
|
-
|
|
2508
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2509
2509
|
|
|
2510
2510
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2511
|
-
|
|
2511
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2512
2512
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2513
2513
|
var _glob = require('glob');
|
|
2514
2514
|
|
|
@@ -2540,7 +2540,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2540
2540
|
}
|
|
2541
2541
|
writeTrace(
|
|
2542
2542
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2543
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2543
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkZ2626ZY7js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2544
2544
|
config
|
|
2545
2545
|
);
|
|
2546
2546
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2553,17 +2553,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2553
2553
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2554
2554
|
if (includeSrc === true) {
|
|
2555
2555
|
writeDebug(
|
|
2556
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2556
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2557
2557
|
outputPath,
|
|
2558
2558
|
"src"
|
|
2559
2559
|
)}`,
|
|
2560
2560
|
config
|
|
2561
2561
|
);
|
|
2562
2562
|
const files = await _glob.glob.call(void 0, [
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2563
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2564
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2565
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2566
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2567
2567
|
]);
|
|
2568
2568
|
await Promise.allSettled(
|
|
2569
2569
|
files.map(
|
|
@@ -2581,7 +2581,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2581
2581
|
};
|
|
2582
2582
|
|
|
2583
2583
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2584
|
-
|
|
2584
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2585
2585
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2586
2586
|
|
|
2587
2587
|
|
|
@@ -2619,7 +2619,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2619
2619
|
)) {
|
|
2620
2620
|
const projectNode = project.node;
|
|
2621
2621
|
if (projectNode.data.root) {
|
|
2622
|
-
const projectPackageJsonPath =
|
|
2622
|
+
const projectPackageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2623
2623
|
workspaceRoot2,
|
|
2624
2624
|
projectNode.data.root,
|
|
2625
2625
|
"package.json"
|
|
@@ -2641,7 +2641,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2641
2641
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2642
2642
|
);
|
|
2643
2643
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2644
|
-
|
|
2644
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2645
2645
|
"utf8"
|
|
2646
2646
|
);
|
|
2647
2647
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2654,7 +2654,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2654
2654
|
}
|
|
2655
2655
|
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) => {
|
|
2656
2656
|
if (_optionalChain([projectConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[dep]])) {
|
|
2657
|
-
const depPackageJsonPath =
|
|
2657
|
+
const depPackageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2658
2658
|
workspaceRoot2,
|
|
2659
2659
|
projectConfigurations.projects[dep].root,
|
|
2660
2660
|
"package.json"
|
|
@@ -2692,7 +2692,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2692
2692
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2693
2693
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2694
2694
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2695
|
-
|
|
2695
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2696
2696
|
"utf8"
|
|
2697
2697
|
);
|
|
2698
2698
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2703,7 +2703,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2703
2703
|
if (distSrc.startsWith("/")) {
|
|
2704
2704
|
distSrc = distSrc.substring(1);
|
|
2705
2705
|
}
|
|
2706
|
-
packageJson.source ??= `${
|
|
2706
|
+
packageJson.source ??= `${_chunkZ2626ZY7js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2707
2707
|
}
|
|
2708
2708
|
packageJson.files ??= ["dist/**/*"];
|
|
2709
2709
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2728,7 +2728,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2728
2728
|
packageJson.contributors = [packageJson.author];
|
|
2729
2729
|
}
|
|
2730
2730
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2731
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2731
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkZ2626ZY7js.joinPaths.call(void 0, "packages", projectName);
|
|
2732
2732
|
return packageJson;
|
|
2733
2733
|
};
|
|
2734
2734
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2753,11 +2753,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2753
2753
|
};
|
|
2754
2754
|
|
|
2755
2755
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2756
|
-
|
|
2756
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2757
2757
|
|
|
2758
2758
|
|
|
2759
2759
|
// ../build-tools/src/utilities/get-env.ts
|
|
2760
|
-
|
|
2760
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2761
2761
|
var getEnv = (builder, options) => {
|
|
2762
2762
|
return {
|
|
2763
2763
|
STORM_BUILD: builder,
|
|
@@ -2772,21 +2772,21 @@ var getEnv = (builder, options) => {
|
|
|
2772
2772
|
};
|
|
2773
2773
|
|
|
2774
2774
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2775
|
-
|
|
2775
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2776
2776
|
|
|
2777
2777
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2778
|
-
|
|
2778
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2779
2779
|
|
|
2780
2780
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2781
|
-
|
|
2781
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2782
2782
|
|
|
2783
2783
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2784
|
-
|
|
2784
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2785
2785
|
|
|
2786
2786
|
|
|
2787
2787
|
|
|
2788
2788
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2789
|
-
|
|
2789
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2790
2790
|
|
|
2791
2791
|
|
|
2792
2792
|
|
|
@@ -2815,14 +2815,14 @@ async function copyBuildAssets(context) {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
2817
|
// ../esbuild/src/clean.ts
|
|
2818
|
-
|
|
2818
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2819
2819
|
|
|
2820
2820
|
async function cleanDirectories(directory) {
|
|
2821
2821
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2822
2822
|
}
|
|
2823
2823
|
|
|
2824
2824
|
// ../esbuild/src/context.ts
|
|
2825
|
-
|
|
2825
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2826
2826
|
|
|
2827
2827
|
|
|
2828
2828
|
|
|
@@ -2833,7 +2833,7 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
2833
2833
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2834
2834
|
|
|
2835
2835
|
// ../esbuild/src/config.ts
|
|
2836
|
-
|
|
2836
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2837
2837
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2838
2838
|
platform: "node",
|
|
2839
2839
|
target: "node22",
|
|
@@ -2891,7 +2891,7 @@ async function resolveContext(userOptions) {
|
|
|
2891
2891
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2892
2892
|
exitOnError: true
|
|
2893
2893
|
});
|
|
2894
|
-
const projectJsonPath =
|
|
2894
|
+
const projectJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2895
2895
|
workspaceRoot2.dir,
|
|
2896
2896
|
projectRoot,
|
|
2897
2897
|
"project.json"
|
|
@@ -2910,7 +2910,7 @@ async function resolveContext(userOptions) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2912
2912
|
options.name ??= projectName;
|
|
2913
|
-
const packageJsonPath =
|
|
2913
|
+
const packageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2914
2914
|
workspaceRoot2.dir,
|
|
2915
2915
|
options.projectRoot,
|
|
2916
2916
|
"package.json"
|
|
@@ -2922,7 +2922,7 @@ async function resolveContext(userOptions) {
|
|
|
2922
2922
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2923
2923
|
const resolvedOptions = {
|
|
2924
2924
|
...options,
|
|
2925
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2925
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkZ2626ZY7js.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2926
2926
|
metafile: userOptions.mode === "development",
|
|
2927
2927
|
clean: false,
|
|
2928
2928
|
env,
|
|
@@ -2947,8 +2947,8 @@ async function resolveContext(userOptions) {
|
|
|
2947
2947
|
projectConfigurations,
|
|
2948
2948
|
projectName,
|
|
2949
2949
|
projectGraph,
|
|
2950
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2951
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2950
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkZ2626ZY7js.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2951
|
+
outputPath: resolvedOptions.outputPath || _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2952
2952
|
workspaceConfig.workspaceRoot,
|
|
2953
2953
|
"dist",
|
|
2954
2954
|
resolvedOptions.projectRoot
|
|
@@ -2968,15 +2968,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2968
2968
|
}
|
|
2969
2969
|
|
|
2970
2970
|
// ../esbuild/src/package-json.ts
|
|
2971
|
-
|
|
2971
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
2972
2972
|
|
|
2973
2973
|
|
|
2974
2974
|
|
|
2975
2975
|
async function generatePackageJson(context) {
|
|
2976
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2976
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2977
2977
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2978
2978
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2979
|
-
const packageJsonPath =
|
|
2979
|
+
const packageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2980
2980
|
context.options.projectRoot,
|
|
2981
2981
|
"project.json"
|
|
2982
2982
|
);
|
|
@@ -2984,7 +2984,7 @@ async function generatePackageJson(context) {
|
|
|
2984
2984
|
throw new Error("Cannot find package.json configuration");
|
|
2985
2985
|
}
|
|
2986
2986
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2987
|
-
|
|
2987
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
2988
2988
|
context.workspaceConfig.workspaceRoot,
|
|
2989
2989
|
context.options.projectRoot,
|
|
2990
2990
|
"package.json"
|
|
@@ -3090,7 +3090,7 @@ async function generatePackageJson(context) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
3092
|
await _devkit.writeJsonFile.call(void 0,
|
|
3093
|
-
|
|
3093
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
3094
3094
|
packageJson
|
|
3095
3095
|
);
|
|
3096
3096
|
stopwatch();
|
|
@@ -3099,10 +3099,10 @@ async function generatePackageJson(context) {
|
|
|
3099
3099
|
}
|
|
3100
3100
|
|
|
3101
3101
|
// ../esbuild/src/tsup.ts
|
|
3102
|
-
|
|
3102
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3103
3103
|
|
|
3104
3104
|
// ../tsup/src/index.ts
|
|
3105
|
-
|
|
3105
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3106
3106
|
var _tsup = require('tsup');
|
|
3107
3107
|
async function build(options) {
|
|
3108
3108
|
if (!options.silent) {
|
|
@@ -3127,7 +3127,7 @@ async function executeTsup(context) {
|
|
|
3127
3127
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3128
3128
|
await build({
|
|
3129
3129
|
...context.options,
|
|
3130
|
-
outDir: context.options.distDir ?
|
|
3130
|
+
outDir: context.options.distDir ? _chunkZ2626ZY7js.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3131
3131
|
workspaceConfig: context.workspaceConfig
|
|
3132
3132
|
});
|
|
3133
3133
|
stopwatch();
|
|
@@ -3237,12 +3237,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3237
3237
|
);
|
|
3238
3238
|
|
|
3239
3239
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3240
|
-
|
|
3240
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3241
3241
|
var _jiti = require('jiti');
|
|
3242
3242
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3243
3243
|
async function napiExecutor(options, context, config) {
|
|
3244
3244
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3245
|
-
fsCache: config.skipCache ? false :
|
|
3245
|
+
fsCache: config.skipCache ? false : _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
3246
3246
|
config.workspaceRoot,
|
|
3247
3247
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3248
3248
|
"jiti"
|
|
@@ -3258,52 +3258,52 @@ async function napiExecutor(options, context, config) {
|
|
|
3258
3258
|
);
|
|
3259
3259
|
}
|
|
3260
3260
|
const projectRoot = _optionalChain([context, 'access', _149 => _149.projectGraph, 'optionalAccess', _150 => _150.nodes, 'access', _151 => _151[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _152 => _152.data, 'access', _153 => _153.root]);
|
|
3261
|
-
const packageJson =
|
|
3261
|
+
const packageJson = _chunkZ2626ZY7js.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3262
3262
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3263
3263
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3264
3264
|
}
|
|
3265
3265
|
const napi = new NapiCli();
|
|
3266
3266
|
const normalizedOptions = { ...options };
|
|
3267
3267
|
const metadata = cargoMetadata();
|
|
3268
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) ||
|
|
3268
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _154 => _154.target_directory]) || _chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3269
3269
|
normalizedOptions.outputDir = options.outputPath;
|
|
3270
3270
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
3271
3271
|
if (options.cwd) {
|
|
3272
|
-
normalizedOptions.cwd =
|
|
3272
|
+
normalizedOptions.cwd = _chunkZ2626ZY7js.correctPaths.call(void 0, options.cwd);
|
|
3273
3273
|
} else {
|
|
3274
|
-
const absoluteProjectRoot =
|
|
3275
|
-
|
|
3274
|
+
const absoluteProjectRoot = _chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
3275
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
|
|
3276
3276
|
);
|
|
3277
3277
|
normalizedOptions.cwd = absoluteProjectRoot;
|
|
3278
3278
|
if (normalizedOptions.outputDir) {
|
|
3279
|
-
normalizedOptions.outputDir =
|
|
3279
|
+
normalizedOptions.outputDir = _chunkZ2626ZY7js.relative.call(void 0,
|
|
3280
3280
|
normalizedOptions.cwd,
|
|
3281
|
-
|
|
3282
|
-
|
|
3281
|
+
_chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
3282
|
+
_chunkZ2626ZY7js.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3283
3283
|
)
|
|
3284
3284
|
);
|
|
3285
3285
|
}
|
|
3286
3286
|
if (normalizedOptions.packageJsonPath) {
|
|
3287
|
-
normalizedOptions.packageJsonPath =
|
|
3287
|
+
normalizedOptions.packageJsonPath = _chunkZ2626ZY7js.relative.call(void 0,
|
|
3288
3288
|
normalizedOptions.cwd,
|
|
3289
|
-
|
|
3290
|
-
|
|
3289
|
+
_chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
3290
|
+
_chunkZ2626ZY7js.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3291
3291
|
)
|
|
3292
3292
|
);
|
|
3293
3293
|
}
|
|
3294
3294
|
if (normalizedOptions.configPath) {
|
|
3295
|
-
normalizedOptions.configPath =
|
|
3295
|
+
normalizedOptions.configPath = _chunkZ2626ZY7js.relative.call(void 0,
|
|
3296
3296
|
normalizedOptions.cwd,
|
|
3297
|
-
|
|
3298
|
-
|
|
3297
|
+
_chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
3298
|
+
_chunkZ2626ZY7js.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3299
3299
|
)
|
|
3300
3300
|
);
|
|
3301
3301
|
}
|
|
3302
3302
|
if (normalizedOptions.manifestPath) {
|
|
3303
|
-
normalizedOptions.manifestPath =
|
|
3303
|
+
normalizedOptions.manifestPath = _chunkZ2626ZY7js.relative.call(void 0,
|
|
3304
3304
|
normalizedOptions.cwd,
|
|
3305
|
-
|
|
3306
|
-
|
|
3305
|
+
_chunkZ2626ZY7js.correctPaths.call(void 0,
|
|
3306
|
+
_chunkZ2626ZY7js.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkZ2626ZY7js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3307
3307
|
)
|
|
3308
3308
|
);
|
|
3309
3309
|
}
|
|
@@ -3346,17 +3346,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3346
3346
|
);
|
|
3347
3347
|
|
|
3348
3348
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3349
|
-
|
|
3349
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3350
3350
|
|
|
3351
3351
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3352
|
-
|
|
3352
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3353
3353
|
|
|
3354
3354
|
|
|
3355
3355
|
// ../npm-tools/src/constants.ts
|
|
3356
|
-
|
|
3356
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3357
3357
|
|
|
3358
3358
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3359
|
-
|
|
3359
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3360
3360
|
|
|
3361
3361
|
|
|
3362
3362
|
|
|
@@ -3366,17 +3366,17 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
3366
3366
|
var _prettier = require('prettier');
|
|
3367
3367
|
|
|
3368
3368
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3369
|
-
|
|
3369
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3370
3370
|
|
|
3371
3371
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3372
|
-
|
|
3372
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3373
3373
|
|
|
3374
3374
|
|
|
3375
3375
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3376
3376
|
var _semver = require('semver');
|
|
3377
3377
|
|
|
3378
3378
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3379
|
-
|
|
3379
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3380
3380
|
|
|
3381
3381
|
|
|
3382
3382
|
var _yaml = require('yaml');
|
|
@@ -3387,7 +3387,7 @@ var _yaml = require('yaml');
|
|
|
3387
3387
|
|
|
3388
3388
|
|
|
3389
3389
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3390
|
-
|
|
3390
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3391
3391
|
|
|
3392
3392
|
|
|
3393
3393
|
|
|
@@ -3399,10 +3399,10 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
3399
3399
|
|
|
3400
3400
|
|
|
3401
3401
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3402
|
-
|
|
3402
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3403
3403
|
|
|
3404
3404
|
// ../package-constants/src/tags.ts
|
|
3405
|
-
|
|
3405
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3406
3406
|
var ProjectTagConstants = {
|
|
3407
3407
|
Language: {
|
|
3408
3408
|
TAG_ID: "language",
|
|
@@ -3481,7 +3481,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3481
3481
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3482
3482
|
|
|
3483
3483
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3484
|
-
|
|
3484
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3485
3485
|
|
|
3486
3486
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3487
3487
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3523,10 +3523,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3523
3523
|
);
|
|
3524
3524
|
|
|
3525
3525
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3526
|
-
|
|
3526
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3527
3527
|
|
|
3528
3528
|
// ../tsdown/src/build.ts
|
|
3529
|
-
|
|
3529
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3530
3530
|
|
|
3531
3531
|
|
|
3532
3532
|
|
|
@@ -3538,14 +3538,14 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
3538
3538
|
var _tsdown = require('tsdown');
|
|
3539
3539
|
|
|
3540
3540
|
// ../tsdown/src/clean.ts
|
|
3541
|
-
|
|
3541
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3542
3542
|
|
|
3543
3543
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3544
3544
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
3547
|
// ../tsdown/src/config.ts
|
|
3548
|
-
|
|
3548
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3549
3549
|
function getDefaultOptions(config) {
|
|
3550
3550
|
return {
|
|
3551
3551
|
entry: ["./src/*.ts"],
|
|
@@ -3588,7 +3588,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3588
3588
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3589
3589
|
exitOnError: true
|
|
3590
3590
|
});
|
|
3591
|
-
const projectJsonPath =
|
|
3591
|
+
const projectJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
3592
3592
|
workspaceRoot2,
|
|
3593
3593
|
options.projectRoot,
|
|
3594
3594
|
"project.json"
|
|
@@ -3605,7 +3605,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3605
3605
|
"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."
|
|
3606
3606
|
);
|
|
3607
3607
|
}
|
|
3608
|
-
const packageJsonPath =
|
|
3608
|
+
const packageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
3609
3609
|
workspaceRoot2,
|
|
3610
3610
|
options.projectRoot,
|
|
3611
3611
|
"package.json"
|
|
@@ -3614,13 +3614,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3614
3614
|
throw new Error("Cannot find package.json configuration");
|
|
3615
3615
|
}
|
|
3616
3616
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3617
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3617
|
+
const sourceRoot = projectJson.sourceRoot || _chunkZ2626ZY7js.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3618
3618
|
const result = {
|
|
3619
3619
|
name: projectName,
|
|
3620
3620
|
mode: "production",
|
|
3621
3621
|
target: DEFAULT_TARGET,
|
|
3622
3622
|
generatePackageJson: true,
|
|
3623
|
-
outDir:
|
|
3623
|
+
outDir: _chunkZ2626ZY7js.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3624
3624
|
minify: !debug,
|
|
3625
3625
|
plugins: [],
|
|
3626
3626
|
assets: [],
|
|
@@ -3632,12 +3632,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3632
3632
|
clean: false,
|
|
3633
3633
|
fixedExtension: true,
|
|
3634
3634
|
nodeProtocol: true,
|
|
3635
|
-
tsconfig:
|
|
3635
|
+
tsconfig: _chunkZ2626ZY7js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3636
3636
|
debug,
|
|
3637
3637
|
sourceRoot,
|
|
3638
3638
|
cwd: workspaceConfig.workspaceRoot,
|
|
3639
3639
|
entry: {
|
|
3640
|
-
["index"]:
|
|
3640
|
+
["index"]: _chunkZ2626ZY7js.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3641
3641
|
},
|
|
3642
3642
|
workspace: true,
|
|
3643
3643
|
...options,
|
|
@@ -3656,15 +3656,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3656
3656
|
return result;
|
|
3657
3657
|
};
|
|
3658
3658
|
async function generatePackageJson2(options) {
|
|
3659
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3659
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3660
3660
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3661
3661
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3662
|
-
const packageJsonPath =
|
|
3662
|
+
const packageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3663
3663
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3664
3664
|
throw new Error("Cannot find package.json configuration");
|
|
3665
3665
|
}
|
|
3666
3666
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3667
|
-
|
|
3667
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
3668
3668
|
options.workspaceConfig.workspaceRoot,
|
|
3669
3669
|
options.projectRoot,
|
|
3670
3670
|
"package.json"
|
|
@@ -3726,7 +3726,7 @@ async function generatePackageJson2(options) {
|
|
|
3726
3726
|
},
|
|
3727
3727
|
packageJson.exports
|
|
3728
3728
|
);
|
|
3729
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3729
|
+
await _devkit.writeJsonFile.call(void 0, _chunkZ2626ZY7js.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3730
3730
|
stopwatch();
|
|
3731
3731
|
}
|
|
3732
3732
|
return options;
|
|
@@ -3859,7 +3859,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3859
3859
|
);
|
|
3860
3860
|
|
|
3861
3861
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3862
|
-
|
|
3862
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3863
3863
|
var _fsextra = require('fs-extra');
|
|
3864
3864
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3865
3865
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3899,7 +3899,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3899
3899
|
);
|
|
3900
3900
|
|
|
3901
3901
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3902
|
-
|
|
3902
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3903
3903
|
|
|
3904
3904
|
|
|
3905
3905
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3920,7 +3920,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3920
3920
|
);
|
|
3921
3921
|
}
|
|
3922
3922
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3923
|
-
fsCache: config.skipCache ? false :
|
|
3923
|
+
fsCache: config.skipCache ? false : _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
3924
3924
|
config.workspaceRoot,
|
|
3925
3925
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3926
3926
|
"jiti"
|
|
@@ -3942,7 +3942,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3942
3942
|
{
|
|
3943
3943
|
stubOptions: {
|
|
3944
3944
|
jiti: {
|
|
3945
|
-
fsCache: config.skipCache ? false :
|
|
3945
|
+
fsCache: config.skipCache ? false : _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
3946
3946
|
config.workspaceRoot,
|
|
3947
3947
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3948
3948
|
"jiti"
|
|
@@ -3991,10 +3991,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3991
3991
|
);
|
|
3992
3992
|
|
|
3993
3993
|
// ../workspace-tools/generators.ts
|
|
3994
|
-
|
|
3994
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3995
3995
|
|
|
3996
3996
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3997
|
-
|
|
3997
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
3998
3998
|
|
|
3999
3999
|
|
|
4000
4000
|
|
|
@@ -4003,7 +4003,7 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
4003
4003
|
|
|
4004
4004
|
|
|
4005
4005
|
// ../workspace-tools/src/base/base-generator.ts
|
|
4006
|
-
|
|
4006
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4007
4007
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
4008
4008
|
skipReadingConfig: false
|
|
4009
4009
|
}) => async (tree, _options) => {
|
|
@@ -4090,7 +4090,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4090
4090
|
};
|
|
4091
4091
|
|
|
4092
4092
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
4093
|
-
|
|
4093
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4094
4094
|
|
|
4095
4095
|
|
|
4096
4096
|
|
|
@@ -4112,7 +4112,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
4112
4112
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
4113
4113
|
|
|
4114
4114
|
// ../workspace-tools/src/utils/versions.ts
|
|
4115
|
-
|
|
4115
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4116
4116
|
var typesNodeVersion = "20.9.0";
|
|
4117
4117
|
var nxVersion = "^18.0.4";
|
|
4118
4118
|
var nodeVersion = "20.11.0";
|
|
@@ -4145,16 +4145,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4145
4145
|
const projectConfig = {
|
|
4146
4146
|
root: normalized.directory,
|
|
4147
4147
|
projectType: "library",
|
|
4148
|
-
sourceRoot:
|
|
4148
|
+
sourceRoot: _chunkZ2626ZY7js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4149
4149
|
targets: {
|
|
4150
4150
|
build: {
|
|
4151
4151
|
executor: options.buildExecutor,
|
|
4152
4152
|
outputs: ["{options.outputPath}"],
|
|
4153
4153
|
options: {
|
|
4154
|
-
entry: [
|
|
4154
|
+
entry: [_chunkZ2626ZY7js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4155
4155
|
outputPath: getOutputPath(normalized),
|
|
4156
|
-
tsconfig:
|
|
4157
|
-
project:
|
|
4156
|
+
tsconfig: _chunkZ2626ZY7js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4157
|
+
project: _chunkZ2626ZY7js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4158
4158
|
defaultConfiguration: "production",
|
|
4159
4159
|
platform: "neutral",
|
|
4160
4160
|
assets: [
|
|
@@ -4211,7 +4211,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4211
4211
|
if (!normalized.importPath) {
|
|
4212
4212
|
normalized.importPath = normalized.name;
|
|
4213
4213
|
}
|
|
4214
|
-
const packageJsonPath =
|
|
4214
|
+
const packageJsonPath = _chunkZ2626ZY7js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4215
4215
|
if (tree.exists(packageJsonPath)) {
|
|
4216
4216
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4217
4217
|
if (!normalized.importPath) {
|
|
@@ -4268,14 +4268,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4268
4268
|
}));
|
|
4269
4269
|
}
|
|
4270
4270
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4271
|
-
|
|
4271
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
4272
4272
|
normalized.projectRoot,
|
|
4273
4273
|
"./src",
|
|
4274
4274
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4275
4275
|
)
|
|
4276
4276
|
]);
|
|
4277
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4278
|
-
|
|
4277
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkZ2626ZY7js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4278
|
+
_chunkZ2626ZY7js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4279
4279
|
]);
|
|
4280
4280
|
if (tree.exists("package.json")) {
|
|
4281
4281
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4286,7 +4286,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4286
4286
|
description = packageJson.description;
|
|
4287
4287
|
}
|
|
4288
4288
|
}
|
|
4289
|
-
const tsconfigPath =
|
|
4289
|
+
const tsconfigPath = _chunkZ2626ZY7js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4290
4290
|
if (tree.exists(tsconfigPath)) {
|
|
4291
4291
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4292
4292
|
json.composite ??= true;
|
|
@@ -4314,7 +4314,7 @@ function getOutputPath(options) {
|
|
|
4314
4314
|
} else {
|
|
4315
4315
|
parts.push(options.projectRoot);
|
|
4316
4316
|
}
|
|
4317
|
-
return
|
|
4317
|
+
return _chunkZ2626ZY7js.joinPaths.call(void 0, ...parts);
|
|
4318
4318
|
}
|
|
4319
4319
|
function createProjectTsConfigJson(tree, options) {
|
|
4320
4320
|
const tsconfig = {
|
|
@@ -4322,7 +4322,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4322
4322
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _213 => _213.tsconfigOptions]), () => ( {})),
|
|
4323
4323
|
compilerOptions: {
|
|
4324
4324
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4325
|
-
outDir:
|
|
4325
|
+
outDir: _chunkZ2626ZY7js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4326
4326
|
noEmit: true,
|
|
4327
4327
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _214 => _214.tsconfigOptions, 'optionalAccess', _215 => _215.compilerOptions]), () => ( {}))
|
|
4328
4328
|
},
|
|
@@ -4340,7 +4340,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4340
4340
|
"src/**/*.test.ts"
|
|
4341
4341
|
]
|
|
4342
4342
|
};
|
|
4343
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4343
|
+
_devkit.writeJson.call(void 0, tree, _chunkZ2626ZY7js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4344
4344
|
}
|
|
4345
4345
|
async function normalizeOptions(tree, options, config) {
|
|
4346
4346
|
let importPath = options.importPath;
|
|
@@ -4405,7 +4405,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4405
4405
|
|
|
4406
4406
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4407
4407
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4408
|
-
const filesDir =
|
|
4408
|
+
const filesDir = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
4409
4409
|
__dirname,
|
|
4410
4410
|
"src",
|
|
4411
4411
|
"generators",
|
|
@@ -4485,7 +4485,7 @@ var generator_default = withRunGenerator(
|
|
|
4485
4485
|
);
|
|
4486
4486
|
|
|
4487
4487
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4488
|
-
|
|
4488
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4489
4489
|
|
|
4490
4490
|
var _zod2 = require('zod'); var z2 = _interopRequireWildcard(_zod2);
|
|
4491
4491
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4542,7 +4542,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4542
4542
|
);
|
|
4543
4543
|
|
|
4544
4544
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4545
|
-
|
|
4545
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4546
4546
|
|
|
4547
4547
|
|
|
4548
4548
|
|
|
@@ -4570,7 +4570,7 @@ async function initGenerator(tree, schema) {
|
|
|
4570
4570
|
}
|
|
4571
4571
|
|
|
4572
4572
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4573
|
-
|
|
4573
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4574
4574
|
|
|
4575
4575
|
|
|
4576
4576
|
|
|
@@ -4578,7 +4578,7 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
4578
4578
|
|
|
4579
4579
|
|
|
4580
4580
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4581
|
-
const filesDir =
|
|
4581
|
+
const filesDir = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
4582
4582
|
__dirname,
|
|
4583
4583
|
"src",
|
|
4584
4584
|
"generators",
|
|
@@ -4630,7 +4630,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4630
4630
|
);
|
|
4631
4631
|
|
|
4632
4632
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4633
|
-
|
|
4633
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4634
4634
|
|
|
4635
4635
|
|
|
4636
4636
|
|
|
@@ -4638,7 +4638,7 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
4638
4638
|
|
|
4639
4639
|
|
|
4640
4640
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4641
|
-
const filesDir =
|
|
4641
|
+
const filesDir = _chunkZ2626ZY7js.joinPaths.call(void 0,
|
|
4642
4642
|
__dirname,
|
|
4643
4643
|
"src",
|
|
4644
4644
|
"generators",
|
|
@@ -4692,7 +4692,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4692
4692
|
);
|
|
4693
4693
|
|
|
4694
4694
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4695
|
-
|
|
4695
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4696
4696
|
|
|
4697
4697
|
|
|
4698
4698
|
|
|
@@ -4931,10 +4931,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4931
4931
|
);
|
|
4932
4932
|
|
|
4933
4933
|
// ../workspace-tools/src/base/index.ts
|
|
4934
|
-
|
|
4934
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4935
4935
|
|
|
4936
4936
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4937
|
-
|
|
4937
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4938
4938
|
var _untyped = require('untyped');
|
|
4939
4939
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4940
4940
|
$schema: {
|
|
@@ -4953,7 +4953,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4953
4953
|
});
|
|
4954
4954
|
|
|
4955
4955
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4956
|
-
|
|
4956
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4957
4957
|
|
|
4958
4958
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4959
4959
|
$schema: {
|
|
@@ -4971,7 +4971,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4971
4971
|
});
|
|
4972
4972
|
|
|
4973
4973
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4974
|
-
|
|
4974
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
4975
4975
|
|
|
4976
4976
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4977
4977
|
...base_executor_untyped_default,
|
|
@@ -5044,7 +5044,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5044
5044
|
});
|
|
5045
5045
|
|
|
5046
5046
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5047
|
-
|
|
5047
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5048
5048
|
|
|
5049
5049
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5050
5050
|
...base_executor_untyped_default,
|
|
@@ -5196,7 +5196,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5196
5196
|
});
|
|
5197
5197
|
|
|
5198
5198
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5199
|
-
|
|
5199
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5200
5200
|
|
|
5201
5201
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5202
5202
|
...base_generator_untyped_default,
|
|
@@ -5302,45 +5302,45 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5302
5302
|
});
|
|
5303
5303
|
|
|
5304
5304
|
// ../workspace-tools/src/release/index.ts
|
|
5305
|
-
|
|
5305
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5306
5306
|
|
|
5307
5307
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5308
|
-
|
|
5308
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5309
5309
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5310
5310
|
|
|
5311
5311
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5312
|
-
|
|
5312
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5313
5313
|
|
|
5314
5314
|
|
|
5315
5315
|
|
|
5316
5316
|
var _release = require('nx/release');
|
|
5317
5317
|
|
|
5318
5318
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5319
|
-
|
|
5319
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5320
5320
|
|
|
5321
5321
|
|
|
5322
5322
|
// ../workspace-tools/src/types.ts
|
|
5323
|
-
|
|
5323
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5324
5324
|
|
|
5325
5325
|
// ../package-constants/src/types.ts
|
|
5326
|
-
|
|
5326
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5327
5327
|
|
|
5328
5328
|
// ../workspace-tools/src/utils/index.ts
|
|
5329
|
-
|
|
5329
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5330
5330
|
|
|
5331
5331
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5332
|
-
|
|
5332
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5333
5333
|
|
|
5334
5334
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5335
|
-
|
|
5335
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5336
5336
|
|
|
5337
5337
|
|
|
5338
5338
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5339
|
-
|
|
5339
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5340
5340
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5341
5341
|
|
|
5342
5342
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5343
|
-
|
|
5343
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5344
5344
|
|
|
5345
5345
|
|
|
5346
5346
|
|
|
@@ -5368,10 +5368,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5368
5368
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5369
5369
|
|
|
5370
5370
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5371
|
-
|
|
5371
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5372
5372
|
|
|
5373
5373
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5374
|
-
|
|
5374
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5375
5375
|
|
|
5376
5376
|
|
|
5377
5377
|
|
|
@@ -5380,7 +5380,7 @@ _chunkKDFOWT5Rjs.init_cjs_shims.call(void 0, );
|
|
|
5380
5380
|
|
|
5381
5381
|
|
|
5382
5382
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5383
|
-
|
|
5383
|
+
_chunkG2LCTHK4js.init_cjs_shims.call(void 0, );
|
|
5384
5384
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5385
5385
|
|
|
5386
5386
|
// src/generators/init/generator.ts
|