@storm-software/workspace-tools 1.68.11 → 1.70.0

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.
@@ -0,0 +1,3 @@
1
+ import type { UnbuildBuildOptions } from "@storm-software/build-tools";
2
+
3
+ export type UnbuildExecutorSchema = UnbuildBuildOptions;
@@ -0,0 +1,122 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "unbuild",
4
+ "version": 2,
5
+ "title": "Unbuild Builder",
6
+ "description": "An executor used by Storm Software to run the Unbuild build process",
7
+ "type": "object",
8
+ "properties": {
9
+ "entry": {
10
+ "type": "string",
11
+ "description": "The path to the entry file, relative to project.",
12
+ "alias": "main",
13
+ "default": "{sourceRoot}/index.ts"
14
+ },
15
+ "outputPath": {
16
+ "type": "string",
17
+ "description": "The output path of the generated files.",
18
+ "x-completion-type": "directory",
19
+ "x-priority": "important",
20
+ "default": "dist/{projectRoot}"
21
+ },
22
+ "tsConfig": {
23
+ "type": "string",
24
+ "description": "The path to the `tsconfig.json` file.",
25
+ "x-completion-type": "file",
26
+ "x-completion-glob": "tsconfig*.json",
27
+ "x-priority": "important",
28
+ "default": "{projectRoot}/tsconfig.json"
29
+ },
30
+ "additionalEntryPoints": {
31
+ "type": "array",
32
+ "description": "List of additional entry points.",
33
+ "items": {
34
+ "type": "string"
35
+ },
36
+ "default": []
37
+ },
38
+ "watch": {
39
+ "type": "boolean",
40
+ "description": "Enable re-building when files change.",
41
+ "default": false
42
+ },
43
+ "assets": {
44
+ "type": "array",
45
+ "description": "List of static assets.",
46
+ "default": [],
47
+ "items": {
48
+ "$ref": "#/definitions/assetPattern"
49
+ }
50
+ },
51
+ "clean": {
52
+ "type": "boolean",
53
+ "description": "Remove previous output before build.",
54
+ "alias": "deleteOutputPath",
55
+ "default": true
56
+ },
57
+ "includeSrc": {
58
+ "type": "boolean",
59
+ "description": "Should the source files be added to the distribution folder in an `src` directory.",
60
+ "default": false
61
+ },
62
+ "debug": {
63
+ "type": "boolean",
64
+ "description": "Should output be unminified with source mappings.",
65
+ "default": false
66
+ },
67
+ "minify": {
68
+ "type": "boolean",
69
+ "description": "Should the build process minify the output files?",
70
+ "default": false
71
+ },
72
+ "verbose": {
73
+ "type": "boolean",
74
+ "description": "Should write extra log outputs with details from the executor.",
75
+ "default": false
76
+ },
77
+ "plugins": {
78
+ "type": "array",
79
+ "description": "List of Rollup plugins to use during processing",
80
+ "default": [],
81
+ "items": {
82
+ "type": "object"
83
+ }
84
+ }
85
+ },
86
+ "required": ["tsConfig"],
87
+ "definitions": {
88
+ "assetPattern": {
89
+ "oneOf": [
90
+ {
91
+ "type": "object",
92
+ "properties": {
93
+ "glob": {
94
+ "type": "string",
95
+ "description": "The pattern to match."
96
+ },
97
+ "input": {
98
+ "type": "string",
99
+ "description": "The input directory path in which to apply `glob`. Defaults to the project root."
100
+ },
101
+ "output": {
102
+ "type": "string",
103
+ "description": "Relative path within the output folder."
104
+ },
105
+ "ignore": {
106
+ "description": "An array of globs to ignore.",
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ }
111
+ }
112
+ },
113
+ "additionalProperties": false,
114
+ "required": ["glob", "input", "output"]
115
+ },
116
+ {
117
+ "type": "string"
118
+ }
119
+ ]
120
+ }
121
+ }
122
+ }
@@ -2950,6 +2950,55 @@ var require_lib2 = __commonJS({
2950
2950
  }
2951
2951
  });
