@storm-software/build-tools 0.150.6 → 0.150.8

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 (52) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-JJQN3HTQ.mjs → chunk-2QRSJ2XB.mjs} +52 -15
  3. package/dist/{chunk-D7ZBIHS7.mjs → chunk-3Q4PJ2CH.mjs} +1 -1
  4. package/dist/{chunk-TABRPMJB.js → chunk-7HCW6J5M.js} +9 -9
  5. package/dist/{chunk-DLSOQQ2X.mjs → chunk-FRWMSPKW.mjs} +1 -1
  6. package/dist/{chunk-XXESPGZP.js → chunk-GTGBVWZP.js} +55 -18
  7. package/dist/{chunk-BKMDH7XQ.mjs → chunk-I4GQIOV7.mjs} +1 -1
  8. package/dist/{chunk-2IACGL5A.mjs → chunk-JIOQYV3B.mjs} +1 -1
  9. package/dist/{chunk-673CAI2G.js → chunk-NQ3XUSZB.js} +2 -2
  10. package/dist/{chunk-ECGZDTG2.js → chunk-PETLJROI.js} +10 -10
  11. package/dist/{chunk-UNY7ZVZF.js → chunk-R6WRMQAA.js} +8 -8
  12. package/dist/{chunk-EGKFW7BM.js → chunk-S7FCLPMK.js} +50 -43
  13. package/dist/{chunk-TSUTFOQG.js → chunk-U2TNM7T7.js} +8 -8
  14. package/dist/{chunk-VWJLKDCB.mjs → chunk-U7PSAXCT.mjs} +12 -5
  15. package/dist/{chunk-7NL4YIH3.mjs → chunk-WBAOQRPY.mjs} +1 -1
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +8 -8
  19. package/dist/index.mjs +7 -7
  20. package/dist/plugins/analyze.js +3 -3
  21. package/dist/plugins/analyze.mjs +2 -2
  22. package/dist/plugins/index.js +4 -4
  23. package/dist/plugins/index.mjs +3 -3
  24. package/dist/plugins/ts-resolve.js +3 -3
  25. package/dist/plugins/ts-resolve.mjs +2 -2
  26. package/dist/types-DK2Ei7Dy.d.mts +1289 -0
  27. package/dist/types-DK2Ei7Dy.d.ts +1289 -0
  28. package/dist/{types-Dsy6SjaO.d.ts → types-bock3dMj.d.mts} +11 -8
  29. package/dist/{types-Dsy6SjaO.d.mts → types-bock3dMj.d.ts} +11 -8
  30. package/dist/types.d.mts +1 -1
  31. package/dist/types.d.ts +1 -1
  32. package/dist/utilities/copy-assets.d.mts +1 -1
  33. package/dist/utilities/copy-assets.d.ts +1 -1
  34. package/dist/utilities/copy-assets.js +3 -3
  35. package/dist/utilities/copy-assets.mjs +2 -2
  36. package/dist/utilities/generate-package-json.d.mts +1 -1
  37. package/dist/utilities/generate-package-json.d.ts +1 -1
  38. package/dist/utilities/generate-package-json.js +3 -3
  39. package/dist/utilities/generate-package-json.mjs +2 -2
  40. package/dist/utilities/get-entry-points.d.mts +1 -1
  41. package/dist/utilities/get-entry-points.d.ts +1 -1
  42. package/dist/utilities/get-entry-points.js +3 -3
  43. package/dist/utilities/get-entry-points.mjs +2 -2
  44. package/dist/utilities/get-env.d.mts +1 -1
  45. package/dist/utilities/get-env.d.ts +1 -1
  46. package/dist/utilities/index.d.mts +1 -1
  47. package/dist/utilities/index.d.ts +1 -1
  48. package/dist/utilities/index.js +6 -6
  49. package/dist/utilities/index.mjs +5 -5
  50. package/dist/utilities/read-nx-config.js +3 -3
  51. package/dist/utilities/read-nx-config.mjs +2 -2
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.150.5-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.150.7-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -243,10 +243,10 @@ var LogLevelLabel = {
243
243
  };
