@storm-software/projen 0.19.4 → 0.20.1
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 +20 -0
- package/README.md +1 -1
- package/dist/{chunk-SVKSKMNF.js → chunk-43C4WGNJ.js} +3 -3
- package/dist/{chunk-O5AMVQJJ.mjs → chunk-6BZTU36G.mjs} +1 -1
- package/dist/{chunk-G7E7SOUO.mjs → chunk-BGBKA35V.mjs} +1 -1
- package/dist/{chunk-N6LCFLA4.js → chunk-GZV7AWC7.js} +2 -2
- package/dist/{chunk-MRNYDR5Z.js → chunk-IRRWQAPT.js} +685 -570
- package/dist/chunk-JEFKKWZ2.js +6 -0
- package/dist/{chunk-BYZLBGIR.mjs → chunk-NYLT2HUX.mjs} +534 -419
- package/dist/{chunk-CRPLKOSJ.mjs → chunk-PEU5HZBR.mjs} +1 -1
- package/dist/{chunk-BROQ5KWZ.js → chunk-PZ7N3OYJ.js} +2 -2
- package/dist/{chunk-GDIR5JOX.mjs → chunk-UGSMRVXF.mjs} +2 -2
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +4 -4
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-NDWDSY5F.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 _chunkGZV7AWC7js = require('./chunk-GZV7AWC7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPZ7N3OYJjs = require('./chunk-PZ7N3OYJ.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/init/generator.ts
|
|
10
|
-
|
|
10
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -16,27 +16,27 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
16
16
|
var _devkit = require('@nx/devkit');
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/index.ts
|
|
19
|
-
|
|
19
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
|
|
21
21
|
// ../workspace-tools/executors.ts
|
|
22
|
-
|
|
22
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
25
|
-
|
|
25
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
// ../workspace-tools/src/base/base-executor.ts
|
|
28
|
-
|
|
28
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
|
|
30
30
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
31
|
-
|
|
31
|
+
_chunkPZ7N3OYJjs.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
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
|
|
38
38
|
// ../config-tools/src/types.ts
|
|
39
|
-
|
|
39
|
+
_chunkPZ7N3OYJjs.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
|
+
_chunkPZ7N3OYJjs.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
|
+
_chunkPZ7N3OYJjs.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
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
136
136
|
|
|
137
137
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
138
|
-
|
|
138
|
+
_chunkPZ7N3OYJjs.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
|
+
_chunkPZ7N3OYJjs.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
|
+
_chunkPZ7N3OYJjs.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, config5 = {}, _chalk = getChalk()) => {
|
|
222
|
+
const colors = !_optionalChain([config5, 'access', _8 => _8.colors, 'optionalAccess', _9 => _9.dark]) && !_optionalChain([config5, 'access', _10 => _10.colors, 'optionalAccess', _11 => _11["base"]]) && !_optionalChain([config5, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13["base"], 'optionalAccess', _14 => _14.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config5, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16.dark]) && typeof config5.colors.dark === "string" ? config5.colors : _optionalChain([config5, 'access', _17 => _17.colors, 'optionalAccess', _18 => _18["base"], 'optionalAccess', _19 => _19.dark]) && typeof config5.colors["base"].dark === "string" ? config5.colors["base"].dark : _optionalChain([config5, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"]]) ? _optionalChain([config5, 'access', _22 => _22.colors, 'optionalAccess', _23 => _23["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
223
|
+
const configLogLevel = config5.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, config5) => getLogFn(LogLevel.FATAL, config5)(message);
|
|
300
|
+
var writeError = (message, config5) => getLogFn(LogLevel.ERROR, config5)(message);
|
|
301
|
+
var writeWarning = (message, config5) => getLogFn(LogLevel.WARN, config5)(message);
|
|
302
|
+
var writeInfo = (message, config5) => getLogFn(LogLevel.INFO, config5)(message);
|
|
303
|
+
var writeSuccess = (message, config5) => getLogFn(LogLevel.SUCCESS, config5)(message);
|
|
304
|
+
var writeDebug = (message, config5) => getLogFn(LogLevel.DEBUG, config5)(message);
|
|
305
|
+
var writeTrace = (message, config5) => getLogFn(LogLevel.TRACE, config5)(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
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
346
346
|
|
|
347
347
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
348
|
-
|
|
348
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
349
349
|
|
|
350
350
|
// ../config-tools/src/utilities/find-up.ts
|
|
351
|
-
|
|
351
|
+
_chunkPZ7N3OYJjs.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;
|
|
@@ -416,11 +416,11 @@ var rootDirectories = [
|
|
|
416
416
|
];
|
|
417
417
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
418
418
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
419
|
-
return
|
|
419
|
+
return _chunkGZV7AWC7js.correctPaths.call(void 0,
|
|
420
420
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
421
421
|
);
|
|
422
422
|
}
|
|
423
|
-
return
|
|
423
|
+
return _chunkGZV7AWC7js.correctPaths.call(void 0,
|
|
424
424
|
findFolderUp(
|
|
425
425
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
426
426
|
rootFiles,
|
|
@@ -515,13 +515,13 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
|
515
515
|
};
|
|
516
516
|
|
|
517
517
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
518
|
-
|
|
518
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
519
519
|
|
|
520
520
|
// ../config/src/index.ts
|
|
521
|
-
|
|
521
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
522
522
|
|
|
523
523
|
// ../config/src/constants.ts
|
|
524
|
-
|
|
524
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
525
525
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
526
526
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
527
527
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -540,10 +540,10 @@ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
|
540
540
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
541
541
|
|
|
542
542
|
// ../config/src/define-config.ts
|
|
543
|
-
|
|
543
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
544
544
|
|
|
545
545
|
// ../config/src/schema.ts
|
|
546
|
-
|
|
546
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
547
547
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
548
548
|
var schemaRegistry = z.registry();
|
|
549
549
|
var colorSchema = z.string().check(
|
|
@@ -1098,7 +1098,7 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
1098
1098
|
});
|
|
1099
1099
|
|
|
1100
1100
|
// ../config/src/types.ts
|
|
1101
|
-
|
|
1101
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1102
1102
|
var COLOR_KEYS = [
|
|
1103
1103
|
"dark",
|
|
1104
1104
|
"light",
|
|
@@ -1131,7 +1131,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1131
1131
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
1132
1132
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
1133
1133
|
const file = await _promises.readFile.call(void 0,
|
|
1134
|
-
|
|
1134
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
1135
1135
|
"utf8"
|
|
1136
1136
|
);
|
|
1137
1137
|
if (file) {
|
|
@@ -1174,34 +1174,34 @@ async function getPackageJsonConfig(root) {
|
|
|
1174
1174
|
support
|
|
1175
1175
|
};
|
|
1176
1176
|
}
|
|
1177
|
-
function applyDefaultConfig(
|
|
1178
|
-
if (!
|
|
1179
|
-
|
|
1177
|
+
function applyDefaultConfig(config5) {
|
|
1178
|
+
if (!config5.support && config5.contact) {
|
|
1179
|
+
config5.support = config5.contact;
|
|
1180
1180
|
}
|
|
1181
|
-
if (!
|
|
1182
|
-
|
|
1181
|
+
if (!config5.contact && config5.support) {
|
|
1182
|
+
config5.contact = config5.support;
|
|
1183
1183
|
}
|
|
1184
|
-
if (
|
|
1185
|
-
if (!
|
|
1186
|
-
|
|
1184
|
+
if (config5.homepage) {
|
|
1185
|
+
if (!config5.docs) {
|
|
1186
|
+
config5.docs = `${config5.homepage}/docs`;
|
|
1187
1187
|
}
|
|
1188
|
-
if (!
|
|
1189
|
-
|
|
1188
|
+
if (!config5.license) {
|
|
1189
|
+
config5.license = `${config5.homepage}/license`;
|
|
1190
1190
|
}
|
|
1191
|
-
if (!
|
|
1192
|
-
|
|
1191
|
+
if (!config5.support) {
|
|
1192
|
+
config5.support = `${config5.homepage}/support`;
|
|
1193
1193
|
}
|
|
1194
|
-
if (!
|
|
1195
|
-
|
|
1194
|
+
if (!config5.contact) {
|
|
1195
|
+
config5.contact = `${config5.homepage}/contact`;
|
|
1196
1196
|
}
|
|
1197
|
-
if (!_optionalChain([
|
|
1198
|
-
|
|
1199
|
-
if (
|
|
1200
|
-
|
|
1197
|
+
if (!_optionalChain([config5, 'access', _30 => _30.error, 'optionalAccess', _31 => _31.codesFile]) || !_optionalChain([config5, 'optionalAccess', _32 => _32.error, 'optionalAccess', _33 => _33.url])) {
|
|
1198
|
+
config5.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
1199
|
+
if (config5.homepage) {
|
|
1200
|
+
config5.error.url ??= `${config5.homepage}/errors`;
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
return
|
|
1204
|
+
return config5;
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
@@ -1215,7 +1215,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1215
1215
|
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
1216
1216
|
jitiOptions: {
|
|
1217
1217
|
debug: false,
|
|
1218
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1218
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
1219
1219
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1220
1220
|
"jiti"
|
|
1221
1221
|
)
|
|
@@ -1229,7 +1229,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1229
1229
|
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
1230
1230
|
jitiOptions: {
|
|
1231
1231
|
debug: false,
|
|
1232
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1232
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
1233
1233
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1234
1234
|
"jiti"
|
|
1235
1235
|
)
|
|
@@ -1243,9 +1243,9 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1243
1243
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
1244
1244
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
1245
1245
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
1246
|
-
let
|
|
1246
|
+
let config5 = result.config;
|
|
1247
1247
|
const configFile = result.configFile;
|
|
1248
|
-
if (
|
|
1248
|
+
if (config5 && configFile && Object.keys(config5).length > 0 && !config5.skipConfigLogging) {
|
|
1249
1249
|
writeTrace(
|
|
1250
1250
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1251
1251
|
{
|
|
@@ -1261,7 +1261,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1261
1261
|
);
|
|
1262
1262
|
for (const result2 of results) {
|
|
1263
1263
|
if (_optionalChain([result2, 'optionalAccess', _38 => _38.config]) && _optionalChain([result2, 'optionalAccess', _39 => _39.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1264
|
-
if (!
|
|
1264
|
+
if (!config5.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1265
1265
|
writeTrace(
|
|
1266
1266
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1267
1267
|
{
|
|
@@ -1269,23 +1269,23 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
|
-
|
|
1272
|
+
config5 = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config5, () => ( {})));
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
if (!
|
|
1276
|
+
if (!config5 || Object.keys(config5).length === 0) {
|
|
1277
1277
|
return void 0;
|
|
1278
1278
|
}
|
|
1279
|
-
|
|
1280
|
-
return
|
|
1279
|
+
config5.configFile = configFile;
|
|
1280
|
+
return config5;
|
|
1281
1281
|
};
|
|
1282
1282
|
|
|
1283
1283
|
// ../config-tools/src/create-storm-config.ts
|
|
1284
|
-
|
|
1284
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1285
1285
|
|
|
1286
1286
|
|
|
1287
1287
|
// ../config-tools/src/env/get-env.ts
|
|
1288
|
-
|
|
1288
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1289
1289
|
var getExtensionEnv = (extensionName) => {
|
|
1290
1290
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1291
1291
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1300,7 +1300,7 @@ var getExtensionEnv = (extensionName) => {
|
|
|
1300
1300
|
};
|
|
1301
1301
|
var getConfigEnv = () => {
|
|
1302
1302
|
const prefix = "STORM_";
|
|
1303
|
-
let
|
|
1303
|
+
let config5 = {
|
|
1304
1304
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
1305
1305
|
name: process.env[`${prefix}NAME`] || void 0,
|
|
1306
1306
|
variant: process.env[`${prefix}VARIANT`] || void 0,
|
|
@@ -1347,15 +1347,15 @@ var getConfigEnv = () => {
|
|
|
1347
1347
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1348
1348
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1349
1349
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1350
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1351
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1350
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1351
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1352
1352
|
directories: {
|
|
1353
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1354
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1355
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1356
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1357
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1358
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1353
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1354
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1355
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1356
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1357
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1358
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkGZV7AWC7js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1359
1359
|
},
|
|
1360
1360
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1361
1361
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1389,38 +1389,38 @@ var getConfigEnv = () => {
|
|
|
1389
1389
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
1390
1390
|
)
|
|
1391
1391
|
);
|
|
1392
|
-
|
|
1392
|
+
config5.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
1393
1393
|
(ret, themeName) => {
|
|
1394
1394
|
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
1395
1395
|
return ret;
|
|
1396
1396
|
},
|
|
1397
1397
|
{}
|
|
1398
1398
|
) : getThemeColorsEnv(prefix);
|
|
1399
|
-
if (
|
|
1400
|
-
if (
|
|
1401
|
-
|
|
1399
|
+
if (config5.docs === STORM_DEFAULT_DOCS) {
|
|
1400
|
+
if (config5.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1401
|
+
config5.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config5.name}/docs`;
|
|
1402
1402
|
} else {
|
|
1403
|
-
|
|
1403
|
+
config5.docs = `${config5.homepage}/docs`;
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
if (
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1406
|
+
if (config5.licensing === STORM_DEFAULT_LICENSING) {
|
|
1407
|
+
if (config5.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1408
|
+
config5.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config5.name}/licensing`;
|
|
1409
1409
|
} else {
|
|
1410
|
-
|
|
1410
|
+
config5.licensing = `${config5.homepage}/docs`;
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1414
1414
|
if (serializedConfig) {
|
|
1415
1415
|
const parsed = JSON.parse(serializedConfig);
|
|
1416
|
-
|
|
1417
|
-
...
|
|
1416
|
+
config5 = {
|
|
1417
|
+
...config5,
|
|
1418
1418
|
...parsed,
|
|
1419
|
-
colors: { ...
|
|
1420
|
-
extensions: { ...
|
|
1419
|
+
colors: { ...config5.colors, ...parsed.colors },
|
|
1420
|
+
extensions: { ...config5.extensions, ...parsed.extensions }
|
|
1421
1421
|
};
|
|
1422
1422
|
}
|
|
1423
|
-
return
|
|
1423
|
+
return config5;
|
|
1424
1424
|
};
|
|
1425
1425
|
var getThemeColorsEnv = (prefix, theme) => {
|
|
1426
1426
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
@@ -1498,7 +1498,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1498
1498
|
};
|
|
1499
1499
|
|
|
1500
1500
|
// ../config-tools/src/env/set-env.ts
|
|
1501
|
-
|
|
1501
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1502
1502
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1503
1503
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1504
1504
|
if (extension[key]) {
|
|
@@ -1521,348 +1521,348 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
};
|
|
1524
|
-
var setConfigEnv = (
|
|
1524
|
+
var setConfigEnv = (config5) => {
|
|
1525
1525
|
const prefix = "STORM_";
|
|
1526
|
-
if (
|
|
1527
|
-
process.env[`${prefix}EXTENDS`] = Array.isArray(
|
|
1526
|
+
if (config5.extends) {
|
|
1527
|
+
process.env[`${prefix}EXTENDS`] = Array.isArray(config5.extends) ? JSON.stringify(config5.extends) : config5.extends;
|
|
1528
1528
|
}
|
|
1529
|
-
if (
|
|
1530
|
-
process.env[`${prefix}NAME`] =
|
|
1529
|
+
if (config5.name) {
|
|
1530
|
+
process.env[`${prefix}NAME`] = config5.name;
|
|
1531
1531
|
}
|
|
1532
|
-
if (
|
|
1533
|
-
process.env[`${prefix}VARIANT`] =
|
|
1532
|
+
if (config5.variant) {
|
|
1533
|
+
process.env[`${prefix}VARIANT`] = config5.variant;
|
|
1534
1534
|
}
|
|
1535
|
-
if (
|
|
1536
|
-
process.env[`${prefix}NAMESPACE`] =
|
|
1535
|
+
if (config5.namespace) {
|
|
1536
|
+
process.env[`${prefix}NAMESPACE`] = config5.namespace;
|
|
1537
1537
|
}
|
|
1538
|
-
if (
|
|
1539
|
-
process.env[`${prefix}OWNER`] =
|
|
1538
|
+
if (config5.owner) {
|
|
1539
|
+
process.env[`${prefix}OWNER`] = config5.owner;
|
|
1540
1540
|
}
|
|
1541
|
-
if (
|
|
1542
|
-
process.env[`${prefix}BOT_NAME`] =
|
|
1543
|
-
process.env[`${prefix}BOT_EMAIL`] =
|
|
1541
|
+
if (config5.bot) {
|
|
1542
|
+
process.env[`${prefix}BOT_NAME`] = config5.bot.name;
|
|
1543
|
+
process.env[`${prefix}BOT_EMAIL`] = config5.bot.email;
|
|
1544
1544
|
}
|
|
1545
|
-
if (
|
|
1546
|
-
process.env[`${prefix}ERROR_CODES_FILE`] =
|
|
1547
|
-
process.env[`${prefix}ERROR_URL`] =
|
|
1545
|
+
if (config5.error) {
|
|
1546
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config5.error.codesFile;
|
|
1547
|
+
process.env[`${prefix}ERROR_URL`] = config5.error.url;
|
|
1548
1548
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
if (
|
|
1551
|
-
if (typeof
|
|
1552
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
1553
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
1549
|
+
if (config5.release) {
|
|
1550
|
+
if (config5.release.banner) {
|
|
1551
|
+
if (typeof config5.release.banner === "string") {
|
|
1552
|
+
process.env[`${prefix}RELEASE_BANNER`] = config5.release.banner;
|
|
1553
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config5.release.banner;
|
|
1554
1554
|
} else {
|
|
1555
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
1556
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
1557
|
-
process.env[`${prefix}RELEASE_BANNER_ALT`] =
|
|
1555
|
+
process.env[`${prefix}RELEASE_BANNER`] = config5.release.banner.url;
|
|
1556
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config5.release.banner.url;
|
|
1557
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config5.release.banner.alt;
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
|
-
process.env[`${prefix}RELEASE_HEADER`] =
|
|
1561
|
-
process.env[`${prefix}RELEASE_FOOTER`] =
|
|
1560
|
+
process.env[`${prefix}RELEASE_HEADER`] = config5.release.header;
|
|
1561
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config5.release.footer;
|
|
1562
1562
|
}
|
|
1563
|
-
if (
|
|
1564
|
-
if (
|
|
1565
|
-
process.env[`${prefix}SOCIAL_TWITTER`] =
|
|
1563
|
+
if (config5.socials) {
|
|
1564
|
+
if (config5.socials.twitter) {
|
|
1565
|
+
process.env[`${prefix}SOCIAL_TWITTER`] = config5.socials.twitter;
|
|
1566
1566
|
}
|
|
1567
|
-
if (
|
|
1568
|
-
process.env[`${prefix}SOCIAL_DISCORD`] =
|
|
1567
|
+
if (config5.socials.discord) {
|
|
1568
|
+
process.env[`${prefix}SOCIAL_DISCORD`] = config5.socials.discord;
|
|
1569
1569
|
}
|
|
1570
|
-
if (
|
|
1571
|
-
process.env[`${prefix}SOCIAL_TELEGRAM`] =
|
|
1570
|
+
if (config5.socials.telegram) {
|
|
1571
|
+
process.env[`${prefix}SOCIAL_TELEGRAM`] = config5.socials.telegram;
|
|
1572
1572
|
}
|
|
1573
|
-
if (
|
|
1574
|
-
process.env[`${prefix}SOCIAL_SLACK`] =
|
|
1573
|
+
if (config5.socials.slack) {
|
|
1574
|
+
process.env[`${prefix}SOCIAL_SLACK`] = config5.socials.slack;
|
|
1575
1575
|
}
|
|
1576
|
-
if (
|
|
1577
|
-
process.env[`${prefix}SOCIAL_MEDIUM`] =
|
|
1576
|
+
if (config5.socials.medium) {
|
|
1577
|
+
process.env[`${prefix}SOCIAL_MEDIUM`] = config5.socials.medium;
|
|
1578
1578
|
}
|
|
1579
|
-
if (
|
|
1580
|
-
process.env[`${prefix}SOCIAL_GITHUB`] =
|
|
1579
|
+
if (config5.socials.github) {
|
|
1580
|
+
process.env[`${prefix}SOCIAL_GITHUB`] = config5.socials.github;
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
if (
|
|
1584
|
-
if (typeof
|
|
1585
|
-
process.env[`${prefix}ORG`] =
|
|
1586
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
1587
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
1588
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
1583
|
+
if (config5.organization) {
|
|
1584
|
+
if (typeof config5.organization === "string") {
|
|
1585
|
+
process.env[`${prefix}ORG`] = config5.organization;
|
|
1586
|
+
process.env[`${prefix}ORG_NAME`] = config5.organization;
|
|
1587
|
+
process.env[`${prefix}ORGANIZATION`] = config5.organization;
|
|
1588
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config5.organization;
|
|
1589
1589
|
} else {
|
|
1590
|
-
process.env[`${prefix}ORG`] =
|
|
1591
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
1592
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
1593
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
1594
|
-
if (
|
|
1595
|
-
process.env[`${prefix}ORG_URL`] =
|
|
1596
|
-
process.env[`${prefix}ORGANIZATION_URL`] =
|
|
1590
|
+
process.env[`${prefix}ORG`] = config5.organization.name;
|
|
1591
|
+
process.env[`${prefix}ORG_NAME`] = config5.organization.name;
|
|
1592
|
+
process.env[`${prefix}ORGANIZATION`] = config5.organization.name;
|
|
1593
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config5.organization.name;
|
|
1594
|
+
if (config5.organization.url) {
|
|
1595
|
+
process.env[`${prefix}ORG_URL`] = config5.organization.url;
|
|
1596
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config5.organization.url;
|
|
1597
1597
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
process.env[`${prefix}ORG_DESCRIPTION`] =
|
|
1600
|
-
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] =
|
|
1598
|
+
if (config5.organization.description) {
|
|
1599
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config5.organization.description;
|
|
1600
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config5.organization.description;
|
|
1601
1601
|
}
|
|
1602
|
-
if (
|
|
1603
|
-
process.env[`${prefix}ORG_LOGO`] =
|
|
1604
|
-
process.env[`${prefix}ORGANIZATION_LOGO`] =
|
|
1602
|
+
if (config5.organization.logo) {
|
|
1603
|
+
process.env[`${prefix}ORG_LOGO`] = config5.organization.logo;
|
|
1604
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config5.organization.logo;
|
|
1605
1605
|
}
|
|
1606
|
-
if (
|
|
1607
|
-
process.env[`${prefix}ORG_ICON`] =
|
|
1608
|
-
process.env[`${prefix}ORGANIZATION_ICON`] =
|
|
1606
|
+
if (config5.organization.icon) {
|
|
1607
|
+
process.env[`${prefix}ORG_ICON`] = config5.organization.icon;
|
|
1608
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config5.organization.icon;
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
if (
|
|
1613
|
-
process.env[`${prefix}PACKAGE_MANAGER`] =
|
|
1612
|
+
if (config5.packageManager) {
|
|
1613
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config5.packageManager;
|
|
1614
1614
|
}
|
|
1615
|
-
if (
|
|
1616
|
-
process.env[`${prefix}LICENSE`] =
|
|
1615
|
+
if (config5.license) {
|
|
1616
|
+
process.env[`${prefix}LICENSE`] = config5.license;
|
|
1617
1617
|
}
|
|
1618
|
-
if (
|
|
1619
|
-
process.env[`${prefix}HOMEPAGE`] =
|
|
1618
|
+
if (config5.homepage) {
|
|
1619
|
+
process.env[`${prefix}HOMEPAGE`] = config5.homepage;
|
|
1620
1620
|
}
|
|
1621
|
-
if (
|
|
1622
|
-
process.env[`${prefix}DOCS`] =
|
|
1621
|
+
if (config5.docs) {
|
|
1622
|
+
process.env[`${prefix}DOCS`] = config5.docs;
|
|
1623
1623
|
}
|
|
1624
|
-
if (
|
|
1625
|
-
process.env[`${prefix}PORTAL`] =
|
|
1624
|
+
if (config5.portal) {
|
|
1625
|
+
process.env[`${prefix}PORTAL`] = config5.portal;
|
|
1626
1626
|
}
|
|
1627
|
-
if (
|
|
1628
|
-
process.env[`${prefix}LICENSING`] =
|
|
1627
|
+
if (config5.licensing) {
|
|
1628
|
+
process.env[`${prefix}LICENSING`] = config5.licensing;
|
|
1629
1629
|
}
|
|
1630
|
-
if (
|
|
1631
|
-
process.env[`${prefix}CONTACT`] =
|
|
1630
|
+
if (config5.contact) {
|
|
1631
|
+
process.env[`${prefix}CONTACT`] = config5.contact;
|
|
1632
1632
|
}
|
|
1633
|
-
if (
|
|
1634
|
-
process.env[`${prefix}SUPPORT`] =
|
|
1633
|
+
if (config5.support) {
|
|
1634
|
+
process.env[`${prefix}SUPPORT`] = config5.support;
|
|
1635
1635
|
}
|
|
1636
|
-
if (
|
|
1637
|
-
process.env[`${prefix}TIMEZONE`] =
|
|
1638
|
-
process.env.TZ =
|
|
1639
|
-
process.env.DEFAULT_TIMEZONE =
|
|
1640
|
-
process.env.TIMEZONE =
|
|
1636
|
+
if (config5.timezone) {
|
|
1637
|
+
process.env[`${prefix}TIMEZONE`] = config5.timezone;
|
|
1638
|
+
process.env.TZ = config5.timezone;
|
|
1639
|
+
process.env.DEFAULT_TIMEZONE = config5.timezone;
|
|
1640
|
+
process.env.TIMEZONE = config5.timezone;
|
|
1641
1641
|
}
|
|
1642
|
-
if (
|
|
1643
|
-
process.env[`${prefix}LOCALE`] =
|
|
1644
|
-
process.env.DEFAULT_LOCALE =
|
|
1645
|
-
process.env.LOCALE =
|
|
1646
|
-
process.env.LANG =
|
|
1642
|
+
if (config5.locale) {
|
|
1643
|
+
process.env[`${prefix}LOCALE`] = config5.locale;
|
|
1644
|
+
process.env.DEFAULT_LOCALE = config5.locale;
|
|
1645
|
+
process.env.LOCALE = config5.locale;
|
|
1646
|
+
process.env.LANG = config5.locale ? `${config5.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1647
1647
|
}
|
|
1648
|
-
if (
|
|
1649
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1650
|
-
|
|
1648
|
+
if (config5.configFile) {
|
|
1649
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkGZV7AWC7js.correctPaths.call(void 0,
|
|
1650
|
+
config5.configFile
|
|
1651
1651
|
);
|
|
1652
1652
|
}
|
|
1653
|
-
if (
|
|
1654
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1655
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1656
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1653
|
+
if (config5.workspaceRoot) {
|
|
1654
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkGZV7AWC7js.correctPaths.call(void 0, config5.workspaceRoot);
|
|
1655
|
+
process.env.NX_WORKSPACE_ROOT = _chunkGZV7AWC7js.correctPaths.call(void 0, config5.workspaceRoot);
|
|
1656
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkGZV7AWC7js.correctPaths.call(void 0, config5.workspaceRoot);
|
|
1657
1657
|
}
|
|
1658
|
-
if (
|
|
1659
|
-
if (!
|
|
1660
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1661
|
-
|
|
1658
|
+
if (config5.directories) {
|
|
1659
|
+
if (!config5.skipCache && config5.directories.cache) {
|
|
1660
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkGZV7AWC7js.correctPaths.call(void 0,
|
|
1661
|
+
config5.directories.cache
|
|
1662
1662
|
);
|
|
1663
1663
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1664
1664
|
}
|
|
1665
|
-
if (
|
|
1666
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1665
|
+
if (config5.directories.data) {
|
|
1666
|
+
process.env[`${prefix}DATA_DIR`] = _chunkGZV7AWC7js.correctPaths.call(void 0, config5.directories.data);
|
|
1667
1667
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1668
1668
|
}
|
|
1669
|
-
if (
|
|
1670
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1671
|
-
|
|
1669
|
+
if (config5.directories.config) {
|
|
1670
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkGZV7AWC7js.correctPaths.call(void 0,
|
|
1671
|
+
config5.directories.config
|
|
1672
1672
|
);
|
|
1673
1673
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1674
1674
|
}
|
|
1675
|
-
if (
|
|
1676
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1675
|
+
if (config5.directories.temp) {
|
|
1676
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkGZV7AWC7js.correctPaths.call(void 0, config5.directories.temp);
|
|
1677
1677
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1678
1678
|
}
|
|
1679
|
-
if (
|
|
1680
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1679
|
+
if (config5.directories.log) {
|
|
1680
|
+
process.env[`${prefix}LOG_DIR`] = _chunkGZV7AWC7js.correctPaths.call(void 0, config5.directories.log);
|
|
1681
1681
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1682
1682
|
}
|
|
1683
|
-
if (
|
|
1684
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1685
|
-
|
|
1683
|
+
if (config5.directories.build) {
|
|
1684
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkGZV7AWC7js.correctPaths.call(void 0,
|
|
1685
|
+
config5.directories.build
|
|
1686
1686
|
);
|
|
1687
1687
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
|
-
if (
|
|
1691
|
-
process.env[`${prefix}SKIP_CACHE`] = String(
|
|
1692
|
-
if (
|
|
1693
|
-
process.env.NX_SKIP_NX_CACHE ??= String(
|
|
1694
|
-
process.env.NX_CACHE_PROJECT_GRAPH ??= String(
|
|
1690
|
+
if (config5.skipCache !== void 0) {
|
|
1691
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config5.skipCache);
|
|
1692
|
+
if (config5.skipCache) {
|
|
1693
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config5.skipCache);
|
|
1694
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config5.skipCache);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
if (
|
|
1698
|
-
process.env[`${prefix}MODE`] =
|
|
1699
|
-
process.env.NODE_ENV =
|
|
1700
|
-
process.env.ENVIRONMENT =
|
|
1697
|
+
if (config5.mode) {
|
|
1698
|
+
process.env[`${prefix}MODE`] = config5.mode;
|
|
1699
|
+
process.env.NODE_ENV = config5.mode;
|
|
1700
|
+
process.env.ENVIRONMENT = config5.mode;
|
|
1701
1701
|
}
|
|
1702
|
-
if (_optionalChain([
|
|
1703
|
-
for (const key of Object.keys(
|
|
1704
|
-
setThemeColorsEnv(`${prefix}COLOR_${key}_`,
|
|
1702
|
+
if (_optionalChain([config5, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.light]) || _optionalChain([config5, 'access', _55 => _55.colors, 'optionalAccess', _56 => _56.base, 'optionalAccess', _57 => _57.dark])) {
|
|
1703
|
+
for (const key of Object.keys(config5.colors)) {
|
|
1704
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config5.colors[key]);
|
|
1705
1705
|
}
|
|
1706
1706
|
} else {
|
|
1707
1707
|
setThemeColorsEnv(
|
|
1708
1708
|
`${prefix}COLOR_`,
|
|
1709
|
-
|
|
1709
|
+
config5.colors
|
|
1710
1710
|
);
|
|
1711
1711
|
}
|
|
1712
|
-
if (
|
|
1713
|
-
process.env[`${prefix}REPOSITORY`] =
|
|
1712
|
+
if (config5.repository) {
|
|
1713
|
+
process.env[`${prefix}REPOSITORY`] = config5.repository;
|
|
1714
1714
|
}
|
|
1715
|
-
if (
|
|
1716
|
-
process.env[`${prefix}BRANCH`] =
|
|
1715
|
+
if (config5.branch) {
|
|
1716
|
+
process.env[`${prefix}BRANCH`] = config5.branch;
|
|
1717
1717
|
}
|
|
1718
|
-
if (
|
|
1719
|
-
process.env[`${prefix}PRE_ID`] = String(
|
|
1718
|
+
if (config5.preid) {
|
|
1719
|
+
process.env[`${prefix}PRE_ID`] = String(config5.preid);
|
|
1720
1720
|
}
|
|
1721
|
-
if (
|
|
1722
|
-
if (
|
|
1723
|
-
process.env[`${prefix}REGISTRY_GITHUB`] = String(
|
|
1721
|
+
if (config5.registry) {
|
|
1722
|
+
if (config5.registry.github) {
|
|
1723
|
+
process.env[`${prefix}REGISTRY_GITHUB`] = String(config5.registry.github);
|
|
1724
1724
|
}
|
|
1725
|
-
if (
|
|
1726
|
-
process.env[`${prefix}REGISTRY_NPM`] = String(
|
|
1725
|
+
if (config5.registry.npm) {
|
|
1726
|
+
process.env[`${prefix}REGISTRY_NPM`] = String(config5.registry.npm);
|
|
1727
1727
|
}
|
|
1728
|
-
if (
|
|
1729
|
-
process.env[`${prefix}REGISTRY_CARGO`] = String(
|
|
1728
|
+
if (config5.registry.cargo) {
|
|
1729
|
+
process.env[`${prefix}REGISTRY_CARGO`] = String(config5.registry.cargo);
|
|
1730
1730
|
}
|
|
1731
|
-
if (
|
|
1731
|
+
if (config5.registry.cyclone) {
|
|
1732
1732
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(
|
|
1733
|
-
|
|
1733
|
+
config5.registry.cyclone
|
|
1734
1734
|
);
|
|
1735
1735
|
}
|
|
1736
|
-
if (
|
|
1736
|
+
if (config5.registry.container) {
|
|
1737
1737
|
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
1738
|
-
|
|
1738
|
+
config5.registry.container
|
|
1739
1739
|
);
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
if (
|
|
1743
|
-
process.env[`${prefix}LOG_LEVEL`] = String(
|
|
1744
|
-
process.env.LOG_LEVEL = String(
|
|
1742
|
+
if (config5.logLevel) {
|
|
1743
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config5.logLevel);
|
|
1744
|
+
process.env.LOG_LEVEL = String(config5.logLevel);
|
|
1745
1745
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1746
|
-
getLogLevel(
|
|
1746
|
+
getLogLevel(config5.logLevel) >= LogLevel.DEBUG ? true : false
|
|
1747
1747
|
);
|
|
1748
|
-
process.env.RUST_BACKTRACE = getLogLevel(
|
|
1748
|
+
process.env.RUST_BACKTRACE = getLogLevel(config5.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
1749
1749
|
}
|
|
1750
|
-
if (
|
|
1750
|
+
if (config5.skipConfigLogging !== void 0) {
|
|
1751
1751
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
1752
|
-
|
|
1752
|
+
config5.skipConfigLogging
|
|
1753
1753
|
);
|
|
1754
1754
|
}
|
|
1755
|
-
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(
|
|
1756
|
-
for (const key of Object.keys(_nullishCoalesce(
|
|
1757
|
-
if (
|
|
1758
|
-
setExtensionEnv(key,
|
|
1755
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config5);
|
|
1756
|
+
for (const key of Object.keys(_nullishCoalesce(config5.extensions, () => ( {})))) {
|
|
1757
|
+
if (config5.extensions[key] && Object.keys(config5.extensions[key])) {
|
|
1758
|
+
setExtensionEnv(key, config5.extensions[key]);
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
};
|
|
1762
|
-
var setThemeColorsEnv = (prefix,
|
|
1763
|
-
return _optionalChain([
|
|
1762
|
+
var setThemeColorsEnv = (prefix, config5) => {
|
|
1763
|
+
return _optionalChain([config5, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config5, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ? setMultiThemeColorsEnv(prefix, config5) : setSingleThemeColorsEnv(prefix, config5);
|
|
1764
1764
|
};
|
|
1765
|
-
var setSingleThemeColorsEnv = (prefix,
|
|
1766
|
-
if (
|
|
1767
|
-
process.env[`${prefix}DARK`] =
|
|
1765
|
+
var setSingleThemeColorsEnv = (prefix, config5) => {
|
|
1766
|
+
if (config5.dark) {
|
|
1767
|
+
process.env[`${prefix}DARK`] = config5.dark;
|
|
1768
1768
|
}
|
|
1769
|
-
if (
|
|
1770
|
-
process.env[`${prefix}LIGHT`] =
|
|
1769
|
+
if (config5.light) {
|
|
1770
|
+
process.env[`${prefix}LIGHT`] = config5.light;
|
|
1771
1771
|
}
|
|
1772
|
-
if (
|
|
1773
|
-
process.env[`${prefix}BRAND`] =
|
|
1772
|
+
if (config5.brand) {
|
|
1773
|
+
process.env[`${prefix}BRAND`] = config5.brand;
|
|
1774
1774
|
}
|
|
1775
|
-
if (
|
|
1776
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
1775
|
+
if (config5.alternate) {
|
|
1776
|
+
process.env[`${prefix}ALTERNATE`] = config5.alternate;
|
|
1777
1777
|
}
|
|
1778
|
-
if (
|
|
1779
|
-
process.env[`${prefix}ACCENT`] =
|
|
1778
|
+
if (config5.accent) {
|
|
1779
|
+
process.env[`${prefix}ACCENT`] = config5.accent;
|
|
1780
1780
|
}
|
|
1781
|
-
if (
|
|
1782
|
-
process.env[`${prefix}LINK`] =
|
|
1781
|
+
if (config5.link) {
|
|
1782
|
+
process.env[`${prefix}LINK`] = config5.link;
|
|
1783
1783
|
}
|
|
1784
|
-
if (
|
|
1785
|
-
process.env[`${prefix}HELP`] =
|
|
1784
|
+
if (config5.help) {
|
|
1785
|
+
process.env[`${prefix}HELP`] = config5.help;
|
|
1786
1786
|
}
|
|
1787
|
-
if (
|
|
1788
|
-
process.env[`${prefix}SUCCESS`] =
|
|
1787
|
+
if (config5.success) {
|
|
1788
|
+
process.env[`${prefix}SUCCESS`] = config5.success;
|
|
1789
1789
|
}
|
|
1790
|
-
if (
|
|
1791
|
-
process.env[`${prefix}INFO`] =
|
|
1790
|
+
if (config5.info) {
|
|
1791
|
+
process.env[`${prefix}INFO`] = config5.info;
|
|
1792
1792
|
}
|
|
1793
|
-
if (
|
|
1794
|
-
process.env[`${prefix}WARNING`] =
|
|
1793
|
+
if (config5.warning) {
|
|
1794
|
+
process.env[`${prefix}WARNING`] = config5.warning;
|
|
1795
1795
|
}
|
|
1796
|
-
if (
|
|
1797
|
-
process.env[`${prefix}DANGER`] =
|
|
1796
|
+
if (config5.danger) {
|
|
1797
|
+
process.env[`${prefix}DANGER`] = config5.danger;
|
|
1798
1798
|
}
|
|
1799
|
-
if (
|
|
1800
|
-
process.env[`${prefix}FATAL`] =
|
|
1799
|
+
if (config5.fatal) {
|
|
1800
|
+
process.env[`${prefix}FATAL`] = config5.fatal;
|
|
1801
1801
|
}
|
|
1802
|
-
if (
|
|
1803
|
-
process.env[`${prefix}POSITIVE`] =
|
|
1802
|
+
if (config5.positive) {
|
|
1803
|
+
process.env[`${prefix}POSITIVE`] = config5.positive;
|
|
1804
1804
|
}
|
|
1805
|
-
if (
|
|
1806
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
1805
|
+
if (config5.negative) {
|
|
1806
|
+
process.env[`${prefix}NEGATIVE`] = config5.negative;
|
|
1807
1807
|
}
|
|
1808
|
-
if (
|
|
1809
|
-
for (let i = 0; i <
|
|
1810
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
1808
|
+
if (config5.gradient) {
|
|
1809
|
+
for (let i = 0; i < config5.gradient.length; i++) {
|
|
1810
|
+
process.env[`${prefix}GRADIENT_${i}`] = config5.gradient[i];
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
1813
|
};
|
|
1814
|
-
var setMultiThemeColorsEnv = (prefix,
|
|
1814
|
+
var setMultiThemeColorsEnv = (prefix, config5) => {
|
|
1815
1815
|
return {
|
|
1816
|
-
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`,
|
|
1817
|
-
dark: setBaseThemeColorsEnv(`${prefix}DARK_`,
|
|
1816
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config5.light),
|
|
1817
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config5.dark)
|
|
1818
1818
|
};
|
|
1819
1819
|
};
|
|
1820
|
-
var setBaseThemeColorsEnv = (prefix,
|
|
1821
|
-
if (
|
|
1822
|
-
process.env[`${prefix}FOREGROUND`] =
|
|
1820
|
+
var setBaseThemeColorsEnv = (prefix, config5) => {
|
|
1821
|
+
if (config5.foreground) {
|
|
1822
|
+
process.env[`${prefix}FOREGROUND`] = config5.foreground;
|
|
1823
1823
|
}
|
|
1824
|
-
if (
|
|
1825
|
-
process.env[`${prefix}BACKGROUND`] =
|
|
1824
|
+
if (config5.background) {
|
|
1825
|
+
process.env[`${prefix}BACKGROUND`] = config5.background;
|
|
1826
1826
|
}
|
|
1827
|
-
if (
|
|
1828
|
-
process.env[`${prefix}BRAND`] =
|
|
1827
|
+
if (config5.brand) {
|
|
1828
|
+
process.env[`${prefix}BRAND`] = config5.brand;
|
|
1829
1829
|
}
|
|
1830
|
-
if (
|
|
1831
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
1830
|
+
if (config5.alternate) {
|
|
1831
|
+
process.env[`${prefix}ALTERNATE`] = config5.alternate;
|
|
1832
1832
|
}
|
|
1833
|
-
if (
|
|
1834
|
-
process.env[`${prefix}ACCENT`] =
|
|
1833
|
+
if (config5.accent) {
|
|
1834
|
+
process.env[`${prefix}ACCENT`] = config5.accent;
|
|
1835
1835
|
}
|
|
1836
|
-
if (
|
|
1837
|
-
process.env[`${prefix}LINK`] =
|
|
1836
|
+
if (config5.link) {
|
|
1837
|
+
process.env[`${prefix}LINK`] = config5.link;
|
|
1838
1838
|
}
|
|
1839
|
-
if (
|
|
1840
|
-
process.env[`${prefix}HELP`] =
|
|
1839
|
+
if (config5.help) {
|
|
1840
|
+
process.env[`${prefix}HELP`] = config5.help;
|
|
1841
1841
|
}
|
|
1842
|
-
if (
|
|
1843
|
-
process.env[`${prefix}SUCCESS`] =
|
|
1842
|
+
if (config5.success) {
|
|
1843
|
+
process.env[`${prefix}SUCCESS`] = config5.success;
|
|
1844
1844
|
}
|
|
1845
|
-
if (
|
|
1846
|
-
process.env[`${prefix}INFO`] =
|
|
1845
|
+
if (config5.info) {
|
|
1846
|
+
process.env[`${prefix}INFO`] = config5.info;
|
|
1847
1847
|
}
|
|
1848
|
-
if (
|
|
1849
|
-
process.env[`${prefix}WARNING`] =
|
|
1848
|
+
if (config5.warning) {
|
|
1849
|
+
process.env[`${prefix}WARNING`] = config5.warning;
|
|
1850
1850
|
}
|
|
1851
|
-
if (
|
|
1852
|
-
process.env[`${prefix}DANGER`] =
|
|
1851
|
+
if (config5.danger) {
|
|
1852
|
+
process.env[`${prefix}DANGER`] = config5.danger;
|
|
1853
1853
|
}
|
|
1854
|
-
if (
|
|
1855
|
-
process.env[`${prefix}FATAL`] =
|
|
1854
|
+
if (config5.fatal) {
|
|
1855
|
+
process.env[`${prefix}FATAL`] = config5.fatal;
|
|
1856
1856
|
}
|
|
1857
|
-
if (
|
|
1858
|
-
process.env[`${prefix}POSITIVE`] =
|
|
1857
|
+
if (config5.positive) {
|
|
1858
|
+
process.env[`${prefix}POSITIVE`] = config5.positive;
|
|
1859
1859
|
}
|
|
1860
|
-
if (
|
|
1861
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
1860
|
+
if (config5.negative) {
|
|
1861
|
+
process.env[`${prefix}NEGATIVE`] = config5.negative;
|
|
1862
1862
|
}
|
|
1863
|
-
if (
|
|
1864
|
-
for (let i = 0; i <
|
|
1865
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
1863
|
+
if (config5.gradient) {
|
|
1864
|
+
for (let i = 0; i < config5.gradient.length; i++) {
|
|
1865
|
+
process.env[`${prefix}GRADIENT_${i}`] = config5.gradient[i];
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
1868
|
};
|
|
@@ -1941,26 +1941,26 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
1941
1941
|
return extension;
|
|
1942
1942
|
};
|
|
1943
1943
|
var loadStormWorkspaceConfig = async (workspaceRoot3, skipLogs = false) => {
|
|
1944
|
-
const
|
|
1944
|
+
const config5 = await createStormWorkspaceConfig(
|
|
1945
1945
|
void 0,
|
|
1946
1946
|
void 0,
|
|
1947
1947
|
workspaceRoot3,
|
|
1948
1948
|
skipLogs,
|
|
1949
1949
|
true
|
|
1950
1950
|
);
|
|
1951
|
-
setConfigEnv(
|
|
1952
|
-
if (!skipLogs && !
|
|
1951
|
+
setConfigEnv(config5);
|
|
1952
|
+
if (!skipLogs && !config5.skipConfigLogging) {
|
|
1953
1953
|
writeTrace(
|
|
1954
1954
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1955
|
-
${formatLogMessage(
|
|
1956
|
-
|
|
1955
|
+
${formatLogMessage(config5)}`,
|
|
1956
|
+
config5
|
|
1957
1957
|
);
|
|
1958
1958
|
}
|
|
1959
|
-
return
|
|
1959
|
+
return config5;
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
1962
|
// ../config-tools/src/get-config.ts
|
|
1963
|
-
|
|
1963
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1964
1964
|
var getConfig = (workspaceRoot3, skipLogs = false) => {
|
|
1965
1965
|
return loadStormWorkspaceConfig(workspaceRoot3, skipLogs);
|
|
1966
1966
|
};
|
|
@@ -1977,7 +1977,7 @@ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
|
1977
1977
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
1978
1978
|
const stopwatch = getStopwatch(name);
|
|
1979
1979
|
let options = _options;
|
|
1980
|
-
let
|
|
1980
|
+
let config5 = {};
|
|
1981
1981
|
try {
|
|
1982
1982
|
if (!_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1983
1983
|
throw new Error(
|
|
@@ -1988,8 +1988,8 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1988
1988
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot3;
|
|
1989
1989
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot3;
|
|
1990
1990
|
const projectName = context.projectName;
|
|
1991
|
-
|
|
1992
|
-
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `,
|
|
1991
|
+
config5.workspaceRoot = workspaceRoot3;
|
|
1992
|
+
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config5);
|
|
1993
1993
|
if (!executorOptions.skipReadingConfig) {
|
|
1994
1994
|
writeTrace(
|
|
1995
1995
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -1998,28 +1998,28 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1998
1998
|
- sourceRoot: ${sourceRoot}
|
|
1999
1999
|
- projectName: ${projectName}
|
|
2000
2000
|
`,
|
|
2001
|
-
|
|
2001
|
+
config5
|
|
2002
2002
|
);
|
|
2003
|
-
|
|
2003
|
+
config5 = await getConfig(workspaceRoot3);
|
|
2004
2004
|
}
|
|
2005
2005
|
if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.applyDefaultOptions])) {
|
|
2006
|
-
writeDebug("Running the applyDefaultOptions hook...",
|
|
2006
|
+
writeDebug("Running the applyDefaultOptions hook...", config5);
|
|
2007
2007
|
options = await Promise.resolve(
|
|
2008
|
-
executorOptions.hooks.applyDefaultOptions(options,
|
|
2008
|
+
executorOptions.hooks.applyDefaultOptions(options, config5)
|
|
2009
2009
|
);
|
|
2010
|
-
writeDebug("Completed the applyDefaultOptions hook",
|
|
2010
|
+
writeDebug("Completed the applyDefaultOptions hook", config5);
|
|
2011
2011
|
}
|
|
2012
2012
|
writeTrace(
|
|
2013
2013
|
`Executor schema options \u2699\uFE0F
|
|
2014
2014
|
${formatLogMessage(options)}
|
|
2015
2015
|
`,
|
|
2016
|
-
|
|
2016
|
+
config5
|
|
2017
2017
|
);
|
|
2018
2018
|
const tokenized = await applyWorkspaceTokens(
|
|
2019
2019
|
options,
|
|
2020
2020
|
_defu.defu.call(void 0,
|
|
2021
|
-
{ workspaceRoot: workspaceRoot3, projectRoot, sourceRoot, projectName, config },
|
|
2022
|
-
|
|
2021
|
+
{ workspaceRoot: workspaceRoot3, projectRoot, sourceRoot, projectName, config: config5 },
|
|
2022
|
+
config5,
|
|
2023
2023
|
context.projectsConfigurations.projects[context.projectName]
|
|
2024
2024
|
),
|
|
2025
2025
|
applyWorkspaceProjectTokens
|
|
@@ -2028,16 +2028,16 @@ ${formatLogMessage(options)}
|
|
|
2028
2028
|
`Executor schema tokenized options \u2699\uFE0F
|
|
2029
2029
|
${formatLogMessage(tokenized)}
|
|
2030
2030
|
`,
|
|
2031
|
-
|
|
2031
|
+
config5
|
|
2032
2032
|
);
|
|
2033
2033
|
if (_optionalChain([executorOptions, 'optionalAccess', _69 => _69.hooks, 'optionalAccess', _70 => _70.preProcess])) {
|
|
2034
|
-
writeDebug("Running the preProcess hook...",
|
|
2034
|
+
writeDebug("Running the preProcess hook...", config5);
|
|
2035
2035
|
await Promise.resolve(
|
|
2036
|
-
executorOptions.hooks.preProcess(tokenized,
|
|
2036
|
+
executorOptions.hooks.preProcess(tokenized, config5)
|
|
2037
2037
|
);
|
|
2038
|
-
writeDebug("Completed the preProcess hook",
|
|
2038
|
+
writeDebug("Completed the preProcess hook", config5);
|
|
2039
2039
|
}
|
|
2040
|
-
const ret = executorFn(tokenized, context,
|
|
2040
|
+
const ret = executorFn(tokenized, context, config5);
|
|
2041
2041
|
if (_isFunction2(_optionalChain([ret, 'optionalAccess', _71 => _71.next]))) {
|
|
2042
2042
|
const asyncGen = ret;
|
|
2043
2043
|
for await (const iter of asyncGen) {
|
|
@@ -2051,7 +2051,7 @@ ${formatLogMessage(tokenized)}
|
|
|
2051
2051
|
writeTrace(
|
|
2052
2052
|
`Failure determined by the ${name} executor
|
|
2053
2053
|
${formatLogMessage(result)}`,
|
|
2054
|
-
|
|
2054
|
+
config5
|
|
2055
2055
|
);
|
|
2056
2056
|
console.error(result);
|
|
2057
2057
|
throw new Error(`The ${name} executor failed to run`, {
|
|
@@ -2059,25 +2059,25 @@ ${formatLogMessage(result)}`,
|
|
|
2059
2059
|
});
|
|
2060
2060
|
}
|
|
2061
2061
|
if (_optionalChain([executorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
|
|
2062
|
-
writeDebug("Running the postProcess hook...",
|
|
2063
|
-
await Promise.resolve(executorOptions.hooks.postProcess(
|
|
2064
|
-
writeDebug("Completed the postProcess hook",
|
|
2062
|
+
writeDebug("Running the postProcess hook...", config5);
|
|
2063
|
+
await Promise.resolve(executorOptions.hooks.postProcess(config5));
|
|
2064
|
+
writeDebug("Completed the postProcess hook", config5);
|
|
2065
2065
|
}
|
|
2066
2066
|
writeSuccess(`Completed running the ${name} task executor!
|
|
2067
|
-
`,
|
|
2067
|
+
`, config5);
|
|
2068
2068
|
return {
|
|
2069
2069
|
success: true
|
|
2070
2070
|
};
|
|
2071
2071
|
} catch (error) {
|
|
2072
2072
|
writeFatal(
|
|
2073
2073
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
2074
|
-
|
|
2074
|
+
config5
|
|
2075
2075
|
);
|
|
2076
2076
|
writeError(
|
|
2077
2077
|
`An exception was thrown in the executor's process
|
|
2078
2078
|
- Details: ${error.message}
|
|
2079
2079
|
- Stacktrace: ${error.stack}`,
|
|
2080
|
-
|
|
2080
|
+
config5
|
|
2081
2081
|
);
|
|
2082
2082
|
return {
|
|
2083
2083
|
success: false
|
|
@@ -2095,7 +2095,7 @@ var _isFunction2 = (value) => {
|
|
|
2095
2095
|
};
|
|
2096
2096
|
|
|
2097
2097
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2098
|
-
|
|
2098
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2099
2099
|
|
|
2100
2100
|
|
|
2101
2101
|
|
|
@@ -2233,7 +2233,7 @@ var executor_default = withRunExecutor(
|
|
|
2233
2233
|
);
|
|
2234
2234
|
|
|
2235
2235
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2236
|
-
|
|
2236
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2237
2237
|
async function cargoCheckExecutor(options, context) {
|
|
2238
2238
|
const command = buildCargoCommand("check", options, context);
|
|
2239
2239
|
return await cargoCommand(...command);
|
|
@@ -2253,7 +2253,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2253
2253
|
);
|
|
2254
2254
|
|
|
2255
2255
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2256
|
-
|
|
2256
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2257
2257
|
async function cargoClippyExecutor(options, context) {
|
|
2258
2258
|
const command = buildCargoCommand("clippy", options, context);
|
|
2259
2259
|
return await cargoCommand(...command);
|
|
@@ -2274,7 +2274,7 @@ var executor_default3 = withRunExecutor(
|
|
|
2274
2274
|
);
|
|
2275
2275
|
|
|
2276
2276
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
2277
|
-
|
|
2277
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2278
2278
|
async function cargoDocExecutor(options, context) {
|
|
2279
2279
|
const opts = { ...options };
|
|
2280
2280
|
opts["no-deps"] = opts.noDeps;
|
|
@@ -2304,7 +2304,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2304
2304
|
);
|
|
2305
2305
|
|
|
2306
2306
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2307
|
-
|
|
2307
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2308
2308
|
async function cargoFormatExecutor(options, context) {
|
|
2309
2309
|
const command = buildCargoCommand("fmt", options, context);
|
|
2310
2310
|
return await cargoCommand(...command);
|
|
@@ -2325,7 +2325,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2325
2325
|
);
|
|
2326
2326
|
|
|
2327
2327
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
2328
|
-
|
|
2328
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2329
2329
|
|
|
2330
2330
|
|
|
2331
2331
|
|
|
@@ -2333,19 +2333,19 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
|
2333
2333
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2334
2334
|
|
|
2335
2335
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2336
|
-
|
|
2336
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2337
2337
|
|
|
2338
2338
|
// ../esbuild/src/build.ts
|
|
2339
|
-
|
|
2339
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2340
2340
|
|
|
2341
2341
|
// ../esbuild/src/assets.ts
|
|
2342
|
-
|
|
2342
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2343
2343
|
|
|
2344
2344
|
// ../build-tools/src/index.ts
|
|
2345
|
-
|
|
2345
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2346
2346
|
|
|
2347
2347
|
// ../build-tools/src/config.ts
|
|
2348
|
-
|
|
2348
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2349
2349
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
2350
2350
|
*
|
|
2351
2351
|
* \u26A1 Built by Storm Software
|
|
@@ -2356,39 +2356,39 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
2356
2356
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2357
2357
|
|
|
2358
2358
|
// ../build-tools/src/plugins/index.ts
|
|
2359
|
-
|
|
2359
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2360
2360
|
|
|
2361
2361
|
// ../build-tools/src/plugins/analyze.ts
|
|
2362
|
-
|
|
2362
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2363
2363
|
|
|
2364
2364
|
// ../build-tools/src/plugins/swc.ts
|
|
2365
|
-
|
|
2365
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2366
2366
|
var _core = require('@swc/core');
|
|
2367
2367
|
|
|
2368
2368
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
2369
|
-
|
|
2369
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2370
2370
|
|
|
2371
2371
|
var _module = require('module');
|
|
2372
2372
|
|
|
2373
2373
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
2374
2374
|
|
|
2375
2375
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2376
|
-
|
|
2376
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2377
2377
|
|
|
2378
2378
|
|
|
2379
2379
|
|
|
2380
2380
|
// ../build-tools/src/types.ts
|
|
2381
|
-
|
|
2381
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2382
2382
|
|
|
2383
2383
|
// ../build-tools/src/utilities/index.ts
|
|
2384
|
-
|
|
2384
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2385
2385
|
|
|
2386
2386
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2387
|
-
|
|
2387
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2388
2388
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2389
2389
|
var _glob = require('glob');
|
|
2390
2390
|
|
|
2391
|
-
var copyAssets = async (
|
|
2391
|
+
var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
2392
2392
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
2393
2393
|
pendingAssets.push({
|
|
2394
2394
|
input: projectRoot,
|
|
@@ -2416,30 +2416,30 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2416
2416
|
}
|
|
2417
2417
|
writeTrace(
|
|
2418
2418
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2419
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2420
|
-
|
|
2419
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkGZV7AWC7js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2420
|
+
config5
|
|
2421
2421
|
);
|
|
2422
2422
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
2423
2423
|
projectDir: projectRoot,
|
|
2424
|
-
rootDir:
|
|
2424
|
+
rootDir: config5.workspaceRoot,
|
|
2425
2425
|
outputDir: outputPath,
|
|
2426
2426
|
assets: pendingAssets
|
|
2427
2427
|
});
|
|
2428
2428
|
await assetHandler.processAllAssetsOnce();
|
|
2429
|
-
writeTrace("Completed copying assets to the output directory",
|
|
2429
|
+
writeTrace("Completed copying assets to the output directory", config5);
|
|
2430
2430
|
if (includeSrc === true) {
|
|
2431
2431
|
writeDebug(
|
|
2432
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2432
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2433
2433
|
outputPath,
|
|
2434
2434
|
"src"
|
|
2435
2435
|
)}`,
|
|
2436
|
-
|
|
2436
|
+
config5
|
|
2437
2437
|
);
|
|
2438
2438
|
const files = await _glob.glob.call(void 0, [
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2439
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2440
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2441
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2442
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2443
2443
|
]);
|
|
2444
2444
|
await Promise.allSettled(
|
|
2445
2445
|
files.map(
|
|
@@ -2457,7 +2457,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2457
2457
|
};
|
|
2458
2458
|
|
|
2459
2459
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2460
|
-
|
|
2460
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2461
2461
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
2462
2462
|
|
|
2463
2463
|
|
|
@@ -2495,7 +2495,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2495
2495
|
)) {
|
|
2496
2496
|
const projectNode = project.node;
|
|
2497
2497
|
if (projectNode.data.root) {
|
|
2498
|
-
const projectPackageJsonPath =
|
|
2498
|
+
const projectPackageJsonPath = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2499
2499
|
workspaceRoot3,
|
|
2500
2500
|
projectNode.data.root,
|
|
2501
2501
|
"package.json"
|
|
@@ -2517,7 +2517,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2517
2517
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2518
2518
|
);
|
|
2519
2519
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2520
|
-
|
|
2520
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2521
2521
|
"utf8"
|
|
2522
2522
|
);
|
|
2523
2523
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2530,7 +2530,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2530
2530
|
}
|
|
2531
2531
|
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) => {
|
|
2532
2532
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2533
|
-
const depPackageJsonPath =
|
|
2533
|
+
const depPackageJsonPath = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2534
2534
|
workspaceRoot3,
|
|
2535
2535
|
projectConfigurations.projects[dep].root,
|
|
2536
2536
|
"package.json"
|
|
@@ -2568,7 +2568,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2568
2568
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2569
2569
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2570
2570
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2571
|
-
|
|
2571
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
2572
2572
|
"utf8"
|
|
2573
2573
|
);
|
|
2574
2574
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2579,7 +2579,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2579
2579
|
if (distSrc.startsWith("/")) {
|
|
2580
2580
|
distSrc = distSrc.substring(1);
|
|
2581
2581
|
}
|
|
2582
|
-
packageJson.source ??= `${
|
|
2582
|
+
packageJson.source ??= `${_chunkGZV7AWC7js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2583
2583
|
}
|
|
2584
2584
|
packageJson.files ??= ["dist/**/*"];
|
|
2585
2585
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2604,16 +2604,16 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2604
2604
|
packageJson.contributors = [packageJson.author];
|
|
2605
2605
|
}
|
|
2606
2606
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2607
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2607
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkGZV7AWC7js.joinPaths.call(void 0, "packages", projectName);
|
|
2608
2608
|
return packageJson;
|
|
2609
2609
|
};
|
|
2610
2610
|
|
|
2611
2611
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2612
|
-
|
|
2612
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2613
2613
|
|
|
2614
2614
|
|
|
2615
2615
|
// ../build-tools/src/utilities/get-env.ts
|
|
2616
|
-
|
|
2616
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2617
2617
|
var getEnv = (builder, options) => {
|
|
2618
2618
|
return {
|
|
2619
2619
|
STORM_BUILD: builder,
|
|
@@ -2628,21 +2628,21 @@ var getEnv = (builder, options) => {
|
|
|
2628
2628
|
};
|
|
2629
2629
|
|
|
2630
2630
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
2631
|
-
|
|
2631
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2632
2632
|
|
|
2633
2633
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
2634
|
-
|
|
2634
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2635
2635
|
|
|
2636
2636
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
2637
|
-
|
|
2637
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2638
2638
|
|
|
2639
2639
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2640
|
-
|
|
2640
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2641
2641
|
|
|
2642
2642
|
|
|
2643
2643
|
|
|
2644
2644
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2645
|
-
|
|
2645
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2646
2646
|
|
|
2647
2647
|
|
|
2648
2648
|
|
|
@@ -2671,14 +2671,14 @@ async function copyBuildAssets(context) {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
|
|
2673
2673
|
// ../esbuild/src/clean.ts
|
|
2674
|
-
|
|
2674
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2675
2675
|
|
|
2676
2676
|
async function cleanDirectories(directory) {
|
|
2677
2677
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
2678
2678
|
}
|
|
2679
2679
|
|
|
2680
2680
|
// ../esbuild/src/context.ts
|
|
2681
|
-
|
|
2681
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2682
2682
|
|
|
2683
2683
|
|
|
2684
2684
|
|
|
@@ -2689,7 +2689,7 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
2689
2689
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2690
2690
|
|
|
2691
2691
|
// ../esbuild/src/config.ts
|
|
2692
|
-
|
|
2692
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2693
2693
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2694
2694
|
platform: "node",
|
|
2695
2695
|
target: "node22",
|
|
@@ -2747,7 +2747,7 @@ async function resolveContext(userOptions) {
|
|
|
2747
2747
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2748
2748
|
exitOnError: true
|
|
2749
2749
|
});
|
|
2750
|
-
const projectJsonPath =
|
|
2750
|
+
const projectJsonPath = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2751
2751
|
workspaceRoot3.dir,
|
|
2752
2752
|
projectRoot,
|
|
2753
2753
|
"project.json"
|
|
@@ -2766,7 +2766,7 @@ async function resolveContext(userOptions) {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2768
2768
|
options.name ??= projectName;
|
|
2769
|
-
const packageJsonPath =
|
|
2769
|
+
const packageJsonPath = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2770
2770
|
workspaceRoot3.dir,
|
|
2771
2771
|
options.projectRoot,
|
|
2772
2772
|
"package.json"
|
|
@@ -2778,7 +2778,7 @@ async function resolveContext(userOptions) {
|
|
|
2778
2778
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2779
2779
|
const resolvedOptions = {
|
|
2780
2780
|
...options,
|
|
2781
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2781
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkGZV7AWC7js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2782
2782
|
metafile: userOptions.mode === "development",
|
|
2783
2783
|
clean: false,
|
|
2784
2784
|
env,
|
|
@@ -2803,8 +2803,8 @@ async function resolveContext(userOptions) {
|
|
|
2803
2803
|
projectConfigurations,
|
|
2804
2804
|
projectName,
|
|
2805
2805
|
projectGraph,
|
|
2806
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2807
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2806
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkGZV7AWC7js.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2807
|
+
outputPath: resolvedOptions.outputPath || _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2808
2808
|
workspaceConfig.workspaceRoot,
|
|
2809
2809
|
"dist",
|
|
2810
2810
|
resolvedOptions.projectRoot
|
|
@@ -2824,15 +2824,15 @@ ${formatLogMessage(context.options)}`,
|
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
2826
|
// ../esbuild/src/package-json.ts
|
|
2827
|
-
|
|
2827
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2828
2828
|
|
|
2829
2829
|
|
|
2830
2830
|
|
|
2831
2831
|
async function generatePackageJson(context) {
|
|
2832
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2832
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkGZV7AWC7js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2833
2833
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2834
2834
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2835
|
-
const packageJsonPath =
|
|
2835
|
+
const packageJsonPath = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2836
2836
|
context.options.projectRoot,
|
|
2837
2837
|
"project.json"
|
|
2838
2838
|
);
|
|
@@ -2840,7 +2840,7 @@ async function generatePackageJson(context) {
|
|
|
2840
2840
|
throw new Error("Cannot find package.json configuration");
|
|
2841
2841
|
}
|
|
2842
2842
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2843
|
-
|
|
2843
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
2844
2844
|
context.workspaceConfig.workspaceRoot,
|
|
2845
2845
|
context.options.projectRoot,
|
|
2846
2846
|
"package.json"
|
|
@@ -2946,7 +2946,7 @@ async function generatePackageJson(context) {
|
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
2948
|
await _devkit.writeJsonFile.call(void 0,
|
|
2949
|
-
|
|
2949
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2950
2950
|
packageJson
|
|
2951
2951
|
);
|
|
2952
2952
|
stopwatch();
|
|
@@ -2955,7 +2955,7 @@ async function generatePackageJson(context) {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
|
|
2957
2957
|
// ../esbuild/src/tsup.ts
|
|
2958
|
-
|
|
2958
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
2959
2959
|
var _tsup = require('tsup');
|
|
2960
2960
|
async function executeTsup(context) {
|
|
2961
2961
|
writeDebug(
|
|
@@ -2965,7 +2965,7 @@ async function executeTsup(context) {
|
|
|
2965
2965
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
2966
2966
|
await _tsup.build.call(void 0, {
|
|
2967
2967
|
...context.options,
|
|
2968
|
-
outDir: context.options.distDir ?
|
|
2968
|
+
outDir: context.options.distDir ? _chunkGZV7AWC7js.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
2969
2969
|
workspaceConfig: context.workspaceConfig
|
|
2970
2970
|
});
|
|
2971
2971
|
stopwatch();
|
|
@@ -3036,8 +3036,8 @@ async function build(options) {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
|
|
3038
3038
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
3039
|
-
async function esbuildExecutorFn(options, context,
|
|
3040
|
-
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace",
|
|
3039
|
+
async function esbuildExecutorFn(options, context, config5) {
|
|
3040
|
+
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config5);
|
|
3041
3041
|
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])) {
|
|
3042
3042
|
throw new Error(
|
|
3043
3043
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -3075,17 +3075,17 @@ var executor_default6 = withRunExecutor(
|
|
|
3075
3075
|
);
|
|
3076
3076
|
|
|
3077
3077
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3078
|
-
|
|
3078
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3079
3079
|
|
|
3080
3080
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
3081
|
-
|
|
3081
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3082
3082
|
|
|
3083
3083
|
|
|
3084
3084
|
// ../npm-tools/src/constants.ts
|
|
3085
|
-
|
|
3085
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3086
3086
|
|
|
3087
3087
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
3088
|
-
|
|
3088
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3089
3089
|
|
|
3090
3090
|
|
|
3091
3091
|
|
|
@@ -3095,17 +3095,17 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
3095
3095
|
var _prettier = require('prettier');
|
|
3096
3096
|
|
|
3097
3097
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3098
|
-
|
|
3098
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3099
3099
|
|
|
3100
3100
|
// ../npm-tools/src/helpers/get-version.ts
|
|
3101
|
-
|
|
3101
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3102
3102
|
|
|
3103
3103
|
|
|
3104
3104
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3105
3105
|
var _semver = require('semver');
|
|
3106
3106
|
|
|
3107
3107
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3108
|
-
|
|
3108
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3109
3109
|
|
|
3110
3110
|
|
|
3111
3111
|
var _yaml = require('yaml');
|
|
@@ -3116,7 +3116,7 @@ var _yaml = require('yaml');
|
|
|
3116
3116
|
|
|
3117
3117
|
|
|
3118
3118
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
3119
|
-
|
|
3119
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3120
3120
|
|
|
3121
3121
|
|
|
3122
3122
|
|
|
@@ -3128,7 +3128,7 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
3128
3128
|
|
|
3129
3129
|
|
|
3130
3130
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3131
|
-
|
|
3131
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3132
3132
|
var ProjectTagConstants = {
|
|
3133
3133
|
Language: {
|
|
3134
3134
|
TAG_ID: "language",
|
|
@@ -3192,19 +3192,19 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
3192
3192
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
3193
3193
|
|
|
3194
3194
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3195
|
-
|
|
3195
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3196
3196
|
|
|
3197
3197
|
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3198
3198
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
3199
3199
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3200
3200
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
3201
|
-
async function sizeLimitExecutorFn(options, context,
|
|
3201
|
+
async function sizeLimitExecutorFn(options, context, config5) {
|
|
3202
3202
|
if (!_optionalChain([context, 'optionalAccess', _142 => _142.projectName]) || !_optionalChain([context, 'access', _143 => _143.projectsConfigurations, 'optionalAccess', _144 => _144.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3203
3203
|
throw new Error(
|
|
3204
3204
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
3205
3205
|
);
|
|
3206
3206
|
}
|
|
3207
|
-
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`,
|
|
3207
|
+
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config5);
|
|
3208
3208
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
3209
3209
|
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,
|
|
3210
3210
|
_nullishCoalesce(_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context.projectName], 'optionalAccess', _152 => _152.root]), () => ( "./")),
|
|
@@ -3213,7 +3213,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
3213
3213
|
}).then((result) => {
|
|
3214
3214
|
writeInfo(
|
|
3215
3215
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
3216
|
-
|
|
3216
|
+
config5
|
|
3217
3217
|
);
|
|
3218
3218
|
});
|
|
3219
3219
|
return {
|
|
@@ -3234,17 +3234,17 @@ var executor_default7 = withRunExecutor(
|
|
|
3234
3234
|
);
|
|
3235
3235
|
|
|
3236
3236
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3237
|
-
|
|
3237
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3238
3238
|
var _fsextra = require('fs-extra');
|
|
3239
3239
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3240
|
-
async function typiaExecutorFn(options, _,
|
|
3240
|
+
async function typiaExecutorFn(options, _, config5) {
|
|
3241
3241
|
if (options.clean !== false) {
|
|
3242
|
-
writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`,
|
|
3242
|
+
writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config5);
|
|
3243
3243
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
3244
3244
|
}
|
|
3245
3245
|
await Promise.all(
|
|
3246
3246
|
options.entry.map((entry) => {
|
|
3247
|
-
writeInfo(`\u{1F680} Running Typia on entry: ${entry}`,
|
|
3247
|
+
writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config5);
|
|
3248
3248
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
3249
3249
|
input: entry,
|
|
3250
3250
|
output: options.outputPath,
|
|
@@ -3274,11 +3274,11 @@ var executor_default8 = withRunExecutor(
|
|
|
3274
3274
|
);
|
|
3275
3275
|
|
|
3276
3276
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3277
|
-
|
|
3277
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3278
3278
|
|
|
3279
3279
|
var _jiti = require('jiti');
|
|
3280
|
-
async function unbuildExecutorFn(options, context,
|
|
3281
|
-
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace",
|
|
3280
|
+
async function unbuildExecutorFn(options, context, config5) {
|
|
3281
|
+
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config5);
|
|
3282
3282
|
if (!_optionalChain([context, 'access', _153 => _153.projectsConfigurations, 'optionalAccess', _154 => _154.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3283
3283
|
throw new Error(
|
|
3284
3284
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -3294,10 +3294,10 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3294
3294
|
"The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
|
|
3295
3295
|
);
|
|
3296
3296
|
}
|
|
3297
|
-
const jiti = _jiti.createJiti.call(void 0,
|
|
3298
|
-
fsCache:
|
|
3299
|
-
|
|
3300
|
-
|
|
3297
|
+
const jiti = _jiti.createJiti.call(void 0, config5.workspaceRoot, {
|
|
3298
|
+
fsCache: config5.skipCache ? false : _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
3299
|
+
config5.workspaceRoot,
|
|
3300
|
+
config5.directories.cache || "node_modules/.cache/storm",
|
|
3301
3301
|
"jiti"
|
|
3302
3302
|
),
|
|
3303
3303
|
interopDefault: true
|
|
@@ -3317,9 +3317,9 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3317
3317
|
{
|
|
3318
3318
|
stubOptions: {
|
|
3319
3319
|
jiti: {
|
|
3320
|
-
fsCache:
|
|
3321
|
-
|
|
3322
|
-
|
|
3320
|
+
fsCache: config5.skipCache ? false : _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
3321
|
+
config5.workspaceRoot,
|
|
3322
|
+
config5.directories.cache || "node_modules/.cache/storm",
|
|
3323
3323
|
"jiti"
|
|
3324
3324
|
)
|
|
3325
3325
|
}
|
|
@@ -3352,7 +3352,7 @@ var executor_default9 = withRunExecutor(
|
|
|
3352
3352
|
{
|
|
3353
3353
|
skipReadingConfig: false,
|
|
3354
3354
|
hooks: {
|
|
3355
|
-
applyDefaultOptions: async (options,
|
|
3355
|
+
applyDefaultOptions: async (options, config5) => {
|
|
3356
3356
|
options.debug ??= false;
|
|
3357
3357
|
options.treeShaking ??= true;
|
|
3358
3358
|
options.buildOnly ??= false;
|
|
@@ -3366,10 +3366,10 @@ var executor_default9 = withRunExecutor(
|
|
|
3366
3366
|
);
|
|
3367
3367
|
|
|
3368
3368
|
// ../workspace-tools/generators.ts
|
|
3369
|
-
|
|
3369
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3370
3370
|
|
|
3371
3371
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3372
|
-
|
|
3372
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3373
3373
|
|
|
3374
3374
|
|
|
3375
3375
|
|
|
@@ -3378,52 +3378,52 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
3378
3378
|
|
|
3379
3379
|
|
|
3380
3380
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3381
|
-
|
|
3381
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3382
3382
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
3383
3383
|
skipReadingConfig: false
|
|
3384
3384
|
}) => async (tree, _options) => {
|
|
3385
3385
|
const stopwatch = getStopwatch(name);
|
|
3386
3386
|
let options = _options;
|
|
3387
|
-
let
|
|
3387
|
+
let config5;
|
|
3388
3388
|
try {
|
|
3389
3389
|
writeInfo(`\u26A1 Running the ${name} generator...
|
|
3390
3390
|
|
|
3391
|
-
`,
|
|
3391
|
+
`, config5);
|
|
3392
3392
|
const workspaceRoot3 = findWorkspaceRoot();
|
|
3393
3393
|
if (!generatorOptions.skipReadingConfig) {
|
|
3394
3394
|
writeDebug(
|
|
3395
3395
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
3396
3396
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
3397
|
-
|
|
3397
|
+
config5
|
|
3398
3398
|
);
|
|
3399
|
-
|
|
3399
|
+
config5 = await getConfig(workspaceRoot3);
|
|
3400
3400
|
}
|
|
3401
3401
|
if (_optionalChain([generatorOptions, 'optionalAccess', _155 => _155.hooks, 'optionalAccess', _156 => _156.applyDefaultOptions])) {
|
|
3402
|
-
writeDebug("Running the applyDefaultOptions hook...",
|
|
3402
|
+
writeDebug("Running the applyDefaultOptions hook...", config5);
|
|
3403
3403
|
options = await Promise.resolve(
|
|
3404
|
-
generatorOptions.hooks.applyDefaultOptions(options,
|
|
3404
|
+
generatorOptions.hooks.applyDefaultOptions(options, config5)
|
|
3405
3405
|
);
|
|
3406
|
-
writeDebug("Completed the applyDefaultOptions hook",
|
|
3406
|
+
writeDebug("Completed the applyDefaultOptions hook", config5);
|
|
3407
3407
|
}
|
|
3408
3408
|
writeTrace(
|
|
3409
3409
|
`Generator schema options \u2699\uFE0F
|
|
3410
3410
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
3411
|
-
|
|
3411
|
+
config5
|
|
3412
3412
|
);
|
|
3413
3413
|
const tokenized = await applyWorkspaceTokens(
|
|
3414
3414
|
options,
|
|
3415
|
-
{ workspaceRoot: tree.root, config },
|
|
3415
|
+
{ workspaceRoot: tree.root, config: config5 },
|
|
3416
3416
|
applyWorkspaceBaseTokens
|
|
3417
3417
|
);
|
|
3418
3418
|
if (_optionalChain([generatorOptions, 'optionalAccess', _157 => _157.hooks, 'optionalAccess', _158 => _158.preProcess])) {
|
|
3419
|
-
writeDebug("Running the preProcess hook...",
|
|
3419
|
+
writeDebug("Running the preProcess hook...", config5);
|
|
3420
3420
|
await Promise.resolve(
|
|
3421
|
-
generatorOptions.hooks.preProcess(tokenized,
|
|
3421
|
+
generatorOptions.hooks.preProcess(tokenized, config5)
|
|
3422
3422
|
);
|
|
3423
|
-
writeDebug("Completed the preProcess hook",
|
|
3423
|
+
writeDebug("Completed the preProcess hook", config5);
|
|
3424
3424
|
}
|
|
3425
3425
|
const result = await Promise.resolve(
|
|
3426
|
-
generatorFn(tree, tokenized,
|
|
3426
|
+
generatorFn(tree, tokenized, config5)
|
|
3427
3427
|
);
|
|
3428
3428
|
if (result) {
|
|
3429
3429
|
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _159 => _159.error, 'optionalAccess', _160 => _160.message]) && typeof _optionalChain([result, 'optionalAccess', _161 => _161.error, 'optionalAccess', _162 => _162.message]) === "string" && _optionalChain([result, 'optionalAccess', _163 => _163.error, 'optionalAccess', _164 => _164.name]) && typeof _optionalChain([result, 'optionalAccess', _165 => _165.error, 'optionalAccess', _166 => _166.name]) === "string") {
|
|
@@ -3435,25 +3435,25 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
3437
3437
|
if (_optionalChain([generatorOptions, 'optionalAccess', _168 => _168.hooks, 'optionalAccess', _169 => _169.postProcess])) {
|
|
3438
|
-
writeDebug("Running the postProcess hook...",
|
|
3439
|
-
await Promise.resolve(generatorOptions.hooks.postProcess(
|
|
3440
|
-
writeDebug("Completed the postProcess hook",
|
|
3438
|
+
writeDebug("Running the postProcess hook...", config5);
|
|
3439
|
+
await Promise.resolve(generatorOptions.hooks.postProcess(config5));
|
|
3440
|
+
writeDebug("Completed the postProcess hook", config5);
|
|
3441
3441
|
}
|
|
3442
3442
|
return () => {
|
|
3443
3443
|
writeSuccess(`Completed running the ${name} generator!
|
|
3444
|
-
`,
|
|
3444
|
+
`, config5);
|
|
3445
3445
|
};
|
|
3446
3446
|
} catch (error) {
|
|
3447
3447
|
return () => {
|
|
3448
3448
|
writeFatal(
|
|
3449
3449
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
3450
|
-
|
|
3450
|
+
config5
|
|
3451
3451
|
);
|
|
3452
3452
|
writeError(
|
|
3453
3453
|
`An exception was thrown in the generator's process
|
|
3454
3454
|
- Details: ${error.message}
|
|
3455
3455
|
- Stacktrace: ${error.stack}`,
|
|
3456
|
-
|
|
3456
|
+
config5
|
|
3457
3457
|
);
|
|
3458
3458
|
};
|
|
3459
3459
|
} finally {
|
|
@@ -3462,7 +3462,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3462
3462
|
};
|
|
3463
3463
|
|
|
3464
3464
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3465
|
-
|
|
3465
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3466
3466
|
|
|
3467
3467
|
|
|
3468
3468
|
|
|
@@ -3484,14 +3484,14 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3484
3484
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3485
3485
|
|
|
3486
3486
|
// ../workspace-tools/src/utils/versions.ts
|
|
3487
|
-
|
|
3487
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3488
3488
|
var typesNodeVersion = "20.9.0";
|
|
3489
3489
|
var nxVersion = "^18.0.4";
|
|
3490
3490
|
var nodeVersion = "20.11.0";
|
|
3491
3491
|
var pnpmVersion = "8.10.2";
|
|
3492
3492
|
|
|
3493
3493
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3494
|
-
async function typeScriptLibraryGeneratorFn(tree, options,
|
|
3494
|
+
async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
3495
3495
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
3496
3496
|
const tasks = [];
|
|
3497
3497
|
tasks.push(
|
|
@@ -3517,16 +3517,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3517
3517
|
const projectConfig = {
|
|
3518
3518
|
root: normalized.directory,
|
|
3519
3519
|
projectType: "library",
|
|
3520
|
-
sourceRoot:
|
|
3520
|
+
sourceRoot: _chunkGZV7AWC7js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3521
3521
|
targets: {
|
|
3522
3522
|
build: {
|
|
3523
3523
|
executor: options.buildExecutor,
|
|
3524
3524
|
outputs: ["{options.outputPath}"],
|
|
3525
3525
|
options: {
|
|
3526
|
-
entry: [
|
|
3526
|
+
entry: [_chunkGZV7AWC7js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3527
3527
|
outputPath: getOutputPath(normalized),
|
|
3528
|
-
tsconfig:
|
|
3529
|
-
project:
|
|
3528
|
+
tsconfig: _chunkGZV7AWC7js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3529
|
+
project: _chunkGZV7AWC7js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3530
3530
|
defaultConfiguration: "production",
|
|
3531
3531
|
platform: "neutral",
|
|
3532
3532
|
assets: [
|
|
@@ -3568,7 +3568,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3568
3568
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3569
3569
|
let repository = {
|
|
3570
3570
|
type: "github",
|
|
3571
|
-
url: _optionalChain([
|
|
3571
|
+
url: _optionalChain([config5, 'optionalAccess', _170 => _170.repository]) || `https://github.com/${(typeof _optionalChain([config5, 'optionalAccess', _171 => _171.organization]) === "string" ? _optionalChain([config5, 'optionalAccess', _172 => _172.organization]) : _optionalChain([config5, 'optionalAccess', _173 => _173.organization, 'optionalAccess', _174 => _174.name])) || "storm-software"}/${_optionalChain([config5, 'optionalAccess', _175 => _175.namespace]) || _optionalChain([config5, 'optionalAccess', _176 => _176.name]) || "repository"}.git`
|
|
3572
3572
|
};
|
|
3573
3573
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3574
3574
|
if (tree.exists("package.json")) {
|
|
@@ -3583,7 +3583,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3583
3583
|
if (!normalized.importPath) {
|
|
3584
3584
|
normalized.importPath = normalized.name;
|
|
3585
3585
|
}
|
|
3586
|
-
const packageJsonPath =
|
|
3586
|
+
const packageJsonPath = _chunkGZV7AWC7js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3587
3587
|
if (tree.exists(packageJsonPath)) {
|
|
3588
3588
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3589
3589
|
if (!normalized.importPath) {
|
|
@@ -3640,14 +3640,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3640
3640
|
}));
|
|
3641
3641
|
}
|
|
3642
3642
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3643
|
-
|
|
3643
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
3644
3644
|
normalized.projectRoot,
|
|
3645
3645
|
"./src",
|
|
3646
3646
|
`index.${normalized.js ? "js" : "ts"}`
|
|
3647
3647
|
)
|
|
3648
3648
|
]);
|
|
3649
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3650
|
-
|
|
3649
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkGZV7AWC7js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3650
|
+
_chunkGZV7AWC7js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3651
3651
|
]);
|
|
3652
3652
|
if (tree.exists("package.json")) {
|
|
3653
3653
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -3658,7 +3658,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3658
3658
|
description = packageJson.description;
|
|
3659
3659
|
}
|
|
3660
3660
|
}
|
|
3661
|
-
const tsconfigPath =
|
|
3661
|
+
const tsconfigPath = _chunkGZV7AWC7js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3662
3662
|
if (tree.exists(tsconfigPath)) {
|
|
3663
3663
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3664
3664
|
json.composite ??= true;
|
|
@@ -3686,7 +3686,7 @@ function getOutputPath(options) {
|
|
|
3686
3686
|
} else {
|
|
3687
3687
|
parts.push(options.projectRoot);
|
|
3688
3688
|
}
|
|
3689
|
-
return
|
|
3689
|
+
return _chunkGZV7AWC7js.joinPaths.call(void 0, ...parts);
|
|
3690
3690
|
}
|
|
3691
3691
|
function createProjectTsConfigJson(tree, options) {
|
|
3692
3692
|
const tsconfig = {
|
|
@@ -3694,7 +3694,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3694
3694
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions]), () => ( {})),
|
|
3695
3695
|
compilerOptions: {
|
|
3696
3696
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3697
|
-
outDir:
|
|
3697
|
+
outDir: _chunkGZV7AWC7js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3698
3698
|
noEmit: true,
|
|
3699
3699
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.compilerOptions]), () => ( {}))
|
|
3700
3700
|
},
|
|
@@ -3712,12 +3712,12 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3712
3712
|
"src/**/*.test.ts"
|
|
3713
3713
|
]
|
|
3714
3714
|
};
|
|
3715
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3715
|
+
_devkit.writeJson.call(void 0, tree, _chunkGZV7AWC7js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3716
3716
|
}
|
|
3717
|
-
async function normalizeOptions(tree, options,
|
|
3717
|
+
async function normalizeOptions(tree, options, config5) {
|
|
3718
3718
|
let importPath = options.importPath;
|
|
3719
|
-
if (!importPath && _optionalChain([
|
|
3720
|
-
importPath = `@${_optionalChain([
|
|
3719
|
+
if (!importPath && _optionalChain([config5, 'optionalAccess', _193 => _193.namespace])) {
|
|
3720
|
+
importPath = `@${_optionalChain([config5, 'optionalAccess', _194 => _194.namespace])}/${options.name}`;
|
|
3721
3721
|
}
|
|
3722
3722
|
if (options.publishable) {
|
|
3723
3723
|
if (!importPath) {
|
|
@@ -3776,8 +3776,8 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
|
|
3778
3778
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3779
|
-
async function browserLibraryGeneratorFn(tree, schema,
|
|
3780
|
-
const filesDir =
|
|
3779
|
+
async function browserLibraryGeneratorFn(tree, schema, config5) {
|
|
3780
|
+
const filesDir = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
3781
3781
|
__dirname,
|
|
3782
3782
|
"src",
|
|
3783
3783
|
"generators",
|
|
@@ -3838,7 +3838,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
3840
3840
|
});
|
|
3841
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
3841
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
|
|
3842
3842
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3843
3843
|
return null;
|
|
3844
3844
|
}
|
|
@@ -3857,17 +3857,17 @@ var generator_default = withRunGenerator(
|
|
|
3857
3857
|
);
|
|
3858
3858
|
|
|
3859
3859
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3860
|
-
|
|
3860
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3861
3861
|
|
|
3862
3862
|
var _zod = require('zod'); var z2 = _interopRequireWildcard(_zod);
|
|
3863
|
-
async function configSchemaGeneratorFn(tree, options,
|
|
3863
|
+
async function configSchemaGeneratorFn(tree, options, config5) {
|
|
3864
3864
|
writeInfo(
|
|
3865
3865
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
3866
|
-
|
|
3866
|
+
config5
|
|
3867
3867
|
);
|
|
3868
3868
|
writeTrace(
|
|
3869
3869
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
3870
|
-
|
|
3870
|
+
config5
|
|
3871
3871
|
);
|
|
3872
3872
|
const jsonSchema = z2.toJSONSchema(workspaceConfigSchema, {
|
|
3873
3873
|
target: "draft-7",
|
|
@@ -3876,25 +3876,25 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3876
3876
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
3877
3877
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
3878
3878
|
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.";
|
|
3879
|
-
writeTrace(jsonSchema,
|
|
3879
|
+
writeTrace(jsonSchema, config5);
|
|
3880
3880
|
if (!options.outputFile) {
|
|
3881
3881
|
throw new Error(
|
|
3882
3882
|
"The `outputFile` option is required. Please specify the output file path."
|
|
3883
3883
|
);
|
|
3884
3884
|
}
|
|
3885
3885
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3886
|
-
_nullishCoalesce(_optionalChain([
|
|
3886
|
+
_nullishCoalesce(_optionalChain([config5, 'optionalAccess', _195 => _195.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3887
3887
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
3888
3888
|
);
|
|
3889
3889
|
writeTrace(
|
|
3890
3890
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
3891
|
-
|
|
3891
|
+
config5
|
|
3892
3892
|
);
|
|
3893
3893
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
3894
3894
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3895
3895
|
writeSuccess(
|
|
3896
3896
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
3897
|
-
|
|
3897
|
+
config5
|
|
3898
3898
|
);
|
|
3899
3899
|
return {
|
|
3900
3900
|
success: true
|
|
@@ -3914,7 +3914,7 @@ var generator_default2 = withRunGenerator(
|
|
|
3914
3914
|
);
|
|
3915
3915
|
|
|
3916
3916
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3917
|
-
|
|
3917
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3918
3918
|
|
|
3919
3919
|
|
|
3920
3920
|
|
|
@@ -3942,15 +3942,15 @@ async function initGenerator(tree, schema) {
|
|
|
3942
3942
|
}
|
|
3943
3943
|
|
|
3944
3944
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3945
|
-
|
|
3945
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
3946
3946
|
|
|
3947
3947
|
|
|
3948
3948
|
|
|
3949
3949
|
|
|
3950
3950
|
|
|
3951
3951
|
|
|
3952
|
-
async function neutralLibraryGeneratorFn(tree, schema,
|
|
3953
|
-
const filesDir =
|
|
3952
|
+
async function neutralLibraryGeneratorFn(tree, schema, config5) {
|
|
3953
|
+
const filesDir = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
3954
3954
|
__dirname,
|
|
3955
3955
|
"src",
|
|
3956
3956
|
"generators",
|
|
@@ -3983,7 +3983,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
3983
3983
|
buildable: options.bundler && options.bundler !== "none",
|
|
3984
3984
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
3985
3985
|
});
|
|
3986
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
3986
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
|
|
3987
3987
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3988
3988
|
return null;
|
|
3989
3989
|
}
|
|
@@ -4002,15 +4002,15 @@ var generator_default3 = withRunGenerator(
|
|
|
4002
4002
|
);
|
|
4003
4003
|
|
|
4004
4004
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
4005
|
-
|
|
4005
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4006
4006
|
|
|
4007
4007
|
|
|
4008
4008
|
|
|
4009
4009
|
|
|
4010
4010
|
|
|
4011
4011
|
|
|
4012
|
-
async function nodeLibraryGeneratorFn(tree, schema,
|
|
4013
|
-
const filesDir =
|
|
4012
|
+
async function nodeLibraryGeneratorFn(tree, schema, config5) {
|
|
4013
|
+
const filesDir = _chunkGZV7AWC7js.joinPaths.call(void 0,
|
|
4014
4014
|
__dirname,
|
|
4015
4015
|
"src",
|
|
4016
4016
|
"generators",
|
|
@@ -4045,7 +4045,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
4045
4045
|
buildable: options.bundler && options.bundler !== "none",
|
|
4046
4046
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
4047
4047
|
});
|
|
4048
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
4048
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
|
|
4049
4049
|
await _devkit.formatFiles.call(void 0, tree);
|
|
4050
4050
|
return null;
|
|
4051
4051
|
}
|
|
@@ -4064,7 +4064,7 @@ var generator_default4 = withRunGenerator(
|
|
|
4064
4064
|
);
|
|
4065
4065
|
|
|
4066
4066
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4067
|
-
|
|
4067
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4068
4068
|
|
|
4069
4069
|
|
|
4070
4070
|
|
|
@@ -4303,7 +4303,7 @@ var generator_default5 = withRunGenerator(
|
|
|
4303
4303
|
);
|
|
4304
4304
|
|
|
4305
4305
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4306
|
-
|
|
4306
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4307
4307
|
|
|
4308
4308
|
|
|
4309
4309
|
|
|
@@ -4316,14 +4316,32 @@ var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-ve
|
|
|
4316
4316
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
4317
4317
|
|
|
4318
4318
|
// ../git-tools/dist/release/config.js
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
// ../git-tools/dist/chunk-
|
|
4322
|
-
|
|
4319
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4320
|
+
|
|
4321
|
+
// ../git-tools/dist/chunk-YCEUZFMU.js
|
|
4322
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4323
|
+
|
|
4324
|
+
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
4325
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4326
|
+
|
|
4327
|
+
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
4328
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4329
|
+
|
|
4330
|
+
// ../git-tools/dist/chunk-5XU2KBM6.js
|
|
4331
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4332
|
+
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
4333
|
+
skip: "press enter to skip",
|
|
4334
|
+
max: "must be %d chars at most",
|
|
4335
|
+
min: "must be %d chars at least",
|
|
4336
|
+
emptyWarning: "can not be empty",
|
|
4337
|
+
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
4338
|
+
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
4339
|
+
closedIssueMessage: "Closes: "
|
|
4340
|
+
};
|
|
4323
4341
|
|
|
4324
|
-
// ../git-tools/dist/chunk-
|
|
4325
|
-
|
|
4326
|
-
var
|
|
4342
|
+
// ../git-tools/dist/chunk-3GGWHKRP.js
|
|
4343
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4344
|
+
var DEFAULT_COMMIT_TYPES = {
|
|
4327
4345
|
/* --- Bumps version when selected --- */
|
|
4328
4346
|
"chore": {
|
|
4329
4347
|
"description": "Other changes that don't modify src or test files",
|
|
@@ -4452,15 +4470,148 @@ var COMMIT_TYPES = {
|
|
|
4452
4470
|
}
|
|
4453
4471
|
}
|
|
4454
4472
|
};
|
|
4473
|
+
var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
|
|
4474
|
+
Object.entries(DEFAULT_COMMIT_TYPES).reduce(
|
|
4475
|
+
(ret, [key, commitType]) => {
|
|
4476
|
+
ret[key] = {
|
|
4477
|
+
...commitType.changelog,
|
|
4478
|
+
type: key,
|
|
4479
|
+
section: _optionalChain([commitType, 'access', _196 => _196.changelog, 'optionalAccess', _197 => _197.title]) || commitType.title,
|
|
4480
|
+
hidden: _optionalChain([commitType, 'access', _198 => _198.changelog, 'optionalAccess', _199 => _199.hidden])
|
|
4481
|
+
};
|
|
4482
|
+
return ret;
|
|
4483
|
+
},
|
|
4484
|
+
{}
|
|
4485
|
+
)
|
|
4486
|
+
);
|
|
4487
|
+
var CHANGELOG_COMMIT_TYPES = [
|
|
4488
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.feat,
|
|
4489
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.fix,
|
|
4490
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.chore,
|
|
4491
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.deps,
|
|
4492
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.docs,
|
|
4493
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.style,
|
|
4494
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
|
|
4495
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.perf,
|
|
4496
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.build,
|
|
4497
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.ci,
|
|
4498
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.test
|
|
4499
|
+
];
|
|
4500
|
+
var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
4501
|
+
(entry) => entry.type
|
|
4502
|
+
);
|
|
4503
|
+
var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
4504
|
+
(entry) => entry.section
|
|
4505
|
+
);
|
|
4506
|
+
var changelogs = {
|
|
4507
|
+
props: {
|
|
4508
|
+
ignoreCommits: void 0,
|
|
4509
|
+
types: CHANGELOG_COMMIT_TYPES,
|
|
4510
|
+
bumpStrict: true,
|
|
4511
|
+
scope: void 0,
|
|
4512
|
+
scopeOnly: false
|
|
4513
|
+
}
|
|
4514
|
+
};
|
|
4515
|
+
var commitlint = {
|
|
4516
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
|
|
4517
|
+
rules: {
|
|
4518
|
+
"body-leading-blank": [1, "always"],
|
|
4519
|
+
"body-max-length": [2, "always", 600],
|
|
4520
|
+
"footer-leading-blank": [1, "always"],
|
|
4521
|
+
"footer-max-line-length": [2, "always", 150],
|
|
4522
|
+
"header-max-length": [2, "always", 150],
|
|
4523
|
+
"header-trim": [2, "always"],
|
|
4524
|
+
"subject-case": [2, "always", ["sentence-case"]],
|
|
4525
|
+
"subject-empty": [2, "never"],
|
|
4526
|
+
"subject-full-stop": [2, "never", "."],
|
|
4527
|
+
"subject-max-length": [2, "always", 150],
|
|
4528
|
+
"subject-min-length": [2, "always", 3],
|
|
4529
|
+
"type-case": [2, "always", "kebab-case"],
|
|
4530
|
+
"type-empty": [2, "never"],
|
|
4531
|
+
"type-enum": [
|
|
4532
|
+
2,
|
|
4533
|
+
"always",
|
|
4534
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
4535
|
+
],
|
|
4536
|
+
"type-max-length": [2, "always", 20],
|
|
4537
|
+
"type-min-length": [2, "always", 3],
|
|
4538
|
+
"scope-empty": [2, "always"]
|
|
4539
|
+
},
|
|
4540
|
+
settings: {
|
|
4541
|
+
enableMultipleScopes: false,
|
|
4542
|
+
disableEmoji: true,
|
|
4543
|
+
breakingChangePrefix: "\u{1F4A3} ",
|
|
4544
|
+
closedIssuePrefix: "\u2705 ",
|
|
4545
|
+
format: "{type}: {emoji}{subject}"
|
|
4546
|
+
}
|
|
4547
|
+
};
|
|
4548
|
+
var config = {
|
|
4549
|
+
types: DEFAULT_COMMIT_TYPES,
|
|
4550
|
+
changelogs,
|
|
4551
|
+
commitlint
|
|
4552
|
+
};
|
|
4553
|
+
var minimal_default = config;
|
|
4554
|
+
var changelogs2 = {
|
|
4555
|
+
props: {
|
|
4556
|
+
ignoreCommits: void 0,
|
|
4557
|
+
types: CHANGELOG_COMMIT_TYPES,
|
|
4558
|
+
bumpStrict: true,
|
|
4559
|
+
scope: ["monorepo"],
|
|
4560
|
+
scopeOnly: true
|
|
4561
|
+
}
|
|
4562
|
+
};
|
|
4563
|
+
var commitlint2 = {
|
|
4564
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
|
|
4565
|
+
rules: {
|
|
4566
|
+
"body-leading-blank": [1, "always"],
|
|
4567
|
+
"body-max-length": [2, "always", 600],
|
|
4568
|
+
"footer-leading-blank": [1, "always"],
|
|
4569
|
+
"footer-max-line-length": [2, "always", 150],
|
|
4570
|
+
"header-max-length": [2, "always", 150],
|
|
4571
|
+
"header-trim": [2, "always"],
|
|
4572
|
+
"subject-case": [2, "always", ["sentence-case"]],
|
|
4573
|
+
"subject-empty": [2, "never"],
|
|
4574
|
+
"subject-full-stop": [2, "never", "."],
|
|
4575
|
+
"subject-max-length": [2, "always", 150],
|
|
4576
|
+
"subject-min-length": [2, "always", 3],
|
|
4577
|
+
"type-case": [2, "always", "kebab-case"],
|
|
4578
|
+
"type-empty": [2, "never"],
|
|
4579
|
+
"type-enum": [
|
|
4580
|
+
2,
|
|
4581
|
+
"always",
|
|
4582
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
4583
|
+
],
|
|
4584
|
+
"type-max-length": [2, "always", 20],
|
|
4585
|
+
"type-min-length": [2, "always", 3],
|
|
4586
|
+
"scope-case": [2, "always", ["kebab-case"]],
|
|
4587
|
+
"scope-empty": [2, "never"]
|
|
4588
|
+
},
|
|
4589
|
+
settings: {
|
|
4590
|
+
enableMultipleScopes: false,
|
|
4591
|
+
disableEmoji: true,
|
|
4592
|
+
breakingChangePrefix: "\u{1F4A3} ",
|
|
4593
|
+
closedIssuePrefix: "\u2705 ",
|
|
4594
|
+
format: "{type}({scope}): {emoji}{subject}"
|
|
4595
|
+
}
|
|
4596
|
+
};
|
|
4597
|
+
var config2 = {
|
|
4598
|
+
types: DEFAULT_COMMIT_TYPES,
|
|
4599
|
+
changelogs: changelogs2,
|
|
4600
|
+
commitlint: commitlint2
|
|
4601
|
+
};
|
|
4602
|
+
var monorepo_default = config2;
|
|
4603
|
+
var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
|
|
4604
|
+
|
|
4605
|
+
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
4455
4606
|
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
4456
4607
|
type: {
|
|
4457
4608
|
type: "select",
|
|
4458
4609
|
title: "Commit Type",
|
|
4459
4610
|
description: "Select the commit type that best describes your changes",
|
|
4460
|
-
enum: Object.keys(
|
|
4461
|
-
(type) =>
|
|
4611
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
4612
|
+
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
4462
4613
|
).reduce((ret, type) => {
|
|
4463
|
-
ret[type] =
|
|
4614
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
4464
4615
|
return ret;
|
|
4465
4616
|
}, {}),
|
|
4466
4617
|
defaultValue: "chore",
|
|
@@ -4509,6 +4660,14 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
|
4509
4660
|
minLength: 3
|
|
4510
4661
|
}
|
|
4511
4662
|
};
|
|
4663
|
+
var config3 = {
|
|
4664
|
+
settings: COMMIT_CONFIGS.minimal.commitlint.settings,
|
|
4665
|
+
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
4666
|
+
questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
|
|
4667
|
+
types: DEFAULT_COMMIT_TYPES
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
4512
4671
|
var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
4513
4672
|
type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
|
|
4514
4673
|
scope: {
|
|
@@ -4527,55 +4686,11 @@ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
|
4527
4686
|
isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
|
|
4528
4687
|
issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
|
|
4529
4688
|
};
|
|
4530
|
-
var
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
"header-max-length": [2, "always", 150],
|
|
4536
|
-
"header-trim": [2, "always"],
|
|
4537
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
4538
|
-
"subject-empty": [2, "never"],
|
|
4539
|
-
"subject-full-stop": [2, "never", "."],
|
|
4540
|
-
"subject-max-length": [2, "always", 150],
|
|
4541
|
-
"subject-min-length": [2, "always", 3],
|
|
4542
|
-
"type-case": [2, "always", "kebab-case"],
|
|
4543
|
-
"type-empty": [2, "never"],
|
|
4544
|
-
"type-enum": [
|
|
4545
|
-
2,
|
|
4546
|
-
"always",
|
|
4547
|
-
Object.keys(COMMIT_TYPES)
|
|
4548
|
-
],
|
|
4549
|
-
"type-max-length": [2, "always", 20],
|
|
4550
|
-
"type-min-length": [2, "always", 3],
|
|
4551
|
-
"scope-empty": 0,
|
|
4552
|
-
"scope-case": 0,
|
|
4553
|
-
"scope-enum": 0
|
|
4554
|
-
/* Disabled */
|
|
4555
|
-
};
|
|
4556
|
-
var DEFAULT_MONOREPO_COMMIT_RULES = {
|
|
4557
|
-
"body-leading-blank": [1, "always"],
|
|
4558
|
-
"body-max-length": [2, "always", 600],
|
|
4559
|
-
"footer-leading-blank": [1, "always"],
|
|
4560
|
-
"footer-max-line-length": [2, "always", 150],
|
|
4561
|
-
"header-max-length": [2, "always", 150],
|
|
4562
|
-
"header-trim": [2, "always"],
|
|
4563
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
4564
|
-
"subject-empty": [2, "never"],
|
|
4565
|
-
"subject-full-stop": [2, "never", "."],
|
|
4566
|
-
"subject-max-length": [2, "always", 150],
|
|
4567
|
-
"subject-min-length": [2, "always", 3],
|
|
4568
|
-
"type-case": [2, "always", "kebab-case"],
|
|
4569
|
-
"type-empty": [2, "never"],
|
|
4570
|
-
"type-enum": [
|
|
4571
|
-
2,
|
|
4572
|
-
"always",
|
|
4573
|
-
Object.keys(COMMIT_TYPES)
|
|
4574
|
-
],
|
|
4575
|
-
"type-max-length": [2, "always", 20],
|
|
4576
|
-
"type-min-length": [2, "always", 3],
|
|
4577
|
-
"scope-case": [2, "always", ["kebab-case"]],
|
|
4578
|
-
"scope-empty": [2, "never"]
|
|
4689
|
+
var config4 = {
|
|
4690
|
+
settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
|
|
4691
|
+
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
4692
|
+
questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
4693
|
+
types: DEFAULT_COMMIT_TYPES
|
|
4579
4694
|
};
|
|
4580
4695
|
|
|
4581
4696
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
@@ -4599,10 +4714,10 @@ var _utils = require('nx/src/tasks-runner/utils');
|
|
|
4599
4714
|
|
|
4600
4715
|
|
|
4601
4716
|
// ../workspace-tools/src/base/index.ts
|
|
4602
|
-
|
|
4717
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4603
4718
|
|
|
4604
4719
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4605
|
-
|
|
4720
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4606
4721
|
var _untyped = require('untyped');
|
|
4607
4722
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4608
4723
|
$schema: {
|
|
@@ -4622,7 +4737,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4622
4737
|
});
|
|
4623
4738
|
|
|
4624
4739
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4625
|
-
|
|
4740
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4626
4741
|
|
|
4627
4742
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4628
4743
|
$schema: {
|
|
@@ -4640,7 +4755,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4640
4755
|
});
|
|
4641
4756
|
|
|
4642
4757
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4643
|
-
|
|
4758
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4644
4759
|
|
|
4645
4760
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4646
4761
|
...base_executor_untyped_default,
|
|
@@ -4713,7 +4828,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4713
4828
|
});
|
|
4714
4829
|
|
|
4715
4830
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4716
|
-
|
|
4831
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4717
4832
|
|
|
4718
4833
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4719
4834
|
...base_executor_untyped_default,
|
|
@@ -4865,7 +4980,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4865
4980
|
});
|
|
4866
4981
|
|
|
4867
4982
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4868
|
-
|
|
4983
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4869
4984
|
|
|
4870
4985
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4871
4986
|
...base_generator_untyped_default,
|
|
@@ -4971,24 +5086,24 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4971
5086
|
});
|
|
4972
5087
|
|
|
4973
5088
|
// ../workspace-tools/src/types.ts
|
|
4974
|
-
|
|
5089
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4975
5090
|
|
|
4976
5091
|
// ../workspace-tools/src/utils/index.ts
|
|
4977
|
-
|
|
5092
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4978
5093
|
|
|
4979
5094
|
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4980
|
-
|
|
5095
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4981
5096
|
|
|
4982
5097
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4983
|
-
|
|
5098
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4984
5099
|
|
|
4985
5100
|
|
|
4986
5101
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4987
|
-
|
|
5102
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4988
5103
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4989
5104
|
|
|
4990
5105
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4991
|
-
|
|
5106
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
4992
5107
|
|
|
4993
5108
|
|
|
4994
5109
|
|
|
@@ -5016,10 +5131,10 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
5016
5131
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5017
5132
|
|
|
5018
5133
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5019
|
-
|
|
5134
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
5020
5135
|
|
|
5021
5136
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5022
|
-
|
|
5137
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
5023
5138
|
|
|
5024
5139
|
|
|
5025
5140
|
|
|
@@ -5028,11 +5143,11 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
5028
5143
|
|
|
5029
5144
|
|
|
5030
5145
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5031
|
-
|
|
5146
|
+
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
5032
5147
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
5033
5148
|
|
|
5034
5149
|
// src/generators/init/generator.ts
|
|
5035
|
-
async function initGeneratorFn(tree, options,
|
|
5150
|
+
async function initGeneratorFn(tree, options, config5) {
|
|
5036
5151
|
const task = initGenerator(tree, options);
|
|
5037
5152
|
await _devkit.runTasksInSerial.call(void 0, addProjenDeps(tree, options))();
|
|
5038
5153
|
if (!options.skipFormat) {
|