@storm-software/projen 0.21.47 → 0.21.49
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 +21 -0
- package/README.md +1 -1
- package/dist/{chunk-GEKLFKYD.js → chunk-4FPJCY7O.js} +199 -199
- package/dist/{chunk-E5BMXN6J.js → chunk-7SXJWZKT.js} +2 -2
- package/dist/chunk-I5D6XNAQ.js +6 -0
- package/dist/{chunk-COJ6F2PX.mjs → chunk-IQ76344P.mjs} +1 -1
- package/dist/{chunk-VNE5JTRR.mjs → chunk-IZWQZXHC.mjs} +1 -1
- package/dist/{chunk-7DWNZ2FJ.mjs → chunk-MOHAFOYH.mjs} +2 -2
- package/dist/{chunk-EQQ4EWZ5.mjs → chunk-NAVV523V.mjs} +2 -2
- package/dist/{chunk-C6OECBN4.js → chunk-QUYIE6CG.js} +2 -2
- package/dist/{chunk-5HU5TOQH.js → chunk-V3XWZZQP.js} +3 -3
- package/dist/{chunk-MOM463HZ.mjs → chunk-ZKNGNQ4B.mjs} +1 -1
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +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-SKWZ3HJB.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7SXJWZKTjs = require('./chunk-7SXJWZKT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkQUYIE6CGjs = require('./chunk-QUYIE6CG.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
139
139
|
|
|
140
140
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
141
|
-
|
|
141
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
348
348
|
|
|
349
349
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
350
|
-
|
|
350
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
351
351
|
|
|
352
352
|
// ../config-tools/src/utilities/find-up.ts
|
|
353
|
-
|
|
353
|
+
_chunkQUYIE6CGjs.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 _chunk7SXJWZKTjs.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 _chunk7SXJWZKTjs.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
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
522
522
|
|
|
523
523
|
// ../config/src/index.ts
|
|
524
|
-
|
|
524
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
525
525
|
|
|
526
526
|
// ../config/src/constants.ts
|
|
527
|
-
|
|
527
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
547
547
|
|
|
548
548
|
// ../config/src/schema.ts
|
|
549
|
-
|
|
549
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunk7SXJWZKTjs.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 : _chunk7SXJWZKTjs.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 : _chunk7SXJWZKTjs.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
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
1288
1288
|
|
|
1289
1289
|
|
|
1290
1290
|
|
|
1291
1291
|
// ../config-tools/src/env/get-env.ts
|
|
1292
|
-
|
|
1292
|
+
_chunkQUYIE6CGjs.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`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1355
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk7SXJWZKTjs.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`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1358
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1359
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1360
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1361
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1362
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk7SXJWZKTjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunk7SXJWZKTjs.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
|
+
_chunkQUYIE6CGjs.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`] = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1659
|
+
process.env.NX_WORKSPACE_ROOT = _chunk7SXJWZKTjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1660
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.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`] = _chunk7SXJWZKTjs.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, _chunk7SXJWZKTjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunk7SXJWZKTjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunk7SXJWZKTjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunk7SXJWZKTjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.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
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2344
2344
|
|
|
2345
2345
|
// ../esbuild/src/build.ts
|
|
2346
|
-
|
|
2346
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2347
2347
|
|
|
2348
2348
|
// ../esbuild/src/assets.ts
|
|
2349
|
-
|
|
2349
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2350
2350
|
|
|
2351
2351
|
// ../build-tools/src/index.ts
|
|
2352
|
-
|
|
2352
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2353
2353
|
|
|
2354
2354
|
// ../build-tools/src/config.ts
|
|
2355
|
-
|
|
2355
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2356
2356
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
2357
2357
|
*
|
|
2358
2358
|
* \u26A1 Built by Storm Software
|
|
@@ -2364,35 +2364,35 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2364
2364
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2365
2365
|
|
|
2366
2366
|
// ../build-tools/src/plugins/index.ts
|
|
2367
|
-
|
|
2367
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2368
2368
|
|
|
2369
2369
|
// ../build-tools/src/plugins/analyze.ts
|
|
2370
|
-
|
|
2370
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2371
2371
|
|
|
2372
2372
|
// ../build-tools/src/plugins/swc.ts
|
|
2373
|
-
|
|
2373
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2374
2374
|
var _core = require('@swc/core');
|
|
2375
2375
|
|
|
2376
2376
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2377
|
-
|
|
2377
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2378
2378
|
|
|
2379
2379
|
var _module = require('module');
|
|
2380
2380
|
|
|
2381
2381
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2382
2382
|
|
|
2383
2383
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2384
|
-
|
|
2384
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2385
2385
|
|
|
2386
2386
|
|
|
2387
2387
|
|
|
2388
2388
|
// ../build-tools/src/types.ts
|
|
2389
|
-
|
|
2389
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2390
2390
|
|
|
2391
2391
|
// ../build-tools/src/utilities/index.ts
|
|
2392
|
-
|
|
2392
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2393
2393
|
|
|
2394
2394
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2395
|
-
|
|
2395
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2396
2396
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2397
2397
|
var _glob = require('glob');
|
|
2398
2398
|
|
|
@@ -2424,7 +2424,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2424
2424
|
}
|
|
2425
2425
|
writeTrace(
|
|
2426
2426
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2427
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2427
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk7SXJWZKTjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2428
2428
|
config
|
|
2429
2429
|
);
|
|
2430
2430
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2437,17 +2437,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2437
2437
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2438
2438
|
if (includeSrc === true) {
|
|
2439
2439
|
writeDebug(
|
|
2440
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2440
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2441
2441
|
outputPath,
|
|
2442
2442
|
"src"
|
|
2443
2443
|
)}`,
|
|
2444
2444
|
config
|
|
2445
2445
|
);
|
|
2446
2446
|
const files = await _glob.glob.call(void 0, [
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2447
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2448
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2449
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2450
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2451
2451
|
]);
|
|
2452
2452
|
await Promise.allSettled(
|
|
2453
2453
|
files.map(
|
|
@@ -2465,7 +2465,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2465
2465
|
};
|
|
2466
2466
|
|
|
2467
2467
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2468
|
-
|
|
2468
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2469
2469
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2470
2470
|
|
|
2471
2471
|
|
|
@@ -2503,7 +2503,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2503
2503
|
)) {
|
|
2504
2504
|
const projectNode = project.node;
|
|
2505
2505
|
if (projectNode.data.root) {
|
|
2506
|
-
const projectPackageJsonPath =
|
|
2506
|
+
const projectPackageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2507
2507
|
workspaceRoot2,
|
|
2508
2508
|
projectNode.data.root,
|
|
2509
2509
|
"package.json"
|
|
@@ -2525,7 +2525,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2525
2525
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2526
2526
|
);
|
|
2527
2527
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2528
|
-
|
|
2528
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2529
2529
|
"utf8"
|
|
2530
2530
|
);
|
|
2531
2531
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2538,7 +2538,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2538
2538
|
}
|
|
2539
2539
|
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) => {
|
|
2540
2540
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2541
|
-
const depPackageJsonPath =
|
|
2541
|
+
const depPackageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2542
2542
|
workspaceRoot2,
|
|
2543
2543
|
projectConfigurations.projects[dep].root,
|
|
2544
2544
|
"package.json"
|
|
@@ -2576,7 +2576,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2576
2576
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2577
2577
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2578
2578
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2579
|
-
|
|
2579
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2580
2580
|
"utf8"
|
|
2581
2581
|
);
|
|
2582
2582
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2587,7 +2587,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2587
2587
|
if (distSrc.startsWith("/")) {
|
|
2588
2588
|
distSrc = distSrc.substring(1);
|
|
2589
2589
|
}
|
|
2590
|
-
packageJson.source ??= `${
|
|
2590
|
+
packageJson.source ??= `${_chunk7SXJWZKTjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2591
2591
|
}
|
|
2592
2592
|
packageJson.files ??= ["dist/**/*"];
|
|
2593
2593
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2612,7 +2612,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2612
2612
|
packageJson.contributors = [packageJson.author];
|
|
2613
2613
|
}
|
|
2614
2614
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2615
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2615
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk7SXJWZKTjs.joinPaths.call(void 0, "packages", projectName);
|
|
2616
2616
|
return packageJson;
|
|
2617
2617
|
};
|
|
2618
2618
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2637,11 +2637,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2637
2637
|
};
|
|
2638
2638
|
|
|
2639
2639
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2640
|
-
|
|
2640
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2641
2641
|
|
|
2642
2642
|
|
|
2643
2643
|
// ../build-tools/src/utilities/get-env.ts
|
|
2644
|
-
|
|
2644
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2645
2645
|
var getEnv = (builder, options) => {
|
|
2646
2646
|
return {
|
|
2647
2647
|
STORM_BUILD: builder,
|
|
@@ -2656,21 +2656,21 @@ var getEnv = (builder, options) => {
|
|
|
2656
2656
|
};
|
|
2657
2657
|
|
|
2658
2658
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2659
|
-
|
|
2659
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2660
2660
|
|
|
2661
2661
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2662
|
-
|
|
2662
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2663
2663
|
|
|
2664
2664
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2665
|
-
|
|
2665
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2666
2666
|
|
|
2667
2667
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2668
|
-
|
|
2668
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2669
2669
|
|
|
2670
2670
|
|
|
2671
2671
|
|
|
2672
2672
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2673
|
-
|
|
2673
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2674
2674
|
|
|
2675
2675
|
|
|
2676
2676
|
|
|
@@ -2699,14 +2699,14 @@ async function copyBuildAssets(context) {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
2701
|
// ../esbuild/src/clean.ts
|
|
2702
|
-
|
|
2702
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2703
2703
|
|
|
2704
2704
|
async function cleanDirectories(directory) {
|
|
2705
2705
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2706
2706
|
}
|
|
2707
2707
|
|
|
2708
2708
|
// ../esbuild/src/context.ts
|
|
2709
|
-
|
|
2709
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2710
2710
|
|
|
2711
2711
|
|
|
2712
2712
|
|
|
@@ -2717,7 +2717,7 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
2717
2717
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2718
2718
|
|
|
2719
2719
|
// ../esbuild/src/config.ts
|
|
2720
|
-
|
|
2720
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2721
2721
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2722
2722
|
platform: "node",
|
|
2723
2723
|
target: "node22",
|
|
@@ -2775,7 +2775,7 @@ async function resolveContext(userOptions) {
|
|
|
2775
2775
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2776
2776
|
exitOnError: true
|
|
2777
2777
|
});
|
|
2778
|
-
const projectJsonPath =
|
|
2778
|
+
const projectJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2779
2779
|
workspaceRoot2.dir,
|
|
2780
2780
|
projectRoot,
|
|
2781
2781
|
"project.json"
|
|
@@ -2794,7 +2794,7 @@ async function resolveContext(userOptions) {
|
|
|
2794
2794
|
}
|
|
2795
2795
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2796
2796
|
options.name ??= projectName;
|
|
2797
|
-
const packageJsonPath =
|
|
2797
|
+
const packageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2798
2798
|
workspaceRoot2.dir,
|
|
2799
2799
|
options.projectRoot,
|
|
2800
2800
|
"package.json"
|
|
@@ -2806,7 +2806,7 @@ async function resolveContext(userOptions) {
|
|
|
2806
2806
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2807
2807
|
const resolvedOptions = {
|
|
2808
2808
|
...options,
|
|
2809
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2809
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk7SXJWZKTjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2810
2810
|
metafile: userOptions.mode === "development",
|
|
2811
2811
|
clean: false,
|
|
2812
2812
|
env,
|
|
@@ -2831,8 +2831,8 @@ async function resolveContext(userOptions) {
|
|
|
2831
2831
|
projectConfigurations,
|
|
2832
2832
|
projectName,
|
|
2833
2833
|
projectGraph,
|
|
2834
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2835
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2834
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk7SXJWZKTjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2835
|
+
outputPath: resolvedOptions.outputPath || _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2836
2836
|
workspaceConfig.workspaceRoot,
|
|
2837
2837
|
"dist",
|
|
2838
2838
|
resolvedOptions.projectRoot
|
|
@@ -2852,15 +2852,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2852
2852
|
}
|
|
2853
2853
|
|
|
2854
2854
|
// ../esbuild/src/package-json.ts
|
|
2855
|
-
|
|
2855
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2856
2856
|
|
|
2857
2857
|
|
|
2858
2858
|
|
|
2859
2859
|
async function generatePackageJson(context) {
|
|
2860
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2860
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk7SXJWZKTjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2861
2861
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2862
2862
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2863
|
-
const packageJsonPath =
|
|
2863
|
+
const packageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2864
2864
|
context.options.projectRoot,
|
|
2865
2865
|
"project.json"
|
|
2866
2866
|
);
|
|
@@ -2868,7 +2868,7 @@ async function generatePackageJson(context) {
|
|
|
2868
2868
|
throw new Error("Cannot find package.json configuration");
|
|
2869
2869
|
}
|
|
2870
2870
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2871
|
-
|
|
2871
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
2872
2872
|
context.workspaceConfig.workspaceRoot,
|
|
2873
2873
|
context.options.projectRoot,
|
|
2874
2874
|
"package.json"
|
|
@@ -2974,7 +2974,7 @@ async function generatePackageJson(context) {
|
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
2976
|
await _devkit.writeJsonFile.call(void 0,
|
|
2977
|
-
|
|
2977
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2978
2978
|
packageJson
|
|
2979
2979
|
);
|
|
2980
2980
|
stopwatch();
|
|
@@ -2983,10 +2983,10 @@ async function generatePackageJson(context) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
|
|
2985
2985
|
// ../esbuild/src/tsup.ts
|
|
2986
|
-
|
|
2986
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2987
2987
|
|
|
2988
2988
|
// ../tsup/src/index.ts
|
|
2989
|
-
|
|
2989
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
2990
2990
|
var _tsup = require('tsup');
|
|
2991
2991
|
async function build(options) {
|
|
2992
2992
|
if (!options.silent) {
|
|
@@ -3011,7 +3011,7 @@ async function executeTsup(context) {
|
|
|
3011
3011
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3012
3012
|
await build({
|
|
3013
3013
|
...context.options,
|
|
3014
|
-
outDir: context.options.distDir ?
|
|
3014
|
+
outDir: context.options.distDir ? _chunk7SXJWZKTjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3015
3015
|
workspaceConfig: context.workspaceConfig
|
|
3016
3016
|
});
|
|
3017
3017
|
stopwatch();
|
|
@@ -3121,12 +3121,12 @@ var executor_default6 = withRunExecutor(
|
|
|
3121
3121
|
);
|
|
3122
3122
|
|
|
3123
3123
|
// ../workspace-tools/src/executors/napi/executor.ts
|
|
3124
|
-
|
|
3124
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3125
3125
|
var _jiti = require('jiti');
|
|
3126
3126
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3127
3127
|
async function napiExecutor(options, context, config) {
|
|
3128
3128
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3129
|
-
fsCache: config.skipCache ? false :
|
|
3129
|
+
fsCache: config.skipCache ? false : _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3130
3130
|
config.workspaceRoot,
|
|
3131
3131
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3132
3132
|
"jiti"
|
|
@@ -3142,53 +3142,53 @@ async function napiExecutor(options, context, config) {
|
|
|
3142
3142
|
);
|
|
3143
3143
|
}
|
|
3144
3144
|
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]);
|
|
3145
|
-
const packageJson =
|
|
3145
|
+
const packageJson = _chunk7SXJWZKTjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3146
3146
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3147
3147
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3148
3148
|
}
|
|
3149
3149
|
const napi = new NapiCli();
|
|
3150
3150
|
const normalizedOptions = { ...options };
|
|
3151
3151
|
const metadata = cargoMetadata();
|
|
3152
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _150 => _150.target_directory]) ||
|
|
3152
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _150 => _150.target_directory]) || _chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3153
3153
|
normalizedOptions.outputDir = options.outputPath;
|
|
3154
3154
|
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
3155
3155
|
if (options.cwd) {
|
|
3156
|
-
normalizedOptions.cwd =
|
|
3156
|
+
normalizedOptions.cwd = _chunk7SXJWZKTjs.correctPaths.call(void 0, options.cwd);
|
|
3157
3157
|
} else {
|
|
3158
|
-
normalizedOptions.cwd =
|
|
3159
|
-
const absoluteProjectRoot =
|
|
3158
|
+
normalizedOptions.cwd = _chunk7SXJWZKTjs.correctPaths.call(void 0, projectRoot);
|
|
3159
|
+
const absoluteProjectRoot = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3160
3160
|
config.workspaceRoot,
|
|
3161
3161
|
projectRoot || "."
|
|
3162
3162
|
);
|
|
3163
3163
|
if (normalizedOptions.outputDir) {
|
|
3164
|
-
normalizedOptions.outputDir =
|
|
3164
|
+
normalizedOptions.outputDir = _chunk7SXJWZKTjs.relative.call(void 0,
|
|
3165
3165
|
absoluteProjectRoot,
|
|
3166
|
-
|
|
3167
|
-
|
|
3166
|
+
_chunk7SXJWZKTjs.correctPaths.call(void 0,
|
|
3167
|
+
_chunk7SXJWZKTjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3168
3168
|
)
|
|
3169
3169
|
);
|
|
3170
3170
|
}
|
|
3171
3171
|
if (normalizedOptions.packageJsonPath) {
|
|
3172
|
-
normalizedOptions.packageJsonPath =
|
|
3172
|
+
normalizedOptions.packageJsonPath = _chunk7SXJWZKTjs.relative.call(void 0,
|
|
3173
3173
|
absoluteProjectRoot,
|
|
3174
|
-
|
|
3175
|
-
|
|
3174
|
+
_chunk7SXJWZKTjs.correctPaths.call(void 0,
|
|
3175
|
+
_chunk7SXJWZKTjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3176
3176
|
)
|
|
3177
3177
|
);
|
|
3178
3178
|
}
|
|
3179
3179
|
if (normalizedOptions.configPath) {
|
|
3180
|
-
normalizedOptions.configPath =
|
|
3180
|
+
normalizedOptions.configPath = _chunk7SXJWZKTjs.relative.call(void 0,
|
|
3181
3181
|
absoluteProjectRoot,
|
|
3182
|
-
|
|
3183
|
-
|
|
3182
|
+
_chunk7SXJWZKTjs.correctPaths.call(void 0,
|
|
3183
|
+
_chunk7SXJWZKTjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3184
3184
|
)
|
|
3185
3185
|
);
|
|
3186
3186
|
}
|
|
3187
3187
|
if (normalizedOptions.manifestPath) {
|
|
3188
|
-
normalizedOptions.manifestPath =
|
|
3188
|
+
normalizedOptions.manifestPath = _chunk7SXJWZKTjs.relative.call(void 0,
|
|
3189
3189
|
absoluteProjectRoot,
|
|
3190
|
-
|
|
3191
|
-
|
|
3190
|
+
_chunk7SXJWZKTjs.correctPaths.call(void 0,
|
|
3191
|
+
_chunk7SXJWZKTjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunk7SXJWZKTjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3192
3192
|
)
|
|
3193
3193
|
);
|
|
3194
3194
|
}
|
|
@@ -3221,17 +3221,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3221
3221
|
);
|
|
3222
3222
|
|
|
3223
3223
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3224
|
-
|
|
3224
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3225
3225
|
|
|
3226
3226
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3227
|
-
|
|
3227
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3228
3228
|
|
|
3229
3229
|
|
|
3230
3230
|
// ../npm-tools/src/constants.ts
|
|
3231
|
-
|
|
3231
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3232
3232
|
|
|
3233
3233
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3234
|
-
|
|
3234
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3235
3235
|
|
|
3236
3236
|
|
|
3237
3237
|
|
|
@@ -3241,17 +3241,17 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
3241
3241
|
var _prettier = require('prettier');
|
|
3242
3242
|
|
|
3243
3243
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3244
|
-
|
|
3244
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3245
3245
|
|
|
3246
3246
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3247
|
-
|
|
3247
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3248
3248
|
|
|
3249
3249
|
|
|
3250
3250
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3251
3251
|
var _semver = require('semver');
|
|
3252
3252
|
|
|
3253
3253
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3254
|
-
|
|
3254
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3255
3255
|
|
|
3256
3256
|
|
|
3257
3257
|
var _yaml = require('yaml');
|
|
@@ -3262,7 +3262,7 @@ var _yaml = require('yaml');
|
|
|
3262
3262
|
|
|
3263
3263
|
|
|
3264
3264
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3265
|
-
|
|
3265
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3266
3266
|
|
|
3267
3267
|
|
|
3268
3268
|
|
|
@@ -3274,7 +3274,7 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
3274
3274
|
|
|
3275
3275
|
|
|
3276
3276
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3277
|
-
|
|
3277
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3278
3278
|
var ProjectTagConstants = {
|
|
3279
3279
|
Language: {
|
|
3280
3280
|
TAG_ID: "language",
|
|
@@ -3338,7 +3338,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3338
3338
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3339
3339
|
|
|
3340
3340
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3341
|
-
|
|
3341
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3342
3342
|
|
|
3343
3343
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3344
3344
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3380,10 +3380,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3380
3380
|
);
|
|
3381
3381
|
|
|
3382
3382
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3383
|
-
|
|
3383
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3384
3384
|
|
|
3385
3385
|
// ../tsdown/src/build.ts
|
|
3386
|
-
|
|
3386
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3387
3387
|
|
|
3388
3388
|
|
|
3389
3389
|
|
|
@@ -3395,14 +3395,14 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
3395
3395
|
var _tsdown = require('tsdown');
|
|
3396
3396
|
|
|
3397
3397
|
// ../tsdown/src/clean.ts
|
|
3398
|
-
|
|
3398
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3399
3399
|
|
|
3400
3400
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3401
3401
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3402
3402
|
}
|
|
3403
3403
|
|
|
3404
3404
|
// ../tsdown/src/config.ts
|
|
3405
|
-
|
|
3405
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3406
3406
|
function getDefaultOptions(config) {
|
|
3407
3407
|
return {
|
|
3408
3408
|
entry: ["./src/*.ts"],
|
|
@@ -3445,7 +3445,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3445
3445
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3446
3446
|
exitOnError: true
|
|
3447
3447
|
});
|
|
3448
|
-
const projectJsonPath =
|
|
3448
|
+
const projectJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3449
3449
|
workspaceRoot2,
|
|
3450
3450
|
options.projectRoot,
|
|
3451
3451
|
"project.json"
|
|
@@ -3462,7 +3462,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3462
3462
|
"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."
|
|
3463
3463
|
);
|
|
3464
3464
|
}
|
|
3465
|
-
const packageJsonPath =
|
|
3465
|
+
const packageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3466
3466
|
workspaceRoot2,
|
|
3467
3467
|
options.projectRoot,
|
|
3468
3468
|
"package.json"
|
|
@@ -3471,13 +3471,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3471
3471
|
throw new Error("Cannot find package.json configuration");
|
|
3472
3472
|
}
|
|
3473
3473
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3474
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3474
|
+
const sourceRoot = projectJson.sourceRoot || _chunk7SXJWZKTjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3475
3475
|
const result = {
|
|
3476
3476
|
name: projectName,
|
|
3477
3477
|
mode: "production",
|
|
3478
3478
|
target: DEFAULT_TARGET,
|
|
3479
3479
|
generatePackageJson: true,
|
|
3480
|
-
outDir:
|
|
3480
|
+
outDir: _chunk7SXJWZKTjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3481
3481
|
minify: !debug,
|
|
3482
3482
|
plugins: [],
|
|
3483
3483
|
assets: [],
|
|
@@ -3489,12 +3489,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3489
3489
|
clean: false,
|
|
3490
3490
|
fixedExtension: true,
|
|
3491
3491
|
nodeProtocol: true,
|
|
3492
|
-
tsconfig:
|
|
3492
|
+
tsconfig: _chunk7SXJWZKTjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3493
3493
|
debug,
|
|
3494
3494
|
sourceRoot,
|
|
3495
3495
|
cwd: workspaceConfig.workspaceRoot,
|
|
3496
3496
|
entry: {
|
|
3497
|
-
["index"]:
|
|
3497
|
+
["index"]: _chunk7SXJWZKTjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3498
3498
|
},
|
|
3499
3499
|
workspace: true,
|
|
3500
3500
|
...options,
|
|
@@ -3513,15 +3513,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3513
3513
|
return result;
|
|
3514
3514
|
};
|
|
3515
3515
|
async function generatePackageJson2(options) {
|
|
3516
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3516
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk7SXJWZKTjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3517
3517
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3518
3518
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3519
|
-
const packageJsonPath =
|
|
3519
|
+
const packageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3520
3520
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3521
3521
|
throw new Error("Cannot find package.json configuration");
|
|
3522
3522
|
}
|
|
3523
3523
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3524
|
-
|
|
3524
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3525
3525
|
options.workspaceConfig.workspaceRoot,
|
|
3526
3526
|
options.projectRoot,
|
|
3527
3527
|
"package.json"
|
|
@@ -3583,7 +3583,7 @@ async function generatePackageJson2(options) {
|
|
|
3583
3583
|
},
|
|
3584
3584
|
packageJson.exports
|
|
3585
3585
|
);
|
|
3586
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3586
|
+
await _devkit.writeJsonFile.call(void 0, _chunk7SXJWZKTjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3587
3587
|
stopwatch();
|
|
3588
3588
|
}
|
|
3589
3589
|
return options;
|
|
@@ -3716,7 +3716,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3716
3716
|
);
|
|
3717
3717
|
|
|
3718
3718
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3719
|
-
|
|
3719
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3720
3720
|
var _fsextra = require('fs-extra');
|
|
3721
3721
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3722
3722
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3756,7 +3756,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3756
3756
|
);
|
|
3757
3757
|
|
|
3758
3758
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3759
|
-
|
|
3759
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3760
3760
|
|
|
3761
3761
|
|
|
3762
3762
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3777,7 +3777,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3777
3777
|
);
|
|
3778
3778
|
}
|
|
3779
3779
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3780
|
-
fsCache: config.skipCache ? false :
|
|
3780
|
+
fsCache: config.skipCache ? false : _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3781
3781
|
config.workspaceRoot,
|
|
3782
3782
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3783
3783
|
"jiti"
|
|
@@ -3799,7 +3799,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3799
3799
|
{
|
|
3800
3800
|
stubOptions: {
|
|
3801
3801
|
jiti: {
|
|
3802
|
-
fsCache: config.skipCache ? false :
|
|
3802
|
+
fsCache: config.skipCache ? false : _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
3803
3803
|
config.workspaceRoot,
|
|
3804
3804
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3805
3805
|
"jiti"
|
|
@@ -3848,10 +3848,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3848
3848
|
);
|
|
3849
3849
|
|
|
3850
3850
|
// ../workspace-tools/generators.ts
|
|
3851
|
-
|
|
3851
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3852
3852
|
|
|
3853
3853
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3854
|
-
|
|
3854
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3855
3855
|
|
|
3856
3856
|
|
|
3857
3857
|
|
|
@@ -3860,7 +3860,7 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
3860
3860
|
|
|
3861
3861
|
|
|
3862
3862
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3863
|
-
|
|
3863
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3864
3864
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3865
3865
|
skipReadingConfig: false
|
|
3866
3866
|
}) => async (tree, _options) => {
|
|
@@ -3944,7 +3944,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3944
3944
|
};
|
|
3945
3945
|
|
|
3946
3946
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3947
|
-
|
|
3947
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3948
3948
|
|
|
3949
3949
|
|
|
3950
3950
|
|
|
@@ -3966,7 +3966,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3966
3966
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3967
3967
|
|
|
3968
3968
|
// ../workspace-tools/src/utils/versions.ts
|
|
3969
|
-
|
|
3969
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
3970
3970
|
var typesNodeVersion = "20.9.0";
|
|
3971
3971
|
var nxVersion = "^18.0.4";
|
|
3972
3972
|
var nodeVersion = "20.11.0";
|
|
@@ -3999,16 +3999,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3999
3999
|
const projectConfig = {
|
|
4000
4000
|
root: normalized.directory,
|
|
4001
4001
|
projectType: "library",
|
|
4002
|
-
sourceRoot:
|
|
4002
|
+
sourceRoot: _chunk7SXJWZKTjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4003
4003
|
targets: {
|
|
4004
4004
|
build: {
|
|
4005
4005
|
executor: options.buildExecutor,
|
|
4006
4006
|
outputs: ["{options.outputPath}"],
|
|
4007
4007
|
options: {
|
|
4008
|
-
entry: [
|
|
4008
|
+
entry: [_chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4009
4009
|
outputPath: getOutputPath(normalized),
|
|
4010
|
-
tsconfig:
|
|
4011
|
-
project:
|
|
4010
|
+
tsconfig: _chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4011
|
+
project: _chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4012
4012
|
defaultConfiguration: "production",
|
|
4013
4013
|
platform: "neutral",
|
|
4014
4014
|
assets: [
|
|
@@ -4065,7 +4065,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4065
4065
|
if (!normalized.importPath) {
|
|
4066
4066
|
normalized.importPath = normalized.name;
|
|
4067
4067
|
}
|
|
4068
|
-
const packageJsonPath =
|
|
4068
|
+
const packageJsonPath = _chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4069
4069
|
if (tree.exists(packageJsonPath)) {
|
|
4070
4070
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4071
4071
|
if (!normalized.importPath) {
|
|
@@ -4122,14 +4122,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4122
4122
|
}));
|
|
4123
4123
|
}
|
|
4124
4124
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4125
|
-
|
|
4125
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
4126
4126
|
normalized.projectRoot,
|
|
4127
4127
|
"./src",
|
|
4128
4128
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4129
4129
|
)
|
|
4130
4130
|
]);
|
|
4131
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4132
|
-
|
|
4131
|
+
_js.addTsConfigPath.call(void 0, tree, _chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4132
|
+
_chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4133
4133
|
]);
|
|
4134
4134
|
if (tree.exists("package.json")) {
|
|
4135
4135
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4140,7 +4140,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4140
4140
|
description = packageJson.description;
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
|
-
const tsconfigPath =
|
|
4143
|
+
const tsconfigPath = _chunk7SXJWZKTjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4144
4144
|
if (tree.exists(tsconfigPath)) {
|
|
4145
4145
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4146
4146
|
json.composite ??= true;
|
|
@@ -4168,7 +4168,7 @@ function getOutputPath(options) {
|
|
|
4168
4168
|
} else {
|
|
4169
4169
|
parts.push(options.projectRoot);
|
|
4170
4170
|
}
|
|
4171
|
-
return
|
|
4171
|
+
return _chunk7SXJWZKTjs.joinPaths.call(void 0, ...parts);
|
|
4172
4172
|
}
|
|
4173
4173
|
function createProjectTsConfigJson(tree, options) {
|
|
4174
4174
|
const tsconfig = {
|
|
@@ -4176,7 +4176,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4176
4176
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _209 => _209.tsconfigOptions]), () => ( {})),
|
|
4177
4177
|
compilerOptions: {
|
|
4178
4178
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4179
|
-
outDir:
|
|
4179
|
+
outDir: _chunk7SXJWZKTjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4180
4180
|
noEmit: true,
|
|
4181
4181
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _210 => _210.tsconfigOptions, 'optionalAccess', _211 => _211.compilerOptions]), () => ( {}))
|
|
4182
4182
|
},
|
|
@@ -4194,7 +4194,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4194
4194
|
"src/**/*.test.ts"
|
|
4195
4195
|
]
|
|
4196
4196
|
};
|
|
4197
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4197
|
+
_devkit.writeJson.call(void 0, tree, _chunk7SXJWZKTjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4198
4198
|
}
|
|
4199
4199
|
async function normalizeOptions(tree, options, config) {
|
|
4200
4200
|
let importPath = options.importPath;
|
|
@@ -4259,7 +4259,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4259
4259
|
|
|
4260
4260
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4261
4261
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4262
|
-
const filesDir =
|
|
4262
|
+
const filesDir = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
4263
4263
|
__dirname,
|
|
4264
4264
|
"src",
|
|
4265
4265
|
"generators",
|
|
@@ -4339,7 +4339,7 @@ var generator_default = withRunGenerator(
|
|
|
4339
4339
|
);
|
|
4340
4340
|
|
|
4341
4341
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4342
|
-
|
|
4342
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4343
4343
|
|
|
4344
4344
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
4345
4345
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4396,7 +4396,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4396
4396
|
);
|
|
4397
4397
|
|
|
4398
4398
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4399
|
-
|
|
4399
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4400
4400
|
|
|
4401
4401
|
|
|
4402
4402
|
|
|
@@ -4424,7 +4424,7 @@ async function initGenerator(tree, schema) {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
|
|
4426
4426
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4427
|
-
|
|
4427
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4428
4428
|
|
|
4429
4429
|
|
|
4430
4430
|
|
|
@@ -4432,7 +4432,7 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
4432
4432
|
|
|
4433
4433
|
|
|
4434
4434
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4435
|
-
const filesDir =
|
|
4435
|
+
const filesDir = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
4436
4436
|
__dirname,
|
|
4437
4437
|
"src",
|
|
4438
4438
|
"generators",
|
|
@@ -4484,7 +4484,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4484
4484
|
);
|
|
4485
4485
|
|
|
4486
4486
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4487
|
-
|
|
4487
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4488
4488
|
|
|
4489
4489
|
|
|
4490
4490
|
|
|
@@ -4492,7 +4492,7 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
4492
4492
|
|
|
4493
4493
|
|
|
4494
4494
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4495
|
-
const filesDir =
|
|
4495
|
+
const filesDir = _chunk7SXJWZKTjs.joinPaths.call(void 0,
|
|
4496
4496
|
__dirname,
|
|
4497
4497
|
"src",
|
|
4498
4498
|
"generators",
|
|
@@ -4546,7 +4546,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4546
4546
|
);
|
|
4547
4547
|
|
|
4548
4548
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4549
|
-
|
|
4549
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4550
4550
|
|
|
4551
4551
|
|
|
4552
4552
|
|
|
@@ -4785,10 +4785,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4785
4785
|
);
|
|
4786
4786
|
|
|
4787
4787
|
// ../workspace-tools/src/base/index.ts
|
|
4788
|
-
|
|
4788
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4789
4789
|
|
|
4790
4790
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4791
|
-
|
|
4791
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4792
4792
|
var _untyped = require('untyped');
|
|
4793
4793
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4794
4794
|
$schema: {
|
|
@@ -4808,7 +4808,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4808
4808
|
});
|
|
4809
4809
|
|
|
4810
4810
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4811
|
-
|
|
4811
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4812
4812
|
|
|
4813
4813
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4814
4814
|
$schema: {
|
|
@@ -4826,7 +4826,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4826
4826
|
});
|
|
4827
4827
|
|
|
4828
4828
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4829
|
-
|
|
4829
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4830
4830
|
|
|
4831
4831
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4832
4832
|
...base_executor_untyped_default,
|
|
@@ -4899,7 +4899,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4899
4899
|
});
|
|
4900
4900
|
|
|
4901
4901
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4902
|
-
|
|
4902
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
4903
4903
|
|
|
4904
4904
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4905
4905
|
...base_executor_untyped_default,
|
|
@@ -5051,7 +5051,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5051
5051
|
});
|
|
5052
5052
|
|
|
5053
5053
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5054
|
-
|
|
5054
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5055
5055
|
|
|
5056
5056
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5057
5057
|
...base_generator_untyped_default,
|
|
@@ -5157,42 +5157,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5157
5157
|
});
|
|
5158
5158
|
|
|
5159
5159
|
// ../workspace-tools/src/release/index.ts
|
|
5160
|
-
|
|
5160
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5161
5161
|
|
|
5162
5162
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5163
|
-
|
|
5163
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5164
5164
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5165
5165
|
|
|
5166
5166
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5167
|
-
|
|
5167
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5168
5168
|
|
|
5169
5169
|
|
|
5170
5170
|
|
|
5171
5171
|
var _release = require('nx/release');
|
|
5172
5172
|
|
|
5173
5173
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5174
|
-
|
|
5174
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5175
5175
|
|
|
5176
5176
|
|
|
5177
5177
|
// ../workspace-tools/src/types.ts
|
|
5178
|
-
|
|
5178
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5179
5179
|
|
|
5180
5180
|
// ../workspace-tools/src/utils/index.ts
|
|
5181
|
-
|
|
5181
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5182
5182
|
|
|
5183
5183
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5184
|
-
|
|
5184
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5185
5185
|
|
|
5186
5186
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5187
|
-
|
|
5187
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5188
5188
|
|
|
5189
5189
|
|
|
5190
5190
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5191
|
-
|
|
5191
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5192
5192
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5193
5193
|
|
|
5194
5194
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5195
|
-
|
|
5195
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5196
5196
|
|
|
5197
5197
|
|
|
5198
5198
|
|
|
@@ -5220,10 +5220,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5220
5220
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5221
5221
|
|
|
5222
5222
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5223
|
-
|
|
5223
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5224
5224
|
|
|
5225
5225
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5226
|
-
|
|
5226
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5227
5227
|
|
|
5228
5228
|
|
|
5229
5229
|
|
|
@@ -5232,7 +5232,7 @@ _chunkC6OECBN4js.init_cjs_shims.call(void 0, );
|
|
|
5232
5232
|
|
|
5233
5233
|
|
|
5234
5234
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5235
|
-
|
|
5235
|
+
_chunkQUYIE6CGjs.init_cjs_shims.call(void 0, );
|
|
5236
5236
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5237
5237
|
|
|
5238
5238
|
// src/generators/init/generator.ts
|