244
244
 
245
245
  // ../config/src/constants.ts
246
- var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
246
+ var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
247
247
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
248
248
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
249
- var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
249
+ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
250
250
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
251
251
  var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
252
252
  var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
@@ -420,10 +420,13 @@ var stormWorkspaceConfigSchema = z.object({
420
420
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
421
421
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
422
422
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
423
- homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
424
- docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
425
- licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
426
- contact: z.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
423
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
424
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
425
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
426
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
427
+ support: z.string().trim().url().optional().describe(
428
+ "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
429
+ ),
427
430
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
428
431
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
429
432
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
@@ -522,9 +525,10 @@ var DEFAULT_COLOR_CONFIG = {
522
525
  negative: "#dc2626"
523
526
  }
524
527
  };
525
- var getDefaultConfig = async (root) => {
528
+ async function getPackageJsonConfig(root) {
526
529
  let license = STORM_DEFAULT_LICENSE;
527
- let homepage = STORM_DEFAULT_HOMEPAGE;
530
+ let homepage = void 0;
531
+ let support = void 0;
528
532
  let name = void 0;
529
533
  let namespace = void 0;
530
534
  let repository = void 0;
@@ -555,6 +559,13 @@ var getDefaultConfig = async (root) => {
555
559
  if (packageJson.homepage) {
556
560
  homepage = packageJson.homepage;
557
561
  }
562
+ if (packageJson.bugs) {
563
+ if (typeof packageJson.bugs === "string") {
564
+ support = packageJson.bugs;
565
+ } else if (packageJson.bugs.url) {
566
+ support = packageJson.bugs.url;
567
+ }
568
+ }
558
569
  }
559
570
  }
560
571
  return {
@@ -564,13 +575,38 @@ var getDefaultConfig = async (root) => {
564
575
  repository,
565
576
  license,
566
577
  homepage,
567
- docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
568
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
569
- error: {
570
- url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
571
- }
578
+ support
572
579
  };
573
- };
580
+ }
581
+ function applyDefaultConfig(config) {
582
+ if (!config.support && config.contact) {
583
+ config.support = config.contact;
584
+ }
585
+ if (!config.contact && config.support) {
586
+ config.contact = config.support;
587
+ }
588
+ if (config.homepage) {
589
+ if (!config.docs) {
590
+ config.docs = `${config.homepage}/docs`;
591
+ }
592
+ if (!config.license) {
593
+ config.license = `${config.homepage}/license`;
594
+ }
595
+ if (!config.support) {
596
+ config.support = `${config.homepage}/support`;
597
+ }
598
+ if (!config.contact) {
599
+ config.contact = `${config.homepage}/contact`;
600
+ }
601
+ if (!config.error?.codesFile || !config?.error?.url) {
602
+ config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
603
+ if (config.homepage) {
604
+ config.error.url ??= `${config.homepage}/errors`;
605
+ }
606
+ }
607
+ }
608
+ return config;
609
+ }
574
610
 
575
611
  // ../config-tools/src/logger/chalk.ts
576
612
  import chalk from "chalk";
@@ -799,7 +835,8 @@ export {
799
835
  correctPaths,
800
836
  joinPaths,
801
837
  findWorkspaceRoot,
802
- getDefaultConfig,
838
+ getPackageJsonConfig,
839
+ applyDefaultConfig,
803
840
  getLogLevel,
804
841
  getLogLevelLabel,
805
842
  writeWarning,
@@ -3,7 +3,7 @@ import {
3
3
  findWorkspaceRoot,
4
4
  joinPaths,
5
5
  writeDebug
6
- } from "./chunk-JJQN3HTQ.mjs";
6
+ } from "./chunk-2QRSJ2XB.mjs";
7
7
 
8
8
  // src/utilities/get-entry-points.ts
9
9
  import { glob } from "glob";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
5
+ var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
6
6
 
7
7
  // src/utilities/copy-assets.ts
8
8
  var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
@@ -34,9 +34,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
34
34
  output: "src/"
35
35
  });
36
36
  }