2952
2952
 
2953
+ // node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
2954
+ var require_picocolors = __commonJS({
2955
+ "node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js"(exports2, module2) {
2956
+ var tty = require("tty");
2957
+ var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
2958
+ var formatter = (open, close, replace = open) => (input) => {
2959
+ let string = "" + input;
2960
+ let index = string.indexOf(close, open.length);
2961
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
2962
+ };
2963
+ var replaceClose = (string, close, replace, index) => {
2964
+ let start = string.substring(0, index) + replace;
2965
+ let end = string.substring(index + close.length);
2966
+ let nextIndex = end.indexOf(close);
2967
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
2968
+ };
2969
+ var createColors = (enabled = isColorSupported) => ({
2970
+ isColorSupported: enabled,
2971
+ reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
2972
+ bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
2973
+ dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
2974
+ italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
2975
+ underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
2976
+ inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
2977
+ hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
2978
+ strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
2979
+ black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
2980
+ red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
2981
+ green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
2982
+ yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
2983
+ blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
2984
+ magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
2985
+ cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
2986
+ white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
2987
+ gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
2988
+ bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
2989
+ bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
2990
+ bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
2991
+ bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
2992
+ bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
2993
+ bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
2994
+ bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
2995
+ bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
2996
+ });
2997
+ module2.exports = createColors();
2998
+ module2.exports.createColors = createColors;
2999
+ }
3000
+ });
3001
+
2953
3002
  // node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
