@storm-software/build-tools 0.144.19 → 0.144.21

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.
Files changed (73) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-6KESXKM3.mjs → chunk-2IACGL5A.mjs} +69 -34
  3. package/dist/{chunk-XLAPHZPX.mjs → chunk-3VZVP5XV.mjs} +0 -5
  4. package/dist/{chunk-MY55IIR6.js → chunk-673CAI2G.js} +5 -14
  5. package/dist/{chunk-M5AC3COW.mjs → chunk-7NL4YIH3.mjs} +4 -13
  6. package/dist/{chunk-LCPSDCDB.mjs → chunk-7YKXR5JJ.mjs} +1 -8
  7. package/dist/{chunk-F7WSCB6H.js → chunk-A75DEKU5.js} +1 -6
  8. package/dist/{chunk-H2MR24BL.mjs → chunk-BKMDH7XQ.mjs} +10 -16
  9. package/dist/chunk-D7ZBIHS7.mjs +76 -0
  10. package/dist/{chunk-STJ5NLSZ.mjs → chunk-DLSOQQ2X.mjs} +24 -11
  11. package/dist/{chunk-LWYVLXCJ.js → chunk-ECGZDTG2.js} +72 -37
  12. package/dist/{chunk-NSNKG4UV.js → chunk-EGKFW7BM.js} +168 -114
  13. package/dist/{chunk-T2R2KKTW.mjs → chunk-HGTDDXA5.mjs} +2 -5
  14. package/dist/{chunk-2TV7ZJSK.js → chunk-HQD5ZBIU.js} +2 -9
  15. package/dist/{chunk-A6F6NNS6.mjs → chunk-JJQN3HTQ.mjs} +183 -119
  16. package/dist/{chunk-CNURHK3D.mjs → chunk-KUEYIH7W.mjs} +2 -6
  17. package/dist/{chunk-Y3HRAWPU.js → chunk-N7HP2YYE.js} +9 -8
  18. package/dist/chunk-ODQKLK6L.mjs +69 -0
  19. package/dist/{chunk-CNKJQMCL.js → chunk-TABRPMJB.js} +28 -15
  20. package/dist/{chunk-JP4YIUPA.js → chunk-TQIOTV5X.js} +25 -21
  21. package/dist/{chunk-4Y7DUAMQ.js → chunk-TSUTFOQG.js} +17 -23
  22. package/dist/{chunk-PBTSVWXL.js → chunk-UHJ5ACWH.js} +3 -7
  23. package/dist/chunk-UNY7ZVZF.js +76 -0
  24. package/dist/{chunk-VQUREEMI.mjs → chunk-VGLIZ2H3.mjs} +8 -7
  25. package/dist/{chunk-QKEUU3L3.mjs → chunk-VWJLKDCB.mjs} +141 -87
  26. package/dist/{chunk-5HOBE4TZ.js → chunk-WLW3DA6X.js} +2 -5
  27. package/dist/{chunk-VSAQXEXD.js → chunk-WNMPQTPH.js} +39 -31
  28. package/dist/{chunk-QCTHJR6E.js → chunk-XXESPGZP.js} +184 -120
  29. package/dist/{chunk-67VZRCF5.mjs → chunk-YZ6ZTM5M.mjs} +27 -23
  30. package/dist/config.js +0 -1
  31. package/dist/config.mjs +0 -1
  32. package/dist/index.js +16 -17
  33. package/dist/index.mjs +15 -16
  34. package/dist/plugins/analyze.js +3 -4
  35. package/dist/plugins/analyze.mjs +2 -3
  36. package/dist/plugins/index.js +6 -7
  37. package/dist/plugins/index.mjs +5 -6
  38. package/dist/plugins/swc.js +2 -3
  39. package/dist/plugins/swc.mjs +1 -2
  40. package/dist/plugins/ts-resolve.js +3 -4
  41. package/dist/plugins/ts-resolve.mjs +2 -3
  42. package/dist/plugins/type-definitions.js +2 -3
  43. package/dist/plugins/type-definitions.mjs +1 -2
  44. package/dist/types.js +1 -1
  45. package/dist/types.mjs +1 -1
  46. package/dist/utilities/copy-assets.js +3 -4
  47. package/dist/utilities/copy-assets.mjs +2 -3
  48. package/dist/utilities/generate-package-json.js +3 -4
  49. package/dist/utilities/generate-package-json.mjs +2 -3
  50. package/dist/utilities/get-entry-points.js +3 -4
  51. package/dist/utilities/get-entry-points.mjs +2 -3
  52. package/dist/utilities/get-env.js +2 -3
  53. package/dist/utilities/get-env.mjs +1 -2
  54. package/dist/utilities/get-file-banner.js +2 -3
  55. package/dist/utilities/get-file-banner.mjs +1 -2
  56. package/dist/utilities/get-out-extension.js +2 -3
  57. package/dist/utilities/get-out-extension.mjs +1 -2
  58. package/dist/utilities/get-project-deps.js +2 -3
  59. package/dist/utilities/get-project-deps.mjs +1 -2
  60. package/dist/utilities/index.js +11 -12
  61. package/dist/utilities/index.mjs +10 -11
  62. package/dist/utilities/read-nx-config.js +3 -4
  63. package/dist/utilities/read-nx-config.mjs +2 -3
  64. package/dist/utilities/task-graph.js +2 -3
  65. package/dist/utilities/task-graph.mjs +1 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-O6YSETKJ.mjs +0 -6
  68. package/dist/chunk-S5V4ROWC.js +0 -67
  69. package/dist/chunk-S7LT43EW.mjs +0 -67
  70. package/dist/chunk-SHUYVCID.js +0 -6
  71. package/dist/chunk-ZW5JWBA4.mjs +0 -61
  72. /package/dist/{chunk-GGNOJ77I.js → chunk-6F4PWJZI.js} +0 -0
  73. /package/dist/{chunk-WAXGOBY2.mjs → chunk-WBQAMGXK.mjs} +0 -0