37
- _chunkXXESPGZPjs.writeTrace.call(void 0,
37
+ _chunkGTGBVWZPjs.writeTrace.call(void 0,
38
38
  `\u{1F4DD} Copying the following assets to the output directory:
39
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXXESPGZPjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
39
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkGTGBVWZPjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
40
40
  config
41
41
  );
42
42
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -47,18 +47,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
47
47
  });
48
48
  await assetHandler.processAllAssetsOnce();
49
49
  if (includeSrc === true) {
50
- _chunkXXESPGZPjs.writeDebug.call(void 0,
51
- `\u{1F4DD} Adding banner and writing source files: ${_chunkXXESPGZPjs.joinPaths.call(void 0,
50
+ _chunkGTGBVWZPjs.writeDebug.call(void 0,
51
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkGTGBVWZPjs.joinPaths.call(void 0,
52
52
  outputPath,
53
53
  "src"
54
54
  )}`,
55
55
  config
56
56
  );
57
57
  const files = await _glob.glob.call(void 0, [
58
- _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
59
- _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
60
- _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
61
- _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
58
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
59
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
60
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
61
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
62
62
  ]);
63
63
  await Promise.allSettled(
64
64
  files.map(
@@ -2,7 +2,7 @@ import {
2
2
  joinPaths,
3
3
  writeDebug,
4
4
  writeTrace
5
- } from "./chunk-JJQN3HTQ.mjs";
5
+ } from "./chunk-2QRSJ2XB.mjs";
6
6
 
7
7
  // src/utilities/copy-assets.ts
8
8
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
@@ -243,10 +243,10 @@ var LogLevelLabel = {
243
243
  };
244
244
 
245
245
  // ../config/src/constants.ts
246
- var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
246
+ var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
247
247
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
248
248
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
249
- var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
249
+ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
250
250
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
251
251
  var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
252
252
  var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
@@ -420,10 +420,13 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
420
420
  organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
421
421
  repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
422
422
  license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
423
- homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
424
- docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
425
- licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
426
- contact: _zod2.default.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
423
+ homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
424
+ docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
425
+ licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
426
+ contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
427
+ support: _zod2.default.string().trim().url().optional().describe(
428
+ "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
429
+ ),
427
430
  branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
428
431
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
429
432
  owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
@@ -522,9 +525,10 @@ var DEFAULT_COLOR_CONFIG = {
522
525
  negative: "#dc2626"
523
526
  }
524
527
  };
525
- var getDefaultConfig = async (root) => {
528
+ async function getPackageJsonConfig(root) {
526
529
  let license = STORM_DEFAULT_LICENSE;
527
- let homepage = STORM_DEFAULT_HOMEPAGE;
530
+ let homepage = void 0;
531
+ let support = void 0;
528
532
  let name = void 0;
529
533
  let namespace = void 0;
530
534
  let repository = void 0;
@@ -555,6 +559,13 @@ var getDefaultConfig = async (root) => {
555
559
  if (packageJson.homepage) {
556
560
  homepage = packageJson.homepage;
557
561
  }
562
+ if (packageJson.bugs) {
563
+ if (typeof packageJson.bugs === "string") {
564
+ support = packageJson.bugs;
565
+ } else if (packageJson.bugs.url) {
566
+ support = packageJson.bugs.url;
567
+ }
568
+ }
558
569
  }
559
570
  }
560
571
  return {
@@ -564,13 +575,38 @@ var getDefaultConfig = async (root) => {
564
575
  repository,
565
576
  license,
566
577
  homepage,
567
- docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
568
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
569
- error: {
570
- url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
571
- }
578
+ support
572
579
  };
573
- };
580
+ }
581
+ function applyDefaultConfig(config) {
582
+ if (!config.support && config.contact) {
583
+ config.support = config.contact;
584
+ }
585
+ if (!config.contact && config.support) {
586
+ config.contact = config.support;
587
+ }
588
+ if (config.homepage) {
589
+ if (!config.docs) {
590
+ config.docs = `${config.homepage}/docs`;
591
+ }
592
+ if (!config.license) {
593
+ config.license = `${config.homepage}/license`;
594
+ }
595
+ if (!config.support) {
596
+ config.support = `${config.homepage}/support`;
597
+ }
598
+ if (!config.contact) {
599
+ config.contact = `${config.homepage}/contact`;
600
+ }
601
+ if (!_optionalChain([config, 'access', _2 => _2.error, 'optionalAccess', _3 => _3.codesFile]) || !_optionalChain([config, 'optionalAccess', _4 => _4.error, 'optionalAccess', _5 => _5.url])) {
602
+ config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
603
+ if (config.homepage) {
604
+ config.error.url ??= `${config.homepage}/errors`;
605
+ }
606
+ }
607
+ }
608
+ return config;
609
+ }
574
610
 
575
611
  // ../config-tools/src/logger/chalk.ts
576
612
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
@@ -595,7 +631,7 @@ var chalkDefault = {
595
631
  };
596
632
  var getChalk = () => {
597
633
  let _chalk = _chalk3.default;
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])) {
634
+ if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
599
635
  _chalk = chalkDefault;
600
636
  }
601
637
  return _chalk;
@@ -683,7 +719,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
683
719
 
684
720
  // ../config-tools/src/logger/console.ts
685
721
  var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
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;
722
+ const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
687
723
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
688
724
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
689
725
  return (_) => {
@@ -783,7 +819,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
783
819
  };
784
820
  var _isFunction = (value) => {
785
821
  try {
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]));
822
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
787
823
  } catch (e) {
788
824
  return false;
789
825
  }
@@ -807,4 +843,5 @@ var _isFunction = (value) => {
807
843
 
808
844
 
809
845
 
810
- exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.formatLogMessage = formatLogMessage;
846
+
847
+ exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getPackageJsonConfig = getPackageJsonConfig; exports.applyDefaultConfig = applyDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.formatLogMessage = formatLogMessage;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeDebug
3
- } from "./chunk-JJQN3HTQ.mjs";
3
+ } from "./chunk-2QRSJ2XB.mjs";
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  import fs from "node:fs";
@@ -2,7 +2,7 @@ import {
2
2
  findWorkspaceRoot,
3
3
  joinPaths,
4
4
  writeTrace
5
- } from "./chunk-JJQN3HTQ.mjs";
5
+ } from "./chunk-2QRSJ2XB.mjs";
6
6
 
7
7
  // src/utilities/generate-package-json.ts
8
8
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
3
+ var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
@@ -22,7 +22,7 @@ function analyze() {
22
22
  renderChunk(source, chunk) {
23
23
  const sourceBytes = formatBytes(source.length);
24
24
  const fileName = chunk.fileName;
25
- _chunkXXESPGZPjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
25
+ _chunkGTGBVWZPjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
26
26
  }
27
27
  };
28
28
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
5
+ var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
6
6
 
7
7
  // src/utilities/generate-package-json.ts
8
8
  var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
@@ -42,7 +42,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
42
42
  )) {
43
43
  const projectNode = project.node;
44
44
  if (projectNode.data.root) {
45
- const projectPackageJsonPath = _chunkXXESPGZPjs.joinPaths.call(void 0,
45
+ const projectPackageJsonPath = _chunkGTGBVWZPjs.joinPaths.call(void 0,
46
46
  workspaceRoot,
47
47
  projectNode.data.root,
48
48
  "package.json"
@@ -60,11 +60,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
60
60
  }
61
61
  }
62
62
  if (localPackages.length > 0) {
63
- _chunkXXESPGZPjs.writeTrace.call(void 0,
63
+ _chunkGTGBVWZPjs.writeTrace.call(void 0,
64
64
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
65
65
  );
66
66
  const projectJsonFile = await _promises.readFile.call(void 0,
67
- _chunkXXESPGZPjs.joinPaths.call(void 0, projectRoot, "project.json"),
67
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, projectRoot, "project.json"),
68
68
  "utf8"
69
69
  );
70
70
  const projectJson = JSON.parse(projectJsonFile);
@@ -77,7 +77,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
77
77
  }
78
78
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
79
79
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
80
- const depPackageJsonPath = _chunkXXESPGZPjs.joinPaths.call(void 0,
80
+ const depPackageJsonPath = _chunkGTGBVWZPjs.joinPaths.call(void 0,
81
81
  workspaceRoot,
82
82
  projectConfigurations.projects[dep].root,
83
83
  "package.json"
@@ -108,14 +108,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
108
108
  return ret;
109
109
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
110
110
  } else {
111
- _chunkXXESPGZPjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
111
+ _chunkGTGBVWZPjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
112
112
  }
113
113
  return packageJson;
114
114
  };
115
115
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
116
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkXXESPGZPjs.findWorkspaceRoot.call(void 0, );
116
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkGTGBVWZPjs.findWorkspaceRoot.call(void 0, );
117
117
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
118
- _chunkXXESPGZPjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
118
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
119
119
  "utf8"
120
120
  );
121
121
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -126,7 +126,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
126
126
  if (distSrc.startsWith("/")) {
127
127
  distSrc = distSrc.substring(1);
128
128
  }
129
- packageJson.source ??= `${_chunkXXESPGZPjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
129
+ packageJson.source ??= `${_chunkGTGBVWZPjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
130
130
  }
131
131
  packageJson.files ??= ["dist/**/*"];
132
132
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -151,7 +151,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
151
151
  packageJson.contributors = [packageJson.author];
152
152
  }
153
153
  packageJson.repository ??= workspacePackageJson.repository;
154
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkXXESPGZPjs.joinPaths.call(void 0, "packages", projectName);
154
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkGTGBVWZPjs.joinPaths.call(void 0, "packages", projectName);
155
155
  return packageJson;
156
156
  };
157
157
  var addPackageJsonExport = (file, type = "module", sourceRoot) => {
@@ -3,12 +3,12 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
6
+ var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
7
7
 
8
8
  // src/utilities/get-entry-points.ts
9
9
  var _glob = require('glob');
10
10
  var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
11
- const workspaceRoot = config.workspaceRoot || _chunkXXESPGZPjs.findWorkspaceRoot.call(void 0, );
11
+ const workspaceRoot = config.workspaceRoot || _chunkGTGBVWZPjs.findWorkspaceRoot.call(void 0, );
12
12
  const entryPoints = [];
13
13
  if (entry) {
14
14
  if (typeof entry === "string") {
@@ -21,7 +21,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
21
21
  }
22
22
  if (emitOnAll) {
23
23
  entryPoints.push(
24
- _chunkXXESPGZPjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
24
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
25
25
  );
26
26
  }
27
27
  const results = await Promise.all(
@@ -34,12 +34,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
34
34
  });
35
35
  paths.push(
36
36
  ...files.reduce((ret, filePath) => {
37
- const result = _chunkXXESPGZPjs.correctPaths.call(void 0,
38
- _chunkXXESPGZPjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXXESPGZPjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXXESPGZPjs.correctPaths.call(void 0, projectRoot), "")
37
+ const result = _chunkGTGBVWZPjs.correctPaths.call(void 0,
38
+ _chunkGTGBVWZPjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkGTGBVWZPjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkGTGBVWZPjs.correctPaths.call(void 0, projectRoot), "")
39
39
  );
40
40
  if (result) {
41
- _chunkXXESPGZPjs.writeDebug.call(void 0,
42
- `Trying to add entry point ${result} at "${_chunkXXESPGZPjs.joinPaths.call(void 0,
41
+ _chunkGTGBVWZPjs.writeDebug.call(void 0,
42
+ `Trying to add entry point ${result} at "${_chunkGTGBVWZPjs.joinPaths.call(void 0,
43
43
  filePath.path,
44
44
  filePath.name
45
45
  )}"`,
@@ -53,7 +53,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
53
53
  }, [])
54
54
  );
55
55
  } else {
56
- _chunkXXESPGZPjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
56
+ _chunkGTGBVWZPjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
57
57
  if (!paths.includes(entryPoint)) {
58
58
  paths.push(entryPoint);
59
59
  }