2954
3003
  var require_color_name = __commonJS({
2955
3004
  "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports2, module2) {
@@ -4497,9 +4546,9 @@ var require_source = __commonJS({
4497
4546
  }
4498
4547
  });
4499
4548
 
4500
- // node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js
4549
+ // node_modules/.pnpm/@babel+highlight@7.24.2/node_modules/@babel/highlight/lib/index.js
4501
4550
  var require_lib3 = __commonJS({
4502
- "node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js"(exports2) {
4551
+ "node_modules/.pnpm/@babel+highlight@7.24.2/node_modules/@babel/highlight/lib/index.js"(exports2) {
4503
4552
  "use strict";
4504
4553
  Object.defineProperty(exports2, "__esModule", {
4505
4554
  value: true
@@ -4508,7 +4557,7 @@ var require_lib3 = __commonJS({
4508
4557
  exports2.shouldHighlight = shouldHighlight;
4509
4558
  var _jsTokens = require_js_tokens();
4510
4559
  var _helperValidatorIdentifier = require_lib2();
4511
- var _chalk = _interopRequireWildcard(require_source(), true);
4560
+ var _picocolors = _interopRequireWildcard(require_picocolors(), true);
4512
4561
  function _getRequireWildcardCache(e) {
4513
4562
  if ("function" != typeof WeakMap)
4514
4563
  return null;
@@ -4533,18 +4582,20 @@ var require_lib3 = __commonJS({
4533
4582
  }
4534
4583
  return n.default = e, t && t.set(e, n), n;
4535
4584
  }
4585
+ var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
4586
+ var compose = (f, g) => (v) => f(g(v));
4536
4587
  var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
4537
- function getDefs(chalk2) {
4588
+ function getDefs(colors2) {
4538
4589
  return {
4539
- keyword: chalk2.cyan,
4540
- capitalized: chalk2.yellow,
4541
- jsxIdentifier: chalk2.yellow,
4542
- punctuator: chalk2.yellow,
4543
- number: chalk2.magenta,
4544
- string: chalk2.green,
4545
- regex: chalk2.magenta,
4546
- comment: chalk2.grey,
4547
- invalid: chalk2.white.bgRed.bold
4590
+ keyword: colors2.cyan,
4591
+ capitalized: colors2.yellow,
4592
+ jsxIdentifier: colors2.yellow,
4593
+ punctuator: colors2.yellow,
4594
+ number: colors2.magenta,
4595
+ string: colors2.green,
4596
+ regex: colors2.magenta,
4597
+ comment: colors2.gray,
4598
+ invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold)
4548
4599
  };
4549
4600
  }
4550
4601
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -4599,37 +4650,49 @@ var require_lib3 = __commonJS({
4599
4650
  return highlighted;
4600
4651
  }
4601
4652
  function shouldHighlight(options) {
4602
- return _chalk.default.level > 0 || options.forceColor;
4653
+ return colors.isColorSupported || options.forceColor;
4603
4654
  }
4604
- var chalkWithForcedColor = void 0;
4605
- function getChalk2(forceColor) {
4655
+ var pcWithForcedColor = void 0;
4656
+ function getColors(forceColor) {
4606
4657
  if (forceColor) {
4607
- var _chalkWithForcedColor;
4608
- (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
4609
- enabled: true,
4610
- level: 1
4611
- });
4612
- return chalkWithForcedColor;
4658
+ var _pcWithForcedColor;
4659
+ (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
4660
+ return pcWithForcedColor;
4613
4661
  }
4614
- return _chalk.default;
4615
- }
4616
- {
4617
- exports2.getChalk = (options) => getChalk2(options.forceColor);
4662
+ return colors;
4618
4663
  }
4619
4664
  function highlight(code, options = {}) {
4620
4665
  if (code !== "" && shouldHighlight(options)) {
4621
- const defs = getDefs(getChalk2(options.forceColor));
4666
+ const defs = getDefs(getColors(options.forceColor));
4622
4667
  return highlightTokens(defs, code);
4623
4668
  } else {
4624
4669
  return code;
4625
4670
  }
4626
4671
  }
4672
+ {
4673
+ let chalk2, chalkWithForcedColor;
4674
+ exports2.getChalk = ({
4675
+ forceColor
4676
+ }) => {
4677
+ var _chalk;
4678
+ (_chalk = chalk2) != null ? _chalk : chalk2 = require_source();
4679
+ if (forceColor) {
4680
+ var _chalkWithForcedColor;
4681
+ (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk2.constructor({
4682
+ enabled: true,
4683
+ level: 1
4684
+ });
4685
+ return chalkWithForcedColor;
4686
+ }
4687
+ return chalk2;
4688
+ };
4689
+ }
4627
4690
  }
4628
4691
  });
4629
4692
 
4630
- // node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js
4693
+ // node_modules/.pnpm/@babel+code-frame@7.24.2/node_modules/@babel/code-frame/lib/index.js
4631
4694
  var require_lib4 = __commonJS({
4632
- "node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js"(exports2) {
4695
+ "node_modules/.pnpm/@babel+code-frame@7.24.2/node_modules/@babel/code-frame/lib/index.js"(exports2) {
4633
4696
  "use strict";
4634
4697
  Object.defineProperty(exports2, "__esModule", {
4635
4698
  value: true
@@ -4637,7 +4700,7 @@ var require_lib4 = __commonJS({
4637
4700
  exports2.codeFrameColumns = codeFrameColumns;
4638
4701
  exports2.default = _default;
4639
4702
  var _highlight = require_lib3();
4640
- var _chalk = _interopRequireWildcard(require_source(), true);
4703
+ var _picocolors = _interopRequireWildcard(require_picocolors(), true);
4641
4704
  function _getRequireWildcardCache(e) {
4642
4705
  if ("function" != typeof WeakMap)
4643
4706
  return null;
@@ -4662,24 +4725,23 @@ var require_lib4 = __commonJS({
4662
4725
  }
4663
4726
  return n.default = e, t && t.set(e, n), n;
4664
4727
  }
4665
- var chalkWithForcedColor = void 0;
4666
- function getChalk2(forceColor) {
4728
+ var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
4729
+ var compose = (f, g) => (v) => f(g(v));
4730
+ var pcWithForcedColor = void 0;
4731
+ function getColors(forceColor) {
4667
4732
  if (forceColor) {
4668
- var _chalkWithForcedColor;
4669
- (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
4670
- enabled: true,
4671
- level: 1
4672
- });
4673
- return chalkWithForcedColor;
4733
+ var _pcWithForcedColor;
4734
+ (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
4735
+ return pcWithForcedColor;
4674
4736
  }
4675
- return _chalk.default;
4737
+ return colors;
4676
4738
  }
4677
4739
  var deprecationWarningShown = false;
4678
- function getDefs(chalk2) {
4740
+ function getDefs(colors2) {
4679
4741
  return {
4680
- gutter: chalk2.grey,
4681
- marker: chalk2.red.bold,
4682
- message: chalk2.red.bold
4742
+ gutter: colors2.gray,
4743
+ marker: compose(colors2.red, colors2.bold),
4744
+ message: compose(colors2.red, colors2.bold)
4683
4745
  };
4684
4746
  }
4685
4747
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -4741,10 +4803,10 @@ var require_lib4 = __commonJS({
4741
4803
  }
4742
4804
  function codeFrameColumns(rawLines, loc, opts = {}) {
4743
4805
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
4744
- const chalk2 = getChalk2(opts.forceColor);
4745
- const defs = getDefs(chalk2);
4746
- const maybeHighlight = (chalkFn, string) => {
4747
- return highlighted ? chalkFn(string) : string;
4806
+ const colors2 = getColors(opts.forceColor);
4807
+ const defs = getDefs(colors2);
4808
+ const maybeHighlight = (fmt, string) => {
4809
+ return highlighted ? fmt(string) : string;
4748
4810
  };
4749
4811
  const lines = rawLines.split(NEWLINE);
4750
4812
  const {
@@ -4781,7 +4843,7 @@ var require_lib4 = __commonJS({
4781
4843
  ${frame}`;
4782
4844
  }
4783
4845
  if (highlighted) {
4784
- return chalk2.reset(frame);
4846
+ return colors2.reset(frame);
4785
4847
  } else {
4786
4848
  return frame;
4787
4849
  }
@@ -6778,6 +6778,55 @@ var require_lib2 = __commonJS({
6778
6778
  }
6779
6779
  });
6780
6780
 
6781
+ // node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
6782
+ var require_picocolors = __commonJS({
6783
+ "node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js"(exports2, module2) {
6784
+ var tty = require("tty");
6785
+ var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
6786
+ var formatter = (open, close, replace = open) => (input) => {
6787
+ let string = "" + input;
6788
+ let index = string.indexOf(close, open.length);
6789
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
6790
+ };
6791
+ var replaceClose = (string, close, replace, index) => {
6792
+ let start = string.substring(0, index) + replace;
6793
+ let end = string.substring(index + close.length);
6794
+ let nextIndex = end.indexOf(close);
6795
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
6796
+ };
6797
+ var createColors = (enabled = isColorSupported) => ({
6798
+ isColorSupported: enabled,
6799
+ reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
6800
+ bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
6801
+ dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
6802
+ italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
6803
+ underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
6804
+ inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
6805
+ hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
6806
+ strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
6807
+ black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
6808
+ red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
6809
+ green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
6810
+ yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
6811
+ blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
6812
+ magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
6813
+ cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
6814
+ white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
6815
+ gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
6816
+ bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
6817
+ bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
6818
+ bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
6819
+ bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
6820
+ bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
6821
+ bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
6822
+ bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
6823
+ bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
6824
+ });
6825
+ module2.exports = createColors();
6826
+ module2.exports.createColors = createColors;
6827
+ }
6828
+ });
6829
+
6781
6830
  // node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
6782
6831
  var require_color_name = __commonJS({
6783
6832
  "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports2, module2) {
@@ -8325,9 +8374,9 @@ var require_source = __commonJS({
8325
8374
  }
8326
8375
  });
8327
8376
 
8328
- // node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js
8377
+ // node_modules/.pnpm/@babel+highlight@7.24.2/node_modules/@babel/highlight/lib/index.js
8329
8378
  var require_lib3 = __commonJS({
8330
- "node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js"(exports2) {
8379
+ "node_modules/.pnpm/@babel+highlight@7.24.2/node_modules/@babel/highlight/lib/index.js"(exports2) {
8331
8380
  "use strict";
8332
8381
  Object.defineProperty(exports2, "__esModule", {
8333
8382
  value: true
@@ -8336,7 +8385,7 @@ var require_lib3 = __commonJS({
8336
8385
  exports2.shouldHighlight = shouldHighlight;
8337
8386
  var _jsTokens = require_js_tokens();
8338
8387
  var _helperValidatorIdentifier = require_lib2();
8339
- var _chalk = _interopRequireWildcard(require_source(), true);
8388
+ var _picocolors = _interopRequireWildcard(require_picocolors(), true);
8340
8389
  function _getRequireWildcardCache(e) {
8341
8390
  if ("function" != typeof WeakMap)
8342
8391
  return null;
@@ -8361,18 +8410,20 @@ var require_lib3 = __commonJS({
8361
8410
  }
8362
8411
  return n.default = e, t && t.set(e, n), n;
8363
8412
  }
8413
+ var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
8414
+ var compose = (f, g) => (v) => f(g(v));
8364
8415
  var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
8365
- function getDefs(chalk2) {
8416
+ function getDefs(colors2) {
8366
8417
  return {
8367
- keyword: chalk2.cyan,
8368
- capitalized: chalk2.yellow,
8369
- jsxIdentifier: chalk2.yellow,
8370
- punctuator: chalk2.yellow,
8371
- number: chalk2.magenta,
8372
- string: chalk2.green,
8373
- regex: chalk2.magenta,
8374
- comment: chalk2.grey,
8375
- invalid: chalk2.white.bgRed.bold
8418
+ keyword: colors2.cyan,
8419
+ capitalized: colors2.yellow,
8420
+ jsxIdentifier: colors2.yellow,
8421
+ punctuator: colors2.yellow,
8422
+ number: colors2.magenta,
8423
+ string: colors2.green,
8424
+ regex: colors2.magenta,
8425
+ comment: colors2.gray,
8426
+ invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold)
8376
8427
  };
8377
8428
  }
8378
8429
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -8427,37 +8478,49 @@ var require_lib3 = __commonJS({
8427
8478
  return highlighted;
8428
8479
  }
8429
8480
  function shouldHighlight(options) {
8430
- return _chalk.default.level > 0 || options.forceColor;
8481
+ return colors.isColorSupported || options.forceColor;
8431
8482
  }
8432
- var chalkWithForcedColor = void 0;
8433
- function getChalk2(forceColor) {
8483
+ var pcWithForcedColor = void 0;
8484
+ function getColors(forceColor) {
8434
8485
  if (forceColor) {
8435
- var _chalkWithForcedColor;
8436
- (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
8437
- enabled: true,
8438
- level: 1
8439
- });
8440
- return chalkWithForcedColor;
8486
+ var _pcWithForcedColor;
8487
+ (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
8488
+ return pcWithForcedColor;
8441
8489
  }
8442
- return _chalk.default;
8443
- }
8444
- {
8445
- exports2.getChalk = (options) => getChalk2(options.forceColor);
8490
+ return colors;
8446
8491
  }
8447
8492
  function highlight(code, options = {}) {
8448
8493
  if (code !== "" && shouldHighlight(options)) {
8449
- const defs = getDefs(getChalk2(options.forceColor));
8494
+ const defs = getDefs(getColors(options.forceColor));
8450
8495
  return highlightTokens(defs, code);
8451
8496
  } else {
8452
8497
  return code;
8453
8498
  }
8454
8499
  }
8500
+ {
8501
+ let chalk2, chalkWithForcedColor;
8502
+ exports2.getChalk = ({
8503
+ forceColor
8504
+ }) => {
8505
+ var _chalk;
8506
+ (_chalk = chalk2) != null ? _chalk : chalk2 = require_source();
8507
+ if (forceColor) {
8508
+ var _chalkWithForcedColor;
8509
+ (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk2.constructor({
8510
+ enabled: true,
8511
+ level: 1
8512
+ });
8513
+ return chalkWithForcedColor;
8514
+ }
8515
+ return chalk2;
8516
+ };
8517
+ }
8455
8518
  }
8456
8519
  });
8457
8520
 
8458
- // node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js
8521
+ // node_modules/.pnpm/@babel+code-frame@7.24.2/node_modules/@babel/code-frame/lib/index.js
8459
8522
  var require_lib4 = __commonJS({
8460
- "node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js"(exports2) {
8523
+ "node_modules/.pnpm/@babel+code-frame@7.24.2/node_modules/@babel/code-frame/lib/index.js"(exports2) {
8461
8524
  "use strict";
8462
8525
  Object.defineProperty(exports2, "__esModule", {
8463
8526
  value: true
@@ -8465,7 +8528,7 @@ var require_lib4 = __commonJS({
8465
8528
  exports2.codeFrameColumns = codeFrameColumns;
8466
8529
  exports2.default = _default;
8467
8530
  var _highlight = require_lib3();
8468
- var _chalk = _interopRequireWildcard(require_source(), true);
8531
+ var _picocolors = _interopRequireWildcard(require_picocolors(), true);
8469
8532
  function _getRequireWildcardCache(e) {
8470
8533
  if ("function" != typeof WeakMap)
8471
8534
  return null;
@@ -8490,24 +8553,23 @@ var require_lib4 = __commonJS({
8490
8553
  }
8491
8554
  return n.default = e, t && t.set(e, n), n;
8492
8555
  }
8493
- var chalkWithForcedColor = void 0;
8494
- function getChalk2(forceColor) {
8556
+ var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
8557
+ var compose = (f, g) => (v) => f(g(v));
8558
+ var pcWithForcedColor = void 0;
8559
+ function getColors(forceColor) {
8495
8560
  if (forceColor) {
8496
- var _chalkWithForcedColor;
8497
- (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
8498
- enabled: true,
8499
- level: 1
8500
- });
8501
- return chalkWithForcedColor;
8561
+ var _pcWithForcedColor;
8562
+ (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
8563
+ return pcWithForcedColor;
8502
8564
  }
8503
- return _chalk.default;
8565
+ return colors;
8504
8566
  }
8505
8567
  var deprecationWarningShown = false;
8506
- function getDefs(chalk2) {
8568
+ function getDefs(colors2) {
8507
8569
  return {
8508
- gutter: chalk2.grey,
8509
- marker: chalk2.red.bold,
8510
- message: chalk2.red.bold
8570
+ gutter: colors2.gray,
8571
+ marker: compose(colors2.red, colors2.bold),
8572
+ message: compose(colors2.red, colors2.bold)
8511
8573
  };
8512
8574
  }
8513
8575
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -8569,10 +8631,10 @@ var require_lib4 = __commonJS({
8569
8631
  }
8570
8632
  function codeFrameColumns(rawLines, loc, opts = {}) {
8571
8633
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
8572
- const chalk2 = getChalk2(opts.forceColor);
8573
- const defs = getDefs(chalk2);
8574
- const maybeHighlight = (chalkFn, string) => {
8575
- return highlighted ? chalkFn(string) : string;
8634
+ const colors2 = getColors(opts.forceColor);
8635
+ const defs = getDefs(colors2);
8636
+ const maybeHighlight = (fmt, string) => {
8637
+ return highlighted ? fmt(string) : string;
8576
8638
  };
8577
8639
  const lines = rawLines.split(NEWLINE);
8578
8640
  const {
@@ -8609,7 +8671,7 @@ var require_lib4 = __commonJS({
8609
8671
  ${frame}`;
8610
8672
  }
8611
8673
  if (highlighted) {
8612
- return chalk2.reset(frame);
8674
+ return colors2.reset(frame);
8613
8675
  } else {
8614
8676
  return frame;
8615
8677
  }