@@ -1,8 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
-
3
- var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
4
-
5
- // ../config-tools/src/utilities/correct-paths.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }// ../config-tools/src/utilities/correct-paths.ts
6
2
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
7
3
  function normalizeWindowsPath(input = "") {
8
4
  if (!input) {
@@ -10,11 +6,10 @@ function normalizeWindowsPath(input = "") {
10
6
  }
11
7
  return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
12
8
  }
13
- _chunkSHUYVCIDjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
14
9
  var _UNC_REGEX = /^[/\\]{2}/;
15
10
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
16
11
  var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
17
- var correctPaths = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, function(path) {
12
+ var correctPaths = function(path) {
18
13
  if (!path || path.length === 0) {
19
14
  return ".";
20
15
  }
@@ -42,8 +37,8 @@ var correctPaths = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, function
42
37
  return `//${path}`;
43
38
  }
44
39
  return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
45
- }, "correctPaths");
46
- var joinPaths = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, function(...segments) {
40
+ };
41
+ var joinPaths = function(...segments) {
47
42
  let path = "";
48
43
  for (const seg of segments) {
49
44
  if (!seg) {
@@ -63,7 +58,7 @@ var joinPaths = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, function(..
63
58
  }
64
59
  }
65
60
  return correctPaths(path);
66
- }, "joinPaths");
61
+ };
67
62
  function normalizeString(path, allowAboveRoot) {
68
63
  let res = "";
69
64
  let lastSegmentLength = 0;
@@ -124,10 +119,9 @@ function normalizeString(path, allowAboveRoot) {
124
119
  }
125
120
  return res;
126
121
  }
127
- _chunkSHUYVCIDjs.__name.call(void 0, normalizeString, "normalizeString");
128
- var isAbsolute = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, function(p) {
122
+ var isAbsolute = function(p) {
129
123
  return _IS_ABSOLUTE_RE.test(p);
130
- }, "isAbsolute");
124
+ };
131
125
 
132
126
  // ../config-tools/src/utilities/find-up.ts
