@storm-software/projen 0.21.55 → 0.21.57
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 +26 -0
- package/README.md +1 -1
- package/dist/{chunk-B47YQDGG.mjs → chunk-D6Z4XB72.mjs} +1 -1
- package/dist/{chunk-MJOPX4MQ.mjs → chunk-E4GUTVRV.mjs} +1 -1
- package/dist/{chunk-NEU3LW5I.js → chunk-G7UDNJTZ.js} +3 -3
- package/dist/{chunk-6WLY2S6E.js → chunk-GE2GHRTA.js} +212 -199
- package/dist/{chunk-XK3MYXQW.js → chunk-HJCZJA2L.js} +2 -2
- package/dist/{chunk-GII57L4F.mjs → chunk-LDYOQL6O.mjs} +2 -2
- package/dist/{chunk-3AWYHAY7.mjs → chunk-LZQGZUEW.mjs} +1 -1
- package/dist/{chunk-25VMWGWS.mjs → chunk-MU46TK3T.mjs} +15 -2
- package/dist/chunk-QVDMNLHZ.js +6 -0
- package/dist/{chunk-XVI7WDQE.js → chunk-R3E4ZSY4.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-U5YTB5PY.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkR3E4ZSY4js = require('./chunk-R3E4ZSY4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHJCZJA2Ljs = require('./chunk-HJCZJA2L.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunkHJCZJA2Ljs.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
|
+
_chunkHJCZJA2Ljs.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
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
43
43
|
var LogLevel = {
|
|
44
44
|
SILENT: 0,
|
|
45
45
|
FATAL: 10,
|
|
@@ -64,7 +64,7 @@ var LogLevelLabel = {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// ../config-tools/src/utilities/colors.ts
|
|
67
|
-
|
|
67
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
68
68
|
var DEFAULT_COLOR_CONFIG = {
|
|
69
69
|
light: {
|
|
70
70
|
background: "#fafafa",
|
|
@@ -101,7 +101,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
// ../config-tools/src/logger/chalk.ts
|
|
104
|
-
|
|
104
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
105
105
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
106
106
|
var chalkDefault = {
|
|
107
107
|
hex: (_) => (message) => message,
|
|
@@ -135,10 +135,10 @@ var getChalk = () => {
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
// ../config-tools/src/logger/console-icons.ts
|
|
138
|
-
|
|
138
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
139
139
|
|
|
140
140
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
141
|
-
|
|
141
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
142
142
|
function isUnicodeSupported() {
|
|
143
143
|
if (process.platform !== "win32") {
|
|
144
144
|
return process.env.TERM !== "linux";
|
|
@@ -163,13 +163,13 @@ var CONSOLE_ICONS = {
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
166
|
-
|
|
166
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
167
167
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
168
168
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
// ../config-tools/src/logger/get-log-level.ts
|
|
172
|
-
|
|
172
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
173
173
|
var getLogLevel = (label) => {
|
|
174
174
|
switch (label) {
|
|
175
175
|
case "all":
|
|
@@ -344,13 +344,13 @@ var _isFunction = (value) => {
|
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
347
|
-
|
|
347
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
348
348
|
|
|
349
349
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
350
|
-
|
|
350
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
351
351
|
|
|
352
352
|
// ../config-tools/src/utilities/find-up.ts
|
|
353
|
-
|
|
353
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
354
354
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
355
355
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
356
356
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -419,11 +419,11 @@ var rootDirectories = [
|
|
|
419
419
|
];
|
|
420
420
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
421
421
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
422
|
-
return
|
|
422
|
+
return _chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
423
423
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
424
424
|
);
|
|
425
425
|
}
|
|
426
|
-
return
|
|
426
|
+
return _chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
427
427
|
findFolderUp(
|
|
428
428
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
429
429
|
rootFiles,
|
|
@@ -518,13 +518,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
518
518
|
};
|
|
519
519
|
|
|
520
520
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
521
|
-
|
|
521
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
522
522
|
|
|
523
523
|
// ../config/src/index.ts
|
|
524
|
-
|
|
524
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
525
525
|
|
|
526
526
|
// ../config/src/constants.ts
|
|
527
|
-
|
|
527
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
528
528
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
529
529
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
530
530
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -543,10 +543,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
543
543
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
544
544
|
|
|
545
545
|
// ../config/src/define-config.ts
|
|
546
|
-
|
|
546
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
547
547
|
|
|
548
548
|
// ../config/src/schema.ts
|
|
549
|
-
|
|
549
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
550
550
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
551
551
|
var schemaRegistry = z.registry();
|
|
552
552
|
var colorSchema = z.string().check(
|
|
@@ -1101,7 +1101,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
|
|
1103
1103
|
// ../config/src/types.ts
|
|
1104
|
-
|
|
1104
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
1105
1105
|
var COLOR_KEYS = [
|
|
1106
1106
|
"dark",
|
|
1107
1107
|
"light",
|
|
@@ -1134,7 +1134,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1134
1134
|
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1135
1135
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1136
1136
|
const file = await _promises.readFile.call(void 0,
|
|
1137
|
-
|
|
1137
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1138
1138
|
"utf8"
|
|
1139
1139
|
);
|
|
1140
1140
|
if (file) {
|
|
@@ -1218,7 +1218,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1218
1218
|
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
1219
1219
|
jitiOptions: {
|
|
1220
1220
|
debug: false,
|
|
1221
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1221
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
1222
1222
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1223
1223
|
"jiti"
|
|
1224
1224
|
)
|
|
@@ -1232,7 +1232,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1232
1232
|
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
1233
1233
|
jitiOptions: {
|
|
1234
1234
|
debug: false,
|
|
1235
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1235
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
1236
1236
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1237
1237
|
"jiti"
|
|
1238
1238
|
)
|
|
@@ -1284,12 +1284,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1284
1284
|
};
|
|
1285
1285
|
|
|
1286
1286
|
// ../config-tools/src/create-storm-config.ts
|
|
1287
|
-
|
|
1287
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
1288
1288
|
|
|
1289
1289
|
|
|
1290
1290
|
|
|
1291
1291
|
// ../config-tools/src/env/get-env.ts
|
|
1292
|
-
|
|
1292
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
1293
1293
|
var getExtensionEnv = (extensionName) => {
|
|
1294
1294
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1295
1295
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1351,15 +1351,15 @@ var getConfigEnv = () => {
|
|
|
1351
1351
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1352
1352
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1353
1353
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1354
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1355
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1354
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1355
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1356
1356
|
directories: {
|
|
1357
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1358
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1359
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1360
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1361
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1362
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1357
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1358
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1359
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1360
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1361
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1362
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkR3E4ZSY4js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1363
1363
|
},
|
|
1364
1364
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1365
1365
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1502,7 +1502,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1502
1502
|
};
|
|
1503
1503
|
|
|
1504
1504
|
// ../config-tools/src/env/set-env.ts
|
|
1505
|
-
|
|
1505
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
1506
1506
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1507
1507
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1508
1508
|
if (extension[key]) {
|
|
@@ -1650,42 +1650,42 @@ var setConfigEnv = (config) => {
|
|
|
1650
1650
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1651
1651
|
}
|
|
1652
1652
|
if (config.configFile) {
|
|
1653
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1653
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
1654
1654
|
config.configFile
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
if (config.workspaceRoot) {
|
|
1658
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1659
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1660
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1658
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkR3E4ZSY4js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1659
|
+
process.env.NX_WORKSPACE_ROOT = _chunkR3E4ZSY4js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1660
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkR3E4ZSY4js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1661
1661
|
}
|
|
1662
1662
|
if (config.directories) {
|
|
1663
1663
|
if (!config.skipCache && config.directories.cache) {
|
|
1664
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1664
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
1665
1665
|
config.directories.cache
|
|
1666
1666
|
);
|
|
1667
1667
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1668
1668
|
}
|
|
1669
1669
|
if (config.directories.data) {
|
|
1670
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1670
|
+
process.env[`${prefix}DATA_DIR`] = _chunkR3E4ZSY4js.correctPaths.call(void 0, config.directories.data);
|
|
1671
1671
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1672
1672
|
}
|
|
1673
1673
|
if (config.directories.config) {
|
|
1674
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1674
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
1675
1675
|
config.directories.config
|
|
1676
1676
|
);
|
|
1677
1677
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1678
1678
|
}
|
|
1679
1679
|
if (config.directories.temp) {
|
|
1680
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1680
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkR3E4ZSY4js.correctPaths.call(void 0, config.directories.temp);
|
|
1681
1681
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1682
1682
|
}
|
|
1683
1683
|
if (config.directories.log) {
|
|
1684
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1684
|
+
process.env[`${prefix}LOG_DIR`] = _chunkR3E4ZSY4js.correctPaths.call(void 0, config.directories.log);
|
|
1685
1685
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1686
1686
|
}
|
|
1687
1687
|
if (config.directories.build) {
|
|
1688
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1688
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
1689
1689
|
config.directories.build
|
|
1690
1690
|
);
|
|
1691
1691
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1901,7 +1901,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, s
|
|
|
1901
1901
|
defaultConfig
|
|
1902
1902
|
);
|
|
1903
1903
|
if (!configInput.variant) {
|
|
1904
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
1904
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1905
1905
|
}
|
|
1906
1906
|
try {
|
|
1907
1907
|
result = applyDefaultConfig(
|
|
@@ -1967,7 +1967,7 @@ ${formatLogMessage(config)}`,
|
|
|
1967
1967
|
};
|
|
1968
1968
|
|
|
1969
1969
|
// ../config-tools/src/get-config.ts
|
|
1970
|
-
|
|
1970
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
1971
1971
|
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
1972
1972
|
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
1973
1973
|
}
|
|
@@ -2102,7 +2102,7 @@ var _isFunction2 = (value) => {
|
|
|
2102
2102
|
};
|
|
2103
2103
|
|
|
2104
2104
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2105
|
-
|
|
2105
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2106
2106
|
|
|
2107
2107
|
|
|
2108
2108
|
|
|
@@ -2240,7 +2240,7 @@ var executor_default = withRunExecutor(
|
|
|
2240
2240
|
);
|
|
2241
2241
|
|
|
2242
2242
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2243
|
-
|
|
2243
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2244
2244
|
async function cargoCheckExecutor(options, context) {
|
|
2245
2245
|
const command = buildCargoCommand("check", options, context);
|
|
2246
2246
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2260,7 +2260,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2260
2260
|
);
|
|
2261
2261
|
|
|
2262
2262
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2263
|
-
|
|
2263
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2264
2264
|
async function cargoClippyExecutor(options, context) {
|
|
2265
2265
|
const command = buildCargoCommand("clippy", options, context);
|
|
2266
2266
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2281,7 +2281,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2281
2281
|
);
|
|
2282
2282
|
|
|
2283
2283
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2284
|
-
|
|
2284
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2285
2285
|
async function cargoDocExecutor(options, context) {
|
|
2286
2286
|
const opts = { ...options };
|
|
2287
2287
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2311,7 +2311,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2311
2311
|
);
|
|
2312
2312
|
|
|
2313
2313
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2314
|
-
|
|
2314
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2315
2315
|
async function cargoFormatExecutor(options, context) {
|
|
2316
2316
|
const command = buildCargoCommand("fmt", options, context);
|
|
2317
2317
|
return await cargoCommand(context.root, ...command);
|
|
@@ -2332,7 +2332,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2332
2332
|
);
|
|
2333
2333
|
|
|
2334
2334
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2335
|
-
|
|
2335
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2336
2336
|
|
|
2337
2337
|
|
|
2338
2338
|
|
|
@@ -2340,19 +2340,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2340
2340
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2341
2341
|
|
|
2342
2342
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2343
|
-
|
|
2343
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2344
2344
|
|
|
2345
2345
|
// ../esbuild/src/build.ts
|
|
2346
|
-
|
|
2346
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2347
2347
|
|
|
2348
2348
|
// ../esbuild/src/assets.ts
|
|
2349
|
-
|
|
2349
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2350
2350
|
|
|
2351
2351
|
// ../build-tools/src/index.ts
|
|
2352
|
-
|
|
2352
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2353
2353
|
|
|
2354
2354
|
// ../build-tools/src/config.ts
|
|
2355
|
-
|
|
2355
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2356
2356
|
var DEFAULT_JS_BANNER = `
|
|
2357
2357
|
// ---------------------------------------
|
|
2358
2358
|
// \u26A1 Built by Storm Software
|
|
@@ -2368,35 +2368,35 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2368
2368
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2369
2369
|
|
|
2370
2370
|
// ../build-tools/src/plugins/index.ts
|
|
2371
|
-
|
|
2371
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2372
2372
|
|
|
2373
2373
|
// ../build-tools/src/plugins/analyze.ts
|
|
2374
|
-
|
|
2374
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2375
2375
|
|
|
2376
2376
|
// ../build-tools/src/plugins/swc.ts
|
|
2377
|
-
|
|
2377
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2378
2378
|
var _core = require('@swc/core');
|
|
2379
2379
|
|
|
2380
2380
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2381
|
-
|
|
2381
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2382
2382
|
|
|
2383
2383
|
var _module = require('module');
|
|
2384
2384
|
|
|
2385
2385
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2386
2386
|
|
|
2387
2387
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2388
|
-
|
|
2388
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2389
2389
|
|
|
2390
2390
|
|
|
2391
2391
|
|
|
2392
2392
|
// ../build-tools/src/types.ts
|
|
2393
|
-
|
|
2393
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2394
2394
|
|
|
2395
2395
|
// ../build-tools/src/utilities/index.ts
|
|
2396
|
-
|
|
2396
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2397
2397
|
|
|
2398
2398
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2399
|
-
|
|
2399
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2400
2400
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2401
2401
|
var _glob = require('glob');
|
|
2402
2402
|
|
|
@@ -2428,7 +2428,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2428
2428
|
}
|
|
2429
2429
|
writeTrace(
|
|
2430
2430
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2431
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2431
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkR3E4ZSY4js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2432
2432
|
config
|
|
2433
2433
|
);
|
|
2434
2434
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2441,17 +2441,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2441
2441
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2442
2442
|
if (includeSrc === true) {
|
|
2443
2443
|
writeDebug(
|
|
2444
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2444
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2445
2445
|
outputPath,
|
|
2446
2446
|
"src"
|
|
2447
2447
|
)}`,
|
|
2448
2448
|
config
|
|
2449
2449
|
);
|
|
2450
2450
|
const files = await _glob.glob.call(void 0, [
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2451
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2452
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2453
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2454
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2455
2455
|
]);
|
|
2456
2456
|
await Promise.allSettled(
|
|
2457
2457
|
files.map(
|
|
@@ -2469,7 +2469,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2469
2469
|
};
|
|
2470
2470
|
|
|
2471
2471
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2472
|
-
|
|
2472
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2473
2473
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2474
2474
|
|
|
2475
2475
|
|
|
@@ -2507,7 +2507,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2507
2507
|
)) {
|
|
2508
2508
|
const projectNode = project.node;
|
|
2509
2509
|
if (projectNode.data.root) {
|
|
2510
|
-
const projectPackageJsonPath =
|
|
2510
|
+
const projectPackageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2511
2511
|
workspaceRoot2,
|
|
2512
2512
|
projectNode.data.root,
|
|
2513
2513
|
"package.json"
|
|
@@ -2529,7 +2529,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2529
2529
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2530
2530
|
);
|
|
2531
2531
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2532
|
-
|
|
2532
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2533
2533
|
"utf8"
|
|
2534
2534
|
);
|
|
2535
2535
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2542,7 +2542,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2542
2542
|
}
|
|
2543
2543
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName2], 'access', _99 => _99.implicitDependencies, 'optionalAccess', _100 => _100.reduce, 'call', _101 => _101((ret, dep) => {
|
|
2544
2544
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2545
|
-
const depPackageJsonPath =
|
|
2545
|
+
const depPackageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2546
2546
|
workspaceRoot2,
|
|
2547
2547
|
projectConfigurations.projects[dep].root,
|
|
2548
2548
|
"package.json"
|
|
@@ -2580,7 +2580,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2580
2580
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2581
2581
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2582
2582
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2583
|
-
|
|
2583
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2584
2584
|
"utf8"
|
|
2585
2585
|
);
|
|
2586
2586
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2591,7 +2591,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2591
2591
|
if (distSrc.startsWith("/")) {
|
|
2592
2592
|
distSrc = distSrc.substring(1);
|
|
2593
2593
|
}
|
|
2594
|
-
packageJson.source ??= `${
|
|
2594
|
+
packageJson.source ??= `${_chunkR3E4ZSY4js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2595
2595
|
}
|
|
2596
2596
|
packageJson.files ??= ["dist/**/*"];
|
|
2597
2597
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2616,7 +2616,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2616
2616
|
packageJson.contributors = [packageJson.author];
|
|
2617
2617
|
}
|
|
2618
2618
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2619
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2619
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkR3E4ZSY4js.joinPaths.call(void 0, "packages", projectName);
|
|
2620
2620
|
return packageJson;
|
|
2621
2621
|
};
|
|
2622
2622
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2641,11 +2641,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2641
2641
|
};
|
|
2642
2642
|
|
|
2643
2643
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2644
|
-
|
|
2644
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2645
2645
|
|
|
2646
2646
|
|
|
2647
2647
|
// ../build-tools/src/utilities/get-env.ts
|
|
2648
|
-
|
|
2648
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2649
2649
|
var getEnv = (builder, options) => {
|
|
2650
2650
|
return {
|
|
2651
2651
|
STORM_BUILD: builder,
|
|
@@ -2660,21 +2660,21 @@ var getEnv = (builder, options) => {
|
|
|
2660
2660
|
};
|
|
2661
2661
|
|
|
2662
2662
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2663
|
-
|
|
2663
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2664
2664
|
|
|
2665
2665
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2666
|
-
|
|
2666
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2667
2667
|
|
|
2668
2668
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2669
|
-
|
|
2669
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2670
2670
|
|
|
2671
2671
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2672
|
-
|
|
2672
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2673
2673
|
|
|
2674
2674
|
|
|
2675
2675
|
|
|
2676
2676
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2677
|
-
|
|
2677
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2678
2678
|
|
|
2679
2679
|
|
|
2680
2680
|
|
|
@@ -2703,14 +2703,14 @@ async function copyBuildAssets(context) {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
2705
2705
|
// ../esbuild/src/clean.ts
|
|
2706
|
-
|
|
2706
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2707
2707
|
|
|
2708
2708
|
async function cleanDirectories(directory) {
|
|
2709
2709
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2710
2710
|
}
|
|
2711
2711
|
|
|
2712
2712
|
// ../esbuild/src/context.ts
|
|
2713
|
-
|
|
2713
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2714
2714
|
|
|
2715
2715
|
|
|
2716
2716
|
|
|
@@ -2721,7 +2721,7 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
2721
2721
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2722
2722
|
|
|
2723
2723
|
// ../esbuild/src/config.ts
|
|
2724
|
-
|
|
2724
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2725
2725
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2726
2726
|
platform: "node",
|
|
2727
2727
|
target: "node22",
|
|
@@ -2779,7 +2779,7 @@ async function resolveContext(userOptions) {
|
|
|
2779
2779
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2780
2780
|
exitOnError: true
|
|
2781
2781
|
});
|
|
2782
|
-
const projectJsonPath =
|
|
2782
|
+
const projectJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2783
2783
|
workspaceRoot2.dir,
|
|
2784
2784
|
projectRoot,
|
|
2785
2785
|
"project.json"
|
|
@@ -2798,7 +2798,7 @@ async function resolveContext(userOptions) {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2800
2800
|
options.name ??= projectName;
|
|
2801
|
-
const packageJsonPath =
|
|
2801
|
+
const packageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2802
2802
|
workspaceRoot2.dir,
|
|
2803
2803
|
options.projectRoot,
|
|
2804
2804
|
"package.json"
|
|
@@ -2810,7 +2810,7 @@ async function resolveContext(userOptions) {
|
|
|
2810
2810
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2811
2811
|
const resolvedOptions = {
|
|
2812
2812
|
...options,
|
|
2813
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2813
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkR3E4ZSY4js.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2814
2814
|
metafile: userOptions.mode === "development",
|
|
2815
2815
|
clean: false,
|
|
2816
2816
|
env,
|
|
@@ -2835,8 +2835,8 @@ async function resolveContext(userOptions) {
|
|
|
2835
2835
|
projectConfigurations,
|
|
2836
2836
|
projectName,
|
|
2837
2837
|
projectGraph,
|
|
2838
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2839
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2838
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkR3E4ZSY4js.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2839
|
+
outputPath: resolvedOptions.outputPath || _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2840
2840
|
workspaceConfig.workspaceRoot,
|
|
2841
2841
|
"dist",
|
|
2842
2842
|
resolvedOptions.projectRoot
|
|
@@ -2856,15 +2856,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2856
2856
|
}
|
|
2857
2857
|
|
|
2858
2858
|
// ../esbuild/src/package-json.ts
|
|
2859
|
-
|
|
2859
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2860
2860
|
|
|
2861
2861
|
|
|
2862
2862
|
|
|
2863
2863
|
async function generatePackageJson(context) {
|
|
2864
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2864
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2865
2865
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2866
2866
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2867
|
-
const packageJsonPath =
|
|
2867
|
+
const packageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2868
2868
|
context.options.projectRoot,
|
|
2869
2869
|
"project.json"
|
|
2870
2870
|
);
|
|
@@ -2872,7 +2872,7 @@ async function generatePackageJson(context) {
|
|
|
2872
2872
|
throw new Error("Cannot find package.json configuration");
|
|
2873
2873
|
}
|
|
2874
2874
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2875
|
-
|
|
2875
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
2876
2876
|
context.workspaceConfig.workspaceRoot,
|
|
2877
2877
|
context.options.projectRoot,
|
|
2878
2878
|
"package.json"
|
|
@@ -2978,7 +2978,7 @@ async function generatePackageJson(context) {
|
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
2980
|
await _devkit.writeJsonFile.call(void 0,
|
|
2981
|
-
|
|
2981
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2982
2982
|
packageJson
|
|
2983
2983
|
);
|
|
2984
2984
|
stopwatch();
|
|
@@ -2987,10 +2987,10 @@ async function generatePackageJson(context) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
|
|
2989
2989
|
// ../esbuild/src/tsup.ts
|
|
2990
|
-
|
|
2990
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2991
2991
|
|
|
2992
2992
|
// ../tsup/src/index.ts
|
|
2993
|
-
|
|
2993
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
2994
2994
|
var _tsup = require('tsup');
|
|
2995
2995
|
async function build(options) {
|
|
2996
2996
|
if (!options.silent) {
|
|
@@ -3015,7 +3015,7 @@ async function executeTsup(context) {
|
|
|
3015
3015
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3016
3016
|
await build({
|
|
3017
3017
|
...context.options,
|
|
3018
|
-
outDir: context.options.distDir ?
|
|
3018
|
+
outDir: context.options.distDir ? _chunkR3E4ZSY4js.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3019
3019
|
workspaceConfig: context.workspaceConfig
|
|
3020
3020
|
});
|
|
3021
3021
|
stopwatch();
|
|
@@ -3125,12 +3125,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3125
3125
|
);
|
|
3126
3126
|
|
|
3127
3127
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3128
|
-
|
|
3128
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3129
3129
|
var _jiti = require('jiti');
|
|
3130
3130
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3131
3131
|
async function napiExecutor(options, context, config) {
|
|
3132
3132
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3133
|
-
fsCache: config.skipCache ? false :
|
|
3133
|
+
fsCache: config.skipCache ? false : _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3134
3134
|
config.workspaceRoot,
|
|
3135
3135
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3136
3136
|
"jiti"
|
|
@@ -3146,53 +3146,53 @@ async function napiExecutor(options, context, config) {
|
|
|
3146
3146
|
);
|
|
3147
3147
|
}
|
|
3148
3148
|
const projectRoot = _optionalChain([context, 'access', _145 => _145.projectGraph, 'optionalAccess', _146 => _146.nodes, 'access', _147 => _147[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _148 => _148.data, 'access', _149 => _149.root]);
|
|
3149
|
-
const packageJson =
|
|
3149
|
+
const packageJson = _chunkR3E4ZSY4js.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3150
3150
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3151
3151
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3152
3152
|
}
|
|
3153
3153
|
const napi = new NapiCli();
|
|
3154
3154
|
const normalizedOptions = { ...options };
|
|
3155
3155
|
const metadata = cargoMetadata();
|
|
3156
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _150 => _150.target_directory]) ||
|
|
3156
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _150 => _150.target_directory]) || _chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3157
3157
|
normalizedOptions.outputDir = options.outputPath;
|
|
3158
3158
|
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
3159
3159
|
if (options.cwd) {
|
|
3160
|
-
normalizedOptions.cwd =
|
|
3160
|
+
normalizedOptions.cwd = _chunkR3E4ZSY4js.correctPaths.call(void 0, options.cwd);
|
|
3161
3161
|
} else {
|
|
3162
|
-
normalizedOptions.cwd =
|
|
3163
|
-
const absoluteProjectRoot =
|
|
3162
|
+
normalizedOptions.cwd = _chunkR3E4ZSY4js.correctPaths.call(void 0, projectRoot);
|
|
3163
|
+
const absoluteProjectRoot = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3164
3164
|
config.workspaceRoot,
|
|
3165
3165
|
projectRoot || "."
|
|
3166
3166
|
);
|
|
3167
3167
|
if (normalizedOptions.outputDir) {
|
|
3168
|
-
normalizedOptions.outputDir =
|
|
3168
|
+
normalizedOptions.outputDir = _chunkR3E4ZSY4js.relative.call(void 0,
|
|
3169
3169
|
absoluteProjectRoot,
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
_chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
3171
|
+
_chunkR3E4ZSY4js.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3172
3172
|
)
|
|
3173
3173
|
);
|
|
3174
3174
|
}
|
|
3175
3175
|
if (normalizedOptions.packageJsonPath) {
|
|
3176
|
-
normalizedOptions.packageJsonPath =
|
|
3176
|
+
normalizedOptions.packageJsonPath = _chunkR3E4ZSY4js.relative.call(void 0,
|
|
3177
3177
|
absoluteProjectRoot,
|
|
3178
|
-
|
|
3179
|
-
|
|
3178
|
+
_chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
3179
|
+
_chunkR3E4ZSY4js.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3180
3180
|
)
|
|
3181
3181
|
);
|
|
3182
3182
|
}
|
|
3183
3183
|
if (normalizedOptions.configPath) {
|
|
3184
|
-
normalizedOptions.configPath =
|
|
3184
|
+
normalizedOptions.configPath = _chunkR3E4ZSY4js.relative.call(void 0,
|
|
3185
3185
|
absoluteProjectRoot,
|
|
3186
|
-
|
|
3187
|
-
|
|
3186
|
+
_chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
3187
|
+
_chunkR3E4ZSY4js.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3188
3188
|
)
|
|
3189
3189
|
);
|
|
3190
3190
|
}
|
|
3191
3191
|
if (normalizedOptions.manifestPath) {
|
|
3192
|
-
normalizedOptions.manifestPath =
|
|
3192
|
+
normalizedOptions.manifestPath = _chunkR3E4ZSY4js.relative.call(void 0,
|
|
3193
3193
|
absoluteProjectRoot,
|
|
3194
|
-
|
|
3195
|
-
|
|
3194
|
+
_chunkR3E4ZSY4js.correctPaths.call(void 0,
|
|
3195
|
+
_chunkR3E4ZSY4js.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkR3E4ZSY4js.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3196
3196
|
)
|
|
3197
3197
|
);
|
|
3198
3198
|
}
|
|
@@ -3225,17 +3225,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3225
3225
|
);
|
|
3226
3226
|
|
|
3227
3227
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3228
|
-
|
|
3228
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3229
3229
|
|
|
3230
3230
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3231
|
-
|
|
3231
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3232
3232
|
|
|
3233
3233
|
|
|
3234
3234
|
// ../npm-tools/src/constants.ts
|
|
3235
|
-
|
|
3235
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3236
3236
|
|
|
3237
3237
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3238
|
-
|
|
3238
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3239
3239
|
|
|
3240
3240
|
|
|
3241
3241
|
|
|
@@ -3245,17 +3245,17 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
3245
3245
|
var _prettier = require('prettier');
|
|
3246
3246
|
|
|
3247
3247
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3248
|
-
|
|
3248
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3249
3249
|
|
|
3250
3250
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3251
|
-
|
|
3251
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3252
3252
|
|
|
3253
3253
|
|
|
3254
3254
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3255
3255
|
var _semver = require('semver');
|
|
3256
3256
|
|
|
3257
3257
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3258
|
-
|
|
3258
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3259
3259
|
|
|
3260
3260
|
|
|
3261
3261
|
var _yaml = require('yaml');
|
|
@@ -3266,7 +3266,7 @@ var _yaml = require('yaml');
|
|
|
3266
3266
|
|
|
3267
3267
|
|
|
3268
3268
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3269
|
-
|
|
3269
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3270
3270
|
|
|
3271
3271
|
|
|
3272
3272
|
|
|
@@ -3278,7 +3278,7 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
3278
3278
|
|
|
3279
3279
|
|
|
3280
3280
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3281
|
-
|
|
3281
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3282
3282
|
var ProjectTagConstants = {
|
|
3283
3283
|
Language: {
|
|
3284
3284
|
TAG_ID: "language",
|
|
@@ -3290,6 +3290,11 @@ var ProjectTagConstants = {
|
|
|
3290
3290
|
LIBRARY: "library",
|
|
3291
3291
|
APPLICATION: "application"
|
|
3292
3292
|
},
|
|
3293
|
+
ProjectLinking: {
|
|
3294
|
+
TAG_ID: "project-linking",
|
|
3295
|
+
REFERENCE: "reference",
|
|
3296
|
+
ALIAS: "alias"
|
|
3297
|
+
},
|
|
3293
3298
|
DistStyle: {
|
|
3294
3299
|
TAG_ID: "dist-style",
|
|
3295
3300
|
NORMAL: "normal",
|
|
@@ -3314,6 +3319,14 @@ var ProjectTagConstants = {
|
|
|
3314
3319
|
},
|
|
3315
3320
|
Plugin: {
|
|
3316
3321
|
TAG_ID: "plugin"
|
|
3322
|
+
},
|
|
3323
|
+
Builder: {
|
|
3324
|
+
TAG_ID: "builder",
|
|
3325
|
+
TSC: "tsc",
|
|
3326
|
+
TSUP: "tsup",
|
|
3327
|
+
TSDOWN: "tsdown",
|
|
3328
|
+
VITE: "vite",
|
|
3329
|
+
ROLLDOWN: "rolldown"
|
|
3317
3330
|
}
|
|
3318
3331
|
};
|
|
3319
3332
|
var formatProjectTag = (variant, value) => {
|
|
@@ -3342,7 +3355,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3342
3355
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3343
3356
|
|
|
3344
3357
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3345
|
-
|
|
3358
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3346
3359
|
|
|
3347
3360
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3348
3361
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3384,10 +3397,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3384
3397
|
);
|
|
3385
3398
|
|
|
3386
3399
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3387
|
-
|
|
3400
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3388
3401
|
|
|
3389
3402
|
// ../tsdown/src/build.ts
|
|
3390
|
-
|
|
3403
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3391
3404
|
|
|
3392
3405
|
|
|
3393
3406
|
|
|
@@ -3399,14 +3412,14 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
3399
3412
|
var _tsdown = require('tsdown');
|
|
3400
3413
|
|
|
3401
3414
|
// ../tsdown/src/clean.ts
|
|
3402
|
-
|
|
3415
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3403
3416
|
|
|
3404
3417
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3405
3418
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3406
3419
|
}
|
|
3407
3420
|
|
|
3408
3421
|
// ../tsdown/src/config.ts
|
|
3409
|
-
|
|
3422
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3410
3423
|
function getDefaultOptions(config) {
|
|
3411
3424
|
return {
|
|
3412
3425
|
entry: ["./src/*.ts"],
|
|
@@ -3449,7 +3462,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3449
3462
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3450
3463
|
exitOnError: true
|
|
3451
3464
|
});
|
|
3452
|
-
const projectJsonPath =
|
|
3465
|
+
const projectJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3453
3466
|
workspaceRoot2,
|
|
3454
3467
|
options.projectRoot,
|
|
3455
3468
|
"project.json"
|
|
@@ -3466,7 +3479,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3466
3479
|
"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."
|
|
3467
3480
|
);
|
|
3468
3481
|
}
|
|
3469
|
-
const packageJsonPath =
|
|
3482
|
+
const packageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3470
3483
|
workspaceRoot2,
|
|
3471
3484
|
options.projectRoot,
|
|
3472
3485
|
"package.json"
|
|
@@ -3475,13 +3488,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3475
3488
|
throw new Error("Cannot find package.json configuration");
|
|
3476
3489
|
}
|
|
3477
3490
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3478
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3491
|
+
const sourceRoot = projectJson.sourceRoot || _chunkR3E4ZSY4js.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3479
3492
|
const result = {
|
|
3480
3493
|
name: projectName,
|
|
3481
3494
|
mode: "production",
|
|
3482
3495
|
target: DEFAULT_TARGET,
|
|
3483
3496
|
generatePackageJson: true,
|
|
3484
|
-
outDir:
|
|
3497
|
+
outDir: _chunkR3E4ZSY4js.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3485
3498
|
minify: !debug,
|
|
3486
3499
|
plugins: [],
|
|
3487
3500
|
assets: [],
|
|
@@ -3493,12 +3506,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3493
3506
|
clean: false,
|
|
3494
3507
|
fixedExtension: true,
|
|
3495
3508
|
nodeProtocol: true,
|
|
3496
|
-
tsconfig:
|
|
3509
|
+
tsconfig: _chunkR3E4ZSY4js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3497
3510
|
debug,
|
|
3498
3511
|
sourceRoot,
|
|
3499
3512
|
cwd: workspaceConfig.workspaceRoot,
|
|
3500
3513
|
entry: {
|
|
3501
|
-
["index"]:
|
|
3514
|
+
["index"]: _chunkR3E4ZSY4js.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3502
3515
|
},
|
|
3503
3516
|
workspace: true,
|
|
3504
3517
|
...options,
|
|
@@ -3517,15 +3530,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3517
3530
|
return result;
|
|
3518
3531
|
};
|
|
3519
3532
|
async function generatePackageJson2(options) {
|
|
3520
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3533
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3521
3534
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3522
3535
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3523
|
-
const packageJsonPath =
|
|
3536
|
+
const packageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3524
3537
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3525
3538
|
throw new Error("Cannot find package.json configuration");
|
|
3526
3539
|
}
|
|
3527
3540
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3528
|
-
|
|
3541
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3529
3542
|
options.workspaceConfig.workspaceRoot,
|
|
3530
3543
|
options.projectRoot,
|
|
3531
3544
|
"package.json"
|
|
@@ -3587,7 +3600,7 @@ async function generatePackageJson2(options) {
|
|
|
3587
3600
|
},
|
|
3588
3601
|
packageJson.exports
|
|
3589
3602
|
);
|
|
3590
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3603
|
+
await _devkit.writeJsonFile.call(void 0, _chunkR3E4ZSY4js.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3591
3604
|
stopwatch();
|
|
3592
3605
|
}
|
|
3593
3606
|
return options;
|
|
@@ -3720,7 +3733,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3720
3733
|
);
|
|
3721
3734
|
|
|
3722
3735
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3723
|
-
|
|
3736
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3724
3737
|
var _fsextra = require('fs-extra');
|
|
3725
3738
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3726
3739
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3760,7 +3773,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3760
3773
|
);
|
|
3761
3774
|
|
|
3762
3775
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3763
|
-
|
|
3776
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3764
3777
|
|
|
3765
3778
|
|
|
3766
3779
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3781,7 +3794,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3781
3794
|
);
|
|
3782
3795
|
}
|
|
3783
3796
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3784
|
-
fsCache: config.skipCache ? false :
|
|
3797
|
+
fsCache: config.skipCache ? false : _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3785
3798
|
config.workspaceRoot,
|
|
3786
3799
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3787
3800
|
"jiti"
|
|
@@ -3803,7 +3816,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3803
3816
|
{
|
|
3804
3817
|
stubOptions: {
|
|
3805
3818
|
jiti: {
|
|
3806
|
-
fsCache: config.skipCache ? false :
|
|
3819
|
+
fsCache: config.skipCache ? false : _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
3807
3820
|
config.workspaceRoot,
|
|
3808
3821
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3809
3822
|
"jiti"
|
|
@@ -3852,10 +3865,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3852
3865
|
);
|
|
3853
3866
|
|
|
3854
3867
|
// ../workspace-tools/generators.ts
|
|
3855
|
-
|
|
3868
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3856
3869
|
|
|
3857
3870
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3858
|
-
|
|
3871
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3859
3872
|
|
|
3860
3873
|
|
|
3861
3874
|
|
|
@@ -3864,7 +3877,7 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
3864
3877
|
|
|
3865
3878
|
|
|
3866
3879
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3867
|
-
|
|
3880
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3868
3881
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3869
3882
|
skipReadingConfig: false
|
|
3870
3883
|
}) => async (tree, _options) => {
|
|
@@ -3948,7 +3961,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3948
3961
|
};
|
|
3949
3962
|
|
|
3950
3963
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3951
|
-
|
|
3964
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3952
3965
|
|
|
3953
3966
|
|
|
3954
3967
|
|
|
@@ -3970,7 +3983,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3970
3983
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3971
3984
|
|
|
3972
3985
|
// ../workspace-tools/src/utils/versions.ts
|
|
3973
|
-
|
|
3986
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
3974
3987
|
var typesNodeVersion = "20.9.0";
|
|
3975
3988
|
var nxVersion = "^18.0.4";
|
|
3976
3989
|
var nodeVersion = "20.11.0";
|
|
@@ -4003,16 +4016,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4003
4016
|
const projectConfig = {
|
|
4004
4017
|
root: normalized.directory,
|
|
4005
4018
|
projectType: "library",
|
|
4006
|
-
sourceRoot:
|
|
4019
|
+
sourceRoot: _chunkR3E4ZSY4js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4007
4020
|
targets: {
|
|
4008
4021
|
build: {
|
|
4009
4022
|
executor: options.buildExecutor,
|
|
4010
4023
|
outputs: ["{options.outputPath}"],
|
|
4011
4024
|
options: {
|
|
4012
|
-
entry: [
|
|
4025
|
+
entry: [_chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4013
4026
|
outputPath: getOutputPath(normalized),
|
|
4014
|
-
tsconfig:
|
|
4015
|
-
project:
|
|
4027
|
+
tsconfig: _chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4028
|
+
project: _chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4016
4029
|
defaultConfiguration: "production",
|
|
4017
4030
|
platform: "neutral",
|
|
4018
4031
|
assets: [
|
|
@@ -4069,7 +4082,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4069
4082
|
if (!normalized.importPath) {
|
|
4070
4083
|
normalized.importPath = normalized.name;
|
|
4071
4084
|
}
|
|
4072
|
-
const packageJsonPath =
|
|
4085
|
+
const packageJsonPath = _chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4073
4086
|
if (tree.exists(packageJsonPath)) {
|
|
4074
4087
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4075
4088
|
if (!normalized.importPath) {
|
|
@@ -4126,14 +4139,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4126
4139
|
}));
|
|
4127
4140
|
}
|
|
4128
4141
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4129
|
-
|
|
4142
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
4130
4143
|
normalized.projectRoot,
|
|
4131
4144
|
"./src",
|
|
4132
4145
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4133
4146
|
)
|
|
4134
4147
|
]);
|
|
4135
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4136
|
-
|
|
4148
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4149
|
+
_chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4137
4150
|
]);
|
|
4138
4151
|
if (tree.exists("package.json")) {
|
|
4139
4152
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4144,7 +4157,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4144
4157
|
description = packageJson.description;
|
|
4145
4158
|
}
|
|
4146
4159
|
}
|
|
4147
|
-
const tsconfigPath =
|
|
4160
|
+
const tsconfigPath = _chunkR3E4ZSY4js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4148
4161
|
if (tree.exists(tsconfigPath)) {
|
|
4149
4162
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4150
4163
|
json.composite ??= true;
|
|
@@ -4172,7 +4185,7 @@ function getOutputPath(options) {
|
|
|
4172
4185
|
} else {
|
|
4173
4186
|
parts.push(options.projectRoot);
|
|
4174
4187
|
}
|
|
4175
|
-
return
|
|
4188
|
+
return _chunkR3E4ZSY4js.joinPaths.call(void 0, ...parts);
|
|
4176
4189
|
}
|
|
4177
4190
|
function createProjectTsConfigJson(tree, options) {
|
|
4178
4191
|
const tsconfig = {
|
|
@@ -4180,7 +4193,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4180
4193
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _209 => _209.tsconfigOptions]), () => ( {})),
|
|
4181
4194
|
compilerOptions: {
|
|
4182
4195
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4183
|
-
outDir:
|
|
4196
|
+
outDir: _chunkR3E4ZSY4js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4184
4197
|
noEmit: true,
|
|
4185
4198
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _210 => _210.tsconfigOptions, 'optionalAccess', _211 => _211.compilerOptions]), () => ( {}))
|
|
4186
4199
|
},
|
|
@@ -4198,7 +4211,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4198
4211
|
"src/**/*.test.ts"
|
|
4199
4212
|
]
|
|
4200
4213
|
};
|
|
4201
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4214
|
+
_devkit.writeJson.call(void 0, tree, _chunkR3E4ZSY4js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4202
4215
|
}
|
|
4203
4216
|
async function normalizeOptions(tree, options, config) {
|
|
4204
4217
|
let importPath = options.importPath;
|
|
@@ -4263,7 +4276,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4263
4276
|
|
|
4264
4277
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4265
4278
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4266
|
-
const filesDir =
|
|
4279
|
+
const filesDir = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
4267
4280
|
__dirname,
|
|
4268
4281
|
"src",
|
|
4269
4282
|
"generators",
|
|
@@ -4343,7 +4356,7 @@ var generator_default = withRunGenerator(
|
|
|
4343
4356
|
);
|
|
4344
4357
|
|
|
4345
4358
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4346
|
-
|
|
4359
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4347
4360
|
|
|
4348
4361
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
4349
4362
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4400,7 +4413,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4400
4413
|
);
|
|
4401
4414
|
|
|
4402
4415
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4403
|
-
|
|
4416
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4404
4417
|
|
|
4405
4418
|
|
|
4406
4419
|
|
|
@@ -4428,7 +4441,7 @@ async function initGenerator(tree, schema) {
|
|
|
4428
4441
|
}
|
|
4429
4442
|
|
|
4430
4443
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4431
|
-
|
|
4444
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4432
4445
|
|
|
4433
4446
|
|
|
4434
4447
|
|
|
@@ -4436,7 +4449,7 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
4436
4449
|
|
|
4437
4450
|
|
|
4438
4451
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4439
|
-
const filesDir =
|
|
4452
|
+
const filesDir = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
4440
4453
|
__dirname,
|
|
4441
4454
|
"src",
|
|
4442
4455
|
"generators",
|
|
@@ -4488,7 +4501,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4488
4501
|
);
|
|
4489
4502
|
|
|
4490
4503
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4491
|
-
|
|
4504
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4492
4505
|
|
|
4493
4506
|
|
|
4494
4507
|
|
|
@@ -4496,7 +4509,7 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
4496
4509
|
|
|
4497
4510
|
|
|
4498
4511
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4499
|
-
const filesDir =
|
|
4512
|
+
const filesDir = _chunkR3E4ZSY4js.joinPaths.call(void 0,
|
|
4500
4513
|
__dirname,
|
|
4501
4514
|
"src",
|
|
4502
4515
|
"generators",
|
|
@@ -4550,7 +4563,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4550
4563
|
);
|
|
4551
4564
|
|
|
4552
4565
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4553
|
-
|
|
4566
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4554
4567
|
|
|
4555
4568
|
|
|
4556
4569
|
|
|
@@ -4789,10 +4802,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4789
4802
|
);
|
|
4790
4803
|
|
|
4791
4804
|
// ../workspace-tools/src/base/index.ts
|
|
4792
|
-
|
|
4805
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4793
4806
|
|
|
4794
4807
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4795
|
-
|
|
4808
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4796
4809
|
var _untyped = require('untyped');
|
|
4797
4810
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4798
4811
|
$schema: {
|
|
@@ -4812,7 +4825,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4812
4825
|
});
|
|
4813
4826
|
|
|
4814
4827
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4815
|
-
|
|
4828
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4816
4829
|
|
|
4817
4830
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4818
4831
|
$schema: {
|
|
@@ -4830,7 +4843,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4830
4843
|
});
|
|
4831
4844
|
|
|
4832
4845
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4833
|
-
|
|
4846
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4834
4847
|
|
|
4835
4848
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4836
4849
|
...base_executor_untyped_default,
|
|
@@ -4903,7 +4916,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4903
4916
|
});
|
|
4904
4917
|
|
|
4905
4918
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4906
|
-
|
|
4919
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
4907
4920
|
|
|
4908
4921
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4909
4922
|
...base_executor_untyped_default,
|
|
@@ -5055,7 +5068,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5055
5068
|
});
|
|
5056
5069
|
|
|
5057
5070
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5058
|
-
|
|
5071
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5059
5072
|
|
|
5060
5073
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5061
5074
|
...base_generator_untyped_default,
|
|
@@ -5161,42 +5174,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5161
5174
|
});
|
|
5162
5175
|
|
|
5163
5176
|
// ../workspace-tools/src/release/index.ts
|
|
5164
|
-
|
|
5177
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5165
5178
|
|
|
5166
5179
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5167
|
-
|
|
5180
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5168
5181
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5169
5182
|
|
|
5170
5183
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5171
|
-
|
|
5184
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5172
5185
|
|
|
5173
5186
|
|
|
5174
5187
|
|
|
5175
5188
|
var _release = require('nx/release');
|
|
5176
5189
|
|
|
5177
5190
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5178
|
-
|
|
5191
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5179
5192
|
|
|
5180
5193
|
|
|
5181
5194
|
// ../workspace-tools/src/types.ts
|
|
5182
|
-
|
|
5195
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5183
5196
|
|
|
5184
5197
|
// ../workspace-tools/src/utils/index.ts
|
|
5185
|
-
|
|
5198
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5186
5199
|
|
|
5187
5200
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5188
|
-
|
|
5201
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5189
5202
|
|
|
5190
5203
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5191
|
-
|
|
5204
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5192
5205
|
|
|
5193
5206
|
|
|
5194
5207
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5195
|
-
|
|
5208
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5196
5209
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5197
5210
|
|
|
5198
5211
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5199
|
-
|
|
5212
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5200
5213
|
|
|
5201
5214
|
|
|
5202
5215
|
|
|
@@ -5224,10 +5237,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5224
5237
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5225
5238
|
|
|
5226
5239
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5227
|
-
|
|
5240
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5228
5241
|
|
|
5229
5242
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5230
|
-
|
|
5243
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5231
5244
|
|
|
5232
5245
|
|
|
5233
5246
|
|
|
@@ -5236,7 +5249,7 @@ _chunkXK3MYXQWjs.init_cjs_shims.call(void 0, );
|
|
|
5236
5249
|
|
|
5237
5250
|
|
|
5238
5251
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5239
|
-
|
|
5252
|
+
_chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
5240
5253
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5241
5254
|
|
|
5242
5255
|
// src/generators/init/generator.ts
|