@storm-software/projen 0.21.16 → 0.21.18
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 +23 -0
- package/README.md +1 -1
- package/dist/{chunk-6MFEBS6R.mjs → chunk-4N7KSY4E.mjs} +1 -1
- package/dist/{chunk-GULNWTGR.mjs → chunk-C53PM5EF.mjs} +392 -785
- package/dist/{chunk-FLFJZ4QS.js → chunk-E7OUB2TI.js} +3 -3
- package/dist/{chunk-JJ5FMNEP.mjs → chunk-GNPBWHER.mjs} +2 -2
- package/dist/{chunk-4DSPJSYH.js → chunk-GT4TSWRO.js} +2 -2
- package/dist/chunk-HGGW3DXQ.js +6 -0
- package/dist/{chunk-YJ3DWUG3.mjs → chunk-MQ4Q4SR6.mjs} +1 -1
- package/dist/{chunk-FQ324XJ4.mjs → chunk-MU3GKHYE.mjs} +1 -1
- package/dist/{chunk-I5J4CUAR.js → chunk-QTJS4PSI.js} +2 -2
- package/dist/{chunk-PQDIMZXV.js → chunk-XBHVA2L7.js} +551 -944
- 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-5VS62CVS.js +0 -6
|
@@ -1,13 +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 _chunkQTJS4PSIjs = require('./chunk-QTJS4PSI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGT4TSWROjs = require('./chunk-GT4TSWRO.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/init/generator.ts
|
|
10
|
-
|
|
10
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -16,27 +16,27 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
16
16
|
var _devkit = require('@nx/devkit');
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/index.ts
|
|
19
|
-
|
|
19
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
|
|
21
21
|
// ../workspace-tools/executors.ts
|
|
22
|
-
|
|
22
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
25
|
-
|
|
25
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
// ../workspace-tools/src/base/base-executor.ts
|
|
28
|
-
|
|
28
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
|
|
30
30
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
31
|
-
|
|
31
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
32
32
|
var _c12 = require('c12');
|
|
33
33
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
34
34
|
|
|
35
35
|
// ../config-tools/src/logger/console.ts
|
|
36
|
-
|
|
36
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
|
|
38
38
|
// ../config-tools/src/types.ts
|
|
39
|
-
|
|
39
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
40
40
|
var LogLevel = {
|
|
41
41
|
SILENT: 0,
|
|
42
42
|
FATAL: 10,
|
|
@@ -61,7 +61,7 @@ var LogLevelLabel = {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// ../config-tools/src/utilities/colors.ts
|
|
64
|
-
|
|
64
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
65
65
|
var DEFAULT_COLOR_CONFIG = {
|
|
66
66
|
light: {
|
|
67
67
|
background: "#fafafa",
|
|
@@ -98,7 +98,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
// ../config-tools/src/logger/chalk.ts
|
|
101
|
-
|
|
101
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
102
102
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
103
103
|
var chalkDefault = {
|
|
104
104
|
hex: (_) => (message) => message,
|
|
@@ -132,10 +132,10 @@ var getChalk = () => {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
// ../config-tools/src/logger/console-icons.ts
|
|
135
|
-
|
|
135
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
136
136
|
|
|
137
137
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
138
|
-
|
|
138
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
139
139
|
function isUnicodeSupported() {
|
|
140
140
|
if (process.platform !== "win32") {
|
|
141
141
|
return process.env.TERM !== "linux";
|
|
@@ -160,13 +160,13 @@ var CONSOLE_ICONS = {
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
163
|
-
|
|
163
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
164
164
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
165
165
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// ../config-tools/src/logger/get-log-level.ts
|
|
169
|
-
|
|
169
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
170
170
|
var getLogLevel = (label) => {
|
|
171
171
|
switch (label) {
|
|
172
172
|
case "all":
|
|
@@ -218,9 +218,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
// ../config-tools/src/logger/console.ts
|
|
221
|
-
var getLogFn = (logLevel = LogLevel.INFO,
|
|
222
|
-
const colors = !_optionalChain([
|
|
223
|
-
const configLogLevel =
|
|
221
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
222
|
+
const colors = !_optionalChain([config, 'access', _8 => _8.colors, 'optionalAccess', _9 => _9.dark]) && !_optionalChain([config, 'access', _10 => _10.colors, 'optionalAccess', _11 => _11["base"]]) && !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13["base"], 'optionalAccess', _14 => _14.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _17 => _17.colors, 'optionalAccess', _18 => _18["base"], 'optionalAccess', _19 => _19.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"]]) ? _optionalChain([config, 'access', _22 => _22.colors, 'optionalAccess', _23 => _23["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
223
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
224
224
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
225
225
|
return (_) => {
|
|
226
226
|
};
|
|
@@ -296,13 +296,13 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
296
296
|
);
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
|
-
var writeFatal = (message,
|
|
300
|
-
var writeError = (message,
|
|
301
|
-
var writeWarning = (message,
|
|
302
|
-
var writeInfo = (message,
|
|
303
|
-
var writeSuccess = (message,
|
|
304
|
-
var writeDebug = (message,
|
|
305
|
-
var writeTrace = (message,
|
|
299
|
+
var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
|
|
300
|
+
var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
301
|
+
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
302
|
+
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
303
|
+
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
304
|
+
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
305
|
+
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
306
306
|
var getStopwatch = (name) => {
|
|
307
307
|
const start = process.hrtime();
|
|
308
308
|
return () => {
|
|
@@ -342,13 +342,13 @@ var _isFunction = (value) => {
|
|
|
342
342
|
};
|
|
343
343
|
|
|
344
344
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
345
|
-
|
|
345
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
346
346
|
|
|
347
347
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
348
|
-
|
|
348
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
349
349
|
|
|
350
350
|
// ../config-tools/src/utilities/find-up.ts
|
|
351
|
-
|
|
351
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
352
352
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
353
353
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
354
354
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -417,11 +417,11 @@ var rootDirectories = [
|
|
|
417
417
|
];
|
|
418
418
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
419
419
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
420
|
-
return
|
|
420
|
+
return _chunkQTJS4PSIjs.correctPaths.call(void 0,
|
|
421
421
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
|
-
return
|
|
424
|
+
return _chunkQTJS4PSIjs.correctPaths.call(void 0,
|
|
425
425
|
findFolderUp(
|
|
426
426
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
427
427
|
rootFiles,
|
|
@@ -516,13 +516,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
516
516
|
};
|
|
517
517
|
|
|
518
518
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
519
|
-
|
|
519
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
520
520
|
|
|
521
521
|
// ../config/src/index.ts
|
|
522
|
-
|
|
522
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
523
523
|
|
|
524
524
|
// ../config/src/constants.ts
|
|
525
|
-
|
|
525
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
526
526
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
527
527
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
528
528
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -541,10 +541,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
541
541
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
542
542
|
|
|
543
543
|
// ../config/src/define-config.ts
|
|
544
|
-
|
|
544
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
545
545
|
|
|
546
546
|
// ../config/src/schema.ts
|
|
547
|
-
|
|
547
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
548
548
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
549
549
|
var schemaRegistry = z.registry();
|
|
550
550
|
var colorSchema = z.string().check(
|
|
@@ -1099,7 +1099,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
|
|
1101
1101
|
// ../config/src/types.ts
|
|
1102
|
-
|
|
1102
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
1103
1103
|
var COLOR_KEYS = [
|
|
1104
1104
|
"dark",
|
|
1105
1105
|
"light",
|
|
@@ -1132,7 +1132,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1132
1132
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
1133
1133
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
1134
1134
|
const file = await _promises.readFile.call(void 0,
|
|
1135
|
-
|
|
1135
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
1136
1136
|
"utf8"
|
|
1137
1137
|
);
|
|
1138
1138
|
if (file) {
|
|
@@ -1175,34 +1175,34 @@ async function getPackageJsonConfig(root) {
|
|
|
1175
1175
|
support
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
function applyDefaultConfig(
|
|
1179
|
-
if (!
|
|
1180
|
-
|
|
1178
|
+
function applyDefaultConfig(config) {
|
|
1179
|
+
if (!config.support && config.contact) {
|
|
1180
|
+
config.support = config.contact;
|
|
1181
1181
|
}
|
|
1182
|
-
if (!
|
|
1183
|
-
|
|
1182
|
+
if (!config.contact && config.support) {
|
|
1183
|
+
config.contact = config.support;
|
|
1184
1184
|
}
|
|
1185
|
-
if (
|
|
1186
|
-
if (!
|
|
1187
|
-
|
|
1185
|
+
if (config.homepage) {
|
|
1186
|
+
if (!config.docs) {
|
|
1187
|
+
config.docs = `${config.homepage}/docs`;
|
|
1188
1188
|
}
|
|
1189
|
-
if (!
|
|
1190
|
-
|
|
1189
|
+
if (!config.license) {
|
|
1190
|
+
config.license = `${config.homepage}/license`;
|
|
1191
1191
|
}
|
|
1192
|
-
if (!
|
|
1193
|
-
|
|
1192
|
+
if (!config.support) {
|
|
1193
|
+
config.support = `${config.homepage}/support`;
|
|
1194
1194
|
}
|
|
1195
|
-
if (!
|
|
1196
|
-
|
|
1195
|
+
if (!config.contact) {
|
|
1196
|
+
config.contact = `${config.homepage}/contact`;
|
|
1197
1197
|
}
|
|
1198
|
-
if (!_optionalChain([
|
|
1199
|
-
|
|
1200
|
-
if (
|
|
1201
|
-
|
|
1198
|
+
if (!_optionalChain([config, 'access', _30 => _30.error, 'optionalAccess', _31 => _31.codesFile]) || !_optionalChain([config, 'optionalAccess', _32 => _32.error, 'optionalAccess', _33 => _33.url])) {
|
|
1199
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
1200
|
+
if (config.homepage) {
|
|
1201
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
return
|
|
1205
|
+
return config;
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
1208
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
@@ -1216,7 +1216,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1216
1216
|
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
1217
1217
|
jitiOptions: {
|
|
1218
1218
|
debug: false,
|
|
1219
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1219
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
1220
1220
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1221
1221
|
"jiti"
|
|
1222
1222
|
)
|
|
@@ -1230,7 +1230,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1230
1230
|
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
1231
1231
|
jitiOptions: {
|
|
1232
1232
|
debug: false,
|
|
1233
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1233
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
1234
1234
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1235
1235
|
"jiti"
|
|
1236
1236
|
)
|
|
@@ -1244,9 +1244,9 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1244
1244
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
1245
1245
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
1246
1246
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
1247
|
-
let
|
|
1247
|
+
let config = result.config;
|
|
1248
1248
|
const configFile = result.configFile;
|
|
1249
|
-
if (
|
|
1249
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1250
1250
|
writeTrace(
|
|
1251
1251
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1252
1252
|
{
|
|
@@ -1262,7 +1262,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1262
1262
|
);
|
|
1263
1263
|
for (const result2 of results) {
|
|
1264
1264
|
if (_optionalChain([result2, 'optionalAccess', _38 => _38.config]) && _optionalChain([result2, 'optionalAccess', _39 => _39.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1265
|
-
if (!
|
|
1265
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1266
1266
|
writeTrace(
|
|
1267
1267
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1268
1268
|
{
|
|
@@ -1270,24 +1270,24 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
);
|
|
1272
1272
|
}
|
|
1273
|
-
|
|
1273
|
+
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
-
if (!
|
|
1277
|
+
if (!config || Object.keys(config).length === 0) {
|
|
1278
1278
|
return void 0;
|
|
1279
1279
|
}
|
|
1280
|
-
|
|
1281
|
-
return
|
|
1280
|
+
config.configFile = configFile;
|
|
1281
|
+
return config;
|
|
1282
1282
|
};
|
|
1283
1283
|
|
|
1284
1284
|
// ../config-tools/src/create-storm-config.ts
|
|
1285
|
-
|
|
1285
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
1286
1286
|
|
|
1287
1287
|
|
|
1288
1288
|
|
|
1289
1289
|
// ../config-tools/src/env/get-env.ts
|
|
1290
|
-
|
|
1290
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
1291
1291
|
var getExtensionEnv = (extensionName) => {
|
|
1292
1292
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1293
1293
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1302,7 +1302,7 @@ var getExtensionEnv = (extensionName) => {
|
|
|
1302
1302
|
};
|
|
1303
1303
|
var getConfigEnv = () => {
|
|
1304
1304
|
const prefix = "STORM_";
|
|
1305
|
-
let
|
|
1305
|
+
let config = {
|
|
1306
1306
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
1307
1307
|
name: process.env[`${prefix}NAME`] || void 0,
|
|
1308
1308
|
variant: process.env[`${prefix}VARIANT`] || void 0,
|
|
@@ -1349,15 +1349,15 @@ var getConfigEnv = () => {
|
|
|
1349
1349
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1350
1350
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1351
1351
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1352
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1353
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1352
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1353
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1354
1354
|
directories: {
|
|
1355
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1356
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1357
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1358
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1359
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1360
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1355
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1356
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1357
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1358
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1359
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1360
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkQTJS4PSIjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1361
1361
|
},
|
|
1362
1362
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1363
1363
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1391,38 +1391,38 @@ var getConfigEnv = () => {
|
|
|
1391
1391
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
1392
1392
|
)
|
|
1393
1393
|
);
|
|
1394
|
-
|
|
1394
|
+
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
1395
1395
|
(ret, themeName) => {
|
|
1396
1396
|
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
1397
1397
|
return ret;
|
|
1398
1398
|
},
|
|
1399
1399
|
{}
|
|
1400
1400
|
) : getThemeColorsEnv(prefix);
|
|
1401
|
-
if (
|
|
1402
|
-
if (
|
|
1403
|
-
|
|
1401
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
1402
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1403
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
1404
1404
|
} else {
|
|
1405
|
-
|
|
1405
|
+
config.docs = `${config.homepage}/docs`;
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
if (
|
|
1409
|
-
if (
|
|
1410
|
-
|
|
1408
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
1409
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1410
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
1411
1411
|
} else {
|
|
1412
|
-
|
|
1412
|
+
config.licensing = `${config.homepage}/docs`;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1416
1416
|
if (serializedConfig) {
|
|
1417
1417
|
const parsed = JSON.parse(serializedConfig);
|
|
1418
|
-
|
|
1419
|
-
...
|
|
1418
|
+
config = {
|
|
1419
|
+
...config,
|
|
1420
1420
|
...parsed,
|
|
1421
|
-
colors: { ...
|
|
1422
|
-
extensions: { ...
|
|
1421
|
+
colors: { ...config.colors, ...parsed.colors },
|
|
1422
|
+
extensions: { ...config.extensions, ...parsed.extensions }
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
return
|
|
1425
|
+
return config;
|
|
1426
1426
|
};
|
|
1427
1427
|
var getThemeColorsEnv = (prefix, theme) => {
|
|
1428
1428
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
@@ -1500,7 +1500,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1500
1500
|
};
|
|
1501
1501
|
|
|
1502
1502
|
// ../config-tools/src/env/set-env.ts
|
|
1503
|
-
|
|
1503
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
1504
1504
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1505
1505
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1506
1506
|
if (extension[key]) {
|
|
@@ -1523,348 +1523,348 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
};
|
|
1526
|
-
var setConfigEnv = (
|
|
1526
|
+
var setConfigEnv = (config) => {
|
|
1527
1527
|
const prefix = "STORM_";
|
|
1528
|
-
if (
|
|
1529
|
-
process.env[`${prefix}EXTENDS`] = Array.isArray(
|
|
1528
|
+
if (config.extends) {
|
|
1529
|
+
process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
|
|
1530
1530
|
}
|
|
1531
|
-
if (
|
|
1532
|
-
process.env[`${prefix}NAME`] =
|
|
1531
|
+
if (config.name) {
|
|
1532
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
1533
1533
|
}
|
|
1534
|
-
if (
|
|
1535
|
-
process.env[`${prefix}VARIANT`] =
|
|
1534
|
+
if (config.variant) {
|
|
1535
|
+
process.env[`${prefix}VARIANT`] = config.variant;
|
|
1536
1536
|
}
|
|
1537
|
-
if (
|
|
1538
|
-
process.env[`${prefix}NAMESPACE`] =
|
|
1537
|
+
if (config.namespace) {
|
|
1538
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
1539
1539
|
}
|
|
1540
|
-
if (
|
|
1541
|
-
process.env[`${prefix}OWNER`] =
|
|
1540
|
+
if (config.owner) {
|
|
1541
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
1542
1542
|
}
|
|
1543
|
-
if (
|
|
1544
|
-
process.env[`${prefix}BOT_NAME`] =
|
|
1545
|
-
process.env[`${prefix}BOT_EMAIL`] =
|
|
1543
|
+
if (config.bot) {
|
|
1544
|
+
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
1545
|
+
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
1546
1546
|
}
|
|
1547
|
-
if (
|
|
1548
|
-
process.env[`${prefix}ERROR_CODES_FILE`] =
|
|
1549
|
-
process.env[`${prefix}ERROR_URL`] =
|
|
1547
|
+
if (config.error) {
|
|
1548
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
1549
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1550
1550
|
}
|
|
1551
|
-
if (
|
|
1552
|
-
if (
|
|
1553
|
-
if (typeof
|
|
1554
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
1555
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
1551
|
+
if (config.release) {
|
|
1552
|
+
if (config.release.banner) {
|
|
1553
|
+
if (typeof config.release.banner === "string") {
|
|
1554
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1555
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
1556
1556
|
} else {
|
|
1557
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
1558
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
1559
|
-
process.env[`${prefix}RELEASE_BANNER_ALT`] =
|
|
1557
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
1558
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
1559
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
|
-
process.env[`${prefix}RELEASE_HEADER`] =
|
|
1563
|
-
process.env[`${prefix}RELEASE_FOOTER`] =
|
|
1562
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1563
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1564
1564
|
}
|
|
1565
|
-
if (
|
|
1566
|
-
if (
|
|
1567
|
-
process.env[`${prefix}SOCIAL_TWITTER`] =
|
|
1565
|
+
if (config.socials) {
|
|
1566
|
+
if (config.socials.twitter) {
|
|
1567
|
+
process.env[`${prefix}SOCIAL_TWITTER`] = config.socials.twitter;
|
|
1568
1568
|
}
|
|
1569
|
-
if (
|
|
1570
|
-
process.env[`${prefix}SOCIAL_DISCORD`] =
|
|
1569
|
+
if (config.socials.discord) {
|
|
1570
|
+
process.env[`${prefix}SOCIAL_DISCORD`] = config.socials.discord;
|
|
1571
1571
|
}
|
|
1572
|
-
if (
|
|
1573
|
-
process.env[`${prefix}SOCIAL_TELEGRAM`] =
|
|
1572
|
+
if (config.socials.telegram) {
|
|
1573
|
+
process.env[`${prefix}SOCIAL_TELEGRAM`] = config.socials.telegram;
|
|
1574
1574
|
}
|
|
1575
|
-
if (
|
|
1576
|
-
process.env[`${prefix}SOCIAL_SLACK`] =
|
|
1575
|
+
if (config.socials.slack) {
|
|
1576
|
+
process.env[`${prefix}SOCIAL_SLACK`] = config.socials.slack;
|
|
1577
1577
|
}
|
|
1578
|
-
if (
|
|
1579
|
-
process.env[`${prefix}SOCIAL_MEDIUM`] =
|
|
1578
|
+
if (config.socials.medium) {
|
|
1579
|
+
process.env[`${prefix}SOCIAL_MEDIUM`] = config.socials.medium;
|
|
1580
1580
|
}
|
|
1581
|
-
if (
|
|
1582
|
-
process.env[`${prefix}SOCIAL_GITHUB`] =
|
|
1581
|
+
if (config.socials.github) {
|
|
1582
|
+
process.env[`${prefix}SOCIAL_GITHUB`] = config.socials.github;
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
|
-
if (
|
|
1586
|
-
if (typeof
|
|
1587
|
-
process.env[`${prefix}ORG`] =
|
|
1588
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
1589
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
1590
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
1585
|
+
if (config.organization) {
|
|
1586
|
+
if (typeof config.organization === "string") {
|
|
1587
|
+
process.env[`${prefix}ORG`] = config.organization;
|
|
1588
|
+
process.env[`${prefix}ORG_NAME`] = config.organization;
|
|
1589
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
1590
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
|
|
1591
1591
|
} else {
|
|
1592
|
-
process.env[`${prefix}ORG`] =
|
|
1593
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
1594
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
1595
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
1596
|
-
if (
|
|
1597
|
-
process.env[`${prefix}ORG_URL`] =
|
|
1598
|
-
process.env[`${prefix}ORGANIZATION_URL`] =
|
|
1592
|
+
process.env[`${prefix}ORG`] = config.organization.name;
|
|
1593
|
+
process.env[`${prefix}ORG_NAME`] = config.organization.name;
|
|
1594
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization.name;
|
|
1595
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
|
|
1596
|
+
if (config.organization.url) {
|
|
1597
|
+
process.env[`${prefix}ORG_URL`] = config.organization.url;
|
|
1598
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
|
|
1599
1599
|
}
|
|
1600
|
-
if (
|
|
1601
|
-
process.env[`${prefix}ORG_DESCRIPTION`] =
|
|
1602
|
-
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] =
|
|
1600
|
+
if (config.organization.description) {
|
|
1601
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
|
|
1602
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
|
|
1603
1603
|
}
|
|
1604
|
-
if (
|
|
1605
|
-
process.env[`${prefix}ORG_LOGO`] =
|
|
1606
|
-
process.env[`${prefix}ORGANIZATION_LOGO`] =
|
|
1604
|
+
if (config.organization.logo) {
|
|
1605
|
+
process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
|
|
1606
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
|
|
1607
1607
|
}
|
|
1608
|
-
if (
|
|
1609
|
-
process.env[`${prefix}ORG_ICON`] =
|
|
1610
|
-
process.env[`${prefix}ORGANIZATION_ICON`] =
|
|
1608
|
+
if (config.organization.icon) {
|
|
1609
|
+
process.env[`${prefix}ORG_ICON`] = config.organization.icon;
|
|
1610
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
|
-
if (
|
|
1615
|
-
process.env[`${prefix}PACKAGE_MANAGER`] =
|
|
1614
|
+
if (config.packageManager) {
|
|
1615
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
1616
1616
|
}
|
|
1617
|
-
if (
|
|
1618
|
-
process.env[`${prefix}LICENSE`] =
|
|
1617
|
+
if (config.license) {
|
|
1618
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
1619
1619
|
}
|
|
1620
|
-
if (
|
|
1621
|
-
process.env[`${prefix}HOMEPAGE`] =
|
|
1620
|
+
if (config.homepage) {
|
|
1621
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
1622
1622
|
}
|
|
1623
|
-
if (
|
|
1624
|
-
process.env[`${prefix}DOCS`] =
|
|
1623
|
+
if (config.docs) {
|
|
1624
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
1625
1625
|
}
|
|
1626
|
-
if (
|
|
1627
|
-
process.env[`${prefix}PORTAL`] =
|
|
1626
|
+
if (config.portal) {
|
|
1627
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
1628
1628
|
}
|
|
1629
|
-
if (
|
|
1630
|
-
process.env[`${prefix}LICENSING`] =
|
|
1629
|
+
if (config.licensing) {
|
|
1630
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
1631
1631
|
}
|
|
1632
|
-
if (
|
|
1633
|
-
process.env[`${prefix}CONTACT`] =
|
|
1632
|
+
if (config.contact) {
|
|
1633
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
1634
1634
|
}
|
|
1635
|
-
if (
|
|
1636
|
-
process.env[`${prefix}SUPPORT`] =
|
|
1635
|
+
if (config.support) {
|
|
1636
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
1637
1637
|
}
|
|
1638
|
-
if (
|
|
1639
|
-
process.env[`${prefix}TIMEZONE`] =
|
|
1640
|
-
process.env.TZ =
|
|
1641
|
-
process.env.DEFAULT_TIMEZONE =
|
|
1642
|
-
process.env.TIMEZONE =
|
|
1638
|
+
if (config.timezone) {
|
|
1639
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
1640
|
+
process.env.TZ = config.timezone;
|
|
1641
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
1642
|
+
process.env.TIMEZONE = config.timezone;
|
|
1643
1643
|
}
|
|
1644
|
-
if (
|
|
1645
|
-
process.env[`${prefix}LOCALE`] =
|
|
1646
|
-
process.env.DEFAULT_LOCALE =
|
|
1647
|
-
process.env.LOCALE =
|
|
1648
|
-
process.env.LANG =
|
|
1644
|
+
if (config.locale) {
|
|
1645
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
1646
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
1647
|
+
process.env.LOCALE = config.locale;
|
|
1648
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1649
1649
|
}
|
|
1650
|
-
if (
|
|
1651
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1652
|
-
|
|
1650
|
+
if (config.configFile) {
|
|
1651
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkQTJS4PSIjs.correctPaths.call(void 0,
|
|
1652
|
+
config.configFile
|
|
1653
1653
|
);
|
|
1654
1654
|
}
|
|
1655
|
-
if (
|
|
1656
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1657
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1658
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1655
|
+
if (config.workspaceRoot) {
|
|
1656
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkQTJS4PSIjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1657
|
+
process.env.NX_WORKSPACE_ROOT = _chunkQTJS4PSIjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1658
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkQTJS4PSIjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1659
1659
|
}
|
|
1660
|
-
if (
|
|
1661
|
-
if (!
|
|
1662
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1663
|
-
|
|
1660
|
+
if (config.directories) {
|
|
1661
|
+
if (!config.skipCache && config.directories.cache) {
|
|
1662
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkQTJS4PSIjs.correctPaths.call(void 0,
|
|
1663
|
+
config.directories.cache
|
|
1664
1664
|
);
|
|
1665
1665
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1666
1666
|
}
|
|
1667
|
-
if (
|
|
1668
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1667
|
+
if (config.directories.data) {
|
|
1668
|
+
process.env[`${prefix}DATA_DIR`] = _chunkQTJS4PSIjs.correctPaths.call(void 0, config.directories.data);
|
|
1669
1669
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1670
1670
|
}
|
|
1671
|
-
if (
|
|
1672
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1673
|
-
|
|
1671
|
+
if (config.directories.config) {
|
|
1672
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkQTJS4PSIjs.correctPaths.call(void 0,
|
|
1673
|
+
config.directories.config
|
|
1674
1674
|
);
|
|
1675
1675
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1676
1676
|
}
|
|
1677
|
-
if (
|
|
1678
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1677
|
+
if (config.directories.temp) {
|
|
1678
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkQTJS4PSIjs.correctPaths.call(void 0, config.directories.temp);
|
|
1679
1679
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1680
1680
|
}
|
|
1681
|
-
if (
|
|
1682
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1681
|
+
if (config.directories.log) {
|
|
1682
|
+
process.env[`${prefix}LOG_DIR`] = _chunkQTJS4PSIjs.correctPaths.call(void 0, config.directories.log);
|
|
1683
1683
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1684
1684
|
}
|
|
1685
|
-
if (
|
|
1686
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1687
|
-
|
|
1685
|
+
if (config.directories.build) {
|
|
1686
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkQTJS4PSIjs.correctPaths.call(void 0,
|
|
1687
|
+
config.directories.build
|
|
1688
1688
|
);
|
|
1689
1689
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
if (
|
|
1693
|
-
process.env[`${prefix}SKIP_CACHE`] = String(
|
|
1694
|
-
if (
|
|
1695
|
-
process.env.NX_SKIP_NX_CACHE ??= String(
|
|
1696
|
-
process.env.NX_CACHE_PROJECT_GRAPH ??= String(
|
|
1692
|
+
if (config.skipCache !== void 0) {
|
|
1693
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
|
|
1694
|
+
if (config.skipCache) {
|
|
1695
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
|
|
1696
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
if (
|
|
1700
|
-
process.env[`${prefix}MODE`] =
|
|
1701
|
-
process.env.NODE_ENV =
|
|
1702
|
-
process.env.ENVIRONMENT =
|
|
1699
|
+
if (config.mode) {
|
|
1700
|
+
process.env[`${prefix}MODE`] = config.mode;
|
|
1701
|
+
process.env.NODE_ENV = config.mode;
|
|
1702
|
+
process.env.ENVIRONMENT = config.mode;
|
|
1703
1703
|
}
|
|
1704
|
-
if (_optionalChain([
|
|
1705
|
-
for (const key of Object.keys(
|
|
1706
|
-
setThemeColorsEnv(`${prefix}COLOR_${key}_`,
|
|
1704
|
+
if (_optionalChain([config, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.light]) || _optionalChain([config, 'access', _55 => _55.colors, 'optionalAccess', _56 => _56.base, 'optionalAccess', _57 => _57.dark])) {
|
|
1705
|
+
for (const key of Object.keys(config.colors)) {
|
|
1706
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1707
1707
|
}
|
|
1708
1708
|
} else {
|
|
1709
1709
|
setThemeColorsEnv(
|
|
1710
1710
|
`${prefix}COLOR_`,
|
|
1711
|
-
|
|
1711
|
+
config.colors
|
|
1712
1712
|
);
|
|
1713
1713
|
}
|
|
1714
|
-
if (
|
|
1715
|
-
process.env[`${prefix}REPOSITORY`] =
|
|
1714
|
+
if (config.repository) {
|
|
1715
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
1716
1716
|
}
|
|
1717
|
-
if (
|
|
1718
|
-
process.env[`${prefix}BRANCH`] =
|
|
1717
|
+
if (config.branch) {
|
|
1718
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
1719
1719
|
}
|
|
1720
|
-
if (
|
|
1721
|
-
process.env[`${prefix}PRE_ID`] = String(
|
|
1720
|
+
if (config.preid) {
|
|
1721
|
+
process.env[`${prefix}PRE_ID`] = String(config.preid);
|
|
1722
1722
|
}
|
|
1723
|
-
if (
|
|
1724
|
-
if (
|
|
1725
|
-
process.env[`${prefix}REGISTRY_GITHUB`] = String(
|
|
1723
|
+
if (config.registry) {
|
|
1724
|
+
if (config.registry.github) {
|
|
1725
|
+
process.env[`${prefix}REGISTRY_GITHUB`] = String(config.registry.github);
|
|
1726
1726
|
}
|
|
1727
|
-
if (
|
|
1728
|
-
process.env[`${prefix}REGISTRY_NPM`] = String(
|
|
1727
|
+
if (config.registry.npm) {
|
|
1728
|
+
process.env[`${prefix}REGISTRY_NPM`] = String(config.registry.npm);
|
|
1729
1729
|
}
|
|
1730
|
-
if (
|
|
1731
|
-
process.env[`${prefix}REGISTRY_CARGO`] = String(
|
|
1730
|
+
if (config.registry.cargo) {
|
|
1731
|
+
process.env[`${prefix}REGISTRY_CARGO`] = String(config.registry.cargo);
|
|
1732
1732
|
}
|
|
1733
|
-
if (
|
|
1733
|
+
if (config.registry.cyclone) {
|
|
1734
1734
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(
|
|
1735
|
-
|
|
1735
|
+
config.registry.cyclone
|
|
1736
1736
|
);
|
|
1737
1737
|
}
|
|
1738
|
-
if (
|
|
1738
|
+
if (config.registry.container) {
|
|
1739
1739
|
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
1740
|
-
|
|
1740
|
+
config.registry.container
|
|
1741
1741
|
);
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
if (
|
|
1745
|
-
process.env[`${prefix}LOG_LEVEL`] = String(
|
|
1746
|
-
process.env.LOG_LEVEL = String(
|
|
1744
|
+
if (config.logLevel) {
|
|
1745
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1746
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1747
1747
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1748
|
-
getLogLevel(
|
|
1748
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
1749
1749
|
);
|
|
1750
|
-
process.env.RUST_BACKTRACE = getLogLevel(
|
|
1750
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
1751
1751
|
}
|
|
1752
|
-
if (
|
|
1752
|
+
if (config.skipConfigLogging !== void 0) {
|
|
1753
1753
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
1754
|
-
|
|
1754
|
+
config.skipConfigLogging
|
|
1755
1755
|
);
|
|
1756
1756
|
}
|
|
1757
|
-
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(
|
|
1758
|
-
for (const key of Object.keys(_nullishCoalesce(
|
|
1759
|
-
if (
|
|
1760
|
-
setExtensionEnv(key,
|
|
1757
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1758
|
+
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1759
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1760
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
1763
|
};
|
|
1764
|
-
var setThemeColorsEnv = (prefix,
|
|
1765
|
-
return _optionalChain([
|
|
1764
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1765
|
+
return _optionalChain([config, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1766
1766
|
};
|
|
1767
|
-
var setSingleThemeColorsEnv = (prefix,
|
|
1768
|
-
if (
|
|
1769
|
-
process.env[`${prefix}DARK`] =
|
|
1767
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1768
|
+
if (config.dark) {
|
|
1769
|
+
process.env[`${prefix}DARK`] = config.dark;
|
|
1770
1770
|
}
|
|
1771
|
-
if (
|
|
1772
|
-
process.env[`${prefix}LIGHT`] =
|
|
1771
|
+
if (config.light) {
|
|
1772
|
+
process.env[`${prefix}LIGHT`] = config.light;
|
|
1773
1773
|
}
|
|
1774
|
-
if (
|
|
1775
|
-
process.env[`${prefix}BRAND`] =
|
|
1774
|
+
if (config.brand) {
|
|
1775
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
1776
1776
|
}
|
|
1777
|
-
if (
|
|
1778
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
1777
|
+
if (config.alternate) {
|
|
1778
|
+
process.env[`${prefix}ALTERNATE`] = config.alternate;
|
|
1779
1779
|
}
|
|
1780
|
-
if (
|
|
1781
|
-
process.env[`${prefix}ACCENT`] =
|
|
1780
|
+
if (config.accent) {
|
|
1781
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
1782
1782
|
}
|
|
1783
|
-
if (
|
|
1784
|
-
process.env[`${prefix}LINK`] =
|
|
1783
|
+
if (config.link) {
|
|
1784
|
+
process.env[`${prefix}LINK`] = config.link;
|
|
1785
1785
|
}
|
|
1786
|
-
if (
|
|
1787
|
-
process.env[`${prefix}HELP`] =
|
|
1786
|
+
if (config.help) {
|
|
1787
|
+
process.env[`${prefix}HELP`] = config.help;
|
|
1788
1788
|
}
|
|
1789
|
-
if (
|
|
1790
|
-
process.env[`${prefix}SUCCESS`] =
|
|
1789
|
+
if (config.success) {
|
|
1790
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
1791
1791
|
}
|
|
1792
|
-
if (
|
|
1793
|
-
process.env[`${prefix}INFO`] =
|
|
1792
|
+
if (config.info) {
|
|
1793
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
1794
1794
|
}
|
|
1795
|
-
if (
|
|
1796
|
-
process.env[`${prefix}WARNING`] =
|
|
1795
|
+
if (config.warning) {
|
|
1796
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
1797
1797
|
}
|
|
1798
|
-
if (
|
|
1799
|
-
process.env[`${prefix}DANGER`] =
|
|
1798
|
+
if (config.danger) {
|
|
1799
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
1800
1800
|
}
|
|
1801
|
-
if (
|
|
1802
|
-
process.env[`${prefix}FATAL`] =
|
|
1801
|
+
if (config.fatal) {
|
|
1802
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1803
1803
|
}
|
|
1804
|
-
if (
|
|
1805
|
-
process.env[`${prefix}POSITIVE`] =
|
|
1804
|
+
if (config.positive) {
|
|
1805
|
+
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1806
1806
|
}
|
|
1807
|
-
if (
|
|
1808
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
1807
|
+
if (config.negative) {
|
|
1808
|
+
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1809
1809
|
}
|
|
1810
|
-
if (
|
|
1811
|
-
for (let i = 0; i <
|
|
1812
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
1810
|
+
if (config.gradient) {
|
|
1811
|
+
for (let i = 0; i < config.gradient.length; i++) {
|
|
1812
|
+
process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
|
-
var setMultiThemeColorsEnv = (prefix,
|
|
1816
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
1817
1817
|
return {
|
|
1818
|
-
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`,
|
|
1819
|
-
dark: setBaseThemeColorsEnv(`${prefix}DARK_`,
|
|
1818
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1819
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
1820
1820
|
};
|
|
1821
1821
|
};
|
|
1822
|
-
var setBaseThemeColorsEnv = (prefix,
|
|
1823
|
-
if (
|
|
1824
|
-
process.env[`${prefix}FOREGROUND`] =
|
|
1822
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
1823
|
+
if (config.foreground) {
|
|
1824
|
+
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1825
1825
|
}
|
|
1826
|
-
if (
|
|
1827
|
-
process.env[`${prefix}BACKGROUND`] =
|
|
1826
|
+
if (config.background) {
|
|
1827
|
+
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
1828
1828
|
}
|
|
1829
|
-
if (
|
|
1830
|
-
process.env[`${prefix}BRAND`] =
|
|
1829
|
+
if (config.brand) {
|
|
1830
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
1831
1831
|
}
|
|
1832
|
-
if (
|
|
1833
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
1832
|
+
if (config.alternate) {
|
|
1833
|
+
process.env[`${prefix}ALTERNATE`] = config.alternate;
|
|
1834
1834
|
}
|
|
1835
|
-
if (
|
|
1836
|
-
process.env[`${prefix}ACCENT`] =
|
|
1835
|
+
if (config.accent) {
|
|
1836
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
1837
1837
|
}
|
|
1838
|
-
if (
|
|
1839
|
-
process.env[`${prefix}LINK`] =
|
|
1838
|
+
if (config.link) {
|
|
1839
|
+
process.env[`${prefix}LINK`] = config.link;
|
|
1840
1840
|
}
|
|
1841
|
-
if (
|
|
1842
|
-
process.env[`${prefix}HELP`] =
|
|
1841
|
+
if (config.help) {
|
|
1842
|
+
process.env[`${prefix}HELP`] = config.help;
|
|
1843
1843
|
}
|
|
1844
|
-
if (
|
|
1845
|
-
process.env[`${prefix}SUCCESS`] =
|
|
1844
|
+
if (config.success) {
|
|
1845
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
1846
1846
|
}
|
|
1847
|
-
if (
|
|
1848
|
-
process.env[`${prefix}INFO`] =
|
|
1847
|
+
if (config.info) {
|
|
1848
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
1849
1849
|
}
|
|
1850
|
-
if (
|
|
1851
|
-
process.env[`${prefix}WARNING`] =
|
|
1850
|
+
if (config.warning) {
|
|
1851
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
1852
1852
|
}
|
|
1853
|
-
if (
|
|
1854
|
-
process.env[`${prefix}DANGER`] =
|
|
1853
|
+
if (config.danger) {
|
|
1854
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
1855
1855
|
}
|
|
1856
|
-
if (
|
|
1857
|
-
process.env[`${prefix}FATAL`] =
|
|
1856
|
+
if (config.fatal) {
|
|
1857
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1858
1858
|
}
|
|
1859
|
-
if (
|
|
1860
|
-
process.env[`${prefix}POSITIVE`] =
|
|
1859
|
+
if (config.positive) {
|
|
1860
|
+
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1861
1861
|
}
|
|
1862
|
-
if (
|
|
1863
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
1862
|
+
if (config.negative) {
|
|
1863
|
+
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1864
1864
|
}
|
|
1865
|
-
if (
|
|
1866
|
-
for (let i = 0; i <
|
|
1867
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
1865
|
+
if (config.gradient) {
|
|
1866
|
+
for (let i = 0; i < config.gradient.length; i++) {
|
|
1867
|
+
process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
@@ -1899,7 +1899,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
|
|
|
1899
1899
|
defaultConfig
|
|
1900
1900
|
);
|
|
1901
1901
|
if (!configInput.variant) {
|
|
1902
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
1902
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1903
1903
|
}
|
|
1904
1904
|
try {
|
|
1905
1905
|
result = applyDefaultConfig(
|
|
@@ -1946,26 +1946,26 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
1946
1946
|
return extension;
|
|
1947
1947
|
};
|
|
1948
1948
|
var loadStormWorkspaceConfig = async (workspaceRoot3, skipLogs = false) => {
|
|
1949
|
-
const
|
|
1949
|
+
const config = await createStormWorkspaceConfig(
|
|
1950
1950
|
void 0,
|
|
1951
1951
|
void 0,
|
|
1952
1952
|
workspaceRoot3,
|
|
1953
1953
|
skipLogs,
|
|
1954
1954
|
true
|
|
1955
1955
|
);
|
|
1956
|
-
setConfigEnv(
|
|
1957
|
-
if (!skipLogs && !
|
|
1956
|
+
setConfigEnv(config);
|
|
1957
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
1958
1958
|
writeTrace(
|
|
1959
1959
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1960
|
-
${formatLogMessage(
|
|
1961
|
-
|
|
1960
|
+
${formatLogMessage(config)}`,
|
|
1961
|
+
config
|
|
1962
1962
|
);
|
|
1963
1963
|
}
|
|
1964
|
-
return
|
|
1964
|
+
return config;
|
|
1965
1965
|
};
|
|
1966
1966
|
|
|
1967
1967
|
// ../config-tools/src/get-config.ts
|
|
1968
|
-
|
|
1968
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
1969
1969
|
function getConfig(workspaceRoot3, skipLogs = false) {
|
|
1970
1970
|
return loadStormWorkspaceConfig(workspaceRoot3, skipLogs);
|
|
1971
1971
|
}
|
|
@@ -1982,7 +1982,7 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
1982
1982
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
1983
1983
|
const stopwatch = getStopwatch(name);
|
|
1984
1984
|
let options = _options;
|
|
1985
|
-
let
|
|
1985
|
+
let config = {};
|
|
1986
1986
|
try {
|
|
1987
1987
|
if (!_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1988
1988
|
throw new Error(
|
|
@@ -1993,8 +1993,8 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1993
1993
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot3;
|
|
1994
1994
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot3;
|
|
1995
1995
|
const projectName = context.projectName;
|
|
1996
|
-
|
|
1997
|
-
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `,
|
|
1996
|
+
config.workspaceRoot = workspaceRoot3;
|
|
1997
|
+
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
1998
1998
|
if (!executorOptions.skipReadingConfig) {
|
|
1999
1999
|
writeTrace(
|
|
2000
2000
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -2003,28 +2003,28 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
2003
2003
|
- sourceRoot: ${sourceRoot}
|
|
2004
2004
|
- projectName: ${projectName}
|
|
2005
2005
|
`,
|
|
2006
|
-
|
|
2006
|
+
config
|
|
2007
2007
|
);
|
|
2008
|
-
|
|
2008
|
+
config = await getConfig(workspaceRoot3);
|
|
2009
2009
|
}
|
|
2010
2010
|
if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.applyDefaultOptions])) {
|
|
2011
|
-
writeDebug("Running the applyDefaultOptions hook...",
|
|
2011
|
+
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
2012
2012
|
options = await Promise.resolve(
|
|
2013
|
-
executorOptions.hooks.applyDefaultOptions(options,
|
|
2013
|
+
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
2014
2014
|
);
|
|
2015
|
-
writeDebug("Completed the applyDefaultOptions hook",
|
|
2015
|
+
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
2016
2016
|
}
|
|
2017
2017
|
writeTrace(
|
|
2018
2018
|
`Executor schema options \u2699\uFE0F
|
|
2019
2019
|
${formatLogMessage(options)}
|
|
2020
2020
|
`,
|
|
2021
|
-
|
|
2021
|
+
config
|
|
2022
2022
|
);
|
|
2023
2023
|
const tokenized = await applyWorkspaceTokens(
|
|
2024
2024
|
options,
|
|
2025
2025
|
_defu.defu.call(void 0,
|
|
2026
|
-
{ workspaceRoot: workspaceRoot3, projectRoot, sourceRoot, projectName, config
|
|
2027
|
-
|
|
2026
|
+
{ workspaceRoot: workspaceRoot3, projectRoot, sourceRoot, projectName, config },
|
|
2027
|
+
config,
|
|
2028
2028
|
context.projectsConfigurations.projects[context.projectName]
|
|
2029
2029
|
),
|
|
2030
2030
|
applyWorkspaceProjectTokens
|
|
@@ -2033,16 +2033,16 @@ ${formatLogMessage(options)}
|
|
|
2033
2033
|
`Executor schema tokenized options \u2699\uFE0F
|
|
2034
2034
|
${formatLogMessage(tokenized)}
|
|
2035
2035
|
`,
|
|
2036
|
-
|
|
2036
|
+
config
|
|
2037
2037
|
);
|
|
2038
2038
|
if (_optionalChain([executorOptions, 'optionalAccess', _69 => _69.hooks, 'optionalAccess', _70 => _70.preProcess])) {
|
|
2039
|
-
writeDebug("Running the preProcess hook...",
|
|
2039
|
+
writeDebug("Running the preProcess hook...", config);
|
|
2040
2040
|
await Promise.resolve(
|
|
2041
|
-
executorOptions.hooks.preProcess(tokenized,
|
|
2041
|
+
executorOptions.hooks.preProcess(tokenized, config)
|
|
2042
2042
|
);
|
|
2043
|
-
writeDebug("Completed the preProcess hook",
|
|
2043
|
+
writeDebug("Completed the preProcess hook", config);
|
|
2044
2044
|
}
|
|
2045
|
-
const ret = executorFn(tokenized, context,
|
|
2045
|
+
const ret = executorFn(tokenized, context, config);
|
|
2046
2046
|
if (_isFunction2(_optionalChain([ret, 'optionalAccess', _71 => _71.next]))) {
|
|
2047
2047
|
const asyncGen = ret;
|
|
2048
2048
|
for await (const iter of asyncGen) {
|
|
@@ -2064,25 +2064,25 @@ ${formatLogMessage(
|
|
|
2064
2064
|
);
|
|
2065
2065
|
}
|
|
2066
2066
|
if (_optionalChain([executorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
|
|
2067
|
-
writeDebug("Running the postProcess hook...",
|
|
2068
|
-
await Promise.resolve(executorOptions.hooks.postProcess(
|
|
2069
|
-
writeDebug("Completed the postProcess hook",
|
|
2067
|
+
writeDebug("Running the postProcess hook...", config);
|
|
2068
|
+
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
2069
|
+
writeDebug("Completed the postProcess hook", config);
|
|
2070
2070
|
}
|
|
2071
2071
|
writeSuccess(`Completed running the ${name} task executor!
|
|
2072
|
-
`,
|
|
2072
|
+
`, config);
|
|
2073
2073
|
return {
|
|
2074
2074
|
success: true
|
|
2075
2075
|
};
|
|
2076
2076
|
} catch (error) {
|
|
2077
2077
|
writeFatal(
|
|
2078
2078
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
2079
|
-
|
|
2079
|
+
config
|
|
2080
2080
|
);
|
|
2081
2081
|
writeError(
|
|
2082
2082
|
`An exception was thrown in the executor's process
|
|
2083
2083
|
- Details: ${error.message}
|
|
2084
2084
|
- Stacktrace: ${error.stack}`,
|
|
2085
|
-
|
|
2085
|
+
config
|
|
2086
2086
|
);
|
|
2087
2087
|
return {
|
|
2088
2088
|
success: false
|
|
@@ -2100,7 +2100,7 @@ var _isFunction2 = (value) => {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
|
|
2102
2102
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2103
|
-
|
|
2103
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2104
2104
|
|
|
2105
2105
|
|
|
2106
2106
|
|
|
@@ -2186,14 +2186,14 @@ function cargoCommandSync(args = "", options) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
2188
|
function cargoMetadata() {
|
|
2189
|
-
const
|
|
2189
|
+
const output2 = cargoCommandSync("metadata --format-version=1", {
|
|
2190
2190
|
stdio: "pipe"
|
|
2191
2191
|
});
|
|
2192
|
-
if (!
|
|
2192
|
+
if (!output2.success) {
|
|
2193
2193
|
console.error("Failed to get cargo metadata");
|
|
2194
2194
|
return null;
|
|
2195
2195
|
}
|
|
2196
|
-
return JSON.parse(
|
|
2196
|
+
return JSON.parse(output2.output);
|
|
2197
2197
|
}
|
|
2198
2198
|
function runProcess(processCmd, ...args) {
|
|
2199
2199
|
const metadata = cargoMetadata();
|
|
@@ -2238,7 +2238,7 @@ var executor_default = withRunExecutor(
|
|
|
2238
2238
|
);
|
|
2239
2239
|
|
|
2240
2240
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2241
|
-
|
|
2241
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2242
2242
|
async function cargoCheckExecutor(options, context) {
|
|
2243
2243
|
const command = buildCargoCommand("check", options, context);
|
|
2244
2244
|
return await cargoCommand(...command);
|
|
@@ -2258,7 +2258,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2258
2258
|
);
|
|
2259
2259
|
|
|
2260
2260
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2261
|
-
|
|
2261
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2262
2262
|
async function cargoClippyExecutor(options, context) {
|
|
2263
2263
|
const command = buildCargoCommand("clippy", options, context);
|
|
2264
2264
|
return await cargoCommand(...command);
|
|
@@ -2279,7 +2279,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2279
2279
|
);
|
|
2280
2280
|
|
|
2281
2281
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2282
|
-
|
|
2282
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2283
2283
|
async function cargoDocExecutor(options, context) {
|
|
2284
2284
|
const opts = { ...options };
|
|
2285
2285
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2309,7 +2309,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2309
2309
|
);
|
|
2310
2310
|
|
|
2311
2311
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2312
|
-
|
|
2312
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2313
2313
|
async function cargoFormatExecutor(options, context) {
|
|
2314
2314
|
const command = buildCargoCommand("fmt", options, context);
|
|
2315
2315
|
return await cargoCommand(...command);
|
|
@@ -2330,7 +2330,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2330
2330
|
);
|
|
2331
2331
|
|
|
2332
2332
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2333
|
-
|
|
2333
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2334
2334
|
|
|
2335
2335
|
|
|
2336
2336
|
|
|
@@ -2338,19 +2338,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2338
2338
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2339
2339
|
|
|
2340
2340
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2341
|
-
|
|
2341
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2342
2342
|
|
|
2343
2343
|
// ../esbuild/src/build.ts
|
|
2344
|
-
|
|
2344
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2345
2345
|
|
|
2346
2346
|
// ../esbuild/src/assets.ts
|
|
2347
|
-
|
|
2347
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2348
2348
|
|
|
2349
2349
|
// ../build-tools/src/index.ts
|
|
2350
|
-
|
|
2350
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2351
2351
|
|
|
2352
2352
|
// ../build-tools/src/config.ts
|
|
2353
|
-
|
|
2353
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2354
2354
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
2355
2355
|
*
|
|
2356
2356
|
* \u26A1 Built by Storm Software
|
|
@@ -2362,39 +2362,39 @@ var DEFAULT_TARGET = "esnext";
|
|
|
2362
2362
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2363
2363
|
|
|
2364
2364
|
// ../build-tools/src/plugins/index.ts
|
|
2365
|
-
|
|
2365
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2366
2366
|
|
|
2367
2367
|
// ../build-tools/src/plugins/analyze.ts
|
|
2368
|
-
|
|
2368
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2369
2369
|
|
|
2370
2370
|
// ../build-tools/src/plugins/swc.ts
|
|
2371
|
-
|
|
2371
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2372
2372
|
var _core = require('@swc/core');
|
|
2373
2373
|
|
|
2374
2374
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2375
|
-
|
|
2375
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2376
2376
|
|
|
2377
2377
|
var _module = require('module');
|
|
2378
2378
|
|
|
2379
2379
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2380
2380
|
|
|
2381
2381
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2382
|
-
|
|
2382
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2383
2383
|
|
|
2384
2384
|
|
|
2385
2385
|
|
|
2386
2386
|
// ../build-tools/src/types.ts
|
|
2387
|
-
|
|
2387
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2388
2388
|
|
|
2389
2389
|
// ../build-tools/src/utilities/index.ts
|
|
2390
|
-
|
|
2390
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2391
2391
|
|
|
2392
2392
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2393
|
-
|
|
2393
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2394
2394
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2395
2395
|
var _glob = require('glob');
|
|
2396
2396
|
|
|
2397
|
-
var copyAssets = async (
|
|
2397
|
+
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
2398
2398
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
2399
2399
|
pendingAssets.push({
|
|
2400
2400
|
input: projectRoot,
|
|
@@ -2422,30 +2422,30 @@ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, ge
|
|
|
2422
2422
|
}
|
|
2423
2423
|
writeTrace(
|
|
2424
2424
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2425
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2426
|
-
|
|
2425
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkQTJS4PSIjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2426
|
+
config
|
|
2427
2427
|
);
|
|
2428
2428
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
2429
2429
|
projectDir: projectRoot,
|
|
2430
|
-
rootDir:
|
|
2430
|
+
rootDir: config.workspaceRoot,
|
|
2431
2431
|
outputDir: outputPath,
|
|
2432
2432
|
assets: pendingAssets
|
|
2433
2433
|
});
|
|
2434
2434
|
await assetHandler.processAllAssetsOnce();
|
|
2435
|
-
writeTrace("Completed copying assets to the output directory",
|
|
2435
|
+
writeTrace("Completed copying assets to the output directory", config);
|
|
2436
2436
|
if (includeSrc === true) {
|
|
2437
2437
|
writeDebug(
|
|
2438
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2438
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2439
2439
|
outputPath,
|
|
2440
2440
|
"src"
|
|
2441
2441
|
)}`,
|
|
2442
|
-
|
|
2442
|
+
config
|
|
2443
2443
|
);
|
|
2444
2444
|
const files = await _glob.glob.call(void 0, [
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2445
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2446
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2447
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2448
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2449
2449
|
]);
|
|
2450
2450
|
await Promise.allSettled(
|
|
2451
2451
|
files.map(
|
|
@@ -2463,7 +2463,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2463
2463
|
};
|
|
2464
2464
|
|
|
2465
2465
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2466
|
-
|
|
2466
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2467
2467
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2468
2468
|
|
|
2469
2469
|
|
|
@@ -2501,7 +2501,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2501
2501
|
)) {
|
|
2502
2502
|
const projectNode = project.node;
|
|
2503
2503
|
if (projectNode.data.root) {
|
|
2504
|
-
const projectPackageJsonPath =
|
|
2504
|
+
const projectPackageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2505
2505
|
workspaceRoot3,
|
|
2506
2506
|
projectNode.data.root,
|
|
2507
2507
|
"package.json"
|
|
@@ -2523,7 +2523,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2523
2523
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2524
2524
|
);
|
|
2525
2525
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2526
|
-
|
|
2526
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2527
2527
|
"utf8"
|
|
2528
2528
|
);
|
|
2529
2529
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2536,7 +2536,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2536
2536
|
}
|
|
2537
2537
|
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) => {
|
|
2538
2538
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2539
|
-
const depPackageJsonPath =
|
|
2539
|
+
const depPackageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2540
2540
|
workspaceRoot3,
|
|
2541
2541
|
projectConfigurations.projects[dep].root,
|
|
2542
2542
|
"package.json"
|
|
@@ -2574,7 +2574,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2574
2574
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2575
2575
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2576
2576
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2577
|
-
|
|
2577
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
2578
2578
|
"utf8"
|
|
2579
2579
|
);
|
|
2580
2580
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2585,7 +2585,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2585
2585
|
if (distSrc.startsWith("/")) {
|
|
2586
2586
|
distSrc = distSrc.substring(1);
|
|
2587
2587
|
}
|
|
2588
|
-
packageJson.source ??= `${
|
|
2588
|
+
packageJson.source ??= `${_chunkQTJS4PSIjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2589
2589
|
}
|
|
2590
2590
|
packageJson.files ??= ["dist/**/*"];
|
|
2591
2591
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2610,7 +2610,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2610
2610
|
packageJson.contributors = [packageJson.author];
|
|
2611
2611
|
}
|
|
2612
2612
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2613
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2613
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkQTJS4PSIjs.joinPaths.call(void 0, "packages", projectName);
|
|
2614
2614
|
return packageJson;
|
|
2615
2615
|
};
|
|
2616
2616
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2635,11 +2635,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
|
2635
2635
|
};
|
|
2636
2636
|
|
|
2637
2637
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2638
|
-
|
|
2638
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2639
2639
|
|
|
2640
2640
|
|
|
2641
2641
|
// ../build-tools/src/utilities/get-env.ts
|
|
2642
|
-
|
|
2642
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2643
2643
|
var getEnv = (builder, options) => {
|
|
2644
2644
|
return {
|
|
2645
2645
|
STORM_BUILD: builder,
|
|
@@ -2654,21 +2654,21 @@ var getEnv = (builder, options) => {
|
|
|
2654
2654
|
};
|
|
2655
2655
|
|
|
2656
2656
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2657
|
-
|
|
2657
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2658
2658
|
|
|
2659
2659
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2660
|
-
|
|
2660
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2661
2661
|
|
|
2662
2662
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2663
|
-
|
|
2663
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2664
2664
|
|
|
2665
2665
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2666
|
-
|
|
2666
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2667
2667
|
|
|
2668
2668
|
|
|
2669
2669
|
|
|
2670
2670
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2671
|
-
|
|
2671
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2672
2672
|
|
|
2673
2673
|
|
|
2674
2674
|
|
|
@@ -2697,14 +2697,14 @@ async function copyBuildAssets(context) {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
|
|
2699
2699
|
// ../esbuild/src/clean.ts
|
|
2700
|
-
|
|
2700
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2701
2701
|
|
|
2702
2702
|
async function cleanDirectories(directory) {
|
|
2703
2703
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2704
2704
|
}
|
|
2705
2705
|
|
|
2706
2706
|
// ../esbuild/src/context.ts
|
|
2707
|
-
|
|
2707
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2708
2708
|
|
|
2709
2709
|
|
|
2710
2710
|
|
|
@@ -2715,7 +2715,7 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
2715
2715
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2716
2716
|
|
|
2717
2717
|
// ../esbuild/src/config.ts
|
|
2718
|
-
|
|
2718
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2719
2719
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2720
2720
|
platform: "node",
|
|
2721
2721
|
target: "node22",
|
|
@@ -2773,7 +2773,7 @@ async function resolveContext(userOptions) {
|
|
|
2773
2773
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2774
2774
|
exitOnError: true
|
|
2775
2775
|
});
|
|
2776
|
-
const projectJsonPath =
|
|
2776
|
+
const projectJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2777
2777
|
workspaceRoot3.dir,
|
|
2778
2778
|
projectRoot,
|
|
2779
2779
|
"project.json"
|
|
@@ -2792,7 +2792,7 @@ async function resolveContext(userOptions) {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2794
2794
|
options.name ??= projectName;
|
|
2795
|
-
const packageJsonPath =
|
|
2795
|
+
const packageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2796
2796
|
workspaceRoot3.dir,
|
|
2797
2797
|
options.projectRoot,
|
|
2798
2798
|
"package.json"
|
|
@@ -2804,7 +2804,7 @@ async function resolveContext(userOptions) {
|
|
|
2804
2804
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2805
2805
|
const resolvedOptions = {
|
|
2806
2806
|
...options,
|
|
2807
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2807
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkQTJS4PSIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2808
2808
|
metafile: userOptions.mode === "development",
|
|
2809
2809
|
clean: false,
|
|
2810
2810
|
env,
|
|
@@ -2829,8 +2829,8 @@ async function resolveContext(userOptions) {
|
|
|
2829
2829
|
projectConfigurations,
|
|
2830
2830
|
projectName,
|
|
2831
2831
|
projectGraph,
|
|
2832
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2833
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2832
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkQTJS4PSIjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2833
|
+
outputPath: resolvedOptions.outputPath || _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2834
2834
|
workspaceConfig.workspaceRoot,
|
|
2835
2835
|
"dist",
|
|
2836
2836
|
resolvedOptions.projectRoot
|
|
@@ -2850,15 +2850,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2850
2850
|
}
|
|
2851
2851
|
|
|
2852
2852
|
// ../esbuild/src/package-json.ts
|
|
2853
|
-
|
|
2853
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2854
2854
|
|
|
2855
2855
|
|
|
2856
2856
|
|
|
2857
2857
|
async function generatePackageJson(context) {
|
|
2858
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2858
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2859
2859
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2860
2860
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2861
|
-
const packageJsonPath =
|
|
2861
|
+
const packageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2862
2862
|
context.options.projectRoot,
|
|
2863
2863
|
"project.json"
|
|
2864
2864
|
);
|
|
@@ -2866,7 +2866,7 @@ async function generatePackageJson(context) {
|
|
|
2866
2866
|
throw new Error("Cannot find package.json configuration");
|
|
2867
2867
|
}
|
|
2868
2868
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2869
|
-
|
|
2869
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
2870
2870
|
context.workspaceConfig.workspaceRoot,
|
|
2871
2871
|
context.options.projectRoot,
|
|
2872
2872
|
"package.json"
|
|
@@ -2972,7 +2972,7 @@ async function generatePackageJson(context) {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
}
|
|
2974
2974
|
await _devkit.writeJsonFile.call(void 0,
|
|
2975
|
-
|
|
2975
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2976
2976
|
packageJson
|
|
2977
2977
|
);
|
|
2978
2978
|
stopwatch();
|
|
@@ -2981,10 +2981,10 @@ async function generatePackageJson(context) {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
|
|
2983
2983
|
// ../esbuild/src/tsup.ts
|
|
2984
|
-
|
|
2984
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2985
2985
|
|
|
2986
2986
|
// ../tsup/src/index.ts
|
|
2987
|
-
|
|
2987
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
2988
2988
|
var _tsup = require('tsup');
|
|
2989
2989
|
async function build(options) {
|
|
2990
2990
|
if (!options.silent) {
|
|
@@ -3009,7 +3009,7 @@ async function executeTsup(context) {
|
|
|
3009
3009
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3010
3010
|
await build({
|
|
3011
3011
|
...context.options,
|
|
3012
|
-
outDir: context.options.distDir ?
|
|
3012
|
+
outDir: context.options.distDir ? _chunkQTJS4PSIjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3013
3013
|
workspaceConfig: context.workspaceConfig
|
|
3014
3014
|
});
|
|
3015
3015
|
stopwatch();
|
|
@@ -3080,8 +3080,8 @@ async function build2(options) {
|
|
|
3080
3080
|
}
|
|
3081
3081
|
|
|
3082
3082
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
3083
|
-
async function esbuildExecutorFn(options, context,
|
|
3084
|
-
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace",
|
|
3083
|
+
async function esbuildExecutorFn(options, context, config) {
|
|
3084
|
+
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
3085
3085
|
if (!_optionalChain([context, 'access', _128 => _128.projectsConfigurations, 'optionalAccess', _129 => _129.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _130 => _130.projectsConfigurations, 'access', _131 => _131.projects, 'access', _132 => _132[context.projectName], 'optionalAccess', _133 => _133.root])) {
|
|
3086
3086
|
throw new Error(
|
|
3087
3087
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -3119,17 +3119,17 @@ var executor_default6 = withRunExecutor(
|
|
|
3119
3119
|
);
|
|
3120
3120
|
|
|
3121
3121
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3122
|
-
|
|
3122
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3123
3123
|
|
|
3124
3124
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3125
|
-
|
|
3125
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3126
3126
|
|
|
3127
3127
|
|
|
3128
3128
|
// ../npm-tools/src/constants.ts
|
|
3129
|
-
|
|
3129
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3130
3130
|
|
|
3131
3131
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3132
|
-
|
|
3132
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3133
3133
|
|
|
3134
3134
|
|
|
3135
3135
|
|
|
@@ -3139,17 +3139,17 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
3139
3139
|
var _prettier = require('prettier');
|
|
3140
3140
|
|
|
3141
3141
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3142
|
-
|
|
3142
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3143
3143
|
|
|
3144
3144
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3145
|
-
|
|
3145
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3146
3146
|
|
|
3147
3147
|
|
|
3148
3148
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3149
3149
|
var _semver = require('semver');
|
|
3150
3150
|
|
|
3151
3151
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3152
|
-
|
|
3152
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3153
3153
|
|
|
3154
3154
|
|
|
3155
3155
|
var _yaml = require('yaml');
|
|
@@ -3160,7 +3160,7 @@ var _yaml = require('yaml');
|
|
|
3160
3160
|
|
|
3161
3161
|
|
|
3162
3162
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3163
|
-
|
|
3163
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3164
3164
|
|
|
3165
3165
|
|
|
3166
3166
|
|
|
@@ -3172,7 +3172,7 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
3172
3172
|
|
|
3173
3173
|
|
|
3174
3174
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3175
|
-
|
|
3175
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3176
3176
|
var ProjectTagConstants = {
|
|
3177
3177
|
Language: {
|
|
3178
3178
|
TAG_ID: "language",
|
|
@@ -3236,19 +3236,19 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3236
3236
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3237
3237
|
|
|
3238
3238
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3239
|
-
|
|
3239
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3240
3240
|
|
|
3241
3241
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3242
3242
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
3243
3243
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3244
3244
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
3245
|
-
async function sizeLimitExecutorFn(options, context,
|
|
3245
|
+
async function sizeLimitExecutorFn(options, context, config) {
|
|
3246
3246
|
if (!_optionalChain([context, 'optionalAccess', _142 => _142.projectName]) || !_optionalChain([context, 'access', _143 => _143.projectsConfigurations, 'optionalAccess', _144 => _144.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3247
3247
|
throw new Error(
|
|
3248
3248
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
3249
3249
|
);
|
|
3250
3250
|
}
|
|
3251
|
-
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`,
|
|
3251
|
+
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
3252
3252
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
3253
3253
|
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,
|
|
3254
3254
|
_nullishCoalesce(_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context.projectName], 'optionalAccess', _152 => _152.root]), () => ( "./")),
|
|
@@ -3257,7 +3257,7 @@ async function sizeLimitExecutorFn(options, context, config5) {
|
|
|
3257
3257
|
}).then((result) => {
|
|
3258
3258
|
writeInfo(
|
|
3259
3259
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
3260
|
-
|
|
3260
|
+
config
|
|
3261
3261
|
);
|
|
3262
3262
|
});
|
|
3263
3263
|
return {
|
|
@@ -3278,10 +3278,10 @@ var executor_default7 = withRunExecutor(
|
|
|
3278
3278
|
);
|
|
3279
3279
|
|
|
3280
3280
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3281
|
-
|
|
3281
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3282
3282
|
|
|
3283
3283
|
// ../tsdown/src/build.ts
|
|
3284
|
-
|
|
3284
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3285
3285
|
|
|
3286
3286
|
|
|
3287
3287
|
|
|
@@ -3293,15 +3293,15 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
3293
3293
|
var _tsdown = require('tsdown');
|
|
3294
3294
|
|
|
3295
3295
|
// ../tsdown/src/clean.ts
|
|
3296
|
-
|
|
3296
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3297
3297
|
|
|
3298
|
-
async function cleanDirectories2(name = "TSDown", directory,
|
|
3298
|
+
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
3299
3299
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3300
3300
|
}
|
|
3301
3301
|
|
|
3302
3302
|
// ../tsdown/src/config.ts
|
|
3303
|
-
|
|
3304
|
-
function getDefaultOptions(
|
|
3303
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3304
|
+
function getDefaultOptions(config) {
|
|
3305
3305
|
return {
|
|
3306
3306
|
entry: ["./src/*.ts"],
|
|
3307
3307
|
platform: "node",
|
|
@@ -3314,7 +3314,7 @@ function getDefaultOptions(config5) {
|
|
|
3314
3314
|
},
|
|
3315
3315
|
publint: true,
|
|
3316
3316
|
fixedExtension: true,
|
|
3317
|
-
...
|
|
3317
|
+
...config
|
|
3318
3318
|
};
|
|
3319
3319
|
}
|
|
3320
3320
|
function toTSDownFormat(format4) {
|
|
@@ -3343,7 +3343,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3343
3343
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3344
3344
|
exitOnError: true
|
|
3345
3345
|
});
|
|
3346
|
-
const projectJsonPath =
|
|
3346
|
+
const projectJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
3347
3347
|
workspaceRoot3,
|
|
3348
3348
|
options.projectRoot,
|
|
3349
3349
|
"project.json"
|
|
@@ -3360,7 +3360,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3360
3360
|
"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."
|
|
3361
3361
|
);
|
|
3362
3362
|
}
|
|
3363
|
-
const packageJsonPath =
|
|
3363
|
+
const packageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
3364
3364
|
workspaceRoot3,
|
|
3365
3365
|
options.projectRoot,
|
|
3366
3366
|
"package.json"
|
|
@@ -3369,13 +3369,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3369
3369
|
throw new Error("Cannot find package.json configuration");
|
|
3370
3370
|
}
|
|
3371
3371
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3372
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3372
|
+
const sourceRoot = projectJson.sourceRoot || _chunkQTJS4PSIjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3373
3373
|
const result = {
|
|
3374
3374
|
name: projectName,
|
|
3375
3375
|
mode: "production",
|
|
3376
3376
|
target: DEFAULT_TARGET,
|
|
3377
3377
|
generatePackageJson: true,
|
|
3378
|
-
outDir:
|
|
3378
|
+
outDir: _chunkQTJS4PSIjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3379
3379
|
minify: !debug,
|
|
3380
3380
|
plugins: [],
|
|
3381
3381
|
assets: [],
|
|
@@ -3387,12 +3387,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3387
3387
|
clean: false,
|
|
3388
3388
|
fixedExtension: true,
|
|
3389
3389
|
nodeProtocol: true,
|
|
3390
|
-
tsconfig:
|
|
3390
|
+
tsconfig: _chunkQTJS4PSIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3391
3391
|
debug,
|
|
3392
3392
|
sourceRoot,
|
|
3393
3393
|
cwd: workspaceConfig.workspaceRoot,
|
|
3394
3394
|
entry: {
|
|
3395
|
-
["index"]:
|
|
3395
|
+
["index"]: _chunkQTJS4PSIjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3396
3396
|
},
|
|
3397
3397
|
workspace: true,
|
|
3398
3398
|
...options,
|
|
@@ -3411,15 +3411,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3411
3411
|
return result;
|
|
3412
3412
|
};
|
|
3413
3413
|
async function generatePackageJson2(options) {
|
|
3414
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3414
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3415
3415
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3416
3416
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3417
|
-
const packageJsonPath =
|
|
3417
|
+
const packageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3418
3418
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3419
3419
|
throw new Error("Cannot find package.json configuration");
|
|
3420
3420
|
}
|
|
3421
3421
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3422
|
-
|
|
3422
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
3423
3423
|
options.workspaceConfig.workspaceRoot,
|
|
3424
3424
|
options.projectRoot,
|
|
3425
3425
|
"package.json"
|
|
@@ -3481,7 +3481,7 @@ async function generatePackageJson2(options) {
|
|
|
3481
3481
|
},
|
|
3482
3482
|
packageJson.exports
|
|
3483
3483
|
);
|
|
3484
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3484
|
+
await _devkit.writeJsonFile.call(void 0, _chunkQTJS4PSIjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3485
3485
|
stopwatch();
|
|
3486
3486
|
}
|
|
3487
3487
|
return options;
|
|
@@ -3575,8 +3575,8 @@ async function build3(options) {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
|
|
3577
3577
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3578
|
-
async function tsdownExecutorFn(options, context,
|
|
3579
|
-
writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace",
|
|
3578
|
+
async function tsdownExecutorFn(options, context, config) {
|
|
3579
|
+
writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
3580
3580
|
if (!_optionalChain([context, 'access', _155 => _155.projectsConfigurations, 'optionalAccess', _156 => _156.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _157 => _157.projectsConfigurations, 'access', _158 => _158.projects, 'access', _159 => _159[context.projectName], 'optionalAccess', _160 => _160.root])) {
|
|
3581
3581
|
throw new Error(
|
|
3582
3582
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -3614,17 +3614,17 @@ var executor_default8 = withRunExecutor(
|
|
|
3614
3614
|
);
|
|
3615
3615
|
|
|
3616
3616
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3617
|
-
|
|
3617
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3618
3618
|
var _fsextra = require('fs-extra');
|
|
3619
3619
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3620
|
-
async function typiaExecutorFn(options, _,
|
|
3620
|
+
async function typiaExecutorFn(options, _, config) {
|
|
3621
3621
|
if (options.clean !== false) {
|
|
3622
|
-
writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`,
|
|
3622
|
+
writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
3623
3623
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
3624
3624
|
}
|
|
3625
3625
|
await Promise.all(
|
|
3626
3626
|
options.entry.map((entry) => {
|
|
3627
|
-
writeInfo(`\u{1F680} Running Typia on entry: ${entry}`,
|
|
3627
|
+
writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
3628
3628
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
3629
3629
|
input: entry,
|
|
3630
3630
|
output: options.outputPath,
|
|
@@ -3654,11 +3654,11 @@ var executor_default9 = withRunExecutor(
|
|
|
3654
3654
|
);
|
|
3655
3655
|
|
|
3656
3656
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3657
|
-
|
|
3657
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3658
3658
|
|
|
3659
3659
|
var _jiti = require('jiti');
|
|
3660
|
-
async function unbuildExecutorFn(options, context,
|
|
3661
|
-
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace",
|
|
3660
|
+
async function unbuildExecutorFn(options, context, config) {
|
|
3661
|
+
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3662
3662
|
if (!_optionalChain([context, 'access', _169 => _169.projectsConfigurations, 'optionalAccess', _170 => _170.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3663
3663
|
throw new Error(
|
|
3664
3664
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -3674,10 +3674,10 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
3674
3674
|
"The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
|
|
3675
3675
|
);
|
|
3676
3676
|
}
|
|
3677
|
-
const jiti = _jiti.createJiti.call(void 0,
|
|
3678
|
-
fsCache:
|
|
3679
|
-
|
|
3680
|
-
|
|
3677
|
+
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3678
|
+
fsCache: config.skipCache ? false : _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
3679
|
+
config.workspaceRoot,
|
|
3680
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
3681
3681
|
"jiti"
|
|
3682
3682
|
),
|
|
3683
3683
|
interopDefault: true
|
|
@@ -3697,9 +3697,9 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
3697
3697
|
{
|
|
3698
3698
|
stubOptions: {
|
|
3699
3699
|
jiti: {
|
|
3700
|
-
fsCache:
|
|
3701
|
-
|
|
3702
|
-
|
|
3700
|
+
fsCache: config.skipCache ? false : _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
3701
|
+
config.workspaceRoot,
|
|
3702
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
3703
3703
|
"jiti"
|
|
3704
3704
|
)
|
|
3705
3705
|
}
|
|
@@ -3732,7 +3732,7 @@ var executor_default10 = withRunExecutor(
|
|
|
3732
3732
|
{
|
|
3733
3733
|
skipReadingConfig: false,
|
|
3734
3734
|
hooks: {
|
|
3735
|
-
applyDefaultOptions: async (options,
|
|
3735
|
+
applyDefaultOptions: async (options, config) => {
|
|
3736
3736
|
options.debug ??= false;
|
|
3737
3737
|
options.treeShaking ??= true;
|
|
3738
3738
|
options.buildOnly ??= false;
|
|
@@ -3746,10 +3746,10 @@ var executor_default10 = withRunExecutor(
|
|
|
3746
3746
|
);
|
|
3747
3747
|
|
|
3748
3748
|
// ../workspace-tools/generators.ts
|
|
3749
|
-
|
|
3749
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3750
3750
|
|
|
3751
3751
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3752
|
-
|
|
3752
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3753
3753
|
|
|
3754
3754
|
|
|
3755
3755
|
|
|
@@ -3758,52 +3758,52 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
3758
3758
|
|
|
3759
3759
|
|
|
3760
3760
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3761
|
-
|
|
3761
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3762
3762
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3763
3763
|
skipReadingConfig: false
|
|
3764
3764
|
}) => async (tree, _options) => {
|
|
3765
3765
|
const stopwatch = getStopwatch(name);
|
|
3766
3766
|
let options = _options;
|
|
3767
|
-
let
|
|
3767
|
+
let config;
|
|
3768
3768
|
try {
|
|
3769
3769
|
writeInfo(`\u26A1 Running the ${name} generator...
|
|
3770
3770
|
|
|
3771
|
-
`,
|
|
3771
|
+
`, config);
|
|
3772
3772
|
const workspaceRoot3 = findWorkspaceRoot();
|
|
3773
3773
|
if (!generatorOptions.skipReadingConfig) {
|
|
3774
3774
|
writeDebug(
|
|
3775
3775
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
3776
3776
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
3777
|
-
|
|
3777
|
+
config
|
|
3778
3778
|
);
|
|
3779
|
-
|
|
3779
|
+
config = await getConfig(workspaceRoot3);
|
|
3780
3780
|
}
|
|
3781
3781
|
if (_optionalChain([generatorOptions, 'optionalAccess', _171 => _171.hooks, 'optionalAccess', _172 => _172.applyDefaultOptions])) {
|
|
3782
|
-
writeDebug("Running the applyDefaultOptions hook...",
|
|
3782
|
+
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
3783
3783
|
options = await Promise.resolve(
|
|
3784
|
-
generatorOptions.hooks.applyDefaultOptions(options,
|
|
3784
|
+
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
3785
3785
|
);
|
|
3786
|
-
writeDebug("Completed the applyDefaultOptions hook",
|
|
3786
|
+
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
3787
3787
|
}
|
|
3788
3788
|
writeTrace(
|
|
3789
3789
|
`Generator schema options \u2699\uFE0F
|
|
3790
3790
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
3791
|
-
|
|
3791
|
+
config
|
|
3792
3792
|
);
|
|
3793
3793
|
const tokenized = await applyWorkspaceTokens(
|
|
3794
3794
|
options,
|
|
3795
|
-
{ workspaceRoot: tree.root, config
|
|
3795
|
+
{ workspaceRoot: tree.root, config },
|
|
3796
3796
|
applyWorkspaceBaseTokens
|
|
3797
3797
|
);
|
|
3798
3798
|
if (_optionalChain([generatorOptions, 'optionalAccess', _173 => _173.hooks, 'optionalAccess', _174 => _174.preProcess])) {
|
|
3799
|
-
writeDebug("Running the preProcess hook...",
|
|
3799
|
+
writeDebug("Running the preProcess hook...", config);
|
|
3800
3800
|
await Promise.resolve(
|
|
3801
|
-
generatorOptions.hooks.preProcess(tokenized,
|
|
3801
|
+
generatorOptions.hooks.preProcess(tokenized, config)
|
|
3802
3802
|
);
|
|
3803
|
-
writeDebug("Completed the preProcess hook",
|
|
3803
|
+
writeDebug("Completed the preProcess hook", config);
|
|
3804
3804
|
}
|
|
3805
3805
|
const result = await Promise.resolve(
|
|
3806
|
-
generatorFn(tree, tokenized,
|
|
3806
|
+
generatorFn(tree, tokenized, config)
|
|
3807
3807
|
);
|
|
3808
3808
|
if (result) {
|
|
3809
3809
|
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _175 => _175.error, 'optionalAccess', _176 => _176.message]) && typeof _optionalChain([result, 'optionalAccess', _177 => _177.error, 'optionalAccess', _178 => _178.message]) === "string" && _optionalChain([result, 'optionalAccess', _179 => _179.error, 'optionalAccess', _180 => _180.name]) && typeof _optionalChain([result, 'optionalAccess', _181 => _181.error, 'optionalAccess', _182 => _182.name]) === "string") {
|
|
@@ -3815,25 +3815,25 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3815
3815
|
}
|
|
3816
3816
|
}
|
|
3817
3817
|
if (_optionalChain([generatorOptions, 'optionalAccess', _184 => _184.hooks, 'optionalAccess', _185 => _185.postProcess])) {
|
|
3818
|
-
writeDebug("Running the postProcess hook...",
|
|
3819
|
-
await Promise.resolve(generatorOptions.hooks.postProcess(
|
|
3820
|
-
writeDebug("Completed the postProcess hook",
|
|
3818
|
+
writeDebug("Running the postProcess hook...", config);
|
|
3819
|
+
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
3820
|
+
writeDebug("Completed the postProcess hook", config);
|
|
3821
3821
|
}
|
|
3822
3822
|
return () => {
|
|
3823
3823
|
writeSuccess(`Completed running the ${name} generator!
|
|
3824
|
-
`,
|
|
3824
|
+
`, config);
|
|
3825
3825
|
};
|
|
3826
3826
|
} catch (error) {
|
|
3827
3827
|
return () => {
|
|
3828
3828
|
writeFatal(
|
|
3829
3829
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
3830
|
-
|
|
3830
|
+
config
|
|
3831
3831
|
);
|
|
3832
3832
|
writeError(
|
|
3833
3833
|
`An exception was thrown in the generator's process
|
|
3834
3834
|
- Details: ${error.message}
|
|
3835
3835
|
- Stacktrace: ${error.stack}`,
|
|
3836
|
-
|
|
3836
|
+
config
|
|
3837
3837
|
);
|
|
3838
3838
|
};
|
|
3839
3839
|
} finally {
|
|
@@ -3842,7 +3842,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3842
3842
|
};
|
|
3843
3843
|
|
|
3844
3844
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3845
|
-
|
|
3845
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3846
3846
|
|
|
3847
3847
|
|
|
3848
3848
|
|
|
@@ -3864,14 +3864,14 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3864
3864
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3865
3865
|
|
|
3866
3866
|
// ../workspace-tools/src/utils/versions.ts
|
|
3867
|
-
|
|
3867
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
3868
3868
|
var typesNodeVersion = "20.9.0";
|
|
3869
3869
|
var nxVersion = "^18.0.4";
|
|
3870
3870
|
var nodeVersion = "20.11.0";
|
|
3871
3871
|
var pnpmVersion = "8.10.2";
|
|
3872
3872
|
|
|
3873
3873
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3874
|
-
async function typeScriptLibraryGeneratorFn(tree, options,
|
|
3874
|
+
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
3875
3875
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
3876
3876
|
const tasks = [];
|
|
3877
3877
|
tasks.push(
|
|
@@ -3897,16 +3897,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
3897
3897
|
const projectConfig = {
|
|
3898
3898
|
root: normalized.directory,
|
|
3899
3899
|
projectType: "library",
|
|
3900
|
-
sourceRoot:
|
|
3900
|
+
sourceRoot: _chunkQTJS4PSIjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3901
3901
|
targets: {
|
|
3902
3902
|
build: {
|
|
3903
3903
|
executor: options.buildExecutor,
|
|
3904
3904
|
outputs: ["{options.outputPath}"],
|
|
3905
3905
|
options: {
|
|
3906
|
-
entry: [
|
|
3906
|
+
entry: [_chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3907
3907
|
outputPath: getOutputPath(normalized),
|
|
3908
|
-
tsconfig:
|
|
3909
|
-
project:
|
|
3908
|
+
tsconfig: _chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3909
|
+
project: _chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3910
3910
|
defaultConfiguration: "production",
|
|
3911
3911
|
platform: "neutral",
|
|
3912
3912
|
assets: [
|
|
@@ -3948,7 +3948,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
3948
3948
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3949
3949
|
let repository = {
|
|
3950
3950
|
type: "github",
|
|
3951
|
-
url: _optionalChain([
|
|
3951
|
+
url: _optionalChain([config, 'optionalAccess', _186 => _186.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _187 => _187.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _188 => _188.organization]) : _optionalChain([config, 'optionalAccess', _189 => _189.organization, 'optionalAccess', _190 => _190.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _191 => _191.namespace]) || _optionalChain([config, 'optionalAccess', _192 => _192.name]) || "repository"}.git`
|
|
3952
3952
|
};
|
|
3953
3953
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3954
3954
|
if (tree.exists("package.json")) {
|
|
@@ -3963,7 +3963,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
3963
3963
|
if (!normalized.importPath) {
|
|
3964
3964
|
normalized.importPath = normalized.name;
|
|
3965
3965
|
}
|
|
3966
|
-
const packageJsonPath =
|
|
3966
|
+
const packageJsonPath = _chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3967
3967
|
if (tree.exists(packageJsonPath)) {
|
|
3968
3968
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3969
3969
|
if (!normalized.importPath) {
|
|
@@ -4020,14 +4020,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
4020
4020
|
}));
|
|
4021
4021
|
}
|
|
4022
4022
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4023
|
-
|
|
4023
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
4024
4024
|
normalized.projectRoot,
|
|
4025
4025
|
"./src",
|
|
4026
4026
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4027
4027
|
)
|
|
4028
4028
|
]);
|
|
4029
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4030
|
-
|
|
4029
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4030
|
+
_chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4031
4031
|
]);
|
|
4032
4032
|
if (tree.exists("package.json")) {
|
|
4033
4033
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4038,7 +4038,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
4038
4038
|
description = packageJson.description;
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
|
-
const tsconfigPath =
|
|
4041
|
+
const tsconfigPath = _chunkQTJS4PSIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4042
4042
|
if (tree.exists(tsconfigPath)) {
|
|
4043
4043
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4044
4044
|
json.composite ??= true;
|
|
@@ -4066,7 +4066,7 @@ function getOutputPath(options) {
|
|
|
4066
4066
|
} else {
|
|
4067
4067
|
parts.push(options.projectRoot);
|
|
4068
4068
|
}
|
|
4069
|
-
return
|
|
4069
|
+
return _chunkQTJS4PSIjs.joinPaths.call(void 0, ...parts);
|
|
4070
4070
|
}
|
|
4071
4071
|
function createProjectTsConfigJson(tree, options) {
|
|
4072
4072
|
const tsconfig = {
|
|
@@ -4074,7 +4074,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4074
4074
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _200 => _200.tsconfigOptions]), () => ( {})),
|
|
4075
4075
|
compilerOptions: {
|
|
4076
4076
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4077
|
-
outDir:
|
|
4077
|
+
outDir: _chunkQTJS4PSIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4078
4078
|
noEmit: true,
|
|
4079
4079
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _201 => _201.tsconfigOptions, 'optionalAccess', _202 => _202.compilerOptions]), () => ( {}))
|
|
4080
4080
|
},
|
|
@@ -4092,12 +4092,12 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4092
4092
|
"src/**/*.test.ts"
|
|
4093
4093
|
]
|
|
4094
4094
|
};
|
|
4095
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4095
|
+
_devkit.writeJson.call(void 0, tree, _chunkQTJS4PSIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4096
4096
|
}
|
|
4097
|
-
async function normalizeOptions(tree, options,
|
|
4097
|
+
async function normalizeOptions(tree, options, config) {
|
|
4098
4098
|
let importPath = options.importPath;
|
|
4099
|
-
if (!importPath && _optionalChain([
|
|
4100
|
-
importPath = `@${_optionalChain([
|
|
4099
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _209 => _209.namespace])) {
|
|
4100
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _210 => _210.namespace])}/${options.name}`;
|
|
4101
4101
|
}
|
|
4102
4102
|
if (options.publishable) {
|
|
4103
4103
|
if (!importPath) {
|
|
@@ -4156,8 +4156,8 @@ async function normalizeOptions(tree, options, config5) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
|
|
4158
4158
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4159
|
-
async function browserLibraryGeneratorFn(tree, schema,
|
|
4160
|
-
const filesDir =
|
|
4159
|
+
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4160
|
+
const filesDir = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
4161
4161
|
__dirname,
|
|
4162
4162
|
"src",
|
|
4163
4163
|
"generators",
|
|
@@ -4218,7 +4218,7 @@ async function browserLibraryGeneratorFn(tree, schema, config5) {
|
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
});
|
|
4221
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
4221
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
4222
4222
|
await _devkit.formatFiles.call(void 0, tree);
|
|
4223
4223
|
return null;
|
|
4224
4224
|
}
|
|
@@ -4237,17 +4237,17 @@ var generator_default = withRunGenerator(
|
|
|
4237
4237
|
);
|
|
4238
4238
|
|
|
4239
4239
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
4240
|
-
|
|
4240
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
4241
4241
|
|
|
4242
4242
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
4243
|
-
async function configSchemaGeneratorFn(tree, options,
|
|
4243
|
+
async function configSchemaGeneratorFn(tree, options, config) {
|
|
4244
4244
|
writeInfo(
|
|
4245
4245
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
4246
|
-
|
|
4246
|
+
config
|
|
4247
4247
|
);
|
|
4248
4248
|
writeTrace(
|
|
4249
4249
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
4250
|
-
|
|
4250
|
+
config
|
|
4251
4251
|
);
|
|
4252
4252
|
const jsonSchema = z2.toJSONSchema(workspaceConfigSchema, {
|
|
4253
4253
|
target: "draft-7",
|
|
@@ -4256,25 +4256,25 @@ async function configSchemaGeneratorFn(tree, options, config5) {
|
|
|
4256
4256
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
4257
4257
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
4258
4258
|
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
4259
|
-
writeTrace(jsonSchema,
|
|
4259
|
+
writeTrace(jsonSchema, config);
|
|
4260
4260
|
if (!options.outputFile) {
|
|
4261
4261
|
throw new Error(
|
|
4262
4262
|
"The `outputFile` option is required. Please specify the output file path."
|
|
4263
4263
|
);
|
|
4264
4264
|
}
|
|
4265
4265
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
4266
|
-
_nullishCoalesce(_optionalChain([
|
|
4266
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _211 => _211.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
4267
4267
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
4268
4268
|
);
|
|
4269
4269
|
writeTrace(
|
|
4270
4270
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
4271
|
-
|
|
4271
|
+
config
|
|
4272
4272
|
);
|
|
4273
4273
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
4274
4274
|
await _devkit.formatFiles.call(void 0, tree);
|
|
4275
4275
|
writeSuccess(
|
|
4276
4276
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
4277
|
-
|
|
4277
|
+
config
|
|
4278
4278
|
);
|
|
4279
4279
|
return {
|
|
4280
4280
|
success: true
|
|
@@ -4294,7 +4294,7 @@ var generator_default2 = withRunGenerator(
|
|
|
4294
4294
|
);
|
|
4295
4295
|
|
|
4296
4296
|
// ../workspace-tools/src/generators/init/init.ts
|
|
4297
|
-
|
|
4297
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
4298
4298
|
|
|
4299
4299
|
|
|
4300
4300
|
|
|
@@ -4322,15 +4322,15 @@ async function initGenerator(tree, schema) {
|
|
|
4322
4322
|
}
|
|
4323
4323
|
|
|
4324
4324
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
4325
|
-
|
|
4325
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
4326
4326
|
|
|
4327
4327
|
|
|
4328
4328
|
|
|
4329
4329
|
|
|
4330
4330
|
|
|
4331
4331
|
|
|
4332
|
-
async function neutralLibraryGeneratorFn(tree, schema,
|
|
4333
|
-
const filesDir =
|
|
4332
|
+
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4333
|
+
const filesDir = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
4334
4334
|
__dirname,
|
|
4335
4335
|
"src",
|
|
4336
4336
|
"generators",
|
|
@@ -4363,7 +4363,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config5) {
|
|
|
4363
4363
|
buildable: options.bundler && options.bundler !== "none",
|
|
4364
4364
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
4365
4365
|
});
|
|
4366
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
4366
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
4367
4367
|
await _devkit.formatFiles.call(void 0, tree);
|
|
4368
4368
|
return null;
|
|
4369
4369
|
}
|
|
@@ -4382,15 +4382,15 @@ var generator_default3 = withRunGenerator(
|
|
|
4382
4382
|
);
|
|
4383
4383
|
|
|
4384
4384
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4385
|
-
|
|
4385
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
4386
4386
|
|
|
4387
4387
|
|
|
4388
4388
|
|
|
4389
4389
|
|
|
4390
4390
|
|
|
4391
4391
|
|
|
4392
|
-
async function nodeLibraryGeneratorFn(tree, schema,
|
|
4393
|
-
const filesDir =
|
|
4392
|
+
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4393
|
+
const filesDir = _chunkQTJS4PSIjs.joinPaths.call(void 0,
|
|
4394
4394
|
__dirname,
|
|
4395
4395
|
"src",
|
|
4396
4396
|
"generators",
|
|
@@ -4425,7 +4425,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config5) {
|
|
|
4425
4425
|
buildable: options.bundler && options.bundler !== "none",
|
|
4426
4426
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
4427
4427
|
});
|
|
4428
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
4428
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
4429
4429
|
await _devkit.formatFiles.call(void 0, tree);
|
|
4430
4430
|
return null;
|
|
4431
4431
|
}
|
|
@@ -4444,7 +4444,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4444
4444
|
);
|
|
4445
4445
|
|
|
4446
4446
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4447
|
-
|
|
4447
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
4448
4448
|
|
|
4449
4449
|
|
|
4450
4450
|
|
|
@@ -4682,422 +4682,11 @@ var generator_default5 = withRunGenerator(
|
|
|
4682
4682
|
presetGeneratorFn
|
|
4683
4683
|
);
|
|
4684
4684
|
|
|
4685
|
-
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4686
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
4696
|
-
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
4697
|
-
|
|
4698
|
-
// ../git-tools/dist/release/config.js
|
|
4699
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4700
|
-
|
|
4701
|
-
// ../git-tools/dist/chunk-YCEUZFMU.js
|
|
4702
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4703
|
-
|
|
4704
|
-
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
4705
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4706
|
-
|
|
4707
|
-
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
4708
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4709
|
-
|
|
4710
|
-
// ../git-tools/dist/chunk-5XU2KBM6.js
|
|
4711
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4712
|
-
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
4713
|
-
skip: "press enter to skip",
|
|
4714
|
-
max: "must be %d chars at most",
|
|
4715
|
-
min: "must be %d chars at least",
|
|
4716
|
-
emptyWarning: "can not be empty",
|
|
4717
|
-
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
4718
|
-
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
4719
|
-
closedIssueMessage: "Closes: "
|
|
4720
|
-
};
|
|
4721
|
-
|
|
4722
|
-
// ../git-tools/dist/chunk-3GGWHKRP.js
|
|
4723
|
-
_chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
4724
|
-
var DEFAULT_COMMIT_TYPES = {
|
|
4725
|
-
/* --- Bumps version when selected --- */
|
|
4726
|
-
"chore": {
|
|
4727
|
-
"description": "Other changes that don't modify src or test files",
|
|
4728
|
-
"title": "Chore",
|
|
4729
|
-
"emoji": "\u2699\uFE0F ",
|
|
4730
|
-
"semverBump": "patch",
|
|
4731
|
-
"changelog": {
|
|
4732
|
-
"title": "Miscellaneous",
|
|
4733
|
-
"hidden": false
|
|
4734
|
-
}
|
|
4735
|
-
},
|
|
4736
|
-
"fix": {
|
|
4737
|
-
"description": "A change that resolves an issue previously identified with the package",
|
|
4738
|
-
"title": "Bug Fix",
|
|
4739
|
-
"emoji": "\u{1FAB2} ",
|
|
4740
|
-
"semverBump": "patch",
|
|
4741
|
-
"changelog": {
|
|
4742
|
-
"title": "Bug Fixes",
|
|
4743
|
-
"hidden": false
|
|
4744
|
-
}
|
|
4745
|
-
},
|
|
4746
|
-
"feat": {
|
|
4747
|
-
"description": "A change that adds a new feature to the package",
|
|
4748
|
-
"title": "Feature",
|
|
4749
|
-
"emoji": "\u{1F511} ",
|
|
4750
|
-
"semverBump": "minor",
|
|
4751
|
-
"changelog": {
|
|
4752
|
-
"title": "Features",
|
|
4753
|
-
"hidden": false
|
|
4754
|
-
}
|
|
4755
|
-
},
|
|
4756
|
-
"ci": {
|
|
4757
|
-
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
4758
|
-
"title": "Continuous Integration",
|
|
4759
|
-
"emoji": "\u{1F9F0} ",
|
|
4760
|
-
"semverBump": "patch",
|
|
4761
|
-
"changelog": {
|
|
4762
|
-
"title": "Continuous Integration",
|
|
4763
|
-
"hidden": false
|
|
4764
|
-
}
|
|
4765
|
-
},
|
|
4766
|
-
"refactor": {
|
|
4767
|
-
"description": "A code change that neither fixes a bug nor adds a feature",
|
|
4768
|
-
"title": "Code Refactoring",
|
|
4769
|
-
"emoji": "\u{1F9EA} ",
|
|
4770
|
-
"semverBump": "patch",
|
|
4771
|
-
"changelog": {
|
|
4772
|
-
"title": "Source Code Improvements",
|
|
4773
|
-
"hidden": false
|
|
4774
|
-
}
|
|
4775
|
-
},
|
|
4776
|
-
"style": {
|
|
4777
|
-
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
4778
|
-
"title": "Style Improvements",
|
|
4779
|
-
"emoji": "\u{1F48E} ",
|
|
4780
|
-
"semverBump": "patch",
|
|
4781
|
-
"changelog": {
|
|
4782
|
-
"title": "Style Improvements",
|
|
4783
|
-
"hidden": false
|
|
4784
|
-
}
|
|
4785
|
-
},
|
|
4786
|
-
"perf": {
|
|
4787
|
-
"description": "A code change that improves performance",
|
|
4788
|
-
"title": "Performance Improvement",
|
|
4789
|
-
"emoji": "\u23F1\uFE0F ",
|
|
4790
|
-
"semverBump": "patch",
|
|
4791
|
-
"changelog": {
|
|
4792
|
-
"title": "Performance Improvements",
|
|
4793
|
-
"hidden": false
|
|
4794
|
-
}
|
|
4795
|
-
},
|
|
4796
|
-
/* --- Does not bump version when selected --- */
|
|
4797
|
-
"docs": {
|
|
4798
|
-
"description": "A change that only includes documentation updates",
|
|
4799
|
-
"title": "Documentation",
|
|
4800
|
-
"emoji": "\u{1F4DC} ",
|
|
4801
|
-
"semverBump": "none",
|
|
4802
|
-
"changelog": {
|
|
4803
|
-
"title": "Documentation",
|
|
4804
|
-
"hidden": false
|
|
4805
|
-
}
|
|
4806
|
-
},
|
|
4807
|
-
"test": {
|
|
4808
|
-
"description": "Adding missing tests or correcting existing tests",
|
|
4809
|
-
"title": "Testing",
|
|
4810
|
-
"emoji": "\u{1F6A8} ",
|
|
4811
|
-
"semverBump": "none",
|
|
4812
|
-
"changelog": {
|
|
4813
|
-
"title": "Testing",
|
|
4814
|
-
"hidden": true
|
|
4815
|
-
}
|
|
4816
|
-
},
|
|
4817
|
-
/* --- Not included in commitlint but included in changelog --- */
|
|
4818
|
-
"deps": {
|
|
4819
|
-
"description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
4820
|
-
"title": "Dependencies",
|
|
4821
|
-
"emoji": "\u{1F4E6} ",
|
|
4822
|
-
"hidden": true,
|
|
4823
|
-
"semverBump": "patch",
|
|
4824
|
-
"changelog": {
|
|
4825
|
-
"title": "Dependency Upgrades",
|
|
4826
|
-
"hidden": false
|
|
4827
|
-
}
|
|
4828
|
-
},
|
|
4829
|
-
/* --- Not included in commitlint or changelog --- */
|
|
4830
|
-
"build": {
|
|
4831
|
-
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
4832
|
-
"title": "Build",
|
|
4833
|
-
"emoji": "\u{1F6E0} ",
|
|
4834
|
-
"hidden": true,
|
|
4835
|
-
"semverBump": "none",
|
|
4836
|
-
"changelog": {
|
|
4837
|
-
"title": "Build",
|
|
4838
|
-
"hidden": true
|
|
4839
|
-
}
|
|
4840
|
-
},
|
|
4841
|
-
"release": {
|
|
4842
|
-
"description": "Publishing a commit containing a newly released version",
|
|
4843
|
-
"title": "Publish Release",
|
|
4844
|
-
"emoji": "\u{1F680} ",
|
|
4845
|
-
"hidden": true,
|
|
4846
|
-
"semverBump": "none",
|
|
4847
|
-
"changelog": {
|
|
4848
|
-
"title": "Publish Release",
|
|
4849
|
-
"hidden": true
|
|
4850
|
-
}
|
|
4851
|
-
}
|
|
4852
|
-
};
|
|
4853
|
-
var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
|
|
4854
|
-
Object.entries(DEFAULT_COMMIT_TYPES).reduce(
|
|
4855
|
-
(ret, [key, commitType]) => {
|
|
4856
|
-
ret[key] = {
|
|
4857
|
-
...commitType.changelog,
|
|
4858
|
-
type: key,
|
|
4859
|
-
section: _optionalChain([commitType, 'access', _212 => _212.changelog, 'optionalAccess', _213 => _213.title]) || commitType.title,
|
|
4860
|
-
hidden: _optionalChain([commitType, 'access', _214 => _214.changelog, 'optionalAccess', _215 => _215.hidden])
|
|
4861
|
-
};
|
|
4862
|
-
return ret;
|
|
4863
|
-
},
|
|
4864
|
-
{}
|
|
4865
|
-
)
|
|
4866
|
-
);
|
|
4867
|
-
var CHANGELOG_COMMIT_TYPES = [
|
|
4868
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.feat,
|
|
4869
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.fix,
|
|
4870
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.chore,
|
|
4871
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.deps,
|
|
4872
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.docs,
|
|
4873
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.style,
|
|
4874
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
|
|
4875
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.perf,
|
|
4876
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.build,
|
|
4877
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.ci,
|
|
4878
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.test
|
|
4879
|
-
];
|
|
4880
|
-
var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
4881
|
-
(entry) => entry.type
|
|
4882
|
-
);
|
|
4883
|
-
var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
4884
|
-
(entry) => entry.section
|
|
4885
|
-
);
|
|
4886
|
-
var changelogs = {
|
|
4887
|
-
props: {
|
|
4888
|
-
ignoreCommits: void 0,
|
|
4889
|
-
types: CHANGELOG_COMMIT_TYPES,
|
|
4890
|
-
bumpStrict: true,
|
|
4891
|
-
scope: void 0,
|
|
4892
|
-
scopeOnly: false
|
|
4893
|
-
}
|
|
4894
|
-
};
|
|
4895
|
-
var commitlint = {
|
|
4896
|
-
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
|
|
4897
|
-
rules: {
|
|
4898
|
-
"body-leading-blank": [1, "always"],
|
|
4899
|
-
"body-max-length": [2, "always", 600],
|
|
4900
|
-
"footer-leading-blank": [1, "always"],
|
|
4901
|
-
"footer-max-line-length": [2, "always", 150],
|
|
4902
|
-
"header-max-length": [2, "always", 150],
|
|
4903
|
-
"header-trim": [2, "always"],
|
|
4904
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
4905
|
-
"subject-empty": [2, "never"],
|
|
4906
|
-
"subject-full-stop": [2, "never", "."],
|
|
4907
|
-
"subject-max-length": [2, "always", 150],
|
|
4908
|
-
"subject-min-length": [2, "always", 3],
|
|
4909
|
-
"type-case": [2, "always", "kebab-case"],
|
|
4910
|
-
"type-empty": [2, "never"],
|
|
4911
|
-
"type-enum": [
|
|
4912
|
-
2,
|
|
4913
|
-
"always",
|
|
4914
|
-
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
4915
|
-
],
|
|
4916
|
-
"type-max-length": [2, "always", 20],
|
|
4917
|
-
"type-min-length": [2, "always", 3],
|
|
4918
|
-
"scope-empty": [2, "always"]
|
|
4919
|
-
},
|
|
4920
|
-
settings: {
|
|
4921
|
-
enableMultipleScopes: false,
|
|
4922
|
-
disableEmoji: true,
|
|
4923
|
-
breakingChangePrefix: "\u{1F4A3} ",
|
|
4924
|
-
closedIssuePrefix: "\u2705 ",
|
|
4925
|
-
format: "{type}: {emoji}{subject}"
|
|
4926
|
-
}
|
|
4927
|
-
};
|
|
4928
|
-
var config = {
|
|
4929
|
-
types: DEFAULT_COMMIT_TYPES,
|
|
4930
|
-
changelogs,
|
|
4931
|
-
commitlint
|
|
4932
|
-
};
|
|
4933
|
-
var minimal_default = config;
|
|
4934
|
-
var changelogs2 = {
|
|
4935
|
-
props: {
|
|
4936
|
-
ignoreCommits: void 0,
|
|
4937
|
-
types: CHANGELOG_COMMIT_TYPES,
|
|
4938
|
-
bumpStrict: true,
|
|
4939
|
-
scope: ["monorepo"],
|
|
4940
|
-
scopeOnly: true
|
|
4941
|
-
}
|
|
4942
|
-
};
|
|
4943
|
-
var commitlint2 = {
|
|
4944
|
-
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
|
|
4945
|
-
rules: {
|
|
4946
|
-
"body-leading-blank": [1, "always"],
|
|
4947
|
-
"body-max-length": [2, "always", 600],
|
|
4948
|
-
"footer-leading-blank": [1, "always"],
|
|
4949
|
-
"footer-max-line-length": [2, "always", 150],
|
|
4950
|
-
"header-max-length": [2, "always", 150],
|
|
4951
|
-
"header-trim": [2, "always"],
|
|
4952
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
4953
|
-
"subject-empty": [2, "never"],
|
|
4954
|
-
"subject-full-stop": [2, "never", "."],
|
|
4955
|
-
"subject-max-length": [2, "always", 150],
|
|
4956
|
-
"subject-min-length": [2, "always", 3],
|
|
4957
|
-
"type-case": [2, "always", "kebab-case"],
|
|
4958
|
-
"type-empty": [2, "never"],
|
|
4959
|
-
"type-enum": [
|
|
4960
|
-
2,
|
|
4961
|
-
"always",
|
|
4962
|
-
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
4963
|
-
],
|
|
4964
|
-
"type-max-length": [2, "always", 20],
|
|
4965
|
-
"type-min-length": [2, "always", 3],
|
|
4966
|
-
"scope-case": [2, "always", ["kebab-case"]],
|
|
4967
|
-
"scope-empty": [2, "never"]
|
|
4968
|
-
},
|
|
4969
|
-
settings: {
|
|
4970
|
-
enableMultipleScopes: false,
|
|
4971
|
-
disableEmoji: true,
|
|
4972
|
-
breakingChangePrefix: "\u{1F4A3} ",
|
|
4973
|
-
closedIssuePrefix: "\u2705 ",
|
|
4974
|
-
format: "{type}({scope}): {emoji}{subject}"
|
|
4975
|
-
}
|
|
4976
|
-
};
|
|
4977
|
-
var config2 = {
|
|
4978
|
-
types: DEFAULT_COMMIT_TYPES,
|
|
4979
|
-
changelogs: changelogs2,
|
|
4980
|
-
commitlint: commitlint2
|
|
4981
|
-
};
|
|
4982
|
-
var monorepo_default = config2;
|
|
4983
|
-
var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
|
|
4984
|
-
|
|
4985
|
-
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
4986
|
-
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
4987
|
-
type: {
|
|
4988
|
-
type: "select",
|
|
4989
|
-
title: "Commit Type",
|
|
4990
|
-
description: "Select the commit type that best describes your changes",
|
|
4991
|
-
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
4992
|
-
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
4993
|
-
).reduce((ret, type) => {
|
|
4994
|
-
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
4995
|
-
return ret;
|
|
4996
|
-
}, {}),
|
|
4997
|
-
defaultValue: "chore",
|
|
4998
|
-
maxLength: 20,
|
|
4999
|
-
minLength: 3
|
|
5000
|
-
},
|
|
5001
|
-
subject: {
|
|
5002
|
-
type: "input",
|
|
5003
|
-
title: "Commit Subject",
|
|
5004
|
-
description: "Write a short, imperative tense description of the change",
|
|
5005
|
-
maxLength: 150,
|
|
5006
|
-
minLength: 3
|
|
5007
|
-
},
|
|
5008
|
-
body: {
|
|
5009
|
-
type: "input",
|
|
5010
|
-
title: "Commit Body",
|
|
5011
|
-
description: "Provide a longer description of the change",
|
|
5012
|
-
maxLength: 600
|
|
5013
|
-
},
|
|
5014
|
-
isBreaking: {
|
|
5015
|
-
type: "confirm",
|
|
5016
|
-
title: "Breaking Changes",
|
|
5017
|
-
description: "Are there any breaking changes as a result of this commit?",
|
|
5018
|
-
defaultValue: false
|
|
5019
|
-
},
|
|
5020
|
-
breakingBody: {
|
|
5021
|
-
type: "input",
|
|
5022
|
-
title: "Breaking Changes (Details)",
|
|
5023
|
-
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
5024
|
-
when: (answers) => answers.isBreaking === true,
|
|
5025
|
-
maxLength: 600,
|
|
5026
|
-
minLength: 3
|
|
5027
|
-
},
|
|
5028
|
-
isIssueAffected: {
|
|
5029
|
-
type: "confirm",
|
|
5030
|
-
title: "Open Issue Affected",
|
|
5031
|
-
description: "Does this change impact any open issues?",
|
|
5032
|
-
defaultValue: false
|
|
5033
|
-
},
|
|
5034
|
-
issuesBody: {
|
|
5035
|
-
type: "input",
|
|
5036
|
-
title: "Open Issue Affected (Details)",
|
|
5037
|
-
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
5038
|
-
when: (answers) => answers.isIssueAffected === true,
|
|
5039
|
-
maxLength: 600,
|
|
5040
|
-
minLength: 3
|
|
5041
|
-
}
|
|
5042
|
-
};
|
|
5043
|
-
var config3 = {
|
|
5044
|
-
settings: COMMIT_CONFIGS.minimal.commitlint.settings,
|
|
5045
|
-
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
5046
|
-
questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
|
|
5047
|
-
types: DEFAULT_COMMIT_TYPES
|
|
5048
|
-
};
|
|
5049
|
-
|
|
5050
|
-
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
5051
|
-
var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
5052
|
-
type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
|
|
5053
|
-
scope: {
|
|
5054
|
-
type: "select",
|
|
5055
|
-
title: "Commit Scope",
|
|
5056
|
-
description: "Select the project that's the most impacted by this change",
|
|
5057
|
-
enum: {},
|
|
5058
|
-
defaultValue: "monorepo",
|
|
5059
|
-
maxLength: 50,
|
|
5060
|
-
minLength: 1
|
|
5061
|
-
},
|
|
5062
|
-
subject: DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
|
|
5063
|
-
body: DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
|
|
5064
|
-
isBreaking: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
|
|
5065
|
-
breakingBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
|
|
5066
|
-
isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
|
|
5067
|
-
issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
|
|
5068
|
-
};
|
|
5069
|
-
var config4 = {
|
|
5070
|
-
settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
|
|
5071
|
-
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
5072
|
-
questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
5073
|
-
types: DEFAULT_COMMIT_TYPES
|
|
5074
|
-
};
|
|
5075
|
-
|
|
5076
|
-
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
var _config = require('nx/src/command-line/release/config/config');
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
var _git = require('nx/src/command-line/release/utils/git');
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
var _resolvesemverspecifier = require('nx/src/command-line/release/utils/resolve-semver-specifier');
|
|
5088
|
-
var _semver3 = require('nx/src/command-line/release/utils/semver');
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
5093
|
-
var _utils = require('nx/src/tasks-runner/utils');
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
4685
|
// ../workspace-tools/src/base/index.ts
|
|
5097
|
-
|
|
4686
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5098
4687
|
|
|
5099
4688
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
5100
|
-
|
|
4689
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5101
4690
|
var _untyped = require('untyped');
|
|
5102
4691
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5103
4692
|
$schema: {
|
|
@@ -5117,7 +4706,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
5117
4706
|
});
|
|
5118
4707
|
|
|
5119
4708
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
5120
|
-
|
|
4709
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5121
4710
|
|
|
5122
4711
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5123
4712
|
$schema: {
|
|
@@ -5135,7 +4724,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
5135
4724
|
});
|
|
5136
4725
|
|
|
5137
4726
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
5138
|
-
|
|
4727
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5139
4728
|
|
|
5140
4729
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5141
4730
|
...base_executor_untyped_default,
|
|
@@ -5208,7 +4797,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
5208
4797
|
});
|
|
5209
4798
|
|
|
5210
4799
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
5211
|
-
|
|
4800
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5212
4801
|
|
|
5213
4802
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5214
4803
|
...base_executor_untyped_default,
|
|
@@ -5360,7 +4949,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
5360
4949
|
});
|
|
5361
4950
|
|
|
5362
4951
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
5363
|
-
|
|
4952
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5364
4953
|
|
|
5365
4954
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
5366
4955
|
...base_generator_untyped_default,
|
|
@@ -5465,25 +5054,43 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
5465
5054
|
}
|
|
5466
5055
|
});
|
|
5467
5056
|
|
|
5057
|
+
// ../workspace-tools/src/release/index.ts
|
|
5058
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5059
|
+
|
|
5060
|
+
// ../workspace-tools/src/release/js-version-actions.ts
|
|
5061
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5062
|
+
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
5063
|
+
|
|
5064
|
+
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
5065
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5066
|
+
|
|
5067
|
+
|
|
5068
|
+
|
|
5069
|
+
var _release = require('nx/release');
|
|
5070
|
+
|
|
5071
|
+
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
5072
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5073
|
+
|
|
5074
|
+
|
|
5468
5075
|
// ../workspace-tools/src/types.ts
|
|
5469
|
-
|
|
5076
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5470
5077
|
|
|
5471
5078
|
// ../workspace-tools/src/utils/index.ts
|
|
5472
|
-
|
|
5079
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5473
5080
|
|
|
5474
5081
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
5475
|
-
|
|
5082
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5476
5083
|
|
|
5477
5084
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
5478
|
-
|
|
5085
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5479
5086
|
|
|
5480
5087
|
|
|
5481
5088
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
5482
|
-
|
|
5089
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5483
5090
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
5484
5091
|
|
|
5485
5092
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5486
|
-
|
|
5093
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5487
5094
|
|
|
5488
5095
|
|
|
5489
5096
|
|
|
@@ -5511,10 +5118,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5511
5118
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5512
5119
|
|
|
5513
5120
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5514
|
-
|
|
5121
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5515
5122
|
|
|
5516
5123
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5517
|
-
|
|
5124
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5518
5125
|
|
|
5519
5126
|
|
|
5520
5127
|
|
|
@@ -5523,11 +5130,11 @@ _chunk4DSPJSYHjs.init_cjs_shims.call(void 0, );
|
|
|
5523
5130
|
|
|
5524
5131
|
|
|
5525
5132
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5526
|
-
|
|
5133
|
+
_chunkGT4TSWROjs.init_cjs_shims.call(void 0, );
|
|
5527
5134
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5528
5135
|
|
|
5529
5136
|
// src/generators/init/generator.ts
|
|
5530
|
-
async function initGeneratorFn(tree, options,
|
|
5137
|
+
async function initGeneratorFn(tree, options, config) {
|
|
5531
5138
|
const task = initGenerator(tree, options);
|
|
5532
5139
|
await _devkit.runTasksInSerial.call(void 0, addProjenDeps(tree, options))();
|
|
5533
5140
|
if (!options.skipFormat) {
|