133
127
  var _fs = require('fs');
@@ -136,10 +130,14 @@ var MAX_PATH_SEARCH_DEPTH = 30;
136
130
  var depth = 0;
137
131
  function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
138
132
  const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
139
- if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
133
+ if (endDirectoryNames.some(
134
+ (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
135
+ )) {
140
136
  return _startPath;
141
137
  }
142
- if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
138
+ if (endFileNames.some(
139
+ (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
140
+ )) {
143
141
  return _startPath;
144
142
  }
145
143
  if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
@@ -148,7 +146,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
148
146
  }
149
147
  return void 0;
150
148
  }
151
- _chunkSHUYVCIDjs.__name.call(void 0, findFolderUp, "findFolderUp");
152
149
 
153
150
  // ../config-tools/src/utilities/find-workspace-root.ts
154
151
  var rootFiles = [
@@ -195,21 +192,31 @@ var rootDirectories = [
195
192
  ];
196
193
  function findWorkspaceRootSafe(pathInsideMonorepo) {
197
194
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
198
- return correctPaths(_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
199
- }
200
- return correctPaths(findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
195
+ return correctPaths(
196
+ _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
197
+ );
198
+ }
199
+ return correctPaths(
200
+ findFolderUp(
201
+ _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
202
+ rootFiles,
203
+ rootDirectories
204
+ )
205
+ );
201
206
  }
202
- _chunkSHUYVCIDjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
203
207
  function findWorkspaceRoot(pathInsideMonorepo) {
204
208
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
205
209
  if (!result) {
206
- throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
207
- ${rootFiles.join("\n")}
208
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
210
+ throw new Error(
211
+ `Cannot find workspace root upwards from known path. Files search list includes:
212
+ ${rootFiles.join(
213
+ "\n"
214
+ )}
215
+ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
216
+ );
209
217
  }
210
218
  return result;
211
219
  }
212
- _chunkSHUYVCIDjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
213
220
 
214
221
  // ../config-tools/src/types.ts
215
222
  var LogLevel = {
@@ -333,23 +340,39 @@ var RegistryConfigSchema = _zod2.default.object({
333
340
  cyclone: RegistryUrlConfigSchema,
334
341
  container: RegistryUrlConfigSchema
335
342
  }).default({}).describe("A list of remote registry URLs used by Storm Software");
336
- var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
343
+ var ColorConfigSchema = SingleThemeColorConfigSchema.or(
344
+ MultiThemeColorConfigSchema
345
+ ).describe("Colors used for various workspace elements");
337
346
  var ColorConfigMapSchema = _zod2.default.union([
338
- _zod2.default.object({
339
- base: ColorConfigSchema
340
- }),
347
+ _zod2.default.object({ base: ColorConfigSchema }),
341
348
  _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
342
349
  ]);
343
- var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
344
- var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
350
+ var ExtendsItemSchema = _zod2.default.string().trim().describe(
351
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
352
+ );
353
+ var ExtendsSchema = ExtendsItemSchema.or(
354
+ _zod2.default.array(ExtendsItemSchema)
355
+ ).describe(
356
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
357
+ );
345
358
  var WorkspaceBotConfigSchema = _zod2.default.object({
346
- name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
359
+ name: _zod2.default.string().trim().default("stormie-bot").describe(
360
+ "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
361
+ ),
347
362
  email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
348
- }).describe("The workspace's bot user's config used to automated various operations tasks");
363
+ }).describe(
364
+ "The workspace's bot user's config used to automated various operations tasks"
365
+ );
349
366
  var WorkspaceReleaseConfigSchema = _zod2.default.object({
350
- banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
351
- header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
352
- footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
367
+ banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
368
+ "A URL to a banner image used to display the workspace's release"
369
+ ),
370
+ header: _zod2.default.string().trim().optional().describe(
371
+ "A header message appended to the start of the workspace's release notes"
372
+ ),
373
+ footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
374
+ "A footer message appended to the end of the workspace's release notes"
375
+ )
353
376
  }).describe("The workspace's release config used during the release process");
354
377
  var WorkspaceAccountConfigSchema = _zod2.default.object({
355
378
  twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
@@ -358,23 +381,41 @@ var WorkspaceAccountConfigSchema = _zod2.default.object({
358
381
  slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
359
382
  medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
360
383
  github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
361
- }).describe("The workspace's account config used to store various social media links");
384
+ }).describe(
385
+ "The workspace's account config used to store various social media links"
386
+ );
362
387
  var WorkspaceDirectoryConfigSchema = _zod2.default.object({
363
- cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
388
+ cache: _zod2.default.string().trim().optional().describe(
389
+ "The directory used to store the environment's cached file data"
390
+ ),
364
391
  data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
365
- config: _zod2.default.string().trim().optional().describe("The directory used to store the environment's configuration files"),
392
+ config: _zod2.default.string().trim().optional().describe(
393
+ "The directory used to store the environment's configuration files"
394
+ ),
366
395
  temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
367
396
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
368
- build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
369
- }).describe("Various directories used by the workspace to store data, cache, and configuration files");
397
+ build: _zod2.default.string().trim().default("dist").describe(
398
+ "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
399
+ )
400
+ }).describe(
401
+ "Various directories used by the workspace to store data, cache, and configuration files"
402
+ );
370
403
  var errorConfigSchema = _zod2.default.object({
371
404
  codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
372
- url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
405
+ url: _zod2.default.string().trim().url().optional().describe(
406
+ "A URL to a page that looks up the workspace's error messages given a specific error code"
407
+ )
373
408
  }).describe("The workspace's error config used during the error process");
374
409
  var stormWorkspaceConfigSchema = _zod2.default.object({
375
- $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
410
+ $schema: _zod2.default.string().trim().default(
411
+ "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
412
+ ).optional().nullish().describe(
413
+ "The URL to the JSON schema file that describes the Storm configuration file"
414
+ ),
376
415
  extends: ExtendsSchema.optional(),
377
- name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
416
+ name: _zod2.default.string().trim().toLowerCase().optional().describe(
417
+ "The name of the service/package/scope using this configuration"
418
+ ),
378
419
  namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
379
420
  organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
380
421
  repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
@@ -390,21 +431,16 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
390
431
  release: WorkspaceReleaseConfigSchema,
391
432
  account: WorkspaceAccountConfigSchema,
392
433
  error: errorConfigSchema,
393
- mode: _zod2.default.enum([
394
- "development",
395
- "staging",
396
- "production"
397
- ]).default("production").describe("The current runtime environment mode for the package"),
434
+ mode: _zod2.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
398
435
  workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
399
- externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
436
+ externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe(
437
+ "The build will use these package patterns to determine if they should be external to the bundle"
438
+ ),
400
439
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
401
440
  directories: WorkspaceDirectoryConfigSchema,
402
- packageManager: _zod2.default.enum([
403
- "npm",
404
- "yarn",
405
- "pnpm",
406
- "bun"
407
- ]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),
441
+ packageManager: _zod2.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
442
+ "The JavaScript/TypeScript package manager used by the repository"
443
+ ),
408
444
  timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
409
445
  locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
410
446
  logLevel: _zod2.default.enum([
@@ -417,13 +453,23 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
417
453
  "debug",
418
454
  "trace",
419
455
  "all"
420
- ]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
421
- skipConfigLogging: _zod2.default.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
456
+ ]).default("info").describe(
457
+ "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
458
+ ),
459
+ skipConfigLogging: _zod2.default.boolean().optional().describe(
460
+ "Should the logging of the current Storm Workspace configuration be skipped?"
461
+ ),
422
462
  registry: RegistryConfigSchema,
423
- configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
424
- colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
463
+ configFile: _zod2.default.string().trim().nullable().default(null).describe(
464
+ "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
465
+ ),
466
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
467
+ "Storm theme config values used for styling various package elements"
468
+ ),
425
469
  extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
426
- }).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");
470
+ }).describe(
471
+ "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
472
+ );
427
473
 
428
474
  // ../config/src/types.ts
429
475
  var COLOR_KEYS = [
@@ -476,7 +522,7 @@ var DEFAULT_COLOR_CONFIG = {
476
522
  negative: "#dc2626"
477
523
  }
478
524
  };
479
- var getDefaultConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (root) => {
525
+ var getDefaultConfig = async (root) => {
480
526
  let license = STORM_DEFAULT_LICENSE;
481
527
  let homepage = STORM_DEFAULT_HOMEPAGE;
482
528
  let name = void 0;
@@ -484,7 +530,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, asyn
484
530
  let repository = void 0;
485
531
  const workspaceRoot = findWorkspaceRoot(root);
486
532
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
487
- const file = await _promises.readFile.call(void 0, joinPaths(workspaceRoot, "package.json"), "utf8");
533
+ const file = await _promises.readFile.call(void 0,
534
+ joinPaths(workspaceRoot, "package.json"),
535
+ "utf8"
536
+ );
488
537
  if (file) {
489
538
  const packageJson = JSON.parse(file);
490
539
  if (packageJson.name) {
@@ -521,36 +570,36 @@ var getDefaultConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, asyn
521
570
  url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
522
571
  }
523
572
  };
524
- }, "getDefaultConfig");
573
+ };
525
574
 
526
575
  // ../config-tools/src/logger/chalk.ts
527
576
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
528
577
  var chalkDefault = {
529
- hex: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (_) => (message) => message, "hex"),
530
- bgHex: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (_) => ({
531
- whiteBright: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message) => message, "whiteBright")
532
- }), "bgHex"),
533
- whiteBright: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message) => message, "whiteBright"),
534
- gray: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message) => message, "gray"),
578
+ hex: (_) => (message) => message,
579
+ bgHex: (_) => ({
580
+ whiteBright: (message) => message
581
+ }),
582
+ whiteBright: (message) => message,
583
+ gray: (message) => message,
535
584
  bold: {
536
- hex: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (_) => (message) => message, "hex"),
537
- bgHex: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (_) => ({
538
- whiteBright: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message) => message, "whiteBright")
539
- }), "bgHex"),
540
- whiteBright: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message) => message, "whiteBright")
585
+ hex: (_) => (message) => message,
586
+ bgHex: (_) => ({
587
+ whiteBright: (message) => message
588
+ }),
589
+ whiteBright: (message) => message
541
590
  },
542
591
  dim: {
543
- hex: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (_) => (message) => message, "hex"),
544
- gray: /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message) => message, "gray")
592
+ hex: (_) => (message) => message,
593
+ gray: (message) => message
545
594
  }
546
595
  };
547
- var getChalk = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
596
+ var getChalk = () => {
548
597
  let _chalk = _chalk3.default;
549
598
  if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
550
599
  _chalk = chalkDefault;
551
600
  }
552
601
  return _chalk;
553
- }, "getChalk");
602
+ };
554
603
 
555
604
  // ../config-tools/src/logger/is-unicode-supported.ts
556
605
  function isUnicodeSupported() {
@@ -562,10 +611,9 @@ function isUnicodeSupported() {
562
611
  process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
563
612
  process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
564
613
  }
565
- _chunkSHUYVCIDjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
566
614
 
567
615
  // ../config-tools/src/logger/console-icons.ts
568
- var useIcon = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
616
+ var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
569
617
  var CONSOLE_ICONS = {
570
618
  [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
571
619
  [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
@@ -578,12 +626,12 @@ var CONSOLE_ICONS = {
578
626
  };
579
627
 
580
628
  // ../config-tools/src/logger/format-timestamp.ts
581
- var formatTimestamp = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
629
+ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
582
630
  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
583
- }, "formatTimestamp");
631
+ };
584
632
 
585
633
  // ../config-tools/src/logger/get-log-level.ts
586
- var getLogLevel = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (label) => {
634
+ var getLogLevel = (label) => {
587
635
  switch (label) {
588
636
  case "all":
589
637
  return LogLevel.ALL;
@@ -604,8 +652,8 @@ var getLogLevel = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (label) =
604
652
  default:
605
653
  return LogLevel.INFO;
606
654
  }
607
- }, "getLogLevel");
608
- var getLogLevelLabel = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
655
+ };
656
+ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
609
657
  if (logLevel >= LogLevel.ALL) {
610
658
  return LogLevelLabel.ALL;
611
659
  }
@@ -631,10 +679,10 @@ var getLogLevelLabel = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (log
631
679
  return LogLevelLabel.SILENT;
632
680
  }
633
681
  return LogLevelLabel.INFO;
634
- }, "getLogLevelLabel");
682
+ };
635
683
 
636
684
  // ../config-tools/src/logger/console.ts
637
- var getLogFn = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
685
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
638
686
  const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
639
687
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
640
688
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
@@ -643,87 +691,103 @@ var getLogFn = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (logLevel =
643
691
  }
644
692
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
645
693
  return (message) => {
646
- console.error(`
694
+ console.error(
695
+ `
647
696
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
648
- `);
697
+ `
698
+ );
649
699
  };
650
700
  }
651
701
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
652
702
  return (message) => {
653
- console.error(`
703
+ console.error(
704
+ `
654
705
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
655
- `);
706
+ `
707
+ );
656
708
  };
657
709
  }
658
710
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
659
711
  return (message) => {
660
- console.warn(`
712
+ console.warn(
713
+ `
661
714
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
662
- `);
715
+ `
716
+ );
663
717
  };
664
718
  }
665
719
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
666
720
  return (message) => {
667
- console.info(`
721
+ console.info(
722
+ `
668
723
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
669
- `);
724
+ `
725
+ );
670
726
  };
671
727
  }
672
728
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
673
729
  return (message) => {
674
- console.info(`
730
+ console.info(
731
+ `
675
732
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
676
- `);
733
+ `
734
+ );
677
735
  };
678
736
  }
679
737
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
680
738
  return (message) => {
681
- console.debug(`
739
+ console.debug(
740
+ `
682
741
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
683
- `);
742
+ `
743
+ );
684
744
  };
685
745
  }
686
746
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
687
747
  return (message) => {
688
- console.debug(`
748
+ console.debug(
749
+ `
689
750
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
690
- `);
751
+ `
752
+ );
691
753
  };
692
754
  }
693
755
  return (message) => {
694
- console.log(`
756
+ console.log(
757
+ `
695
758
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
696
- `);
759
+ `
760
+ );
697
761
  };
698
- }, "getLogFn");
699
- var writeWarning = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
700
- var writeInfo = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
701
- var writeDebug = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
702
- var writeTrace = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
762
+ };
763
+ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
764
+ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
765
+ var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
766
+ var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
703
767
  var MAX_DEPTH = 4;
704
- var formatLogMessage = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
768
+ var formatLogMessage = (message, options = {}, depth2 = 0) => {
705
769
  if (depth2 > MAX_DEPTH) {
706
770
  return "<max depth>";
707
771
  }
708
772
  const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
709
773
  const skip = _nullishCoalesce(options.skip, () => ( []));
710
774
  return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
711
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
712
- prefix: `${prefix}-`,
713
- skip
714
- }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
715
- ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
716
- prefix: `${prefix}-`,
717
- skip
718
- }, depth2 + 1) : message[key]}`).join("\n")}` : message;
719
- }, "formatLogMessage");
720
- var _isFunction = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (value) => {
775
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
776
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
777
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
778
+ message[key],
779
+ { prefix: `${prefix}-`, skip },
780
+ depth2 + 1
781
+ ) : message[key]}`
782
+ ).join("\n")}` : message;
783
+ };
784
+ var _isFunction = (value) => {
721
785
  try {
722
786
  return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
723
787
  } catch (e) {
724
788
  return false;
725
789
  }
726
- }, "_isFunction");
790
+ };
727
791
 
728
792
 
729
793
 
@@ -1,11 +1,12 @@
1
- import {
2
- __name
3
- } from "./chunk-O6YSETKJ.mjs";
4
-
5
1
  // src/utilities/task-graph.ts
6
- import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
2
+ import {
3
+ createTaskGraph,
4
+ mapTargetDefaultsToDependencies
5
+ } from "nx/src/tasks-runner/create-task-graph";
7
6
  function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
8
- const defaultDependencyConfigs = mapTargetDefaultsToDependencies(nxJson.targetDefaults);
7
+ const defaultDependencyConfigs = mapTargetDefaultsToDependencies(
8
+ nxJson.targetDefaults
9
+ );
9
10
  const taskGraphs = {};
10
11
  const taskGraphErrors = {};
11
12
  for (const projectName in projectGraph.nodes) {
@@ -14,11 +15,14 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
14
15
  for (const target of targets) {
15
16
  const taskId = createTaskId(projectName, target);
16
17
  try {
17
- taskGraphs[taskId] = createTaskGraph(projectGraph, defaultDependencyConfigs, [
18
- projectName
19
- ], [
20
- target
21
- ], void 0, {});
18
+ taskGraphs[taskId] = createTaskGraph(
19
+ projectGraph,
20
+ defaultDependencyConfigs,
21
+ [projectName],
22
+ [target],
23
+ void 0,
24
+ {}
25
+ );
22
26
  } catch (err) {
23
27
  taskGraphs[taskId] = {
24
28
  tasks: {},
@@ -27,16 +31,21 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
27
31
  };
28
32
  taskGraphErrors[taskId] = err.message;
29
33
  }
30
- const configurations = Object.keys(project?.data?.targets?.[target]?.configurations || {});
34
+ const configurations = Object.keys(
35
+ project?.data?.targets?.[target]?.configurations || {}
36
+ );
31
37
  if (configurations.length > 0) {
32
38
  for (const configuration of configurations) {
33
39
  const taskId2 = createTaskId(projectName, target, configuration);
34
40
  try {
35
- taskGraphs[taskId2] = createTaskGraph(projectGraph, defaultDependencyConfigs, [
36
- projectName
37
- ], [
38
- target
39
- ], configuration, {});
41
+ taskGraphs[taskId2] = createTaskGraph(
42
+ projectGraph,
43
+ defaultDependencyConfigs,
44
+ [projectName],
45
+ [target],
46
+ configuration,
47
+ {}
48
+ );
40
49
  } catch (err) {
41
50
  taskGraphs[taskId2] = {
42
51
  tasks: {},
@@ -49,19 +58,14 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
49
58
  }
50
59
  }
51
60
  }
52
- return {
53
- taskGraphs,
54
- errors: taskGraphErrors
55
- };
61
+ return { taskGraphs, errors: taskGraphErrors };
56
62
  }
57
- __name(getAllWorkspaceTaskGraphs, "getAllWorkspaceTaskGraphs");
58
63
  function createTaskId(projectId, targetId, configurationId) {
59
64
  if (configurationId) {
60
65
  return `${projectId}:${targetId}:${configurationId}`;
61
66
  }
62
67
  return `${projectId}:${targetId}`;
63
68
  }
64
- __name(createTaskId, "createTaskId");
65
69
 
66
70
  export {
67
71
  getAllWorkspaceTaskGraphs,
package/dist/config.js CHANGED
@@ -5,7 +5,6 @@
5
5
 
6
6
 
7
7
  var _chunkMYIXHZMSjs = require('./chunk-MYIXHZMS.js');
8
- require('./chunk-SHUYVCID.js');
9
8
 
10
9
 
11
10
 
package/dist/config.mjs CHANGED
@@ -5,7 +5,6 @@ import {
5
5
  DEFAULT_PLATFORM,
6
6
  DEFAULT_TARGET
7
7
  } from "./chunk-BEMVEXMQ.mjs";
8
- import "./chunk-O6YSETKJ.mjs";
9
8
  export {
10
9
  DEFAULT_COMPILED_BANNER,
11
10
  DEFAULT_ENVIRONMENT,