@storm-software/projen 0.17.5 → 0.17.7
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 +16 -0
- package/README.md +2 -1
- package/dist/{chunk-PSFK3TZC.js → chunk-226ONKXC.js} +171 -281
- package/dist/{chunk-T5M4ABCY.js → chunk-2TBSZDNW.js} +2 -2
- package/dist/chunk-2WCHH6IV.js +6 -0
- package/dist/{chunk-GXIBAQMG.js → chunk-37J2KEVT.js} +4 -11
- package/dist/{chunk-C42WXJA6.mjs → chunk-55XBRCWI.mjs} +13 -123
- package/dist/{chunk-XA3WJ72R.js → chunk-D5CEJTO6.js} +3 -3
- package/dist/{chunk-ZMLKZI63.mjs → chunk-GS4GNLWW.mjs} +1 -1
- package/dist/{chunk-CLAG7EDA.mjs → chunk-LZQQ3L4A.mjs} +3 -10
- package/dist/{chunk-4UIWECUP.mjs → chunk-T5B2K4HP.mjs} +1 -1
- package/dist/{chunk-WLUA54JG.mjs → chunk-WSEZ5CQM.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 +6 -6
- package/dist/chunk-NQ7A2AQW.js +0 -6
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2TBSZDNWjs = require('./chunk-2TBSZDNW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
var _chunkGXIBAQMGjs = require('./chunk-GXIBAQMG.js');
|
|
7
|
+
var _chunk37J2KEVTjs = require('./chunk-37J2KEVT.js');
|
|
9
8
|
|
|
10
9
|
// src/generators/init/generator.ts
|
|
11
|
-
|
|
10
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
|
|
@@ -17,27 +16,27 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
17
16
|
var _devkit = require('@nx/devkit');
|
|
18
17
|
|
|
19
18
|
// ../workspace-tools/index.ts
|
|
20
|
-
|
|
19
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
21
20
|
|
|
22
21
|
// ../workspace-tools/executors.ts
|
|
23
|
-
|
|
22
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
24
23
|
|
|
25
24
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
26
|
-
|
|
25
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
27
26
|
|
|
28
27
|
// ../workspace-tools/src/base/base-executor.ts
|
|
29
|
-
|
|
28
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
30
29
|
|
|
31
30
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
32
|
-
|
|
31
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
33
32
|
var _c12 = require('c12');
|
|
34
33
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
35
34
|
|
|
36
35
|
// ../config-tools/src/logger/console.ts
|
|
37
|
-
|
|
36
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
38
37
|
|
|
39
38
|
// ../config-tools/src/types.ts
|
|
40
|
-
|
|
39
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
41
40
|
var LogLevel = {
|
|
42
41
|
SILENT: 0,
|
|
43
42
|
FATAL: 10,
|
|
@@ -62,7 +61,7 @@ var LogLevelLabel = {
|
|
|
62
61
|
};
|
|
63
62
|
|
|
64
63
|
// ../config-tools/src/utilities/colors.ts
|
|
65
|
-
|
|
64
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
66
65
|
var DEFAULT_COLOR_CONFIG = {
|
|
67
66
|
light: {
|
|
68
67
|
background: "#fafafa",
|
|
@@ -99,7 +98,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
99
98
|
};
|
|
100
99
|
|
|
101
100
|
// ../config-tools/src/logger/chalk.ts
|
|
102
|
-
|
|
101
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
103
102
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
104
103
|
var chalkDefault = {
|
|
105
104
|
hex: (_) => (message) => message,
|
|
@@ -133,10 +132,10 @@ var getChalk = () => {
|
|
|
133
132
|
};
|
|
134
133
|
|
|
135
134
|
// ../config-tools/src/logger/console-icons.ts
|
|
136
|
-
|
|
135
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
137
136
|
|
|
138
137
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
139
|
-
|
|
138
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
140
139
|
function isUnicodeSupported() {
|
|
141
140
|
if (process.platform !== "win32") {
|
|
142
141
|
return process.env.TERM !== "linux";
|
|
@@ -161,13 +160,13 @@ var CONSOLE_ICONS = {
|
|
|
161
160
|
};
|
|
162
161
|
|
|
163
162
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
164
|
-
|
|
163
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
165
164
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
166
165
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
167
166
|
};
|
|
168
167
|
|
|
169
168
|
// ../config-tools/src/logger/get-log-level.ts
|
|
170
|
-
|
|
169
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
171
170
|
var getLogLevel = (label) => {
|
|
172
171
|
switch (label) {
|
|
173
172
|
case "all":
|
|
@@ -343,15 +342,15 @@ var _isFunction = (value) => {
|
|
|
343
342
|
};
|
|
344
343
|
|
|
345
344
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
346
|
-
|
|
345
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
347
346
|
|
|
348
347
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
349
|
-
|
|
348
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
350
349
|
|
|
351
350
|
// ../config-tools/src/utilities/find-up.ts
|
|
352
|
-
|
|
351
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
353
352
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
354
|
-
var _path = require('path'); var
|
|
353
|
+
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
355
354
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
356
355
|
var depth = 0;
|
|
357
356
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
@@ -417,11 +416,11 @@ var rootDirectories = [
|
|
|
417
416
|
];
|
|
418
417
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
419
418
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
420
|
-
return
|
|
419
|
+
return _chunk2TBSZDNWjs.correctPaths.call(void 0,
|
|
421
420
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
422
421
|
);
|
|
423
422
|
}
|
|
424
|
-
return
|
|
423
|
+
return _chunk2TBSZDNWjs.correctPaths.call(void 0,
|
|
425
424
|
findFolderUp(
|
|
426
425
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
427
426
|
rootFiles,
|
|
@@ -516,13 +515,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
516
515
|
};
|
|
517
516
|
|
|
518
517
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
519
|
-
|
|
518
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
520
519
|
|
|
521
520
|
// ../config/src/index.ts
|
|
522
|
-
|
|
521
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
523
522
|
|
|
524
523
|
// ../config/src/constants.ts
|
|
525
|
-
|
|
524
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
526
525
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
527
526
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
528
527
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -541,10 +540,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
541
540
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
542
541
|
|
|
543
542
|
// ../config/src/define-config.ts
|
|
544
|
-
|
|
543
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
545
544
|
|
|
546
545
|
// ../config/src/schema.ts
|
|
547
|
-
|
|
546
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
548
547
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
549
548
|
var schemaRegistry = z.registry();
|
|
550
549
|
var colorSchema = z.string().check(
|
|
@@ -1091,7 +1090,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1091
1090
|
});
|
|
1092
1091
|
|
|
1093
1092
|
// ../config/src/types.ts
|
|
1094
|
-
|
|
1093
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
1095
1094
|
var COLOR_KEYS = [
|
|
1096
1095
|
"dark",
|
|
1097
1096
|
"light",
|
|
@@ -1124,7 +1123,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1124
1123
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
1125
1124
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
1126
1125
|
const file = await _promises.readFile.call(void 0,
|
|
1127
|
-
|
|
1126
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
1128
1127
|
"utf8"
|
|
1129
1128
|
);
|
|
1130
1129
|
if (file) {
|
|
@@ -1208,7 +1207,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1208
1207
|
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
1209
1208
|
jitiOptions: {
|
|
1210
1209
|
debug: false,
|
|
1211
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1210
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
1212
1211
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1213
1212
|
"jiti"
|
|
1214
1213
|
)
|
|
@@ -1222,7 +1221,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1222
1221
|
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
1223
1222
|
jitiOptions: {
|
|
1224
1223
|
debug: false,
|
|
1225
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1224
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
1226
1225
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1227
1226
|
"jiti"
|
|
1228
1227
|
)
|
|
@@ -1274,11 +1273,11 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1274
1273
|
};
|
|
1275
1274
|
|
|
1276
1275
|
// ../config-tools/src/create-storm-config.ts
|
|
1277
|
-
|
|
1276
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
1278
1277
|
|
|
1279
1278
|
|
|
1280
1279
|
// ../config-tools/src/env/get-env.ts
|
|
1281
|
-
|
|
1280
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
1282
1281
|
var getExtensionEnv = (extensionName) => {
|
|
1283
1282
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1284
1283
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1339,15 +1338,15 @@ var getConfigEnv = () => {
|
|
|
1339
1338
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1340
1339
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1341
1340
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1342
|
-
configFile: process.env[`${prefix}
|
|
1343
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1341
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1342
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1344
1343
|
directories: {
|
|
1345
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1346
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1347
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1348
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1349
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1350
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1344
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1345
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1346
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1347
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1348
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1349
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunk2TBSZDNWjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1351
1350
|
},
|
|
1352
1351
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1353
1352
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1402,7 +1401,7 @@ var getConfigEnv = () => {
|
|
|
1402
1401
|
config.licensing = `${config.homepage}/docs`;
|
|
1403
1402
|
}
|
|
1404
1403
|
}
|
|
1405
|
-
const serializedConfig = process.env[`${prefix}
|
|
1404
|
+
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1406
1405
|
if (serializedConfig) {
|
|
1407
1406
|
const parsed = JSON.parse(serializedConfig);
|
|
1408
1407
|
config = {
|
|
@@ -1490,7 +1489,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1490
1489
|
};
|
|
1491
1490
|
|
|
1492
1491
|
// ../config-tools/src/env/set-env.ts
|
|
1493
|
-
|
|
1492
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
1494
1493
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1495
1494
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1496
1495
|
if (extension[key]) {
|
|
@@ -1635,40 +1634,42 @@ var setConfigEnv = (config) => {
|
|
|
1635
1634
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1636
1635
|
}
|
|
1637
1636
|
if (config.configFile) {
|
|
1638
|
-
process.env[`${prefix}
|
|
1637
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunk2TBSZDNWjs.correctPaths.call(void 0,
|
|
1638
|
+
config.configFile
|
|
1639
|
+
);
|
|
1639
1640
|
}
|
|
1640
1641
|
if (config.workspaceRoot) {
|
|
1641
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1642
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1643
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1642
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk2TBSZDNWjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1643
|
+
process.env.NX_WORKSPACE_ROOT = _chunk2TBSZDNWjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1644
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk2TBSZDNWjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1644
1645
|
}
|
|
1645
1646
|
if (config.directories) {
|
|
1646
1647
|
if (!config.skipCache && config.directories.cache) {
|
|
1647
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1648
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk2TBSZDNWjs.correctPaths.call(void 0,
|
|
1648
1649
|
config.directories.cache
|
|
1649
1650
|
);
|
|
1650
1651
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1651
1652
|
}
|
|
1652
1653
|
if (config.directories.data) {
|
|
1653
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1654
|
+
process.env[`${prefix}DATA_DIR`] = _chunk2TBSZDNWjs.correctPaths.call(void 0, config.directories.data);
|
|
1654
1655
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1655
1656
|
}
|
|
1656
1657
|
if (config.directories.config) {
|
|
1657
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1658
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk2TBSZDNWjs.correctPaths.call(void 0,
|
|
1658
1659
|
config.directories.config
|
|
1659
1660
|
);
|
|
1660
1661
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1661
1662
|
}
|
|
1662
1663
|
if (config.directories.temp) {
|
|
1663
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1664
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk2TBSZDNWjs.correctPaths.call(void 0, config.directories.temp);
|
|
1664
1665
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1665
1666
|
}
|
|
1666
1667
|
if (config.directories.log) {
|
|
1667
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1668
|
+
process.env[`${prefix}LOG_DIR`] = _chunk2TBSZDNWjs.correctPaths.call(void 0, config.directories.log);
|
|
1668
1669
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1669
1670
|
}
|
|
1670
1671
|
if (config.directories.build) {
|
|
1671
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1672
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk2TBSZDNWjs.correctPaths.call(void 0,
|
|
1672
1673
|
config.directories.build
|
|
1673
1674
|
);
|
|
1674
1675
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1739,7 +1740,7 @@ var setConfigEnv = (config) => {
|
|
|
1739
1740
|
config.skipConfigLogging
|
|
1740
1741
|
);
|
|
1741
1742
|
}
|
|
1742
|
-
process.env[`${prefix}
|
|
1743
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1743
1744
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1744
1745
|
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1745
1746
|
setExtensionEnv(key, config.extensions[key]);
|
|
@@ -1947,7 +1948,7 @@ ${formatLogMessage(config)}`,
|
|
|
1947
1948
|
};
|
|
1948
1949
|
|
|
1949
1950
|
// ../config-tools/src/get-config.ts
|
|
1950
|
-
|
|
1951
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
1951
1952
|
var getConfig = (workspaceRoot3, skipLogs = false) => {
|
|
1952
1953
|
return loadStormWorkspaceConfig(workspaceRoot3, skipLogs);
|
|
1953
1954
|
};
|
|
@@ -2082,7 +2083,7 @@ var _isFunction2 = (value) => {
|
|
|
2082
2083
|
};
|
|
2083
2084
|
|
|
2084
2085
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2085
|
-
|
|
2086
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2086
2087
|
|
|
2087
2088
|
|
|
2088
2089
|
|
|
@@ -2220,7 +2221,7 @@ var executor_default = withRunExecutor(
|
|
|
2220
2221
|
);
|
|
2221
2222
|
|
|
2222
2223
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2223
|
-
|
|
2224
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2224
2225
|
async function cargoCheckExecutor(options, context) {
|
|
2225
2226
|
const command = buildCargoCommand("check", options, context);
|
|
2226
2227
|
return await cargoCommand(...command);
|
|
@@ -2240,7 +2241,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2240
2241
|
);
|
|
2241
2242
|
|
|
2242
2243
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2243
|
-
|
|
2244
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2244
2245
|
async function cargoClippyExecutor(options, context) {
|
|
2245
2246
|
const command = buildCargoCommand("clippy", options, context);
|
|
2246
2247
|
return await cargoCommand(...command);
|
|
@@ -2261,7 +2262,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2261
2262
|
);
|
|
2262
2263
|
|
|
2263
2264
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2264
|
-
|
|
2265
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2265
2266
|
async function cargoDocExecutor(options, context) {
|
|
2266
2267
|
const opts = { ...options };
|
|
2267
2268
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2291,7 +2292,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2291
2292
|
);
|
|
2292
2293
|
|
|
2293
2294
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2294
|
-
|
|
2295
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2295
2296
|
async function cargoFormatExecutor(options, context) {
|
|
2296
2297
|
const command = buildCargoCommand("fmt", options, context);
|
|
2297
2298
|
return await cargoCommand(...command);
|
|
@@ -2312,7 +2313,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2312
2313
|
);
|
|
2313
2314
|
|
|
2314
2315
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2315
|
-
|
|
2316
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2316
2317
|
|
|
2317
2318
|
|
|
2318
2319
|
|
|
@@ -2320,21 +2321,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2320
2321
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2321
2322
|
|
|
2322
2323
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2323
|
-
|
|
2324
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2324
2325
|
|
|
2325
2326
|
// ../esbuild/src/build.ts
|
|
2326
|
-
|
|
2327
|
-
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
2328
|
-
var _globby = require('globby');
|
|
2327
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2329
2328
|
|
|
2330
2329
|
// ../esbuild/src/assets.ts
|
|
2331
|
-
|
|
2330
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2332
2331
|
|
|
2333
2332
|
// ../build-tools/src/index.ts
|
|
2334
|
-
|
|
2333
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2335
2334
|
|
|
2336
2335
|
// ../build-tools/src/config.ts
|
|
2337
|
-
|
|
2336
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2338
2337
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
2339
2338
|
*
|
|
2340
2339
|
* \u26A1 Built by Storm Software
|
|
@@ -2345,35 +2344,35 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
2345
2344
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2346
2345
|
|
|
2347
2346
|
// ../build-tools/src/plugins/index.ts
|
|
2348
|
-
|
|
2347
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2349
2348
|
|
|
2350
2349
|
// ../build-tools/src/plugins/analyze.ts
|
|
2351
|
-
|
|
2350
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2352
2351
|
|
|
2353
2352
|
// ../build-tools/src/plugins/swc.ts
|
|
2354
|
-
|
|
2353
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2355
2354
|
var _core = require('@swc/core');
|
|
2356
2355
|
|
|
2357
2356
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2358
|
-
|
|
2357
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2359
2358
|
|
|
2360
2359
|
var _module = require('module');
|
|
2361
2360
|
|
|
2362
2361
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2363
2362
|
|
|
2364
2363
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2365
|
-
|
|
2364
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2366
2365
|
|
|
2367
2366
|
|
|
2368
2367
|
|
|
2369
2368
|
// ../build-tools/src/types.ts
|
|
2370
|
-
|
|
2369
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2371
2370
|
|
|
2372
2371
|
// ../build-tools/src/utilities/index.ts
|
|
2373
|
-
|
|
2372
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2374
2373
|
|
|
2375
2374
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2376
|
-
|
|
2375
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2377
2376
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2378
2377
|
var _glob = require('glob');
|
|
2379
2378
|
|
|
@@ -2405,7 +2404,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2405
2404
|
}
|
|
2406
2405
|
writeTrace(
|
|
2407
2406
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2408
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2407
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk2TBSZDNWjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2409
2408
|
config
|
|
2410
2409
|
);
|
|
2411
2410
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2418,17 +2417,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2418
2417
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2419
2418
|
if (includeSrc === true) {
|
|
2420
2419
|
writeDebug(
|
|
2421
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2420
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2422
2421
|
outputPath,
|
|
2423
2422
|
"src"
|
|
2424
2423
|
)}`,
|
|
2425
2424
|
config
|
|
2426
2425
|
);
|
|
2427
2426
|
const files = await _glob.glob.call(void 0, [
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2427
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2428
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2429
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2430
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2432
2431
|
]);
|
|
2433
2432
|
await Promise.allSettled(
|
|
2434
2433
|
files.map(
|
|
@@ -2446,7 +2445,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2446
2445
|
};
|
|
2447
2446
|
|
|
2448
2447
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2449
|
-
|
|
2448
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2450
2449
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2451
2450
|
|
|
2452
2451
|
|
|
@@ -2484,7 +2483,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2484
2483
|
)) {
|
|
2485
2484
|
const projectNode = project.node;
|
|
2486
2485
|
if (projectNode.data.root) {
|
|
2487
|
-
const projectPackageJsonPath =
|
|
2486
|
+
const projectPackageJsonPath = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2488
2487
|
workspaceRoot3,
|
|
2489
2488
|
projectNode.data.root,
|
|
2490
2489
|
"package.json"
|
|
@@ -2506,7 +2505,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2506
2505
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2507
2506
|
);
|
|
2508
2507
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2509
|
-
|
|
2508
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2510
2509
|
"utf8"
|
|
2511
2510
|
);
|
|
2512
2511
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2519,7 +2518,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2519
2518
|
}
|
|
2520
2519
|
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) => {
|
|
2521
2520
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2522
|
-
const depPackageJsonPath =
|
|
2521
|
+
const depPackageJsonPath = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2523
2522
|
workspaceRoot3,
|
|
2524
2523
|
projectConfigurations.projects[dep].root,
|
|
2525
2524
|
"package.json"
|
|
@@ -2557,7 +2556,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2557
2556
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2558
2557
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2559
2558
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2560
|
-
|
|
2559
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
2561
2560
|
"utf8"
|
|
2562
2561
|
);
|
|
2563
2562
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2568,7 +2567,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2568
2567
|
if (distSrc.startsWith("/")) {
|
|
2569
2568
|
distSrc = distSrc.substring(1);
|
|
2570
2569
|
}
|
|
2571
|
-
packageJson.source ??= `${
|
|
2570
|
+
packageJson.source ??= `${_chunk2TBSZDNWjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2572
2571
|
}
|
|
2573
2572
|
packageJson.files ??= ["dist/**/*"];
|
|
2574
2573
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2593,16 +2592,16 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2593
2592
|
packageJson.contributors = [packageJson.author];
|
|
2594
2593
|
}
|
|
2595
2594
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2596
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2595
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk2TBSZDNWjs.joinPaths.call(void 0, "packages", projectName);
|
|
2597
2596
|
return packageJson;
|
|
2598
2597
|
};
|
|
2599
2598
|
|
|
2600
2599
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2601
|
-
|
|
2600
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2602
2601
|
|
|
2603
2602
|
|
|
2604
2603
|
// ../build-tools/src/utilities/get-env.ts
|
|
2605
|
-
|
|
2604
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2606
2605
|
var getEnv = (builder, options) => {
|
|
2607
2606
|
return {
|
|
2608
2607
|
STORM_BUILD: builder,
|
|
@@ -2617,21 +2616,21 @@ var getEnv = (builder, options) => {
|
|
|
2617
2616
|
};
|
|
2618
2617
|
|
|
2619
2618
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2620
|
-
|
|
2619
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2621
2620
|
|
|
2622
2621
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2623
|
-
|
|
2622
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2624
2623
|
|
|
2625
2624
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2626
|
-
|
|
2625
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2627
2626
|
|
|
2628
2627
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2629
|
-
|
|
2628
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2630
2629
|
|
|
2631
2630
|
|
|
2632
2631
|
|
|
2633
2632
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2634
|
-
|
|
2633
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2635
2634
|
|
|
2636
2635
|
|
|
2637
2636
|
|
|
@@ -2660,14 +2659,14 @@ async function copyBuildAssets(context) {
|
|
|
2660
2659
|
}
|
|
2661
2660
|
|
|
2662
2661
|
// ../esbuild/src/clean.ts
|
|
2663
|
-
|
|
2662
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2664
2663
|
|
|
2665
2664
|
async function cleanDirectories(directory) {
|
|
2666
2665
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2667
2666
|
}
|
|
2668
2667
|
|
|
2669
2668
|
// ../esbuild/src/context.ts
|
|
2670
|
-
|
|
2669
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2671
2670
|
|
|
2672
2671
|
|
|
2673
2672
|
|
|
@@ -2678,7 +2677,7 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
2678
2677
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2679
2678
|
|
|
2680
2679
|
// ../esbuild/src/config.ts
|
|
2681
|
-
|
|
2680
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2682
2681
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2683
2682
|
platform: "node",
|
|
2684
2683
|
target: "node22",
|
|
@@ -2736,7 +2735,7 @@ async function resolveContext(userOptions) {
|
|
|
2736
2735
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2737
2736
|
exitOnError: true
|
|
2738
2737
|
});
|
|
2739
|
-
const projectJsonPath =
|
|
2738
|
+
const projectJsonPath = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2740
2739
|
workspaceRoot3.dir,
|
|
2741
2740
|
projectRoot,
|
|
2742
2741
|
"project.json"
|
|
@@ -2755,7 +2754,7 @@ async function resolveContext(userOptions) {
|
|
|
2755
2754
|
}
|
|
2756
2755
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2757
2756
|
options.name ??= projectName;
|
|
2758
|
-
const packageJsonPath =
|
|
2757
|
+
const packageJsonPath = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2759
2758
|
workspaceRoot3.dir,
|
|
2760
2759
|
options.projectRoot,
|
|
2761
2760
|
"package.json"
|
|
@@ -2767,7 +2766,7 @@ async function resolveContext(userOptions) {
|
|
|
2767
2766
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2768
2767
|
const resolvedOptions = {
|
|
2769
2768
|
...options,
|
|
2770
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2769
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk2TBSZDNWjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2771
2770
|
metafile: userOptions.mode === "development",
|
|
2772
2771
|
clean: false,
|
|
2773
2772
|
env,
|
|
@@ -2792,8 +2791,8 @@ async function resolveContext(userOptions) {
|
|
|
2792
2791
|
projectConfigurations,
|
|
2793
2792
|
projectName,
|
|
2794
2793
|
projectGraph,
|
|
2795
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2796
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2794
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk2TBSZDNWjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2795
|
+
outputPath: resolvedOptions.outputPath || _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2797
2796
|
workspaceConfig.workspaceRoot,
|
|
2798
2797
|
"dist",
|
|
2799
2798
|
resolvedOptions.projectRoot
|
|
@@ -2813,15 +2812,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2813
2812
|
}
|
|
2814
2813
|
|
|
2815
2814
|
// ../esbuild/src/package-json.ts
|
|
2816
|
-
|
|
2815
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
2817
2816
|
|
|
2818
2817
|
|
|
2819
2818
|
|
|
2820
2819
|
async function generatePackageJson(context) {
|
|
2821
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2820
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk2TBSZDNWjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2822
2821
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2823
2822
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2824
|
-
const packageJsonPath =
|
|
2823
|
+
const packageJsonPath = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2825
2824
|
context.options.projectRoot,
|
|
2826
2825
|
"project.json"
|
|
2827
2826
|
);
|
|
@@ -2829,7 +2828,7 @@ async function generatePackageJson(context) {
|
|
|
2829
2828
|
throw new Error("Cannot find package.json configuration");
|
|
2830
2829
|
}
|
|
2831
2830
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2832
|
-
|
|
2831
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
2833
2832
|
context.workspaceConfig.workspaceRoot,
|
|
2834
2833
|
context.options.projectRoot,
|
|
2835
2834
|
"package.json"
|
|
@@ -2935,7 +2934,7 @@ async function generatePackageJson(context) {
|
|
|
2935
2934
|
}
|
|
2936
2935
|
}
|
|
2937
2936
|
await _devkit.writeJsonFile.call(void 0,
|
|
2938
|
-
|
|
2937
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2939
2938
|
packageJson
|
|
2940
2939
|
);
|
|
2941
2940
|
stopwatch();
|
|
@@ -2943,91 +2942,8 @@ async function generatePackageJson(context) {
|
|
|
2943
2942
|
return context;
|
|
2944
2943
|
}
|
|
2945
2944
|
|
|
2946
|
-
// ../esbuild/src/plugins/deps-check.ts
|
|
2947
|
-
_chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
var unusedIgnore = [
|
|
2951
|
-
// these are our dev dependencies
|
|
2952
|
-
/@types\/.*?/,
|
|
2953
|
-
/@typescript-eslint.*?/,
|
|
2954
|
-
/eslint.*?/,
|
|
2955
|
-
"esbuild",
|
|
2956
|
-
"husky",
|
|
2957
|
-
"is-ci",
|
|
2958
|
-
"lint-staged",
|
|
2959
|
-
"prettier",
|
|
2960
|
-
"typescript",
|
|
2961
|
-
"ts-node",
|
|
2962
|
-
"ts-jest",
|
|
2963
|
-
"@swc/core",
|
|
2964
|
-
"@swc/jest",
|
|
2965
|
-
"jest",
|
|
2966
|
-
// these are missing 3rd party deps
|
|
2967
|
-
"spdx-exceptions",
|
|
2968
|
-
"spdx-license-ids",
|
|
2969
|
-
// type-only, so it is not detected
|
|
2970
|
-
"ts-toolbelt",
|
|
2971
|
-
// these are indirectly used by build
|
|
2972
|
-
"buffer"
|
|
2973
|
-
];
|
|
2974
|
-
var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
2975
|
-
var depsCheckPlugin = (bundle) => ({
|
|
2976
|
-
name: "storm:deps-check",
|
|
2977
|
-
setup(build3) {
|
|
2978
|
-
const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
|
|
2979
|
-
const pkgContents = _chunkGXIBAQMGjs.__require.call(void 0, pkgJsonPath);
|
|
2980
|
-
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2981
|
-
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2982
|
-
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
2983
|
-
const dependencies = [
|
|
2984
|
-
...regDependencies,
|
|
2985
|
-
...bundle ? devDependencies : []
|
|
2986
|
-
];
|
|
2987
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
2988
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
2989
|
-
build3.onResolve({ filter: onlyPackages }, (args) => {
|
|
2990
|
-
if (args.importer.includes(process.cwd())) {
|
|
2991
|
-
if (args.path[0] === "@") {
|
|
2992
|
-
const [org, pkg] = args.path.split("/");
|
|
2993
|
-
collectedDependencies.add(`${org}/${pkg}`);
|
|
2994
|
-
} else {
|
|
2995
|
-
const [pkg] = args.path.split("/");
|
|
2996
|
-
collectedDependencies.add(pkg);
|
|
2997
|
-
}
|
|
2998
|
-
}
|
|
2999
|
-
return { external: true };
|
|
3000
|
-
});
|
|
3001
|
-
build3.onEnd(() => {
|
|
3002
|
-
const unusedDependencies = [...dependencies].filter((dep) => {
|
|
3003
|
-
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
3004
|
-
});
|
|
3005
|
-
const missingDependencies = [...collectedDependencies].filter((dep) => {
|
|
3006
|
-
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
3007
|
-
});
|
|
3008
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
3009
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
3010
|
-
});
|
|
3011
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
3012
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
3013
|
-
});
|
|
3014
|
-
writeWarning(
|
|
3015
|
-
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
3016
|
-
);
|
|
3017
|
-
writeError(
|
|
3018
|
-
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
3019
|
-
);
|
|
3020
|
-
if (filteredMissingDeps.length > 0) {
|
|
3021
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
3022
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
3023
|
-
`);
|
|
3024
|
-
}
|
|
3025
|
-
});
|
|
3026
|
-
}
|
|
3027
|
-
});
|
|
3028
|
-
|
|
3029
2945
|
// ../esbuild/src/tsup.ts
|
|
3030
|
-
|
|
2946
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3031
2947
|
var _tsup = require('tsup');
|
|
3032
2948
|
async function executeTsup(context) {
|
|
3033
2949
|
writeDebug(
|
|
@@ -3037,7 +2953,7 @@ async function executeTsup(context) {
|
|
|
3037
2953
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3038
2954
|
await _tsup.build.call(void 0, {
|
|
3039
2955
|
...context.options,
|
|
3040
|
-
outDir: context.options.distDir ?
|
|
2956
|
+
outDir: context.options.distDir ? _chunk2TBSZDNWjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3041
2957
|
workspaceConfig: context.workspaceConfig
|
|
3042
2958
|
});
|
|
3043
2959
|
stopwatch();
|
|
@@ -3067,32 +2983,6 @@ async function reportResults(context) {
|
|
|
3067
2983
|
);
|
|
3068
2984
|
}
|
|
3069
2985
|
}
|
|
3070
|
-
async function dependencyCheck(options) {
|
|
3071
|
-
if (process.env.DEV === "true") {
|
|
3072
|
-
return void 0;
|
|
3073
|
-
}
|
|
3074
|
-
if (process.env.CI && !process.env.BUILDKITE) {
|
|
3075
|
-
return void 0;
|
|
3076
|
-
}
|
|
3077
|
-
const buildPromise = esbuild.build({
|
|
3078
|
-
entryPoints: _globby.globbySync.call(void 0, "**/*.{j,t}s", {
|
|
3079
|
-
// We don't check dependencies in ecosystem tests because tests are isolated from the build.
|
|
3080
|
-
ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
|
|
3081
|
-
gitignore: true
|
|
3082
|
-
}),
|
|
3083
|
-
logLevel: "silent",
|
|
3084
|
-
// there will be errors
|
|
3085
|
-
bundle: true,
|
|
3086
|
-
// we bundle to get everything
|
|
3087
|
-
write: false,
|
|
3088
|
-
// no need to write for analysis
|
|
3089
|
-
outdir: "out",
|
|
3090
|
-
plugins: [depsCheckPlugin(options.bundle)]
|
|
3091
|
-
});
|
|
3092
|
-
await buildPromise.catch(() => {
|
|
3093
|
-
});
|
|
3094
|
-
return void 0;
|
|
3095
|
-
}
|
|
3096
2986
|
async function cleanOutputPath(context) {
|
|
3097
2987
|
if (context.clean !== false && context.outputPath) {
|
|
3098
2988
|
writeDebug(
|
|
@@ -3105,7 +2995,7 @@ async function cleanOutputPath(context) {
|
|
|
3105
2995
|
}
|
|
3106
2996
|
return context;
|
|
3107
2997
|
}
|
|
3108
|
-
async function
|
|
2998
|
+
async function build(options) {
|
|
3109
2999
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
3110
3000
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
3111
3001
|
try {
|
|
@@ -3116,7 +3006,7 @@ async function build2(options) {
|
|
|
3116
3006
|
const context = await resolveContext(options);
|
|
3117
3007
|
await cleanOutputPath(context);
|
|
3118
3008
|
await Promise.all([
|
|
3119
|
-
dependencyCheck(context.options),
|
|
3009
|
+
// dependencyCheck(context.options),
|
|
3120
3010
|
generatePackageJson(context),
|
|
3121
3011
|
copyBuildAssets(context),
|
|
3122
3012
|
executeTsup(context)
|
|
@@ -3141,7 +3031,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
3141
3031
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3142
3032
|
);
|
|
3143
3033
|
}
|
|
3144
|
-
await
|
|
3034
|
+
await build({
|
|
3145
3035
|
...options,
|
|
3146
3036
|
projectRoot: _optionalChain([context, 'access', _134 => _134.projectsConfigurations, 'access', _135 => _135.projects, 'optionalAccess', _136 => _136[context.projectName], 'access', _137 => _137.root]),
|
|
3147
3037
|
name: context.projectName,
|
|
@@ -3170,13 +3060,13 @@ var executor_default6 = withRunExecutor(
|
|
|
3170
3060
|
);
|
|
3171
3061
|
|
|
3172
3062
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3173
|
-
|
|
3063
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3174
3064
|
|
|
3175
3065
|
|
|
3176
3066
|
var _prettier = require('prettier');
|
|
3177
3067
|
|
|
3178
3068
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3179
|
-
|
|
3069
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3180
3070
|
|
|
3181
3071
|
|
|
3182
3072
|
|
|
@@ -3188,7 +3078,7 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
3188
3078
|
|
|
3189
3079
|
|
|
3190
3080
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3191
|
-
|
|
3081
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3192
3082
|
var ProjectTagConstants = {
|
|
3193
3083
|
Language: {
|
|
3194
3084
|
TAG_ID: "language",
|
|
@@ -3249,7 +3139,7 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3249
3139
|
};
|
|
3250
3140
|
|
|
3251
3141
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
3252
|
-
|
|
3142
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3253
3143
|
|
|
3254
3144
|
|
|
3255
3145
|
|
|
@@ -3263,9 +3153,9 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
3263
3153
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3264
3154
|
|
|
3265
3155
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3266
|
-
|
|
3156
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3267
3157
|
|
|
3268
|
-
var
|
|
3158
|
+
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3269
3159
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
3270
3160
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3271
3161
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
@@ -3276,7 +3166,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
3276
3166
|
);
|
|
3277
3167
|
}
|
|
3278
3168
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
3279
|
-
_sizelimit2.default.call(void 0, [_file2.default,
|
|
3169
|
+
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
3280
3170
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _145 => _145.projectsConfigurations, 'access', _146 => _146.projects, 'access', _147 => _147[context.projectName], 'optionalAccess', _148 => _148.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
3281
3171
|
_nullishCoalesce(_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context.projectName], 'optionalAccess', _152 => _152.root]), () => ( "./")),
|
|
3282
3172
|
"src"
|
|
@@ -3305,7 +3195,7 @@ var executor_default7 = withRunExecutor(
|
|
|
3305
3195
|
);
|
|
3306
3196
|
|
|
3307
3197
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3308
|
-
|
|
3198
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3309
3199
|
var _fsextra = require('fs-extra');
|
|
3310
3200
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3311
3201
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3345,7 +3235,7 @@ var executor_default8 = withRunExecutor(
|
|
|
3345
3235
|
);
|
|
3346
3236
|
|
|
3347
3237
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3348
|
-
|
|
3238
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3349
3239
|
|
|
3350
3240
|
var _jiti = require('jiti');
|
|
3351
3241
|
async function unbuildExecutorFn(options, context, config) {
|
|
@@ -3366,7 +3256,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3366
3256
|
);
|
|
3367
3257
|
}
|
|
3368
3258
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3369
|
-
fsCache: config.skipCache ? false :
|
|
3259
|
+
fsCache: config.skipCache ? false : _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
3370
3260
|
config.workspaceRoot,
|
|
3371
3261
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3372
3262
|
"jiti"
|
|
@@ -3388,7 +3278,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3388
3278
|
{
|
|
3389
3279
|
stubOptions: {
|
|
3390
3280
|
jiti: {
|
|
3391
|
-
fsCache: config.skipCache ? false :
|
|
3281
|
+
fsCache: config.skipCache ? false : _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
3392
3282
|
config.workspaceRoot,
|
|
3393
3283
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3394
3284
|
"jiti"
|
|
@@ -3437,10 +3327,10 @@ var executor_default9 = withRunExecutor(
|
|
|
3437
3327
|
);
|
|
3438
3328
|
|
|
3439
3329
|
// ../workspace-tools/generators.ts
|
|
3440
|
-
|
|
3330
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3441
3331
|
|
|
3442
3332
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3443
|
-
|
|
3333
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3444
3334
|
|
|
3445
3335
|
|
|
3446
3336
|
|
|
@@ -3449,7 +3339,7 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
3449
3339
|
|
|
3450
3340
|
|
|
3451
3341
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3452
|
-
|
|
3342
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3453
3343
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3454
3344
|
skipReadingConfig: false
|
|
3455
3345
|
}) => async (tree, _options) => {
|
|
@@ -3533,7 +3423,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3533
3423
|
};
|
|
3534
3424
|
|
|
3535
3425
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3536
|
-
|
|
3426
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3537
3427
|
|
|
3538
3428
|
|
|
3539
3429
|
|
|
@@ -3555,7 +3445,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3555
3445
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3556
3446
|
|
|
3557
3447
|
// ../workspace-tools/src/utils/versions.ts
|
|
3558
|
-
|
|
3448
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3559
3449
|
var typesNodeVersion = "20.9.0";
|
|
3560
3450
|
var nxVersion = "^18.0.4";
|
|
3561
3451
|
var nodeVersion = "20.11.0";
|
|
@@ -3588,16 +3478,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3588
3478
|
const projectConfig = {
|
|
3589
3479
|
root: normalized.directory,
|
|
3590
3480
|
projectType: "library",
|
|
3591
|
-
sourceRoot:
|
|
3481
|
+
sourceRoot: _chunk2TBSZDNWjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3592
3482
|
targets: {
|
|
3593
3483
|
build: {
|
|
3594
3484
|
executor: options.buildExecutor,
|
|
3595
3485
|
outputs: ["{options.outputPath}"],
|
|
3596
3486
|
options: {
|
|
3597
|
-
entry: [
|
|
3487
|
+
entry: [_chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3598
3488
|
outputPath: getOutputPath(normalized),
|
|
3599
|
-
tsconfig:
|
|
3600
|
-
project:
|
|
3489
|
+
tsconfig: _chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3490
|
+
project: _chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3601
3491
|
defaultConfiguration: "production",
|
|
3602
3492
|
platform: "neutral",
|
|
3603
3493
|
assets: [
|
|
@@ -3654,7 +3544,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3654
3544
|
if (!normalized.importPath) {
|
|
3655
3545
|
normalized.importPath = normalized.name;
|
|
3656
3546
|
}
|
|
3657
|
-
const packageJsonPath =
|
|
3547
|
+
const packageJsonPath = _chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3658
3548
|
if (tree.exists(packageJsonPath)) {
|
|
3659
3549
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3660
3550
|
if (!normalized.importPath) {
|
|
@@ -3711,14 +3601,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3711
3601
|
}));
|
|
3712
3602
|
}
|
|
3713
3603
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3714
|
-
|
|
3604
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
3715
3605
|
normalized.projectRoot,
|
|
3716
3606
|
"./src",
|
|
3717
3607
|
`index.${normalized.js ? "js" : "ts"}`
|
|
3718
3608
|
)
|
|
3719
3609
|
]);
|
|
3720
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3721
|
-
|
|
3610
|
+
_js.addTsConfigPath.call(void 0, tree, _chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3611
|
+
_chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3722
3612
|
]);
|
|
3723
3613
|
if (tree.exists("package.json")) {
|
|
3724
3614
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -3729,7 +3619,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3729
3619
|
description = packageJson.description;
|
|
3730
3620
|
}
|
|
3731
3621
|
}
|
|
3732
|
-
const tsconfigPath =
|
|
3622
|
+
const tsconfigPath = _chunk2TBSZDNWjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3733
3623
|
if (tree.exists(tsconfigPath)) {
|
|
3734
3624
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3735
3625
|
json.composite ??= true;
|
|
@@ -3757,7 +3647,7 @@ function getOutputPath(options) {
|
|
|
3757
3647
|
} else {
|
|
3758
3648
|
parts.push(options.projectRoot);
|
|
3759
3649
|
}
|
|
3760
|
-
return
|
|
3650
|
+
return _chunk2TBSZDNWjs.joinPaths.call(void 0, ...parts);
|
|
3761
3651
|
}
|
|
3762
3652
|
function createProjectTsConfigJson(tree, options) {
|
|
3763
3653
|
const tsconfig = {
|
|
@@ -3765,7 +3655,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3765
3655
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions]), () => ( {})),
|
|
3766
3656
|
compilerOptions: {
|
|
3767
3657
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3768
|
-
outDir:
|
|
3658
|
+
outDir: _chunk2TBSZDNWjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3769
3659
|
noEmit: true,
|
|
3770
3660
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.compilerOptions]), () => ( {}))
|
|
3771
3661
|
},
|
|
@@ -3783,7 +3673,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3783
3673
|
"src/**/*.test.ts"
|
|
3784
3674
|
]
|
|
3785
3675
|
};
|
|
3786
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3676
|
+
_devkit.writeJson.call(void 0, tree, _chunk2TBSZDNWjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3787
3677
|
}
|
|
3788
3678
|
async function normalizeOptions(tree, options, config) {
|
|
3789
3679
|
let importPath = options.importPath;
|
|
@@ -3848,7 +3738,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3848
3738
|
|
|
3849
3739
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3850
3740
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3851
|
-
const filesDir =
|
|
3741
|
+
const filesDir = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
3852
3742
|
__dirname,
|
|
3853
3743
|
"src",
|
|
3854
3744
|
"generators",
|
|
@@ -3928,7 +3818,7 @@ var generator_default = withRunGenerator(
|
|
|
3928
3818
|
);
|
|
3929
3819
|
|
|
3930
3820
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3931
|
-
|
|
3821
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3932
3822
|
|
|
3933
3823
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
3934
3824
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3985,7 +3875,7 @@ var generator_default2 = withRunGenerator(
|
|
|
3985
3875
|
);
|
|
3986
3876
|
|
|
3987
3877
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3988
|
-
|
|
3878
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
3989
3879
|
|
|
3990
3880
|
|
|
3991
3881
|
|
|
@@ -4013,7 +3903,7 @@ async function initGenerator(tree, schema) {
|
|
|
4013
3903
|
}
|
|
4014
3904
|
|
|
4015
3905
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4016
|
-
|
|
3906
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4017
3907
|
|
|
4018
3908
|
|
|
4019
3909
|
|
|
@@ -4021,7 +3911,7 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
4021
3911
|
|
|
4022
3912
|
|
|
4023
3913
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4024
|
-
const filesDir =
|
|
3914
|
+
const filesDir = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
4025
3915
|
__dirname,
|
|
4026
3916
|
"src",
|
|
4027
3917
|
"generators",
|
|
@@ -4073,7 +3963,7 @@ var generator_default3 = withRunGenerator(
|
|
|
4073
3963
|
);
|
|
4074
3964
|
|
|
4075
3965
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4076
|
-
|
|
3966
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4077
3967
|
|
|
4078
3968
|
|
|
4079
3969
|
|
|
@@ -4081,7 +3971,7 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
4081
3971
|
|
|
4082
3972
|
|
|
4083
3973
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4084
|
-
const filesDir =
|
|
3974
|
+
const filesDir = _chunk2TBSZDNWjs.joinPaths.call(void 0,
|
|
4085
3975
|
__dirname,
|
|
4086
3976
|
"src",
|
|
4087
3977
|
"generators",
|
|
@@ -4135,7 +4025,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4135
4025
|
);
|
|
4136
4026
|
|
|
4137
4027
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4138
|
-
|
|
4028
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4139
4029
|
|
|
4140
4030
|
|
|
4141
4031
|
|
|
@@ -4292,7 +4182,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4292
4182
|
};
|
|
4293
4183
|
return json;
|
|
4294
4184
|
});
|
|
4295
|
-
_devkit.generateFiles.call(void 0, tree,
|
|
4185
|
+
_devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
|
|
4296
4186
|
...options,
|
|
4297
4187
|
pnpmVersion,
|
|
4298
4188
|
nodeVersion
|
|
@@ -4374,7 +4264,7 @@ var generator_default5 = withRunGenerator(
|
|
|
4374
4264
|
);
|
|
4375
4265
|
|
|
4376
4266
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4377
|
-
|
|
4267
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4378
4268
|
|
|
4379
4269
|
|
|
4380
4270
|
|
|
@@ -4387,13 +4277,13 @@ var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-ve
|
|
|
4387
4277
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
4388
4278
|
|
|
4389
4279
|
// ../git-tools/src/index.ts
|
|
4390
|
-
|
|
4280
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4391
4281
|
|
|
4392
4282
|
// ../git-tools/src/commit/config.ts
|
|
4393
|
-
|
|
4283
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4394
4284
|
|
|
4395
4285
|
// ../git-tools/src/types.ts
|
|
4396
|
-
|
|
4286
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4397
4287
|
var COMMIT_TYPES = {
|
|
4398
4288
|
/* --- Bumps version when selected --- */
|
|
4399
4289
|
"chore": {
|
|
@@ -4591,7 +4481,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
4591
4481
|
};
|
|
4592
4482
|
|
|
4593
4483
|
// ../git-tools/src/release/config.ts
|
|
4594
|
-
|
|
4484
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4595
4485
|
|
|
4596
4486
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4597
4487
|
|
|
@@ -4614,10 +4504,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
4614
4504
|
var _semver3 = require('semver');
|
|
4615
4505
|
|
|
4616
4506
|
// ../workspace-tools/src/base/index.ts
|
|
4617
|
-
|
|
4507
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4618
4508
|
|
|
4619
4509
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4620
|
-
|
|
4510
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4621
4511
|
var _untyped = require('untyped');
|
|
4622
4512
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4623
4513
|
$schema: {
|
|
@@ -4637,7 +4527,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4637
4527
|
});
|
|
4638
4528
|
|
|
4639
4529
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4640
|
-
|
|
4530
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4641
4531
|
|
|
4642
4532
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4643
4533
|
$schema: {
|
|
@@ -4655,7 +4545,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4655
4545
|
});
|
|
4656
4546
|
|
|
4657
4547
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4658
|
-
|
|
4548
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4659
4549
|
|
|
4660
4550
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4661
4551
|
...base_executor_untyped_default,
|
|
@@ -4728,7 +4618,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4728
4618
|
});
|
|
4729
4619
|
|
|
4730
4620
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4731
|
-
|
|
4621
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4732
4622
|
|
|
4733
4623
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4734
4624
|
...base_executor_untyped_default,
|
|
@@ -4880,7 +4770,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4880
4770
|
});
|
|
4881
4771
|
|
|
4882
4772
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4883
|
-
|
|
4773
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4884
4774
|
|
|
4885
4775
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4886
4776
|
...base_generator_untyped_default,
|
|
@@ -4986,24 +4876,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4986
4876
|
});
|
|
4987
4877
|
|
|
4988
4878
|
// ../workspace-tools/src/types.ts
|
|
4989
|
-
|
|
4879
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4990
4880
|
|
|
4991
4881
|
// ../workspace-tools/src/utils/index.ts
|
|
4992
|
-
|
|
4882
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4993
4883
|
|
|
4994
4884
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4995
|
-
|
|
4885
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4996
4886
|
|
|
4997
4887
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4998
|
-
|
|
4888
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
4999
4889
|
|
|
5000
4890
|
|
|
5001
4891
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5002
|
-
|
|
4892
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
5003
4893
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5004
4894
|
|
|
5005
4895
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5006
|
-
|
|
4896
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
5007
4897
|
|
|
5008
4898
|
|
|
5009
4899
|
|
|
@@ -5031,10 +4921,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5031
4921
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5032
4922
|
|
|
5033
4923
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5034
|
-
|
|
4924
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
5035
4925
|
|
|
5036
4926
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5037
|
-
|
|
4927
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
5038
4928
|
|
|
5039
4929
|
|
|
5040
4930
|
|
|
@@ -5043,7 +4933,7 @@ _chunkGXIBAQMGjs.init_cjs_shims.call(void 0, );
|
|
|
5043
4933
|
|
|
5044
4934
|
|
|
5045
4935
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5046
|
-
|
|
4936
|
+
_chunk37J2KEVTjs.init_cjs_shims.call(void 0, );
|
|
5047
4937
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5048
4938
|
|
|
5049
4939
|
// src/generators/init/generator.ts
|