@storm-software/build-tools 0.158.121 → 0.158.122

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-Y5BAO2UH.mjs → chunk-337LPH6T.mjs} +1 -1
  3. package/dist/{chunk-4K7KJ6JA.mjs → chunk-77OPD7VA.mjs} +1 -1
  4. package/dist/{chunk-AMJYQRGG.js → chunk-BR6XFITO.js} +27 -10
  5. package/dist/{chunk-CFPR4SJM.mjs → chunk-EXQPJWWX.mjs} +1 -1
  6. package/dist/{chunk-RBJMCJYF.mjs → chunk-GIDQQPFS.mjs} +23 -0
  7. package/dist/{chunk-R52KMW6A.js → chunk-IL65R5PK.js} +8 -8
  8. package/dist/{chunk-LHWWILNN.mjs → chunk-P3RDPIXU.mjs} +18 -1
  9. package/dist/{chunk-VTFVHWHC.js → chunk-PSSJAN5G.js} +3 -3
  10. package/dist/{chunk-UGNCARJK.js → chunk-TC7HRNJC.js} +4 -4
  11. package/dist/{chunk-2O2FD5DJ.js → chunk-USEZ6FCE.js} +3 -3
  12. package/dist/{chunk-6BOTIXBI.js → chunk-VYRPJHHW.js} +23 -0
  13. package/dist/{chunk-3DLJAR7G.mjs → chunk-Z4D4DE4H.mjs} +1 -1
  14. package/dist/{chunk-2QXDIU43.js → chunk-Z4FGZXIJ.js} +2 -2
  15. package/dist/{chunk-NXHXDYIG.mjs → chunk-ZNDFNV23.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-cZAStWve.d.ts → types-7LQ1t5HR.d.mts} +7 -0
  27. package/dist/{types-cZAStWve.d.mts → types-7LQ1t5HR.d.ts} +7 -0
  28. package/dist/types-DxphL6FF.d.mts +243 -0
  29. package/dist/types-DxphL6FF.d.ts +243 -0
  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 +2 -2
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.158.119-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)
30
+ [![Version](https://img.shields.io/badge/version-0.158.120-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  writeDebug,
6
6
  writeTrace
7
- } from "./chunk-RBJMCJYF.mjs";
7
+ } from "./chunk-GIDQQPFS.mjs";
8
8
 
9
9
  // src/utilities/copy-assets.ts
10
10
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeDebug
3
- } from "./chunk-RBJMCJYF.mjs";
3
+ } from "./chunk-GIDQQPFS.mjs";
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  import fs from "node:fs";
@@ -12,7 +12,7 @@ var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk6BOTIXBIjs = require('./chunk-6BOTIXBI.js');
15
+ var _chunkVYRPJHHWjs = require('./chunk-VYRPJHHW.js');
16
16
 
17
17
  // ../config-tools/src/config-file/get-config-file.ts
18
18
  var _c12 = require('c12');
@@ -100,6 +100,10 @@ var fatalColorSchema = z.optional(colorSchema);
100
100
  schemaRegistry.add(fatalColorSchema, {
101
101
  description: "The fatal color of the workspace"
102
102
  });
103
+ var performanceColorSchema = z._default(colorSchema, "#00ff00");
104
+ schemaRegistry.add(performanceColorSchema, {
105
+ description: "The performance color of the workspace"
106
+ });
103
107
  var positiveColorSchema = z._default(colorSchema, "#4ade80");
