@shopify/create-app 3.86.0 → 3.87.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.
package/README.md CHANGED
@@ -57,7 +57,8 @@ Learn more in the docs: [Shopify CLI for Hydrogen storefronts](https://shopify.d
57
57
 
58
58
  If you encounter issues using the CLI or have feedback you'd like to share with us, below are some options:
59
59
 
60
- - [Open a GitHub issue](https://github.com/Shopify/cli/issues) - To report bugs or request new features, open an issue in the Shopify CLI repository
60
+ - [File a bug report](https://community.shopify.dev/c/shopify-cli-libraries/14) - To report bugs create a post in Shopify CLI and Libraries on the dev community
61
+ - [Ask a question or request a new feature](https://community.shopify.dev/c/dev-platform/32) - To ask a question or request a new feature create a post in Dev Platform on the dev community
61
62
  - [Shopify Community Forums](https://community.shopify.com/) - Visit our forums to connect with the community and learn more about Shopify CLI development
62
63
  - [CLI Documentation - Apps](https://shopify.dev/apps/tools/cli) - To view CLI documentation for app development
63
64
  - [CLI Documentation - Themes](https://shopify.dev/themes/tools/cli) - To view CLI documentation for theme development
@@ -4,7 +4,7 @@ import {
4
4
  require_lib,
5
5
  require_semver,
6
6
  require_source_map
7
- } from "./chunk-JXJ33RQ2.js";
7
+ } from "./chunk-V7OWCSFT.js";
8
8
  import {
9
9
  require_has_flag
10
10
  } from "./chunk-UMUTXITN.js";
@@ -20,6 +20,9 @@ import {
20
20
  import {
21
21
  require_graceful_fs
22
22
  } from "./chunk-6ONJEX7Y.js";
23
+ import {
24
+ require_out
25
+ } from "./chunk-CTFDRWUN.js";
23
26
  import {
24
27
  __commonJS,
25
28
  __esm,
@@ -19783,36 +19786,36 @@ var require_templates = __commonJS({
19783
19786
  }
19784
19787
  return results;
19785
19788
  }
19786
- function buildStyle(chalk2, styles6) {
19789
+ function buildStyle(chalk2, styles5) {
19787
19790
  let enabled = {};
19788
- for (let layer of styles6)
19791
+ for (let layer of styles5)
19789
19792
  for (let style of layer.styles)
19790
19793
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
19791
19794
  let current = chalk2;
19792
- for (let [styleName, styles7] of Object.entries(enabled))
19793
- if (Array.isArray(styles7)) {
19795
+ for (let [styleName, styles6] of Object.entries(enabled))
19796
+ if (Array.isArray(styles6)) {
19794
19797
  if (!(styleName in current))
19795
19798
  throw new Error(`Unknown Chalk style: ${styleName}`);
19796
- current = styles7.length > 0 ? current[styleName](...styles7) : current[styleName];
19799
+ current = styles6.length > 0 ? current[styleName](...styles6) : current[styleName];
19797
19800
  }
19798
19801
  return current;
19799
19802
  }
19800
19803
  module.exports = (chalk2, temporary) => {
19801
- let styles6 = [], chunks = [], chunk = [];
19804
+ let styles5 = [], chunks = [], chunk = [];
19802
19805
  if (temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
19803
19806
  if (escapeCharacter)
19804
19807
  chunk.push(unescape3(escapeCharacter));
19805
19808
  else if (style) {
19806
19809
  let string = chunk.join("");
19807
- chunk = [], chunks.push(styles6.length === 0 ? string : buildStyle(chalk2, styles6)(string)), styles6.push({ inverse, styles: parseStyle(style) });
19810
+ chunk = [], chunks.push(styles5.length === 0 ? string : buildStyle(chalk2, styles5)(string)), styles5.push({ inverse, styles: parseStyle(style) });
19808
19811
  } else if (close) {
19809
- if (styles6.length === 0)
19812
+ if (styles5.length === 0)
19810
19813
  throw new Error("Found extraneous } in Chalk template literal");
19811
- chunks.push(buildStyle(chalk2, styles6)(chunk.join(""))), chunk = [], styles6.pop();
19814
+ chunks.push(buildStyle(chalk2, styles5)(chunk.join(""))), chunk = [], styles5.pop();
19812
19815
  } else
19813
19816
  chunk.push(character);
19814
- }), chunks.push(chunk.join("")), styles6.length > 0) {
19815
- let errMessage = `Chalk template literal is missing ${styles6.length} closing bracket${styles6.length === 1 ? "" : "s"} (\`}\`)`;
19817
+ }), chunks.push(chunk.join("")), styles5.length > 0) {
19818
+ let errMessage = `Chalk template literal is missing ${styles5.length} closing bracket${styles5.length === 1 ? "" : "s"} (\`}\`)`;
19816
19819
  throw new Error(errMessage);
19817
19820
  }
19818
19821
  return chunks.join("");
@@ -19825,7 +19828,7 @@ var require_source = __commonJS({
19825
19828
  "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
19826
19829
  "use strict";
19827
19830
  init_cjs_shims();
19828
- var ansiStyles4 = require_ansi_styles(), { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color(), {
19831
+ var ansiStyles3 = require_ansi_styles(), { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color(), {
19829
19832
  stringReplaceAll: stringReplaceAll2,
19830
19833
  stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
19831
19834
  } = require_util(), { isArray } = Array, levelMapping2 = [
@@ -19833,7 +19836,7 @@ var require_source = __commonJS({
19833
19836
  "ansi",
19834
19837
  "ansi256",
19835
19838
  "ansi16m"
19836
- ], styles6 = /* @__PURE__ */ Object.create(null), applyOptions2 = (object, options = {}) => {
19839
+ ], styles5 = /* @__PURE__ */ Object.create(null), applyOptions2 = (object, options = {}) => {
19837
19840
  if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3))
19838
19841
  throw new Error("The `level` option should be an integer from 0 to 3");
19839
19842
  let colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
@@ -19851,14 +19854,14 @@ var require_source = __commonJS({
19851
19854
  function Chalk(options) {
19852
19855
  return chalkFactory2(options);
19853
19856
  }
19854
- for (let [styleName, style] of Object.entries(ansiStyles4))
19855
- styles6[styleName] = {
19857
+ for (let [styleName, style] of Object.entries(ansiStyles3))
19858
+ styles5[styleName] = {
19856
19859
  get() {
19857
19860
  let builder = createBuilder2(this, createStyler2(style.open, style.close, this._styler), this._isEmpty);
19858
19861
  return Object.defineProperty(this, styleName, { value: builder }), builder;
19859
19862
  }
19860
19863
  };
19861
- styles6.visible = {
19864
+ styles5.visible = {
19862
19865
  get() {
19863
19866
  let builder = createBuilder2(this, this._styler, !0);
19864
19867
  return Object.defineProperty(this, "visible", { value: builder }), builder;
@@ -19866,22 +19869,22 @@ var require_source = __commonJS({
19866
19869
  };
19867
19870
  var usedModels2 = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
19868
19871
  for (let model of usedModels2)
19869
- styles6[model] = {
19872
+ styles5[model] = {
19870
19873
  get() {
19871
19874
  let { level } = this;
19872
19875
  return function(...arguments_) {
19873
- let styler = createStyler2(ansiStyles4.color[levelMapping2[level]][model](...arguments_), ansiStyles4.color.close, this._styler);
19876
+ let styler = createStyler2(ansiStyles3.color[levelMapping2[level]][model](...arguments_), ansiStyles3.color.close, this._styler);
19874
19877
  return createBuilder2(this, styler, this._isEmpty);
19875
19878
  };
19876
19879
  }
19877
19880
  };
19878
19881
  for (let model of usedModels2) {
19879
19882
  let bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
19880
- styles6[bgModel] = {
19883
+ styles5[bgModel] = {
19881
19884
  get() {
19882
19885
  let { level } = this;
19883
19886
  return function(...arguments_) {
19884
- let styler = createStyler2(ansiStyles4.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles4.bgColor.close, this._styler);
19887
+ let styler = createStyler2(ansiStyles3.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles3.bgColor.close, this._styler);
19885
19888
  return createBuilder2(this, styler, this._isEmpty);
19886
19889
  };
19887
19890
  }
@@ -19889,7 +19892,7 @@ var require_source = __commonJS({
19889
19892
  }
19890
19893
  var proto2 = Object.defineProperties(() => {
19891
19894
  }, {
19892
- ...styles6,
19895
+ ...styles5,
19893
19896
  level: {
19894
19897
  enumerable: !0,
19895
19898
  get() {
@@ -19936,7 +19939,7 @@ var require_source = __commonJS({
19936
19939
  );
19937
19940
  return template === void 0 && (template = require_templates()), template(chalk3, parts.join(""));
19938
19941
  };
19939
- Object.defineProperties(Chalk.prototype, styles6);
19942
+ Object.defineProperties(Chalk.prototype, styles5);
19940
19943
  var chalk2 = Chalk();
19941
19944
  chalk2.supportsColor = stdoutColor2;
19942
19945
  chalk2.stderr = Chalk({ level: stderrColor2 ? stderrColor2.level : 0 });
@@ -23385,7 +23388,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
23385
23388
  try {
23386
23389
  await getAndSet();
23387
23390
  } catch (error) {
23388
- let { sendErrorToBugsnag } = await import("./error-handler-A4ESBROE.js");
23391
+ let { sendErrorToBugsnag } = await import("./error-handler-OMN5NZFN.js");
23389
23392
  await sendErrorToBugsnag(error, "unexpected_error");
23390
23393
  }
23391
23394
  }, durationStack = [];
@@ -24464,13 +24467,10 @@ init_cjs_shims();
24464
24467
  // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
24465
24468
  init_cjs_shims();
24466
24469
 
24467
- // ../../node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
24470
+ // ../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
24468
24471
  init_cjs_shims();
24469
24472
  function ansiRegex({ onlyFirst = !1 } = {}) {
24470
- let pattern = [
24471
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))",
24472
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
24473
- ].join("|");
24473
+ let pattern = "(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
24474
24474
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
24475
24475
  }
24476
24476
 
@@ -24541,7 +24541,7 @@ init_cjs_shims();
24541
24541
  // ../../node_modules/.pnpm/wrap-ansi@8.1.0/node_modules/wrap-ansi/index.js
24542
24542
  init_cjs_shims();
24543
24543
 
24544
- // ../../node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
24544
+ // ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
24545
24545
  init_cjs_shims();
24546
24546
  var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles = {
24547
24547
  modifier: {
@@ -24621,11 +24621,13 @@ function assembleStyles() {
24621
24621
  enumerable: !1
24622
24622
  }), styles.color.close = "\x1B[39m", styles.bgColor.close = "\x1B[49m", styles.color.ansi = wrapAnsi16(), styles.color.ansi256 = wrapAnsi256(), styles.color.ansi16m = wrapAnsi16m(), styles.bgColor.ansi = wrapAnsi16(10), styles.bgColor.ansi256 = wrapAnsi256(10), styles.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles, {
24623
24623
  rgbToAnsi256: {
24624
- value: (red, green, blue) => red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5),
24624
+ value(red, green, blue) {
24625
+ return red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
24626
+ },
24625
24627
  enumerable: !1
24626
24628
  },
24627
24629
  hexToRgb: {
24628
- value: (hex) => {
24630
+ value(hex) {
24629
24631
  let matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
24630
24632
  if (!matches)
24631
24633
  return [0, 0, 0];
@@ -24647,7 +24649,7 @@ function assembleStyles() {
24647
24649
  enumerable: !1
24648
24650
  },
24649
24651
  ansi256ToAnsi: {
24650
- value: (code) => {
24652
+ value(code) {
24651
24653
  if (code < 8)
24652
24654
  return 30 + code;
24653
24655
  if (code < 16)
@@ -24777,147 +24779,6 @@ function isFullwidthCodePoint(codePoint) {
24777
24779
  131072 <= codePoint && codePoint <= 262141) : !1;
24778
24780
  }
24779
24781
 
24780
- // ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
24781
- init_cjs_shims();
24782
- var wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles2 = {
24783
- modifier: {
24784
- reset: [0, 0],
24785
- // 21 isn't widely supported and 22 does the same thing
24786
- bold: [1, 22],
24787
- dim: [2, 22],
24788
- italic: [3, 23],
24789
- underline: [4, 24],
24790
- overline: [53, 55],
24791
- inverse: [7, 27],
24792
- hidden: [8, 28],
24793
- strikethrough: [9, 29]
24794
- },
24795
- color: {
24796
- black: [30, 39],
24797
- red: [31, 39],
24798
- green: [32, 39],
24799
- yellow: [33, 39],
24800
- blue: [34, 39],
24801
- magenta: [35, 39],
24802
- cyan: [36, 39],
24803
- white: [37, 39],
24804
- // Bright color
24805
- blackBright: [90, 39],
24806
- gray: [90, 39],
24807
- // Alias of `blackBright`
24808
- grey: [90, 39],
24809
- // Alias of `blackBright`
24810
- redBright: [91, 39],
24811
- greenBright: [92, 39],
24812
- yellowBright: [93, 39],
24813
- blueBright: [94, 39],
24814
- magentaBright: [95, 39],
24815
- cyanBright: [96, 39],
24816
- whiteBright: [97, 39]
24817
- },
24818
- bgColor: {
24819
- bgBlack: [40, 49],
24820
- bgRed: [41, 49],
24821
- bgGreen: [42, 49],
24822
- bgYellow: [43, 49],
24823
- bgBlue: [44, 49],
24824
- bgMagenta: [45, 49],
24825
- bgCyan: [46, 49],
24826
- bgWhite: [47, 49],
24827
- // Bright color
24828
- bgBlackBright: [100, 49],
24829
- bgGray: [100, 49],
24830
- // Alias of `bgBlackBright`
24831
- bgGrey: [100, 49],
24832
- // Alias of `bgBlackBright`
24833
- bgRedBright: [101, 49],
24834
- bgGreenBright: [102, 49],
24835
- bgYellowBright: [103, 49],
24836
- bgBlueBright: [104, 49],
24837
- bgMagentaBright: [105, 49],
24838
- bgCyanBright: [106, 49],
24839
- bgWhiteBright: [107, 49]
24840
- }
24841
- }, modifierNames2 = Object.keys(styles2.modifier), foregroundColorNames2 = Object.keys(styles2.color), backgroundColorNames2 = Object.keys(styles2.bgColor), colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
24842
- function assembleStyles2() {
24843
- let codes = /* @__PURE__ */ new Map();
24844
- for (let [groupName, group] of Object.entries(styles2)) {
24845
- for (let [styleName, style] of Object.entries(group))
24846
- styles2[styleName] = {
24847
- open: `\x1B[${style[0]}m`,
24848
- close: `\x1B[${style[1]}m`
24849
- }, group[styleName] = styles2[styleName], codes.set(style[0], style[1]);
24850
- Object.defineProperty(styles2, groupName, {
24851
- value: group,
24852
- enumerable: !1
24853
- });
24854
- }
24855
- return Object.defineProperty(styles2, "codes", {
24856
- value: codes,
24857
- enumerable: !1
24858
- }), styles2.color.close = "\x1B[39m", styles2.bgColor.close = "\x1B[49m", styles2.color.ansi = wrapAnsi162(), styles2.color.ansi256 = wrapAnsi2562(), styles2.color.ansi16m = wrapAnsi16m2(), styles2.bgColor.ansi = wrapAnsi162(10), styles2.bgColor.ansi256 = wrapAnsi2562(10), styles2.bgColor.ansi16m = wrapAnsi16m2(10), Object.defineProperties(styles2, {
24859
- rgbToAnsi256: {
24860
- value(red, green, blue) {
24861
- return red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
24862
- },
24863
- enumerable: !1
24864
- },
24865
- hexToRgb: {
24866
- value(hex) {
24867
- let matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
24868
- if (!matches)
24869
- return [0, 0, 0];
24870
- let [colorString] = matches;
24871
- colorString.length === 3 && (colorString = [...colorString].map((character) => character + character).join(""));
24872
- let integer = Number.parseInt(colorString, 16);
24873
- return [
24874
- /* eslint-disable no-bitwise */
24875
- integer >> 16 & 255,
24876
- integer >> 8 & 255,
24877
- integer & 255
24878
- /* eslint-enable no-bitwise */
24879
- ];
24880
- },
24881
- enumerable: !1
24882
- },
24883
- hexToAnsi256: {
24884
- value: (hex) => styles2.rgbToAnsi256(...styles2.hexToRgb(hex)),
24885
- enumerable: !1
24886
- },
24887
- ansi256ToAnsi: {
24888
- value(code) {
24889
- if (code < 8)
24890
- return 30 + code;
24891
- if (code < 16)
24892
- return 90 + (code - 8);
24893
- let red, green, blue;
24894
- if (code >= 232)
24895
- red = ((code - 232) * 10 + 8) / 255, green = red, blue = red;
24896
- else {
24897
- code -= 16;
24898
- let remainder = code % 36;
24899
- red = Math.floor(code / 36) / 5, green = Math.floor(remainder / 6) / 5, blue = remainder % 6 / 5;
24900
- }
24901
- let value = Math.max(red, green, blue) * 2;
24902
- if (value === 0)
24903
- return 30;
24904
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
24905
- return value === 2 && (result += 60), result;
24906
- },
24907
- enumerable: !1
24908
- },
24909
- rgbToAnsi: {
24910
- value: (red, green, blue) => styles2.ansi256ToAnsi(styles2.rgbToAnsi256(red, green, blue)),
24911
- enumerable: !1
24912
- },
24913
- hexToAnsi: {
24914
- value: (hex) => styles2.ansi256ToAnsi(styles2.hexToAnsi256(hex)),
24915
- enumerable: !1
24916
- }
24917
- }), styles2;
24918
- }
24919
- var ansiStyles2 = assembleStyles2(), ansi_styles_default2 = ansiStyles2;
24920
-
24921
24782
  // ../../node_modules/.pnpm/slice-ansi@5.0.0/node_modules/slice-ansi/index.js
24922
24783
  var astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/, ESCAPES2 = [
24923
24784
  "\x1B",
@@ -24928,7 +24789,7 @@ var astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/, ESCAPES2 = [
24928
24789
  for (let ansiCode of ansiCodes) {
24929
24790
  let ansiCodeOrigin = ansiCode;
24930
24791
  ansiCode.includes(";") && (ansiCode = ansiCode.split(";")[0][0] + "0");
24931
- let item = ansi_styles_default2.codes.get(Number.parseInt(ansiCode, 10));
24792
+ let item = ansi_styles_default.codes.get(Number.parseInt(ansiCode, 10));
24932
24793
  if (item) {
24933
24794
  let indexEscape = ansiCodes.indexOf(item.toString());
24934
24795
  indexEscape === -1 ? output2.push(wrapAnsi2(isEscapes ? item : ansiCodeOrigin)) : ansiCodes.splice(indexEscape, 1);
@@ -24939,7 +24800,7 @@ var astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/, ESCAPES2 = [
24939
24800
  output2.push(wrapAnsi2(ansiCodeOrigin));
24940
24801
  }
24941
24802
  if (isEscapes && (output2 = output2.filter((element, index) => output2.indexOf(element) === index), endAnsiCode !== void 0)) {
24942
- let fistEscapeCode = wrapAnsi2(ansi_styles_default2.codes.get(Number.parseInt(endAnsiCode, 10)));
24803
+ let fistEscapeCode = wrapAnsi2(ansi_styles_default.codes.get(Number.parseInt(endAnsiCode, 10)));
24943
24804
  output2 = output2.reduce((current, next) => next === fistEscapeCode ? [next, ...current] : [...current, next], []);
24944
24805
  }
24945
24806
  return output2.join("");
@@ -25125,9 +24986,9 @@ var applyPositionStyles = (node, style) => {
25125
24986
  }
25126
24987
  }, applyGapStyles = (node, style) => {
25127
24988
  "gap" in style && node.setGap(Yoga.GUTTER_ALL, style.gap ?? 0), "columnGap" in style && node.setGap(Yoga.GUTTER_COLUMN, style.columnGap ?? 0), "rowGap" in style && node.setGap(Yoga.GUTTER_ROW, style.rowGap ?? 0);
25128
- }, styles3 = (node, style = {}) => {
24989
+ }, styles2 = (node, style = {}) => {
25129
24990
  applyPositionStyles(node, style), applyMarginStyles(node, style), applyPaddingStyles(node, style), applyFlexStyles(node, style), applyDimensionStyles(node, style), applyDisplayStyles(node, style), applyBorderStyles(node, style), applyGapStyles(node, style);
25130
- }, styles_default = styles3;
24991
+ }, styles_default = styles2;
25131
24992
 
25132
24993
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/reconciler.js
25133
24994
  if (process4.env.DEV === "true")
@@ -25328,7 +25189,7 @@ init_cjs_shims();
25328
25189
 
25329
25190
  // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
25330
25191
  init_cjs_shims();
25331
- var wrapAnsi163 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2563 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m3 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles4 = {
25192
+ var wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles3 = {
25332
25193
  modifier: {
25333
25194
  reset: [0, 0],
25334
25195
  // 21 isn't widely supported and 22 does the same thing
@@ -25387,24 +25248,24 @@ var wrapAnsi163 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi25
25387
25248
  bgCyanBright: [106, 49],
25388
25249
  bgWhiteBright: [107, 49]
25389
25250
  }
25390
- }, modifierNames3 = Object.keys(styles4.modifier), foregroundColorNames3 = Object.keys(styles4.color), backgroundColorNames3 = Object.keys(styles4.bgColor), colorNames3 = [...foregroundColorNames3, ...backgroundColorNames3];
25391
- function assembleStyles3() {
25251
+ }, modifierNames2 = Object.keys(styles3.modifier), foregroundColorNames2 = Object.keys(styles3.color), backgroundColorNames2 = Object.keys(styles3.bgColor), colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
25252
+ function assembleStyles2() {
25392
25253
  let codes = /* @__PURE__ */ new Map();
25393
- for (let [groupName, group] of Object.entries(styles4)) {
25254
+ for (let [groupName, group] of Object.entries(styles3)) {
25394
25255
  for (let [styleName, style] of Object.entries(group))
25395
- styles4[styleName] = {
25256
+ styles3[styleName] = {
25396
25257
  open: `\x1B[${style[0]}m`,
25397
25258
  close: `\x1B[${style[1]}m`
25398
- }, group[styleName] = styles4[styleName], codes.set(style[0], style[1]);
25399
- Object.defineProperty(styles4, groupName, {
25259
+ }, group[styleName] = styles3[styleName], codes.set(style[0], style[1]);
25260
+ Object.defineProperty(styles3, groupName, {
25400
25261
  value: group,
25401
25262
  enumerable: !1
25402
25263
  });
25403
25264
  }
25404
- return Object.defineProperty(styles4, "codes", {
25265
+ return Object.defineProperty(styles3, "codes", {
25405
25266
  value: codes,
25406
25267
  enumerable: !1
25407
- }), styles4.color.close = "\x1B[39m", styles4.bgColor.close = "\x1B[49m", styles4.color.ansi = wrapAnsi163(), styles4.color.ansi256 = wrapAnsi2563(), styles4.color.ansi16m = wrapAnsi16m3(), styles4.bgColor.ansi = wrapAnsi163(10), styles4.bgColor.ansi256 = wrapAnsi2563(10), styles4.bgColor.ansi16m = wrapAnsi16m3(10), Object.defineProperties(styles4, {
25268
+ }), styles3.color.close = "\x1B[39m", styles3.bgColor.close = "\x1B[49m", styles3.color.ansi = wrapAnsi162(), styles3.color.ansi256 = wrapAnsi2562(), styles3.color.ansi16m = wrapAnsi16m2(), styles3.bgColor.ansi = wrapAnsi162(10), styles3.bgColor.ansi256 = wrapAnsi2562(10), styles3.bgColor.ansi16m = wrapAnsi16m2(10), Object.defineProperties(styles3, {
25408
25269
  rgbToAnsi256: {
25409
25270
  value(red, green, blue) {
25410
25271
  return red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
@@ -25430,7 +25291,7 @@ function assembleStyles3() {
25430
25291
  enumerable: !1
25431
25292
  },
25432
25293
  hexToAnsi256: {
25433
- value: (hex) => styles4.rgbToAnsi256(...styles4.hexToRgb(hex)),
25294
+ value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
25434
25295
  enumerable: !1
25435
25296
  },
25436
25297
  ansi256ToAnsi: {
@@ -25456,16 +25317,16 @@ function assembleStyles3() {
25456
25317
  enumerable: !1
25457
25318
  },
25458
25319
  rgbToAnsi: {
25459
- value: (red, green, blue) => styles4.ansi256ToAnsi(styles4.rgbToAnsi256(red, green, blue)),
25320
+ value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
25460
25321
  enumerable: !1
25461
25322
  },
25462
25323
  hexToAnsi: {
25463
- value: (hex) => styles4.ansi256ToAnsi(styles4.hexToAnsi256(hex)),
25324
+ value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
25464
25325
  enumerable: !1
25465
25326
  }
25466
- }), styles4;
25327
+ }), styles3;
25467
25328
  }
25468
- var ansiStyles3 = assembleStyles3(), ansi_styles_default3 = ansiStyles3;
25329
+ var ansiStyles2 = assembleStyles2(), ansi_styles_default2 = ansiStyles2;
25469
25330
 
25470
25331
  // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
25471
25332
  init_cjs_shims();
@@ -25572,7 +25433,7 @@ var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default, GENER
25572
25433
  "ansi",
25573
25434
  "ansi256",
25574
25435
  "ansi16m"
25575
- ], styles5 = /* @__PURE__ */ Object.create(null), applyOptions = (object, options = {}) => {
25436
+ ], styles4 = /* @__PURE__ */ Object.create(null), applyOptions = (object, options = {}) => {
25576
25437
  if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3))
25577
25438
  throw new Error("The `level` option should be an integer from 0 to 3");
25578
25439
  let colorLevel = stdoutColor ? stdoutColor.level : 0;
@@ -25586,36 +25447,36 @@ function createChalk(options) {
25586
25447
  return chalkFactory(options);
25587
25448
  }
25588
25449
  Object.setPrototypeOf(createChalk.prototype, Function.prototype);
25589
- for (let [styleName, style] of Object.entries(ansi_styles_default3))
25590
- styles5[styleName] = {
25450
+ for (let [styleName, style] of Object.entries(ansi_styles_default2))
25451
+ styles4[styleName] = {
25591
25452
  get() {
25592
25453
  let builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
25593
25454
  return Object.defineProperty(this, styleName, { value: builder }), builder;
25594
25455
  }
25595
25456
  };
25596
- styles5.visible = {
25457
+ styles4.visible = {
25597
25458
  get() {
25598
25459
  let builder = createBuilder(this, this[STYLER], !0);
25599
25460
  return Object.defineProperty(this, "visible", { value: builder }), builder;
25600
25461
  }
25601
25462
  };
25602
- var getModelAnsi = (model, level, type, ...arguments_) => model === "rgb" ? level === "ansi16m" ? ansi_styles_default3[type].ansi16m(...arguments_) : level === "ansi256" ? ansi_styles_default3[type].ansi256(ansi_styles_default3.rgbToAnsi256(...arguments_)) : ansi_styles_default3[type].ansi(ansi_styles_default3.rgbToAnsi(...arguments_)) : model === "hex" ? getModelAnsi("rgb", level, type, ...ansi_styles_default3.hexToRgb(...arguments_)) : ansi_styles_default3[type][model](...arguments_), usedModels = ["rgb", "hex", "ansi256"];
25463
+ var getModelAnsi = (model, level, type, ...arguments_) => model === "rgb" ? level === "ansi16m" ? ansi_styles_default2[type].ansi16m(...arguments_) : level === "ansi256" ? ansi_styles_default2[type].ansi256(ansi_styles_default2.rgbToAnsi256(...arguments_)) : ansi_styles_default2[type].ansi(ansi_styles_default2.rgbToAnsi(...arguments_)) : model === "hex" ? getModelAnsi("rgb", level, type, ...ansi_styles_default2.hexToRgb(...arguments_)) : ansi_styles_default2[type][model](...arguments_), usedModels = ["rgb", "hex", "ansi256"];
25603
25464
  for (let model of usedModels) {
25604
- styles5[model] = {
25465
+ styles4[model] = {
25605
25466
  get() {
25606
25467
  let { level } = this;
25607
25468
  return function(...arguments_) {
25608
- let styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default3.color.close, this[STYLER]);
25469
+ let styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default2.color.close, this[STYLER]);
25609
25470
  return createBuilder(this, styler, this[IS_EMPTY]);
25610
25471
  };
25611
25472
  }
25612
25473
  };
25613
25474
  let bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
25614
- styles5[bgModel] = {
25475
+ styles4[bgModel] = {
25615
25476
  get() {
25616
25477
  let { level } = this;
25617
25478
  return function(...arguments_) {
25618
- let styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default3.bgColor.close, this[STYLER]);
25479
+ let styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default2.bgColor.close, this[STYLER]);
25619
25480
  return createBuilder(this, styler, this[IS_EMPTY]);
25620
25481
  };
25621
25482
  }
@@ -25623,7 +25484,7 @@ for (let model of usedModels) {
25623
25484
  }
25624
25485
  var proto = Object.defineProperties(() => {
25625
25486
  }, {
25626
- ...styles5,
25487
+ ...styles4,
25627
25488
  level: {
25628
25489
  enumerable: !0,
25629
25490
  get() {
@@ -25659,7 +25520,7 @@ var proto = Object.defineProperties(() => {
25659
25520
  `);
25660
25521
  return lfIndex !== -1 && (string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex)), openAll + string + closeAll;
25661
25522
  };
25662
- Object.defineProperties(createChalk.prototype, styles5);
25523
+ Object.defineProperties(createChalk.prototype, styles4);
25663
25524
  var chalk = createChalk(), chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
25664
25525
  var source_default = chalk;
25665
25526
 
@@ -29144,7 +29005,7 @@ init_cjs_shims();
29144
29005
 
29145
29006
  // ../cli-kit/dist/public/common/function.js
29146
29007
  init_cjs_shims();
29147
- var import_memoize = __toESM(require_memoize()), import_debounce = __toESM(require_debounce()), import_throttle2 = __toESM(require_throttle());
29008
+ var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1), import_throttle2 = __toESM(require_throttle(), 1);
29148
29009
  function debounce(func, wait, options) {
29149
29010
  return (0, import_debounce.default)(func, wait, options);
29150
29011
  }
@@ -32013,6 +31874,7 @@ minimatch.escape = escape2;
32013
31874
  minimatch.unescape = unescape2;
32014
31875
 
32015
31876
  // ../cli-kit/dist/public/node/fs.js
31877
+ var import_fast_glob = __toESM(require_out(), 1);
32016
31878
  import { mkdirSync as fsMkdirSync, readFileSync as fsReadFileSync, writeFileSync as fsWriteFileSync, appendFileSync as fsAppendFileSync, statSync as fsStatSync, createReadStream as fsCreateReadStream, createWriteStream as fsCreateWriteStream, constants as fsConstants, existsSync as fsFileExistsSync, unlinkSync as fsUnlinkSync, accessSync, statSync } from "fs";
32017
31879
  import { mkdir as fsMkdir, writeFile as fsWriteFile, readFile as fsReadFile, realpath as fsRealPath, appendFile as fsAppendFile, mkdtemp as fsMkdtemp, stat as fsStat, lstat as fsLstat, chmod as fsChmod, access as fsAccess, rename as fsRename, unlink as fsUnlink, readdir as fsReaddir } from "fs/promises";
32018
31880
  async function inTemporaryDirectory(callback) {
@@ -32059,12 +31921,15 @@ function removeFileSync(path8) {
32059
31921
  outputDebug(outputContent`Sync-removing file at ${outputToken.path(path8)}...`), removeSync(path8);
32060
31922
  }
32061
31923
  async function rmdir(path8, options = {}) {
32062
- let { default: del } = await import("./del-M36IQP37.js");
31924
+ let { default: del } = await import("./del-OKZSX2EU.js");
32063
31925
  outputDebug(outputContent`Removing directory at ${outputToken.path(path8)}...`), await del(path8, { force: options.force });
32064
31926
  }
32065
31927
  async function isDirectory(path8) {
32066
31928
  return outputDebug(outputContent`Checking if ${outputToken.path(path8)} is a directory...`), (await fsLstat(path8)).isDirectory();
32067
31929
  }
31930
+ function isDirectorySync(path8) {
31931
+ return outputDebug(outputContent`Checking if ${outputToken.path(path8)} is a directory...`), fsStatSync(path8).isDirectory();
31932
+ }
32068
31933
  async function fileSize(path8) {
32069
31934
  return outputDebug(outputContent`Getting the size of file file at ${outputToken.path(path8)}...`), (await fsStat(path8)).size;
32070
31935
  }
@@ -32137,6 +32002,10 @@ async function glob(pattern, options) {
32137
32002
  let { default: fastGlob } = await import("./out-NKJPLKLB.js"), overridenOptions = options;
32138
32003
  return options?.dot == null && (overridenOptions = { ...options, dot: !0 }), fastGlob(pattern, overridenOptions);
32139
32004
  }
32005
+ function globSync(pattern, options) {
32006
+ let overridenOptions = options;
32007
+ return options?.dot == null && (overridenOptions = { ...options, dot: !0 }), import_fast_glob.default.sync(pattern, overridenOptions);
32008
+ }
32140
32009
  async function findPathUp(matcher, options) {
32141
32010
  let got = await findUp(matcher, options);
32142
32011
  return got ? normalizePath(got) : void 0;
@@ -32338,6 +32207,7 @@ export {
32338
32207
  removeFileSync,
32339
32208
  rmdir,
32340
32209
  isDirectory,
32210
+ isDirectorySync,
32341
32211
  fileSize,
32342
32212
  unlinkFile,
32343
32213
  createFileReadStream,
@@ -32352,6 +32222,7 @@ export {
32352
32222
  fileExistsSync,
32353
32223
  generateRandomNameForSubdirectory,
32354
32224
  glob,
32225
+ globSync,
32355
32226
  findPathUp,
32356
32227
  matchGlob,
32357
32228
  readdir,
@@ -32562,4 +32433,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
32562
32433
  * LICENSE file in the root directory of this source tree.
32563
32434
  *)
32564
32435
  */
32565
- //# sourceMappingURL=chunk-24C6AXHU.js.map
32436
+ //# sourceMappingURL=chunk-HBFPX5N4.js.map
@@ -20,10 +20,10 @@ import {
20
20
  runWithTimer,
21
21
  unixFileIsOwnedByCurrentUser,
22
22
  writeFile
23
- } from "./chunk-24C6AXHU.js";
23
+ } from "./chunk-HBFPX5N4.js";
24
24
  import {
25
25
  require_semver
26
- } from "./chunk-JXJ33RQ2.js";
26
+ } from "./chunk-V7OWCSFT.js";
27
27
  import {
28
28
  dirname,
29
29
  joinPath
@@ -9927,6 +9927,18 @@ async function runWithRateLimit(options, config = cliKitStore()) {
9927
9927
  return config.set("cache", cache), !0;
9928
9928
  }
9929
9929
 
9930
+ // ../cli-kit/dist/public/common/json.js
9931
+ init_cjs_shims();
9932
+ function parseJSON(jsonString, context) {
9933
+ try {
9934
+ return JSON.parse(jsonString);
9935
+ } catch (error) {
9936
+ let errorMessage = error instanceof Error ? error.message : String(error), contextMessage = context ? ` from ${context}` : "";
9937
+ throw new AbortError(`Failed to parse JSON${contextMessage}.
9938
+ ${errorMessage}`);
9939
+ }
9940
+ }
9941
+
9930
9942
  // ../../node_modules/.pnpm/latest-version@7.0.0/node_modules/latest-version/index.js
9931
9943
  init_cjs_shims();
9932
9944
 
@@ -13774,7 +13786,7 @@ function versionSatisfies(version, requirements) {
13774
13786
  async function readAndParsePackageJson(packageJsonPath) {
13775
13787
  if (!await fileExists(packageJsonPath))
13776
13788
  throw new PackageJsonNotFoundError(dirname(packageJsonPath));
13777
- return JSON.parse(await readFile(packageJsonPath));
13789
+ return parseJSON(await readFile(packageJsonPath), packageJsonPath);
13778
13790
  }
13779
13791
  async function addNPMDependenciesIfNeeded(dependencies, options) {
13780
13792
  outputDebug(outputContent`Adding the following dependencies if needed:
@@ -13881,7 +13893,7 @@ function argumentsToAddDependenciesWithBun(dependencies, type) {
13881
13893
  async function findUpAndReadPackageJson(fromDirectory) {
13882
13894
  let packageJsonPath = await findPathUp("package.json", { cwd: fromDirectory, type: "file" });
13883
13895
  if (packageJsonPath) {
13884
- let packageJson2 = JSON.parse(await readFile(packageJsonPath));
13896
+ let packageJson2 = parseJSON(await readFile(packageJsonPath), packageJsonPath);
13885
13897
  return { path: packageJsonPath, content: packageJson2 };
13886
13898
  } else
13887
13899
  throw new FindUpAndReadPackageJsonNotFoundError(fromDirectory);
@@ -13984,4 +13996,4 @@ deep-extend/lib/deep-extend.js:
13984
13996
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13985
13997
  *)
13986
13998
  */
13987
- //# sourceMappingURL=chunk-TO2X4F7Z.js.map
13999
+ //# sourceMappingURL=chunk-HLOOBB4I.js.map