@storm-software/projen 0.21.64 → 0.21.65
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 +8 -0
- package/dist/{chunk-D6Z4XB72.mjs → chunk-2R4MZFG6.mjs} +1 -1
- package/dist/{chunk-G7UDNJTZ.js → chunk-5BIVVTCK.js} +3 -3
- package/dist/{chunk-E4GUTVRV.mjs → chunk-AEZEI7C5.mjs} +1 -1
- package/dist/{chunk-HJCZJA2L.js → chunk-HIADY6L3.js} +2 -2
- package/dist/{chunk-GE2GHRTA.js → chunk-I7GL5KDC.js} +199 -199
- package/dist/{chunk-LDYOQL6O.mjs → chunk-JVJEM7EC.mjs} +2 -2
- package/dist/{chunk-LZQGZUEW.mjs → chunk-NU5ZQV4F.mjs} +1 -1
- package/dist/chunk-SAWELGAJ.js +6 -0
- package/dist/{chunk-MU46TK3T.mjs → chunk-SYWSKN23.mjs} +2 -2
- package/dist/{chunk-R3E4ZSY4.js → chunk-TZYNIPUN.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 +10 -10
- package/dist/chunk-QVDMNLHZ.js +0 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTZYNIPUNjs = require('./chunk-TZYNIPUN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHIADY6L3js = require('./chunk-HIADY6L3.js');
|
|
10
10
|
|
|
11
11
|
// src/generators/init/generator.ts
|
|
12
|
-
|
|
12
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,28 +18,28 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
|
|
20
20
|
// ../workspace-tools/index.ts
|
|
21
|
-
|
|
21
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/executors.ts
|
|
24
|
-
|
|
24
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
25
25
|
|
|
26
26
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
27
|
-
|
|
27
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
28
28
|
|
|
29
29
|
// ../workspace-tools/src/base/base-executor.ts
|
|
30
|
-
|
|
30
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
33
|
-
|
|
33
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
139
139
|
|
|
140
140
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
141
|
-
|
|
141
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
348
348
|
|
|
349
349
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
350
|
-
|
|
350
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
351
351
|
|
|
352
352
|
// ../config-tools/src/utilities/find-up.ts
|
|
353
|
-
|
|
353
|
+
_chunkHIADY6L3js.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 _chunkTZYNIPUNjs.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 _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
522
522
|
|
|
523
523
|
// ../config/src/index.ts
|
|
524
|
-
|
|
524
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
525
525
|
|
|
526
526
|
// ../config/src/constants.ts
|
|
527
|
-
|
|
527
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
547
547
|
|
|
548
548
|
// ../config/src/schema.ts
|
|
549
|
-
|
|
549
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkTZYNIPUNjs.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 : _chunkTZYNIPUNjs.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 : _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
1288
1288
|
|
|
1289
1289
|
|
|
1290
1290
|
|
|
1291
1291
|
// ../config-tools/src/env/get-env.ts
|
|
1292
|
-
|
|
1292
|
+
_chunkHIADY6L3js.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`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1355
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkTZYNIPUNjs.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`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1358
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1359
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1360
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1361
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1362
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkTZYNIPUNjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.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`] = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1659
|
+
process.env.NX_WORKSPACE_ROOT = _chunkTZYNIPUNjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1660
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.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`] = _chunkTZYNIPUNjs.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, _chunkTZYNIPUNjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkTZYNIPUNjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkTZYNIPUNjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2344
2344
|
|
|
2345
2345
|
// ../esbuild/src/build.ts
|
|
2346
|
-
|
|
2346
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2347
2347
|
|
|
2348
2348
|
// ../esbuild/src/assets.ts
|
|
2349
|
-
|
|
2349
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2350
2350
|
|
|
2351
2351
|
// ../build-tools/src/index.ts
|
|
2352
|
-
|
|
2352
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2353
2353
|
|
|
2354
2354
|
// ../build-tools/src/config.ts
|
|
2355
|
-
|
|
2355
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2372
2372
|
|
|
2373
2373
|
// ../build-tools/src/plugins/analyze.ts
|
|
2374
|
-
|
|
2374
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2375
2375
|
|
|
2376
2376
|
// ../build-tools/src/plugins/swc.ts
|
|
2377
|
-
|
|
2377
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2389
2389
|
|
|
2390
2390
|
|
|
2391
2391
|
|
|
2392
2392
|
// ../build-tools/src/types.ts
|
|
2393
|
-
|
|
2393
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2394
2394
|
|
|
2395
2395
|
// ../build-tools/src/utilities/index.ts
|
|
2396
|
-
|
|
2396
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2397
2397
|
|
|
2398
2398
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2399
|
-
|
|
2399
|
+
_chunkHIADY6L3js.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} -> ${_chunkTZYNIPUNjs.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: ${_chunkTZYNIPUNjs.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
|
+
_chunkTZYNIPUNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2452
|
+
_chunkTZYNIPUNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2453
|
+
_chunkTZYNIPUNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2454
|
+
_chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.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 = _chunkTZYNIPUNjs.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
|
+
_chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.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
|
+
_chunkTZYNIPUNjs.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 ??= `${_chunkTZYNIPUNjs.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 : _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2645
2645
|
|
|
2646
2646
|
|
|
2647
2647
|
// ../build-tools/src/utilities/get-env.ts
|
|
2648
|
-
|
|
2648
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2664
2664
|
|
|
2665
2665
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2666
|
-
|
|
2666
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2667
2667
|
|
|
2668
2668
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2669
|
-
|
|
2669
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2670
2670
|
|
|
2671
2671
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2672
|
-
|
|
2672
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2673
2673
|
|
|
2674
2674
|
|
|
2675
2675
|
|
|
2676
2676
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2677
|
-
|
|
2677
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2714
2714
|
|
|
2715
2715
|
|
|
2716
2716
|
|
|
@@ -2721,7 +2721,7 @@ _chunkHJCZJA2Ljs.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
|
+
_chunkHIADY6L3js.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 = _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.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 : _chunkTZYNIPUNjs.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 || _chunkTZYNIPUNjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2839
|
+
outputPath: resolvedOptions.outputPath || _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.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, _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.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
|
+
_chunkTZYNIPUNjs.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
|
+
_chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
2991
2991
|
|
|
2992
2992
|
// ../tsup/src/index.ts
|
|
2993
|
-
|
|
2993
|
+
_chunkHIADY6L3js.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 ? _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.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 : _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.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]) || _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.correctPaths.call(void 0, options.cwd);
|
|
3161
3161
|
} else {
|
|
3162
|
-
normalizedOptions.cwd =
|
|
3163
|
-
const absoluteProjectRoot =
|
|
3162
|
+
normalizedOptions.cwd = _chunkTZYNIPUNjs.correctPaths.call(void 0, projectRoot);
|
|
3163
|
+
const absoluteProjectRoot = _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
3164
3164
|
config.workspaceRoot,
|
|
3165
3165
|
projectRoot || "."
|
|
3166
3166
|
);
|
|
3167
3167
|
if (normalizedOptions.outputDir) {
|
|
3168
|
-
normalizedOptions.outputDir =
|
|
3168
|
+
normalizedOptions.outputDir = _chunkTZYNIPUNjs.relative.call(void 0,
|
|
3169
3169
|
absoluteProjectRoot,
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
_chunkTZYNIPUNjs.correctPaths.call(void 0,
|
|
3171
|
+
_chunkTZYNIPUNjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.relative.call(void 0,
|
|
3177
3177
|
absoluteProjectRoot,
|
|
3178
|
-
|
|
3179
|
-
|
|
3178
|
+
_chunkTZYNIPUNjs.correctPaths.call(void 0,
|
|
3179
|
+
_chunkTZYNIPUNjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.relative.call(void 0,
|
|
3185
3185
|
absoluteProjectRoot,
|
|
3186
|
-
|
|
3187
|
-
|
|
3186
|
+
_chunkTZYNIPUNjs.correctPaths.call(void 0,
|
|
3187
|
+
_chunkTZYNIPUNjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkTZYNIPUNjs.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 = _chunkTZYNIPUNjs.relative.call(void 0,
|
|
3193
3193
|
absoluteProjectRoot,
|
|
3194
|
-
|
|
3195
|
-
|
|
3194
|
+
_chunkTZYNIPUNjs.correctPaths.call(void 0,
|
|
3195
|
+
_chunkTZYNIPUNjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkTZYNIPUNjs.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3229
3229
|
|
|
3230
3230
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3231
|
-
|
|
3231
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3232
3232
|
|
|
3233
3233
|
|
|
3234
3234
|
// ../npm-tools/src/constants.ts
|
|
3235
|
-
|
|
3235
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3236
3236
|
|
|
3237
3237
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3238
|
-
|
|
3238
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3239
3239
|
|
|
3240
3240
|
|
|
3241
3241
|
|
|
@@ -3245,17 +3245,17 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
3245
3245
|
var _prettier = require('prettier');
|
|
3246
3246
|
|
|
3247
3247
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3248
|
-
|
|
3248
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3249
3249
|
|
|
3250
3250
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3251
|
-
|
|
3251
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.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
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3270
3270
|
|
|
3271
3271
|
|
|
3272
3272
|
|
|
@@ -3278,7 +3278,7 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
3278
3278
|
|
|
3279
3279
|
|
|
3280
3280
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3281
|
-
|
|
3281
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3282
3282
|
var ProjectTagConstants = {
|
|
3283
3283
|
Language: {
|
|
3284
3284
|
TAG_ID: "language",
|
|
@@ -3355,7 +3355,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3355
3355
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3356
3356
|
|
|
3357
3357
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3358
|
-
|
|
3358
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3359
3359
|
|
|
3360
3360
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3361
3361
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
@@ -3397,10 +3397,10 @@ var executor_default8 = withRunExecutor(
|
|
|
3397
3397
|
);
|
|
3398
3398
|
|
|
3399
3399
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3400
|
-
|
|
3400
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3401
3401
|
|
|
3402
3402
|
// ../tsdown/src/build.ts
|
|
3403
|
-
|
|
3403
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3404
3404
|
|
|
3405
3405
|
|
|
3406
3406
|
|
|
@@ -3412,14 +3412,14 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
3412
3412
|
var _tsdown = require('tsdown');
|
|
3413
3413
|
|
|
3414
3414
|
// ../tsdown/src/clean.ts
|
|
3415
|
-
|
|
3415
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3416
3416
|
|
|
3417
3417
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3418
3418
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3419
3419
|
}
|
|
3420
3420
|
|
|
3421
3421
|
// ../tsdown/src/config.ts
|
|
3422
|
-
|
|
3422
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3423
3423
|
function getDefaultOptions(config) {
|
|
3424
3424
|
return {
|
|
3425
3425
|
entry: ["./src/*.ts"],
|
|
@@ -3462,7 +3462,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3462
3462
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3463
3463
|
exitOnError: true
|
|
3464
3464
|
});
|
|
3465
|
-
const projectJsonPath =
|
|
3465
|
+
const projectJsonPath = _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
3466
3466
|
workspaceRoot2,
|
|
3467
3467
|
options.projectRoot,
|
|
3468
3468
|
"project.json"
|
|
@@ -3479,7 +3479,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3479
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."
|
|
3480
3480
|
);
|
|
3481
3481
|
}
|
|
3482
|
-
const packageJsonPath =
|
|
3482
|
+
const packageJsonPath = _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
3483
3483
|
workspaceRoot2,
|
|
3484
3484
|
options.projectRoot,
|
|
3485
3485
|
"package.json"
|
|
@@ -3488,13 +3488,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3488
3488
|
throw new Error("Cannot find package.json configuration");
|
|
3489
3489
|
}
|
|
3490
3490
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3491
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3491
|
+
const sourceRoot = projectJson.sourceRoot || _chunkTZYNIPUNjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3492
3492
|
const result = {
|
|
3493
3493
|
name: projectName,
|
|
3494
3494
|
mode: "production",
|
|
3495
3495
|
target: DEFAULT_TARGET,
|
|
3496
3496
|
generatePackageJson: true,
|
|
3497
|
-
outDir:
|
|
3497
|
+
outDir: _chunkTZYNIPUNjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3498
3498
|
minify: !debug,
|
|
3499
3499
|
plugins: [],
|
|
3500
3500
|
assets: [],
|
|
@@ -3506,12 +3506,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3506
3506
|
clean: false,
|
|
3507
3507
|
fixedExtension: true,
|
|
3508
3508
|
nodeProtocol: true,
|
|
3509
|
-
tsconfig:
|
|
3509
|
+
tsconfig: _chunkTZYNIPUNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3510
3510
|
debug,
|
|
3511
3511
|
sourceRoot,
|
|
3512
3512
|
cwd: workspaceConfig.workspaceRoot,
|
|
3513
3513
|
entry: {
|
|
3514
|
-
["index"]:
|
|
3514
|
+
["index"]: _chunkTZYNIPUNjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3515
3515
|
},
|
|
3516
3516
|
workspace: true,
|
|
3517
3517
|
...options,
|
|
@@ -3530,15 +3530,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3530
3530
|
return result;
|
|
3531
3531
|
};
|
|
3532
3532
|
async function generatePackageJson2(options) {
|
|
3533
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3533
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkTZYNIPUNjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3534
3534
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3535
3535
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3536
|
-
const packageJsonPath =
|
|
3536
|
+
const packageJsonPath = _chunkTZYNIPUNjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3537
3537
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3538
3538
|
throw new Error("Cannot find package.json configuration");
|
|
3539
3539
|
}
|
|
3540
3540
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3541
|
-
|
|
3541
|
+
_chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
3542
3542
|
options.workspaceConfig.workspaceRoot,
|
|
3543
3543
|
options.projectRoot,
|
|
3544
3544
|
"package.json"
|
|
@@ -3600,7 +3600,7 @@ async function generatePackageJson2(options) {
|
|
|
3600
3600
|
},
|
|
3601
3601
|
packageJson.exports
|
|
3602
3602
|
);
|
|
3603
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3603
|
+
await _devkit.writeJsonFile.call(void 0, _chunkTZYNIPUNjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3604
3604
|
stopwatch();
|
|
3605
3605
|
}
|
|
3606
3606
|
return options;
|
|
@@ -3733,7 +3733,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3733
3733
|
);
|
|
3734
3734
|
|
|
3735
3735
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3736
|
-
|
|
3736
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3737
3737
|
var _fsextra = require('fs-extra');
|
|
3738
3738
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3739
3739
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3773,7 +3773,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3773
3773
|
);
|
|
3774
3774
|
|
|
3775
3775
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3776
|
-
|
|
3776
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3777
3777
|
|
|
3778
3778
|
|
|
3779
3779
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3794,7 +3794,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3794
3794
|
);
|
|
3795
3795
|
}
|
|
3796
3796
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3797
|
-
fsCache: config.skipCache ? false :
|
|
3797
|
+
fsCache: config.skipCache ? false : _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
3798
3798
|
config.workspaceRoot,
|
|
3799
3799
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3800
3800
|
"jiti"
|
|
@@ -3816,7 +3816,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3816
3816
|
{
|
|
3817
3817
|
stubOptions: {
|
|
3818
3818
|
jiti: {
|
|
3819
|
-
fsCache: config.skipCache ? false :
|
|
3819
|
+
fsCache: config.skipCache ? false : _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
3820
3820
|
config.workspaceRoot,
|
|
3821
3821
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3822
3822
|
"jiti"
|
|
@@ -3865,10 +3865,10 @@ var executor_default11 = withRunExecutor(
|
|
|
3865
3865
|
);
|
|
3866
3866
|
|
|
3867
3867
|
// ../workspace-tools/generators.ts
|
|
3868
|
-
|
|
3868
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3869
3869
|
|
|
3870
3870
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3871
|
-
|
|
3871
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3872
3872
|
|
|
3873
3873
|
|
|
3874
3874
|
|
|
@@ -3877,7 +3877,7 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
3877
3877
|
|
|
3878
3878
|
|
|
3879
3879
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3880
|
-
|
|
3880
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3881
3881
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3882
3882
|
skipReadingConfig: false
|
|
3883
3883
|
}) => async (tree, _options) => {
|
|
@@ -3961,7 +3961,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3961
3961
|
};
|
|
3962
3962
|
|
|
3963
3963
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3964
|
-
|
|
3964
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3965
3965
|
|
|
3966
3966
|
|
|
3967
3967
|
|
|
@@ -3983,7 +3983,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3983
3983
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3984
3984
|
|
|
3985
3985
|
// ../workspace-tools/src/utils/versions.ts
|
|
3986
|
-
|
|
3986
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
3987
3987
|
var typesNodeVersion = "20.9.0";
|
|
3988
3988
|
var nxVersion = "^18.0.4";
|
|
3989
3989
|
var nodeVersion = "20.11.0";
|
|
@@ -4016,16 +4016,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4016
4016
|
const projectConfig = {
|
|
4017
4017
|
root: normalized.directory,
|
|
4018
4018
|
projectType: "library",
|
|
4019
|
-
sourceRoot:
|
|
4019
|
+
sourceRoot: _chunkTZYNIPUNjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
4020
4020
|
targets: {
|
|
4021
4021
|
build: {
|
|
4022
4022
|
executor: options.buildExecutor,
|
|
4023
4023
|
outputs: ["{options.outputPath}"],
|
|
4024
4024
|
options: {
|
|
4025
|
-
entry: [
|
|
4025
|
+
entry: [_chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
4026
4026
|
outputPath: getOutputPath(normalized),
|
|
4027
|
-
tsconfig:
|
|
4028
|
-
project:
|
|
4027
|
+
tsconfig: _chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4028
|
+
project: _chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
4029
4029
|
defaultConfiguration: "production",
|
|
4030
4030
|
platform: "neutral",
|
|
4031
4031
|
assets: [
|
|
@@ -4082,7 +4082,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4082
4082
|
if (!normalized.importPath) {
|
|
4083
4083
|
normalized.importPath = normalized.name;
|
|
4084
4084
|
}
|
|
4085
|
-
const packageJsonPath =
|
|
4085
|
+
const packageJsonPath = _chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4086
4086
|
if (tree.exists(packageJsonPath)) {
|
|
4087
4087
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4088
4088
|
if (!normalized.importPath) {
|
|
@@ -4139,14 +4139,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4139
4139
|
}));
|
|
4140
4140
|
}
|
|
4141
4141
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4142
|
-
|
|
4142
|
+
_chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
4143
4143
|
normalized.projectRoot,
|
|
4144
4144
|
"./src",
|
|
4145
4145
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4146
4146
|
)
|
|
4147
4147
|
]);
|
|
4148
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4149
|
-
|
|
4148
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4149
|
+
_chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4150
4150
|
]);
|
|
4151
4151
|
if (tree.exists("package.json")) {
|
|
4152
4152
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4157,7 +4157,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4157
4157
|
description = packageJson.description;
|
|
4158
4158
|
}
|
|
4159
4159
|
}
|
|
4160
|
-
const tsconfigPath =
|
|
4160
|
+
const tsconfigPath = _chunkTZYNIPUNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4161
4161
|
if (tree.exists(tsconfigPath)) {
|
|
4162
4162
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4163
4163
|
json.composite ??= true;
|
|
@@ -4185,7 +4185,7 @@ function getOutputPath(options) {
|
|
|
4185
4185
|
} else {
|
|
4186
4186
|
parts.push(options.projectRoot);
|
|
4187
4187
|
}
|
|
4188
|
-
return
|
|
4188
|
+
return _chunkTZYNIPUNjs.joinPaths.call(void 0, ...parts);
|
|
4189
4189
|
}
|
|
4190
4190
|
function createProjectTsConfigJson(tree, options) {
|
|
4191
4191
|
const tsconfig = {
|
|
@@ -4193,7 +4193,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4193
4193
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _209 => _209.tsconfigOptions]), () => ( {})),
|
|
4194
4194
|
compilerOptions: {
|
|
4195
4195
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4196
|
-
outDir:
|
|
4196
|
+
outDir: _chunkTZYNIPUNjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4197
4197
|
noEmit: true,
|
|
4198
4198
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _210 => _210.tsconfigOptions, 'optionalAccess', _211 => _211.compilerOptions]), () => ( {}))
|
|
4199
4199
|
},
|
|
@@ -4211,7 +4211,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4211
4211
|
"src/**/*.test.ts"
|
|
4212
4212
|
]
|
|
4213
4213
|
};
|
|
4214
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4214
|
+
_devkit.writeJson.call(void 0, tree, _chunkTZYNIPUNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4215
4215
|
}
|
|
4216
4216
|
async function normalizeOptions(tree, options, config) {
|
|
4217
4217
|
let importPath = options.importPath;
|
|
@@ -4276,7 +4276,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4276
4276
|
|
|
4277
4277
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4278
4278
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4279
|
-
const filesDir =
|
|
4279
|
+
const filesDir = _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
4280
4280
|
__dirname,
|
|
4281
4281
|
"src",
|
|
4282
4282
|
"generators",
|
|
@@ -4356,7 +4356,7 @@ var generator_default = withRunGenerator(
|
|
|
4356
4356
|
);
|
|
4357
4357
|
|
|
4358
4358
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4359
|
-
|
|
4359
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4360
4360
|
|
|
4361
4361
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
4362
4362
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -4413,7 +4413,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4413
4413
|
);
|
|
4414
4414
|
|
|
4415
4415
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4416
|
-
|
|
4416
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4417
4417
|
|
|
4418
4418
|
|
|
4419
4419
|
|
|
@@ -4441,7 +4441,7 @@ async function initGenerator(tree, schema) {
|
|
|
4441
4441
|
}
|
|
4442
4442
|
|
|
4443
4443
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4444
|
-
|
|
4444
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4445
4445
|
|
|
4446
4446
|
|
|
4447
4447
|
|
|
@@ -4449,7 +4449,7 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
4449
4449
|
|
|
4450
4450
|
|
|
4451
4451
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4452
|
-
const filesDir =
|
|
4452
|
+
const filesDir = _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
4453
4453
|
__dirname,
|
|
4454
4454
|
"src",
|
|
4455
4455
|
"generators",
|
|
@@ -4501,7 +4501,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4501
4501
|
);
|
|
4502
4502
|
|
|
4503
4503
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4504
|
-
|
|
4504
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4505
4505
|
|
|
4506
4506
|
|
|
4507
4507
|
|
|
@@ -4509,7 +4509,7 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
4509
4509
|
|
|
4510
4510
|
|
|
4511
4511
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4512
|
-
const filesDir =
|
|
4512
|
+
const filesDir = _chunkTZYNIPUNjs.joinPaths.call(void 0,
|
|
4513
4513
|
__dirname,
|
|
4514
4514
|
"src",
|
|
4515
4515
|
"generators",
|
|
@@ -4563,7 +4563,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4563
4563
|
);
|
|
4564
4564
|
|
|
4565
4565
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4566
|
-
|
|
4566
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4567
4567
|
|
|
4568
4568
|
|
|
4569
4569
|
|
|
@@ -4802,10 +4802,10 @@ var generator_default5 = withRunGenerator(
|
|
|
4802
4802
|
);
|
|
4803
4803
|
|
|
4804
4804
|
// ../workspace-tools/src/base/index.ts
|
|
4805
|
-
|
|
4805
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4806
4806
|
|
|
4807
4807
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4808
|
-
|
|
4808
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4809
4809
|
var _untyped = require('untyped');
|
|
4810
4810
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4811
4811
|
$schema: {
|
|
@@ -4825,7 +4825,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4825
4825
|
});
|
|
4826
4826
|
|
|
4827
4827
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4828
|
-
|
|
4828
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4829
4829
|
|
|
4830
4830
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4831
4831
|
$schema: {
|
|
@@ -4843,7 +4843,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4843
4843
|
});
|
|
4844
4844
|
|
|
4845
4845
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4846
|
-
|
|
4846
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4847
4847
|
|
|
4848
4848
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4849
4849
|
...base_executor_untyped_default,
|
|
@@ -4916,7 +4916,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4916
4916
|
});
|
|
4917
4917
|
|
|
4918
4918
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4919
|
-
|
|
4919
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
4920
4920
|
|
|
4921
4921
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4922
4922
|
...base_executor_untyped_default,
|
|
@@ -5068,7 +5068,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5068
5068
|
});
|
|
5069
5069
|
|
|
5070
5070
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5071
|
-
|
|
5071
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5072
5072
|
|
|
5073
5073
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5074
5074
|
...base_generator_untyped_default,
|
|
@@ -5174,42 +5174,42 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5174
5174
|
});
|
|
5175
5175
|
|
|
5176
5176
|
// ../workspace-tools/src/release/index.ts
|
|
5177
|
-
|
|
5177
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5178
5178
|
|
|
5179
5179
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5180
|
-
|
|
5180
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5181
5181
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5182
5182
|
|
|
5183
5183
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5184
|
-
|
|
5184
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5185
5185
|
|
|
5186
5186
|
|
|
5187
5187
|
|
|
5188
5188
|
var _release = require('nx/release');
|
|
5189
5189
|
|
|
5190
5190
|
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5191
|
-
|
|
5191
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5192
5192
|
|
|
5193
5193
|
|
|
5194
5194
|
// ../workspace-tools/src/types.ts
|
|
5195
|
-
|
|
5195
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5196
5196
|
|
|
5197
5197
|
// ../workspace-tools/src/utils/index.ts
|
|
5198
|
-
|
|
5198
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5199
5199
|
|
|
5200
5200
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5201
|
-
|
|
5201
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5202
5202
|
|
|
5203
5203
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5204
|
-
|
|
5204
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5205
5205
|
|
|
5206
5206
|
|
|
5207
5207
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5208
|
-
|
|
5208
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5209
5209
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5210
5210
|
|
|
5211
5211
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5212
|
-
|
|
5212
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5213
5213
|
|
|
5214
5214
|
|
|
5215
5215
|
|
|
@@ -5237,10 +5237,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5237
5237
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5238
5238
|
|
|
5239
5239
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5240
|
-
|
|
5240
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5241
5241
|
|
|
5242
5242
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5243
|
-
|
|
5243
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5244
5244
|
|
|
5245
5245
|
|
|
5246
5246
|
|
|
@@ -5249,7 +5249,7 @@ _chunkHJCZJA2Ljs.init_cjs_shims.call(void 0, );
|
|
|
5249
5249
|
|
|
5250
5250
|
|
|
5251
5251
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5252
|
-
|
|
5252
|
+
_chunkHIADY6L3js.init_cjs_shims.call(void 0, );
|
|
5253
5253
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5254
5254
|
|
|
5255
5255
|
// src/generators/init/generator.ts
|