104
108
  schemaRegistry.add(positiveColorSchema, {
105
109
  description: "The positive number color of the workspace"
@@ -126,6 +130,7 @@ var darkColorsSchema = z.object({
126
130
  warning: warningColorSchema,
127
131
  danger: dangerColorSchema,
128
132
  fatal: fatalColorSchema,
133
+ performance: performanceColorSchema,
129
134
  positive: positiveColorSchema,
130
135
  negative: negativeColorSchema,
131
136
  gradient: gradientStopsSchema
@@ -144,6 +149,7 @@ var lightColorsSchema = z.object({
144
149
  warning: warningColorSchema,
145
150
  danger: dangerColorSchema,
146
151
  fatal: fatalColorSchema,
152
+ performance: performanceColorSchema,
147
153
  positive: positiveColorSchema,
148
154
  negative: negativeColorSchema,
149
155
  gradient: gradientStopsSchema
@@ -166,6 +172,7 @@ var singleColorsSchema = z.object({
166
172
  warning: warningColorSchema,
167
173
  danger: dangerColorSchema,
168
174
  fatal: fatalColorSchema,
175
+ performance: performanceColorSchema,
169
176
  positive: positiveColorSchema,
170
177
  negative: negativeColorSchema,
171
178
  gradient: gradientStopsSchema
@@ -533,6 +540,7 @@ var logLevelSchema = z._default(
533
540
  "warn",
534
541
  "success",
535
542
  "info",
543
+ "performance",
536
544
  "debug",
537
545
  "trace",
538
546
  "all"
@@ -612,6 +620,7 @@ var COLOR_KEYS = [
612
620
  "warning",
613
621
  "danger",
614
622
  "fatal",
623
+ "performance",
615
624
  "positive",
616
625
  "negative"
617
626
  ];
@@ -745,7 +754,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
745
754
  let config = result.config;
746
755
  const configFile = result.configFile;
747
756
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
748
- _chunk6BOTIXBIjs.writeTrace.call(void 0,
757
+ _chunkVYRPJHHWjs.writeTrace.call(void 0,
749
758
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
750
759
  {
751
760
  logLevel: "all"
@@ -761,7 +770,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
761
770
  for (const result2 of results) {
762
771
  if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
763
772
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
764
- _chunk6BOTIXBIjs.writeTrace.call(void 0,
773
+ _chunkVYRPJHHWjs.writeTrace.call(void 0,
765
774
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
766
775
  {
767
776
  logLevel: "all"
@@ -877,7 +886,7 @@ var getConfigEnv = () => {
877
886
  },
878
887
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
879
888
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
880
- ) ? _chunk6BOTIXBIjs.getLogLevelLabel.call(void 0,
889
+ ) ? _chunkVYRPJHHWjs.getLogLevelLabel.call(void 0,
881
890
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
882
891
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
883
892
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -952,6 +961,7 @@ var getSingleThemeColorsEnv = (prefix) => {
952
961
  warning: process.env[`${prefix}WARNING`],
953
962
  danger: process.env[`${prefix}DANGER`],
954
963
  fatal: process.env[`${prefix}FATAL`],
964
+ performance: process.env[`${prefix}PERFORMANCE`],
955
965
  positive: process.env[`${prefix}POSITIVE`],
956
966
  negative: process.env[`${prefix}NEGATIVE`],
957
967
  gradient
@@ -991,6 +1001,7 @@ var getBaseThemeColorsEnv = (prefix) => {
991
1001
  warning: process.env[`${prefix}WARNING`],
992
1002
  danger: process.env[`${prefix}DANGER`],
993
1003
  fatal: process.env[`${prefix}FATAL`],
1004
+ performance: process.env[`${prefix}PERFORMANCE`],
994
1005
  positive: process.env[`${prefix}POSITIVE`],
995
1006
  negative: process.env[`${prefix}NEGATIVE`],
996
1007
  gradient
@@ -1242,9 +1253,9 @@ var setConfigEnv = (config) => {
1242
1253
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1243
1254
  process.env.LOG_LEVEL = String(config.logLevel);
1244
1255
  process.env.NX_VERBOSE_LOGGING = String(
1245
- _chunk6BOTIXBIjs.getLogLevel.call(void 0, config.logLevel) >= _chunk6BOTIXBIjs.LogLevel.DEBUG ? true : false
1256
+ _chunkVYRPJHHWjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVYRPJHHWjs.LogLevel.DEBUG ? true : false
1246
1257
  );
1247
- process.env.RUST_BACKTRACE = _chunk6BOTIXBIjs.getLogLevel.call(void 0, config.logLevel) >= _chunk6BOTIXBIjs.LogLevel.DEBUG ? "full" : "none";
1258
+ process.env.RUST_BACKTRACE = _chunkVYRPJHHWjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVYRPJHHWjs.LogLevel.DEBUG ? "full" : "none";
1248
1259
  }
1249
1260
  if (config.skipConfigLogging !== void 0) {
1250
1261
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -1301,6 +1312,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
1301
1312
  if (config.fatal) {
1302
1313
  process.env[`${prefix}FATAL`] = config.fatal;
1303
1314
  }
1315
+ if (config.performance) {
1316
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1317
+ }
1304
1318
  if (config.positive) {
1305
1319
  process.env[`${prefix}POSITIVE`] = config.positive;
1306
1320
  }
@@ -1359,6 +1373,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
1359
1373
  if (config.fatal) {
1360
1374
  process.env[`${prefix}FATAL`] = config.fatal;
1361
1375
  }
1376
+ if (config.performance) {
1377
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1378
+ }
1362
1379
  if (config.positive) {
1363
1380
  process.env[`${prefix}POSITIVE`] = config.positive;
1364
1381
  }
@@ -1386,7 +1403,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1386
1403
  const configFile = await getConfigFile(_workspaceRoot);
1387
1404
  if (!configFile) {
1388
1405
  if (!skipLogs) {
1389
- _chunk6BOTIXBIjs.writeWarning.call(void 0,
1406
+ _chunkVYRPJHHWjs.writeWarning.call(void 0,
1390
1407
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
1391
1408
  { logLevel: "all" }
1392
1409
  );
@@ -1413,7 +1430,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1413
1430
  throw new Error(
1414
1431
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
1415
1432
 
1416
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk6BOTIXBIjs.formatLogMessage.call(void 0,
1433
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkVYRPJHHWjs.formatLogMessage.call(void 0,
1417
1434
  configInput
1418
1435
  )}`,
1419
1436
  {
@@ -1458,9 +1475,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1458
1475
  );
1459
1476
  setConfigEnv(config);
1460
1477
  if (!skipLogs && !config.skipConfigLogging) {
1461
- _chunk6BOTIXBIjs.writeTrace.call(void 0,
1478
+ _chunkVYRPJHHWjs.writeTrace.call(void 0,
1462
1479
  `\u2699\uFE0F Using Storm Workspace configuration:
1463
- ${_chunk6BOTIXBIjs.formatLogMessage.call(void 0, config)}`,
1480
+ ${_chunkVYRPJHHWjs.formatLogMessage.call(void 0, config)}`,
1464
1481
  config
1465
1482
  );
1466
1483
  }
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-VXUVNB76.mjs";
7
7
  import {
8
8
  writeTrace
9
- } from "./chunk-RBJMCJYF.mjs";
9
+ } from "./chunk-GIDQQPFS.mjs";
10
10
 
11
11
  // src/utilities/generate-package-json.ts
12
12
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
@@ -9,6 +9,7 @@ var LogLevel = {
9
9
  WARN: 30,
10
10
  SUCCESS: 35,
11
11
  INFO: 40,
12
+ PERFORMANCE: 50,
12
13
  DEBUG: 60,
13
14
  TRACE: 70,
14
15
  ALL: 100
@@ -20,6 +21,7 @@ var LogLevelLabel = {
20
21
  WARN: "warn",
21
22
  SUCCESS: "success",
22
23
  INFO: "info",
24
+ PERFORMANCE: "performance",
23
25
  DEBUG: "debug",
24
26
  TRACE: "trace",
25
27
  ALL: "all"
@@ -39,6 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
39
41
  warning: "#e3b341",
40
42
  danger: "#D8314A",
41
43
  fatal: "#51070f",
44
+ performance: "#83ff83",
42
45
  link: "#3fa6ff",
43
46
  positive: "#22c55e",
44
47
  negative: "#dc2626",
@@ -56,6 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
56
59
  warning: "#f3d371",
57
60
  danger: "#D8314A",
58
61
  fatal: "#a40e26",
62
+ performance: "#00ff00",
59
63
  link: "#3fa6ff",
60
64
  positive: "#22c55e",
61
65
  negative: "#dc2626",
@@ -114,6 +118,7 @@ var CONSOLE_ICONS = {
114
118
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
115
119
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
116
120
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
121
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
117
122
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
118
123
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
119
124
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -134,6 +139,8 @@ var getLogLevel = (label) => {
134
139
  return LogLevel.TRACE;
135
140
  case "debug":
136
141
  return LogLevel.DEBUG;
142
+ case "performance":
143
+ return LogLevel.PERFORMANCE;
137
144
  case "info":
138
145
  return LogLevel.INFO;
139
146
  case "warn":
@@ -158,6 +165,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
158
165
  if (logLevel >= LogLevel.DEBUG) {
159
166
  return LogLevelLabel.DEBUG;
160
167
  }
168
+ if (logLevel >= LogLevel.PERFORMANCE) {
169
+ return LogLevelLabel.PERFORMANCE;
170
+ }
161
171
  if (logLevel >= LogLevel.INFO) {
162
172
  return LogLevelLabel.INFO;
163
173
  }
@@ -245,6 +255,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
245
255
  )(
246
256
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
247
257
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
258
+ `
259
+ );
260
+ };
261
+ }
262
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
263
+ return (message) => {
264
+ console.debug(
265
+ `
266
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
267
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
268
+ )(
269
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
270
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
248
271
  `
249
272
  );
250
273
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
- var _chunk6BOTIXBIjs = require('./chunk-6BOTIXBI.js');
3
+ var _chunkVYRPJHHWjs = require('./chunk-VYRPJHHW.js');
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
@@ -26,8 +26,8 @@ var tsResolvePlugin = ({
26
26
  return {
27
27
  name: `storm:ts-resolve`,
28
28
  async resolveId(source, importer) {
29
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
29
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
31
31
  if (!importer) {
32
32
  return null;
33
33
  }
@@ -38,7 +38,7 @@ var tsResolvePlugin = ({
38
38
  return false;
39
39
  }
40
40
  if (ignore && ignore(source, importer)) {
41
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
41
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
42
42
  return null;
43
43
  }
44
44
  if (resolveOnly) {
@@ -47,12 +47,12 @@ var tsResolvePlugin = ({
47
47
  return v.test(source);
48
48
  });
49
49
  if (!shouldResolve) {
50
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
50
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
51
51
  return null;
52
52
  }
53
53
  }
54
54
  if (_path2.default.isAbsolute(source)) {
55
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
55
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
56
56
  return null;
57
57
  }
58
58
  const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
@@ -81,10 +81,10 @@ var tsResolvePlugin = ({
81
81
  });
82
82
  }
83
83
  if (id) {
84
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
84
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
85
85
  return id;
86
86
  }
87
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
87
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
88
88
  return false;
89
89
  }
90
90
  };
@@ -12,7 +12,7 @@ import {
12
12
  getLogLevelLabel,
13
13
  writeTrace,
14
14
  writeWarning
15
- } from "./chunk-RBJMCJYF.mjs";
15
+ } from "./chunk-GIDQQPFS.mjs";
16
16
 
17
17
  // ../config-tools/src/config-file/get-config-file.ts
18
18
  import { loadConfig } from "c12";
@@ -100,6 +100,10 @@ var fatalColorSchema = z.optional(colorSchema);
100
100
  schemaRegistry.add(fatalColorSchema, {
101
101
  description: "The fatal color of the workspace"
102
102
  });
103
+ var performanceColorSchema = z._default(colorSchema, "#00ff00");
104
+ schemaRegistry.add(performanceColorSchema, {
105
+ description: "The performance color of the workspace"
106
+ });
103
107
  var positiveColorSchema = z._default(colorSchema, "#4ade80");
104
108
  schemaRegistry.add(positiveColorSchema, {
105
109
  description: "The positive number color of the workspace"
@@ -126,6 +130,7 @@ var darkColorsSchema = z.object({
126
130
  warning: warningColorSchema,
127
131
  danger: dangerColorSchema,
128
132
  fatal: fatalColorSchema,
133
+ performance: performanceColorSchema,
129
134
  positive: positiveColorSchema,
130
135
  negative: negativeColorSchema,
131
136
  gradient: gradientStopsSchema
@@ -144,6 +149,7 @@ var lightColorsSchema = z.object({
144
149
  warning: warningColorSchema,
145
150
  danger: dangerColorSchema,
146
151
  fatal: fatalColorSchema,
152
+ performance: performanceColorSchema,
147
153
  positive: positiveColorSchema,
148
154
  negative: negativeColorSchema,
149
155
  gradient: gradientStopsSchema
@@ -166,6 +172,7 @@ var singleColorsSchema = z.object({
166
172
  warning: warningColorSchema,
167
173
  danger: dangerColorSchema,
168
174
  fatal: fatalColorSchema,
175
+ performance: performanceColorSchema,
169
176
  positive: positiveColorSchema,
170
177
  negative: negativeColorSchema,
171
178
  gradient: gradientStopsSchema
@@ -533,6 +540,7 @@ var logLevelSchema = z._default(
533
540
  "warn",
534
541
  "success",
535
542
  "info",
543
+ "performance",
536
544
  "debug",
537
545
  "trace",
538
546
  "all"
@@ -612,6 +620,7 @@ var COLOR_KEYS = [
612
620
  "warning",
613
621
  "danger",
614
622
  "fatal",
623
+ "performance",
615
624
  "positive",
616
625
  "negative"
617
626
  ];
@@ -952,6 +961,7 @@ var getSingleThemeColorsEnv = (prefix) => {
952
961
  warning: process.env[`${prefix}WARNING`],
953
962
  danger: process.env[`${prefix}DANGER`],
954
963
  fatal: process.env[`${prefix}FATAL`],
964
+ performance: process.env[`${prefix}PERFORMANCE`],
955
965
  positive: process.env[`${prefix}POSITIVE`],
956
966
  negative: process.env[`${prefix}NEGATIVE`],
957
967
  gradient
@@ -991,6 +1001,7 @@ var getBaseThemeColorsEnv = (prefix) => {
991
1001
  warning: process.env[`${prefix}WARNING`],
992
1002
  danger: process.env[`${prefix}DANGER`],
993
1003
  fatal: process.env[`${prefix}FATAL`],
1004
+ performance: process.env[`${prefix}PERFORMANCE`],
994
1005
  positive: process.env[`${prefix}POSITIVE`],
995
1006
  negative: process.env[`${prefix}NEGATIVE`],
996
1007
  gradient
@@ -1301,6 +1312,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
1301
1312
  if (config.fatal) {
1302
1313
  process.env[`${prefix}FATAL`] = config.fatal;
1303
1314
  }
1315
+ if (config.performance) {
1316
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1317
+ }
1304
1318
  if (config.positive) {
1305
1319
  process.env[`${prefix}POSITIVE`] = config.positive;
1306
1320
  }
@@ -1359,6 +1373,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
1359
1373
  if (config.fatal) {
1360
1374
  process.env[`${prefix}FATAL`] = config.fatal;
1361
1375
  }
1376
+ if (config.performance) {
1377
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1378
+ }
1362
1379
  if (config.positive) {
1363
1380
  process.env[`${prefix}POSITIVE`] = config.positive;
1364
1381
  }
@@ -6,7 +6,7 @@ var _chunkBPRPYAQSjs = require('./chunk-BPRPYAQS.js');
6
6
  var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
7
7
 
8
8
 
9
- var _chunk6BOTIXBIjs = require('./chunk-6BOTIXBI.js');
9
+ var _chunkVYRPJHHWjs = require('./chunk-VYRPJHHW.js');
10
10
 
11
11
  // src/utilities/generate-package-json.ts
12
12
  var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
@@ -64,7 +64,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
64
64
  }
65
65
  }
66
66
  if (localPackages.length > 0) {
67
- _chunk6BOTIXBIjs.writeTrace.call(void 0,
67
+ _chunkVYRPJHHWjs.writeTrace.call(void 0,
68
68
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
69
69
  );
70
70
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -112,7 +112,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
112
112
  return ret;
113
113
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
114
114
  } else {
115
- _chunk6BOTIXBIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
115
+ _chunkVYRPJHHWjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
116
116
  }
117
117
  return packageJson;
118
118
  };
@@ -4,7 +4,7 @@ var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk6BOTIXBIjs = require('./chunk-6BOTIXBI.js');
7
+ var _chunkVYRPJHHWjs = require('./chunk-VYRPJHHW.js');
8
8
 
9
9
  // src/utilities/copy-assets.ts
10
10
  var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
@@ -36,7 +36,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
36
36
  output: "src/"
37
37
  });
38
38
  }
39
- _chunk6BOTIXBIjs.writeTrace.call(void 0,
39
+ _chunkVYRPJHHWjs.writeTrace.call(void 0,
40
40
  `\u{1F4DD} Copying the following assets to the output directory:
41
41
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkI2YBUOU3js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
42
42
  config
@@ -48,9 +48,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
48
48
  assets: pendingAssets
49
49
  });
50
50
  await assetHandler.processAllAssetsOnce();
51
- _chunk6BOTIXBIjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
51
+ _chunkVYRPJHHWjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
52
52
  if (includeSrc === true) {
53
- _chunk6BOTIXBIjs.writeDebug.call(void 0,
53
+ _chunkVYRPJHHWjs.writeDebug.call(void 0,
54
54
  `\u{1F4DD} Adding banner and writing source files: ${_chunkI2YBUOU3js.joinPaths.call(void 0,
55
55
  outputPath,
56
56
  "src"
@@ -7,7 +7,7 @@ var _chunkBPRPYAQSjs = require('./chunk-BPRPYAQS.js');
7
7
  var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
8
8
 
9
9
 
10
- var _chunk6BOTIXBIjs = require('./chunk-6BOTIXBI.js');
10
+ var _chunkVYRPJHHWjs = require('./chunk-VYRPJHHW.js');
11
11
 
12
12
  // src/utilities/get-entry-points.ts
13
13
  var _glob = require('glob');
@@ -42,7 +42,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
42
42
  _chunkI2YBUOU3js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkI2YBUOU3js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkI2YBUOU3js.correctPaths.call(void 0, projectRoot), "")
43
43
  );
44
44
  if (result) {
45
- _chunk6BOTIXBIjs.writeDebug.call(void 0,
45
+ _chunkVYRPJHHWjs.writeDebug.call(void 0,
46
46
  `Trying to add entry point ${result} at "${_chunkI2YBUOU3js.joinPaths.call(void 0,
47
47
  filePath.path,
48
48
  filePath.name
@@ -57,7 +57,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
57
57
  }, [])
58
58
  );
59
59
  } else {
60
- _chunk6BOTIXBIjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
60
+ _chunkVYRPJHHWjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
61
61
  if (!paths.includes(entryPoint)) {
62
62
  paths.push(entryPoint);
63
63
  }
@@ -9,6 +9,7 @@ var LogLevel = {
9
9
  WARN: 30,
10
10
  SUCCESS: 35,
11
11
  INFO: 40,
12
+ PERFORMANCE: 50,
12
13
  DEBUG: 60,
13
14
  TRACE: 70,
14
15
  ALL: 100
@@ -20,6 +21,7 @@ var LogLevelLabel = {
20
21
  WARN: "warn",
21
22
  SUCCESS: "success",
22
23
  INFO: "info",
24
+ PERFORMANCE: "performance",
23
25
  DEBUG: "debug",
24
26
  TRACE: "trace",
25
27
  ALL: "all"
@@ -39,6 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
39
41
  warning: "#e3b341",
40
42
  danger: "#D8314A",
41
43
  fatal: "#51070f",
44
+ performance: "#83ff83",
42
45
  link: "#3fa6ff",
43
46
  positive: "#22c55e",
44
47
  negative: "#dc2626",
@@ -56,6 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
56
59
  warning: "#f3d371",
57
60
  danger: "#D8314A",
58
61
  fatal: "#a40e26",
62
+ performance: "#00ff00",
59
63
  link: "#3fa6ff",
60
64
  positive: "#22c55e",
61
65
  negative: "#dc2626",
@@ -114,6 +118,7 @@ var CONSOLE_ICONS = {
114
118
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
115
119
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
116
120
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
121
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
117
122
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
118
123
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
119
124
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -134,6 +139,8 @@ var getLogLevel = (label) => {
134
139
  return LogLevel.TRACE;
135
140
  case "debug":
136
141
  return LogLevel.DEBUG;
142
+ case "performance":
143
+ return LogLevel.PERFORMANCE;
137
144
  case "info":
138
145
  return LogLevel.INFO;
139
146
  case "warn":
@@ -158,6 +165,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
158
165
  if (logLevel >= LogLevel.DEBUG) {
159
166
  return LogLevelLabel.DEBUG;
160
167
  }
168
+ if (logLevel >= LogLevel.PERFORMANCE) {
169
+ return LogLevelLabel.PERFORMANCE;
170
+ }
161
171
  if (logLevel >= LogLevel.INFO) {
162
172
  return LogLevelLabel.INFO;
163
173
  }
@@ -245,6 +255,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
245
255
  )(
246
256
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
247
257
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
258
+ `
259
+ );
260
+ };
261
+ }
262
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
263
+ return (message) => {
264
+ console.debug(
265
+ `
266
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
267
+ _nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
268
+ )(
269
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
270
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
248
271
  `
249
272
  );
250
273
  };
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-VXUVNB76.mjs";
8
8
  import {
9
9
  writeDebug
10
- } from "./chunk-RBJMCJYF.mjs";
10
+ } from "./chunk-GIDQQPFS.mjs";
11
11
 
12
12
  // src/utilities/get-entry-points.ts
13
13
  import { glob } from "glob";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6BOTIXBIjs = require('./chunk-6BOTIXBI.js');
3
+ var _chunkVYRPJHHWjs = require('./chunk-VYRPJHHW.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
- _chunk6BOTIXBIjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
25
+ _chunkVYRPJHHWjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
26
26
  }
27
27
  };
28
28
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeInfo
3
- } from "./chunk-RBJMCJYF.mjs";
3
+ } from "./chunk-GIDQQPFS.mjs";
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
package/dist/index.d.mts CHANGED
@@ -14,7 +14,7 @@ export { getExternalDependencies, getExtraDependencies, getInternalDependencies
14
14
  export { readNxConfig } from './utilities/read-nx-config.mjs';
15
15
  export { createTaskId, getAllWorkspaceTaskGraphs } from './utilities/task-graph.mjs';
16
16
  import 'rollup';
17
- import './types-cZAStWve.mjs';
17
+ import './types-7LQ1t5HR.mjs';
18
18
  import 'zod';
19
19
  import 'zod/mini';
20
20
  import '@nx/devkit';
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export { getExternalDependencies, getExtraDependencies, getInternalDependencies
14
14
  export { readNxConfig } from './utilities/read-nx-config.js';
15
15
  export { createTaskId, getAllWorkspaceTaskGraphs } from './utilities/task-graph.js';
16
16
  import 'rollup';
17
- import './types-cZAStWve.js';
17
+ import './types-7LQ1t5HR.js';
18
18
  import 'zod';
19
19
  import 'zod/mini';
20
20
  import '@nx/devkit';