create-cloudflare 2.33.3 → 2.33.4

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/dist/cli.js CHANGED
@@ -558,7 +558,7 @@ var require_XDGAppPaths = __commonJS({
558
558
  XDGAppPaths.cache = function cache(dirOptions) {
559
559
  return path6.join(xdg.cache(), finalPathSegment(dirOptions));
560
560
  };
561
- XDGAppPaths.config = function config26(dirOptions) {
561
+ XDGAppPaths.config = function config27(dirOptions) {
562
562
  return path6.join(xdg.config(), finalPathSegment(dirOptions));
563
563
  };
564
564
  XDGAppPaths.data = function data(dirOptions) {
@@ -615,7 +615,7 @@ var require_XDG = __commonJS({
615
615
  var cache = function() {
616
616
  return valOrPath(env3.get("XDG_CACHE_HOME"), [baseDir(), ".cache"]);
617
617
  };
618
- var config26 = function() {
618
+ var config27 = function() {
619
619
  return valOrPath(env3.get("XDG_CONFIG_HOME"), [baseDir(), ".config"]);
620
620
  };
621
621
  var data = function() {
@@ -627,13 +627,13 @@ var require_XDG = __commonJS({
627
627
  var state = function() {
628
628
  return valOrPath(env3.get("XDG_STATE_HOME"), [baseDir(), ".local", "state"]);
629
629
  };
630
- return { cache, config: config26, data, runtime, state };
630
+ return { cache, config: config27, data, runtime, state };
631
631
  };
632
632
  var macos = function() {
633
633
  var cache = function() {
634
634
  return valOrPath(env3.get("XDG_CACHE_HOME"), [baseDir(), "Library", "Caches"]);
635
635
  };
636
- var config26 = function() {
636
+ var config27 = function() {
637
637
  return valOrPath(env3.get("XDG_CONFIG_HOME"), [baseDir(), "Library", "Preferences"]);
638
638
  };
639
639
  var data = function() {
@@ -645,7 +645,7 @@ var require_XDG = __commonJS({
645
645
  var state = function() {
646
646
  return valOrPath(env3.get("XDG_STATE_HOME"), [baseDir(), "Library", "State"]);
647
647
  };
648
- return { cache, config: config26, data, runtime, state };
648
+ return { cache, config: config27, data, runtime, state };
649
649
  };
650
650
  var windows = function() {
651
651
  function appData() {
@@ -657,7 +657,7 @@ var require_XDG = __commonJS({
657
657
  var cache = function() {
658
658
  return valOrPath(env3.get("XDG_CACHE_HOME"), [localAppData(), "xdg.cache"]);
659
659
  };
660
- var config26 = function() {
660
+ var config27 = function() {
661
661
  return valOrPath(env3.get("XDG_CONFIG_HOME"), [appData(), "xdg.config"]);
662
662
  };
663
663
  var data = function() {
@@ -669,7 +669,7 @@ var require_XDG = __commonJS({
669
669
  var state = function() {
670
670
  return valOrPath(env3.get("XDG_STATE_HOME"), [localAppData(), "xdg.state"]);
671
671
  };
672
- return { cache, config: config26, data, runtime, state };
672
+ return { cache, config: config27, data, runtime, state };
673
673
  };
674
674
  var XDG_ = function() {
675
675
  function XDG_2() {
@@ -32170,22 +32170,22 @@ var require_dist_web = __commonJS({
32170
32170
  _createClass(Haikunator3, [{
32171
32171
  key: "haikunate",
32172
32172
  value: function haikunate(options) {
32173
- var config26 = (0, _lodash["default"])(options, this.config);
32174
- if (config26.tokenHex === true) {
32175
- config26.tokenChars = "0123456789abcdef";
32173
+ var config27 = (0, _lodash["default"])(options, this.config);
32174
+ if (config27.tokenHex === true) {
32175
+ config27.tokenChars = "0123456789abcdef";
32176
32176
  }
32177
32177
  var adjective = this._randomElement(this.adjectives);
32178
32178
  var noun = this._randomElement(this.nouns);
32179
- if (!config26.tokenLength)
32180
- config26.tokenLength = 0;
32179
+ if (!config27.tokenLength)
32180
+ config27.tokenLength = 0;
32181
32181
  var token = "";
32182
- for (var i = 0; i < config26.tokenLength; i++) {
32183
- token += this._randomElement(config26.tokenChars);
32182
+ for (var i = 0; i < config27.tokenLength; i++) {
32183
+ token += this._randomElement(config27.tokenChars);
32184
32184
  }
32185
32185
  var sections = [adjective, noun, token];
32186
32186
  return sections.filter(function(e) {
32187
32187
  return !!e;
32188
- }).join(config26.delimiter);
32188
+ }).join(config27.delimiter);
32189
32189
  }
32190
32190
  /**
32191
32191
  * Get a random element from an array/string
@@ -46608,13 +46608,13 @@ var require_esprima2 = __commonJS({
46608
46608
  return Reader2;
46609
46609
  }();
46610
46610
  var Tokenizer = function() {
46611
- function Tokenizer2(code, config26) {
46611
+ function Tokenizer2(code, config27) {
46612
46612
  this.errorHandler = new error_handler_1.ErrorHandler();
46613
- this.errorHandler.tolerant = config26 ? typeof config26.tolerant === "boolean" && config26.tolerant : false;
46613
+ this.errorHandler.tolerant = config27 ? typeof config27.tolerant === "boolean" && config27.tolerant : false;
46614
46614
  this.scanner = new scanner_1.Scanner(code, this.errorHandler);
46615
- this.scanner.trackComment = config26 ? typeof config26.comment === "boolean" && config26.comment : false;
46616
- this.trackRange = config26 ? typeof config26.range === "boolean" && config26.range : false;
46617
- this.trackLoc = config26 ? typeof config26.loc === "boolean" && config26.loc : false;
46615
+ this.scanner.trackComment = config27 ? typeof config27.comment === "boolean" && config27.comment : false;
46616
+ this.trackRange = config27 ? typeof config27.range === "boolean" && config27.range : false;
46617
+ this.trackLoc = config27 ? typeof config27.loc === "boolean" && config27.loc : false;
46618
46618
  this.buffer = [];
46619
46619
  this.reader = new Reader();
46620
46620
  }
@@ -48807,11 +48807,11 @@ var require_printer = __commonJS({
48807
48807
  return this.code;
48808
48808
  };
48809
48809
  var emptyPrintResult = new PrintResult("");
48810
- var Printer = function Printer2(config26) {
48810
+ var Printer = function Printer2(config27) {
48811
48811
  assert_1.default.ok(this instanceof Printer2);
48812
- var explicitTabWidth = config26 && config26.tabWidth;
48813
- config26 = options_1.normalize(config26);
48814
- config26.sourceFileName = null;
48812
+ var explicitTabWidth = config27 && config27.tabWidth;
48813
+ config27 = options_1.normalize(config27);
48814
+ config27.sourceFileName = null;
48815
48815
  function makePrintFunctionWith(options, overrides) {
48816
48816
  options = Object.assign({}, options, overrides);
48817
48817
  return function(path6) {
@@ -48826,11 +48826,11 @@ var require_printer = __commonJS({
48826
48826
  includeComments: false
48827
48827
  }));
48828
48828
  }
48829
- var oldTabWidth = config26.tabWidth;
48829
+ var oldTabWidth = config27.tabWidth;
48830
48830
  if (!explicitTabWidth) {
48831
48831
  var loc = path6.getNode().loc;
48832
48832
  if (loc && loc.lines && loc.lines.guessTabWidth) {
48833
- config26.tabWidth = loc.lines.guessTabWidth();
48833
+ config27.tabWidth = loc.lines.guessTabWidth();
48834
48834
  }
48835
48835
  }
48836
48836
  var reprinter = patcher_1.getReprinter(path6);
@@ -48844,11 +48844,11 @@ var require_printer = __commonJS({
48844
48844
  // right choice because it gives us the opportunity to reprint
48845
48845
  // such nodes using their original source.
48846
48846
  reprinter(print2)
48847
- ) : genericPrint(path6, config26, options, makePrintFunctionWith(options, {
48847
+ ) : genericPrint(path6, config27, options, makePrintFunctionWith(options, {
48848
48848
  includeComments: true,
48849
48849
  avoidRootParens: false
48850
48850
  }));
48851
- config26.tabWidth = oldTabWidth;
48851
+ config27.tabWidth = oldTabWidth;
48852
48852
  return lines;
48853
48853
  }
48854
48854
  this.print = function(ast) {
@@ -48859,7 +48859,7 @@ var require_printer = __commonJS({
48859
48859
  includeComments: true,
48860
48860
  avoidRootParens: false
48861
48861
  });
48862
- return new PrintResult(lines.toString(config26), util.composeSourceMaps(config26.inputSourceMap, lines.getSourceMap(config26.sourceMapName, config26.sourceRoot)));
48862
+ return new PrintResult(lines.toString(config27), util.composeSourceMaps(config27.inputSourceMap, lines.getSourceMap(config27.sourceMapName, config27.sourceRoot)));
48863
48863
  };
48864
48864
  this.printGenerically = function(ast) {
48865
48865
  if (!ast) {
@@ -48867,26 +48867,26 @@ var require_printer = __commonJS({
48867
48867
  }
48868
48868
  function printGenerically(path7) {
48869
48869
  return comments_1.printComments(path7, function(path8) {
48870
- return genericPrint(path8, config26, {
48870
+ return genericPrint(path8, config27, {
48871
48871
  includeComments: true,
48872
48872
  avoidRootParens: false
48873
48873
  }, printGenerically);
48874
48874
  });
48875
48875
  }
48876
48876
  var path6 = fast_path_1.default.from(ast);
48877
- var oldReuseWhitespace = config26.reuseWhitespace;
48878
- config26.reuseWhitespace = false;
48879
- var pr = new PrintResult(printGenerically(path6).toString(config26));
48880
- config26.reuseWhitespace = oldReuseWhitespace;
48877
+ var oldReuseWhitespace = config27.reuseWhitespace;
48878
+ config27.reuseWhitespace = false;
48879
+ var pr = new PrintResult(printGenerically(path6).toString(config27));
48880
+ config27.reuseWhitespace = oldReuseWhitespace;
48881
48881
  return pr;
48882
48882
  };
48883
48883
  };
48884
48884
  exports2.Printer = Printer;
48885
- function genericPrint(path6, config26, options, printPath) {
48885
+ function genericPrint(path6, config27, options, printPath) {
48886
48886
  assert_1.default.ok(path6 instanceof fast_path_1.default);
48887
48887
  var node = path6.getValue();
48888
48888
  var parts = [];
48889
- var linesWithoutParens = genericPrintNoParens(path6, config26, printPath);
48889
+ var linesWithoutParens = genericPrintNoParens(path6, config27, printPath);
48890
48890
  if (!node || linesWithoutParens.isEmpty()) {
48891
48891
  return linesWithoutParens;
48892
48892
  }
@@ -68538,33 +68538,33 @@ var inputPrompt = async (promptConfig) => {
68538
68538
  }
68539
68539
  return input;
68540
68540
  };
68541
- var renderSubmit = (config26, value) => {
68542
- const { question, label } = config26;
68543
- if (config26.type !== "confirm" && !value) {
68541
+ var renderSubmit = (config27, value) => {
68542
+ const { question, label } = config27;
68543
+ if (config27.type !== "confirm" && !value) {
68544
68544
  return [`${leftT} ${question} ${dim("(skipped)")}`, `${grayBar}`];
68545
68545
  }
68546
- const content = config26.type === "confirm" ? `${grayBar} ${brandColor(value)} ${dim(label)}` : `${grayBar} ${brandColor(label)} ${dim(value)}`;
68546
+ const content = config27.type === "confirm" ? `${grayBar} ${brandColor(value)} ${dim(label)}` : `${grayBar} ${brandColor(label)} ${dim(value)}`;
68547
68547
  return [`${leftT} ${question}`, content, `${grayBar}`];
68548
68548
  };
68549
- var getRenderers = (config26) => {
68550
- switch (config26.type) {
68549
+ var getRenderers = (config27) => {
68550
+ switch (config27.type) {
68551
68551
  case "select":
68552
- return getSelectRenderers(config26);
68552
+ return getSelectRenderers(config27);
68553
68553
  case "confirm":
68554
- return getConfirmRenderers(config26);
68554
+ return getConfirmRenderers(config27);
68555
68555
  case "text":
68556
- return getTextRenderers(config26);
68556
+ return getTextRenderers(config27);
68557
68557
  case "multiselect":
68558
- return getSelectRenderers(config26);
68558
+ return getSelectRenderers(config27);
68559
68559
  case "list":
68560
- return getSelectListRenderers(config26);
68560
+ return getSelectListRenderers(config27);
68561
68561
  }
68562
68562
  };
68563
- var getTextRenderers = (config26) => {
68564
- const { question } = config26;
68565
- const helpText = config26.helpText ?? "";
68566
- const format5 = config26.format ?? ((val) => String(val));
68567
- const defaultValue = config26.defaultValue?.toString() ?? "";
68563
+ var getTextRenderers = (config27) => {
68564
+ const { question } = config27;
68565
+ const helpText = config27.helpText ?? "";
68566
+ const format5 = config27.format ?? ((val) => String(val));
68567
+ const defaultValue = config27.defaultValue?.toString() ?? "";
68568
68568
  const activeRenderer = ({ value }) => [
68569
68569
  `${blCorner} ${bold(question)} ${dim(helpText)}`,
68570
68570
  `${space(2)}${format5(value || dim(defaultValue))}`,
@@ -68587,14 +68587,14 @@ var getTextRenderers = (config26) => {
68587
68587
  ``
68588
68588
  // extra line for readability
68589
68589
  ],
68590
- submit: ({ value }) => renderSubmit(config26, format5(value ?? "")),
68590
+ submit: ({ value }) => renderSubmit(config27, format5(value ?? "")),
68591
68591
  cancel: activeRenderer
68592
68592
  };
68593
68593
  };
68594
- var getSelectRenderers = (config26) => {
68595
- const { options, question, helpText: _helpText } = config26;
68594
+ var getSelectRenderers = (config27) => {
68595
+ const { options, question, helpText: _helpText } = config27;
68596
68596
  const helpText = _helpText ?? "";
68597
- const maxItemsPerPage = config26.maxItemsPerPage ?? 32;
68597
+ const maxItemsPerPage = config27.maxItemsPerPage ?? 32;
68598
68598
  const defaultRenderer = ({ cursor = 0, value }) => {
68599
68599
  const renderOption = (opt, i) => {
68600
68600
  const { label: optionLabel, value: optionValue } = opt;
@@ -68669,21 +68669,21 @@ ${space(2)}${dim("...")}` : ""}`,
68669
68669
  submit: ({ value }) => {
68670
68670
  if (Array.isArray(value)) {
68671
68671
  return renderSubmit(
68672
- config26,
68672
+ config27,
68673
68673
  options.filter((o) => value.includes(o.value)).map((o) => o.label).join(", ")
68674
68674
  );
68675
68675
  }
68676
68676
  return renderSubmit(
68677
- config26,
68677
+ config27,
68678
68678
  options.find((o) => o.value === value)?.label
68679
68679
  );
68680
68680
  },
68681
68681
  cancel: defaultRenderer
68682
68682
  };
68683
68683
  };
68684
- var getSelectListRenderers = (config26) => {
68685
- const { question, helpText: _helpText } = config26;
68686
- let options = config26.options;
68684
+ var getSelectListRenderers = (config27) => {
68685
+ const { question, helpText: _helpText } = config27;
68686
+ let options = config27.options;
68687
68687
  const helpText = _helpText ?? "";
68688
68688
  const { rows } = stdout;
68689
68689
  const defaultRenderer = ({ cursor, value }, prompt) => {
@@ -68764,20 +68764,20 @@ var getSelectListRenderers = (config26) => {
68764
68764
  submit: ({ value }) => {
68765
68765
  if (Array.isArray(value)) {
68766
68766
  return renderSubmit(
68767
- config26,
68767
+ config27,
68768
68768
  options.filter((o) => value.includes(o.value)).map((o) => o.value).join(", ")
68769
68769
  );
68770
68770
  }
68771
68771
  return renderSubmit(
68772
- config26,
68772
+ config27,
68773
68773
  options.find((o) => o.value === value)?.value
68774
68774
  );
68775
68775
  },
68776
68776
  cancel: defaultRenderer
68777
68777
  };
68778
68778
  };
68779
- var getConfirmRenderers = (config26) => {
68780
- const { activeText, inactiveText, question, helpText: _helpText } = config26;
68779
+ var getConfirmRenderers = (config27) => {
68780
+ const { activeText, inactiveText, question, helpText: _helpText } = config27;
68781
68781
  const helpText = _helpText ?? "";
68782
68782
  const active = activeText || "Yes";
68783
68783
  const inactive = inactiveText || "No";
@@ -68794,7 +68794,7 @@ var getConfirmRenderers = (config26) => {
68794
68794
  active: defaultRenderer,
68795
68795
  confirm: defaultRenderer,
68796
68796
  error: defaultRenderer,
68797
- submit: ({ value }) => renderSubmit(config26, value ? "yes" : "no"),
68797
+ submit: ({ value }) => renderSubmit(config27, value ? "yes" : "no"),
68798
68798
  cancel: defaultRenderer
68799
68799
  };
68800
68800
  };
@@ -69764,23 +69764,23 @@ var YargsParser = class {
69764
69764
  const configPath = argv2[configKey] || configLookup[configKey];
69765
69765
  if (configPath) {
69766
69766
  try {
69767
- let config26 = null;
69767
+ let config27 = null;
69768
69768
  const resolvedConfigPath = mixin2.resolve(mixin2.cwd(), configPath);
69769
69769
  const resolveConfig = flags.configs[configKey];
69770
69770
  if (typeof resolveConfig === "function") {
69771
69771
  try {
69772
- config26 = resolveConfig(resolvedConfigPath);
69772
+ config27 = resolveConfig(resolvedConfigPath);
69773
69773
  } catch (e) {
69774
- config26 = e;
69774
+ config27 = e;
69775
69775
  }
69776
- if (config26 instanceof Error) {
69777
- error2 = config26;
69776
+ if (config27 instanceof Error) {
69777
+ error2 = config27;
69778
69778
  return;
69779
69779
  }
69780
69780
  } else {
69781
- config26 = mixin2.require(resolvedConfigPath);
69781
+ config27 = mixin2.require(resolvedConfigPath);
69782
69782
  }
69783
- setConfigObject(config26);
69783
+ setConfigObject(config27);
69784
69784
  } catch (ex) {
69785
69785
  if (ex.name === "PermissionDenied")
69786
69786
  error2 = ex;
@@ -69790,9 +69790,9 @@ var YargsParser = class {
69790
69790
  }
69791
69791
  });
69792
69792
  }
69793
- function setConfigObject(config26, prev) {
69794
- Object.keys(config26).forEach(function(key) {
69795
- const value = config26[key];
69793
+ function setConfigObject(config27, prev) {
69794
+ Object.keys(config27).forEach(function(key) {
69795
+ const value = config27[key];
69796
69796
  const fullKey = prev ? prev + "." + key : key;
69797
69797
  if (typeof value === "object" && value !== null && !Array.isArray(value) && configuration["dot-notation"]) {
69798
69798
  setConfigObject(value, fullKey);
@@ -70944,11 +70944,11 @@ var CommandInstance = class {
70944
70944
  });
70945
70945
  if (!unparsed.length)
70946
70946
  return;
70947
- const config26 = Object.assign({}, options.configuration, {
70947
+ const config27 = Object.assign({}, options.configuration, {
70948
70948
  "populate--": false
70949
70949
  });
70950
70950
  const parsed = this.shim.Parser.detailed(unparsed, Object.assign({}, options, {
70951
- configuration: config26
70951
+ configuration: config27
70952
70952
  }));
70953
70953
  if (parsed.error) {
70954
70954
  yargs.getInternalMethods().getUsageInstance().fail(parsed.error.message, parsed.error);
@@ -72171,31 +72171,31 @@ ${customMsgs.join("\n")}` : "";
72171
72171
  // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/apply-extends.js
72172
72172
  var previouslyVisitedConfigs = [];
72173
72173
  var shim2;
72174
- function applyExtends(config26, cwd, mergeExtends, _shim) {
72174
+ function applyExtends(config27, cwd, mergeExtends, _shim) {
72175
72175
  shim2 = _shim;
72176
72176
  let defaultConfig = {};
72177
- if (Object.prototype.hasOwnProperty.call(config26, "extends")) {
72178
- if (typeof config26.extends !== "string")
72177
+ if (Object.prototype.hasOwnProperty.call(config27, "extends")) {
72178
+ if (typeof config27.extends !== "string")
72179
72179
  return defaultConfig;
72180
- const isPath = /\.json|\..*rc$/.test(config26.extends);
72180
+ const isPath = /\.json|\..*rc$/.test(config27.extends);
72181
72181
  let pathToDefault = null;
72182
72182
  if (!isPath) {
72183
72183
  try {
72184
- pathToDefault = require.resolve(config26.extends);
72184
+ pathToDefault = require.resolve(config27.extends);
72185
72185
  } catch (_err) {
72186
- return config26;
72186
+ return config27;
72187
72187
  }
72188
72188
  } else {
72189
- pathToDefault = getPathToDefaultConfig(cwd, config26.extends);
72189
+ pathToDefault = getPathToDefaultConfig(cwd, config27.extends);
72190
72190
  }
72191
72191
  checkForCircularExtends(pathToDefault);
72192
72192
  previouslyVisitedConfigs.push(pathToDefault);
72193
- defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : require(config26.extends);
72194
- delete config26.extends;
72193
+ defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : require(config27.extends);
72194
+ delete config27.extends;
72195
72195
  defaultConfig = applyExtends(defaultConfig, shim2.path.dirname(pathToDefault), mergeExtends, shim2);
72196
72196
  }
72197
72197
  previouslyVisitedConfigs = [];
72198
- return mergeExtends ? mergeDeep(defaultConfig, config26) : Object.assign({}, defaultConfig, config26);
72198
+ return mergeExtends ? mergeDeep(defaultConfig, config27) : Object.assign({}, defaultConfig, config27);
72199
72199
  }
72200
72200
  function checkForCircularExtends(cfgPath) {
72201
72201
  if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) {
@@ -72205,17 +72205,17 @@ function checkForCircularExtends(cfgPath) {
72205
72205
  function getPathToDefaultConfig(cwd, pathToExtend) {
72206
72206
  return shim2.path.resolve(cwd, pathToExtend);
72207
72207
  }
72208
- function mergeDeep(config1, config26) {
72208
+ function mergeDeep(config1, config27) {
72209
72209
  const target = {};
72210
72210
  function isObject2(obj) {
72211
72211
  return obj && typeof obj === "object" && !Array.isArray(obj);
72212
72212
  }
72213
72213
  Object.assign(target, config1);
72214
- for (const key of Object.keys(config26)) {
72215
- if (isObject2(config26[key]) && isObject2(target[key])) {
72216
- target[key] = mergeDeep(config1[key], config26[key]);
72214
+ for (const key of Object.keys(config27)) {
72215
+ if (isObject2(config27[key]) && isObject2(target[key])) {
72216
+ target[key] = mergeDeep(config1[key], config27[key]);
72217
72217
  } else {
72218
- target[key] = config26[key];
72218
+ target[key] = config27[key];
72219
72219
  }
72220
72220
  }
72221
72221
  return target;
@@ -72976,9 +72976,9 @@ var YargsInstance = class {
72976
72976
  }
72977
72977
  return maybePromise;
72978
72978
  }
72979
- parserConfiguration(config26) {
72980
- argsert("<object>", [config26], arguments.length);
72981
- __classPrivateFieldSet(this, _YargsInstance_parserConfig, config26, "f");
72979
+ parserConfiguration(config27) {
72980
+ argsert("<object>", [config27], arguments.length);
72981
+ __classPrivateFieldSet(this, _YargsInstance_parserConfig, config27, "f");
72982
72982
  return this;
72983
72983
  }
72984
72984
  pkgConf(key, rootPath) {
@@ -73150,9 +73150,9 @@ var YargsInstance = class {
73150
73150
  return this;
73151
73151
  }
73152
73152
  }
73153
- usageConfiguration(config26) {
73154
- argsert("<object>", [config26], arguments.length);
73155
- __classPrivateFieldSet(this, _YargsInstance_usageConfig, config26, "f");
73153
+ usageConfiguration(config27) {
73154
+ argsert("<object>", [config27], arguments.length);
73155
+ __classPrivateFieldSet(this, _YargsInstance_usageConfig, config27, "f");
73156
73156
  return this;
73157
73157
  }
73158
73158
  version(opt, msg, ver) {
@@ -73558,11 +73558,11 @@ var YargsInstance = class {
73558
73558
  __classPrivateFieldGet(this, _YargsInstance_options, "f").__ = __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__;
73559
73559
  __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration = this[kGetParserConfiguration]();
73560
73560
  const populateDoubleDash = !!__classPrivateFieldGet(this, _YargsInstance_options, "f").configuration["populate--"];
73561
- const config26 = Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration, {
73561
+ const config27 = Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration, {
73562
73562
  "populate--": true
73563
73563
  });
73564
73564
  const parsed = __classPrivateFieldGet(this, _YargsInstance_shim, "f").Parser.detailed(args, Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f"), {
73565
- configuration: { "parse-positional-numbers": false, ...config26 }
73565
+ configuration: { "parse-positional-numbers": false, ...config27 }
73566
73566
  }));
73567
73567
  const argv = Object.assign(parsed.argv, __classPrivateFieldGet(this, _YargsInstance_parseContext, "f"));
73568
73568
  let argvPromise = void 0;
@@ -73725,7 +73725,7 @@ var Yargs = YargsFactory(esm_default);
73725
73725
  var yargs_default = Yargs;
73726
73726
 
73727
73727
  // package.json
73728
- var version = "2.33.3";
73728
+ var version = "2.33.4";
73729
73729
 
73730
73730
  // src/metrics.ts
73731
73731
  var import_node_async_hooks = require("node:async_hooks");
@@ -73769,12 +73769,12 @@ function getGlobalWranglerConfigPath() {
73769
73769
  }
73770
73770
 
73771
73771
  // src/helpers/metrics-config.ts
73772
- function writeMetricsConfig(config26) {
73772
+ function writeMetricsConfig(config27) {
73773
73773
  (0, import_node_fs2.mkdirSync)(import_node_path2.default.dirname(getMetricsConfigPath()), { recursive: true });
73774
73774
  (0, import_node_fs2.writeFileSync)(
73775
73775
  getMetricsConfigPath(),
73776
73776
  JSON.stringify(
73777
- config26,
73777
+ config27,
73778
73778
  (_key, value) => value instanceof Date ? value.toISOString() : value,
73779
73779
  " "
73780
73780
  )
@@ -73782,9 +73782,9 @@ function writeMetricsConfig(config26) {
73782
73782
  }
73783
73783
  function readMetricsConfig() {
73784
73784
  try {
73785
- const config26 = (0, import_node_fs2.readFileSync)(getMetricsConfigPath(), "utf8");
73785
+ const config27 = (0, import_node_fs2.readFileSync)(getMetricsConfigPath(), "utf8");
73786
73786
  return JSON.parse(
73787
- config26,
73787
+ config27,
73788
73788
  (key, value) => key === "date" ? new Date(value) : value
73789
73789
  );
73790
73790
  } catch {
@@ -73794,10 +73794,10 @@ function readMetricsConfig() {
73794
73794
  function getMetricsConfigPath() {
73795
73795
  return import_node_path2.default.resolve(getGlobalWranglerConfigPath(), "metrics.json");
73796
73796
  }
73797
- function getDeviceId(config26) {
73798
- const deviceId = config26.deviceId ?? (0, import_node_crypto.randomUUID)();
73799
- if (config26.deviceId === void 0) {
73800
- writeMetricsConfig({ ...config26, deviceId });
73797
+ function getDeviceId(config27) {
73798
+ const deviceId = config27.deviceId ?? (0, import_node_crypto.randomUUID)();
73799
+ if (config27.deviceId === void 0) {
73800
+ writeMetricsConfig({ ...config27, deviceId });
73801
73801
  }
73802
73802
  return deviceId;
73803
73803
  }
@@ -73982,7 +73982,7 @@ var detectPackageManager = () => {
73982
73982
  }
73983
73983
  };
73984
73984
  var rectifyPmMismatch = async (ctx) => {
73985
- const { npm: npm22 } = detectPackageManager();
73985
+ const { npm: npm23 } = detectPackageManager();
73986
73986
  if (!detectPmMismatch(ctx)) {
73987
73987
  return;
73988
73988
  }
@@ -73994,17 +73994,17 @@ var rectifyPmMismatch = async (ctx) => {
73994
73994
  if ((0, import_fs5.existsSync)(lockfilePath)) {
73995
73995
  (0, import_fs5.rmSync)(lockfilePath);
73996
73996
  }
73997
- await runCommand([npm22, "install"], {
73997
+ await runCommand([npm23, "install"], {
73998
73998
  silent: true,
73999
73999
  cwd: ctx.project.path,
74000
74000
  startText: "Installing dependencies",
74001
- doneText: `${brandColor("installed")} ${dim(`via \`${npm22} install\``)}`
74001
+ doneText: `${brandColor("installed")} ${dim(`via \`${npm23} install\``)}`
74002
74002
  });
74003
74003
  };
74004
74004
  var detectPmMismatch = (ctx) => {
74005
- const { npm: npm22 } = detectPackageManager();
74005
+ const { npm: npm23 } = detectPackageManager();
74006
74006
  const projectPath = ctx.project.path;
74007
- switch (npm22) {
74007
+ switch (npm23) {
74008
74008
  case "npm":
74009
74009
  return false;
74010
74010
  case "yarn":
@@ -74072,10 +74072,10 @@ function getPlatform() {
74072
74072
  function createReporter() {
74073
74073
  const events = [];
74074
74074
  const als = new import_node_async_hooks.AsyncLocalStorage();
74075
- const config26 = readMetricsConfig() ?? {};
74076
- const isFirstUsage = config26.c3permission === void 0;
74075
+ const config27 = readMetricsConfig() ?? {};
74076
+ const isFirstUsage = config27.c3permission === void 0;
74077
74077
  const isEnabled = isTelemetryEnabled();
74078
- const deviceId = getDeviceId(config26);
74078
+ const deviceId = getDeviceId(config27);
74079
74079
  const packageManager = detectPackageManager();
74080
74080
  const platform3 = getPlatform();
74081
74081
  const amplitude_session_id = Date.now();
@@ -74108,7 +74108,7 @@ function createReporter() {
74108
74108
  if (process.env.CREATE_CLOUDFLARE_TELEMETRY_DISABLED === "1") {
74109
74109
  return false;
74110
74110
  }
74111
- return hasSparrowSourceKey() && getC3Permission(config26).enabled;
74111
+ return hasSparrowSourceKey() && getC3Permission(config27).enabled;
74112
74112
  }
74113
74113
  async function waitForAllEventsSettled() {
74114
74114
  await Promise.allSettled(events);
@@ -74214,20 +74214,20 @@ function initializeC3Permission(enabled = true) {
74214
74214
  date: /* @__PURE__ */ new Date()
74215
74215
  };
74216
74216
  }
74217
- function getC3Permission(config26 = readMetricsConfig() ?? {}) {
74218
- if (!config26.c3permission) {
74219
- config26.c3permission = initializeC3Permission();
74220
- writeMetricsConfig(config26);
74217
+ function getC3Permission(config27 = readMetricsConfig() ?? {}) {
74218
+ if (!config27.c3permission) {
74219
+ config27.c3permission = initializeC3Permission();
74220
+ writeMetricsConfig(config27);
74221
74221
  }
74222
- return config26.c3permission;
74222
+ return config27.c3permission;
74223
74223
  }
74224
74224
  function updateC3Pemission(enabled) {
74225
- const config26 = readMetricsConfig();
74226
- if (config26.c3permission?.enabled === enabled) {
74225
+ const config27 = readMetricsConfig();
74226
+ if (config27.c3permission?.enabled === enabled) {
74227
74227
  return;
74228
74228
  }
74229
- config26.c3permission = initializeC3Permission(enabled);
74230
- writeMetricsConfig(config26);
74229
+ config27.c3permission = initializeC3Permission(enabled);
74230
+ writeMetricsConfig(config27);
74231
74231
  }
74232
74232
  var runTelemetryCommand = (action) => {
74233
74233
  const logTelemetryStatus = (enabled) => {
@@ -74272,28 +74272,28 @@ var import_haikunator = __toESM(require_dist_web());
74272
74272
  var import_fs6 = require("fs");
74273
74273
  var import_path6 = __toESM(require("path"));
74274
74274
  var import_undici2 = __toESM(require_undici());
74275
- var installPackages = async (packages, config26 = {}) => {
74276
- const { npm: npm22 } = detectPackageManager();
74275
+ var installPackages = async (packages, config27 = {}) => {
74276
+ const { npm: npm23 } = detectPackageManager();
74277
74277
  let saveFlag;
74278
74278
  let cmd;
74279
- switch (npm22) {
74279
+ switch (npm23) {
74280
74280
  case "yarn":
74281
74281
  cmd = "add";
74282
- saveFlag = config26.dev ? "-D" : "";
74282
+ saveFlag = config27.dev ? "-D" : "";
74283
74283
  break;
74284
74284
  case "bun":
74285
74285
  cmd = "add";
74286
- saveFlag = config26.dev ? "-d" : "";
74286
+ saveFlag = config27.dev ? "-d" : "";
74287
74287
  break;
74288
74288
  case "npm":
74289
74289
  case "pnpm":
74290
74290
  default:
74291
74291
  cmd = "install";
74292
- saveFlag = config26.dev ? "--save-dev" : "";
74292
+ saveFlag = config27.dev ? "--save-dev" : "";
74293
74293
  break;
74294
74294
  }
74295
- await runCommand([npm22, cmd, ...saveFlag ? [saveFlag] : [], ...packages], {
74296
- ...config26,
74295
+ await runCommand([npm23, cmd, ...saveFlag ? [saveFlag] : [], ...packages], {
74296
+ ...config27,
74297
74297
  silent: true
74298
74298
  });
74299
74299
  };
@@ -74302,11 +74302,11 @@ var npmInstall = async (ctx) => {
74302
74302
  if ((0, import_fs6.existsSync)(nodeModulesPath)) {
74303
74303
  return;
74304
74304
  }
74305
- const { npm: npm22 } = detectPackageManager();
74306
- await runCommand([npm22, "install"], {
74305
+ const { npm: npm23 } = detectPackageManager();
74306
+ await runCommand([npm23, "install"], {
74307
74307
  silent: true,
74308
74308
  startText: "Installing dependencies",
74309
- doneText: `${brandColor("installed")} ${dim(`via \`${npm22} install\``)}`
74309
+ doneText: `${brandColor("installed")} ${dim(`via \`${npm23} install\``)}`
74310
74310
  });
74311
74311
  };
74312
74312
  async function getLatestPackageVersion(packageSpecifier) {
@@ -74315,7 +74315,7 @@ async function getLatestPackageVersion(packageSpecifier) {
74315
74315
  return npmInfo["dist-tags"].latest;
74316
74316
  }
74317
74317
  var installWrangler = async () => {
74318
- const { npm: npm22 } = detectPackageManager();
74318
+ const { npm: npm23 } = detectPackageManager();
74319
74319
  if ((0, import_fs6.existsSync)(import_path6.default.resolve("node_modules", "wrangler"))) {
74320
74320
  return;
74321
74321
  }
@@ -74325,7 +74325,7 @@ var installWrangler = async () => {
74325
74325
  "A command line tool for building Cloudflare Workers"
74326
74326
  )}`,
74327
74327
  doneText: `${brandColor("installed")} ${dim(
74328
- `via \`${npm22} install wrangler --save-dev\``
74328
+ `via \`${npm23} install wrangler --save-dev\``
74329
74329
  )}`
74330
74330
  });
74331
74331
  };
@@ -74495,11 +74495,11 @@ var package_default = {
74495
74495
  "create-next-app": "14.2.5",
74496
74496
  "create-qwik": "1.11.0",
74497
74497
  "create-vite": "5.5.5",
74498
- "create-remix": "2.14.0",
74499
- "create-solid": "0.5.13",
74498
+ "create-remix": "2.15.0",
74499
+ "create-solid": "0.5.14",
74500
74500
  "create-vue": "3.12.1",
74501
74501
  gatsby: "5.14.0",
74502
- nuxi: "3.15.0",
74502
+ nuxi: "3.16.0",
74503
74503
  sv: "0.6.1"
74504
74504
  }
74505
74505
  };
@@ -74515,9 +74515,9 @@ var getFrameworkCli = (ctx, withVersion = true) => {
74515
74515
  };
74516
74516
  var runFrameworkGenerator = async (ctx, args) => {
74517
74517
  const cli = getFrameworkCli(ctx, true);
74518
- const { npm: npm22, dlx } = detectPackageManager();
74519
- const cmd = [...npm22 === "yarn" ? ["npx"] : dlx, cli, ...args];
74520
- const env3 = npm22 === "yarn" ? { npm_config_user_agent: "yarn" } : {};
74518
+ const { npm: npm23, dlx } = detectPackageManager();
74519
+ const cmd = [...npm23 === "yarn" ? ["npx"] : dlx, cli, ...args];
74520
+ const env3 = npm23 === "yarn" ? { npm_config_user_agent: "yarn" } : {};
74521
74521
  if (ctx.args.additionalArgs?.length) {
74522
74522
  cmd.push(...ctx.args.additionalArgs);
74523
74523
  }
@@ -75463,10 +75463,38 @@ var config12 = {
75463
75463
  };
75464
75464
  var c3_default14 = config12;
75465
75465
 
75466
+ // templates-experimental/vue/c3.ts
75467
+ var { npm: npm9 } = detectPackageManager();
75468
+ var generate12 = async (ctx) => {
75469
+ await runFrameworkGenerator(ctx, [ctx.project.name]);
75470
+ };
75471
+ var config13 = {
75472
+ configVersion: 1,
75473
+ id: "vue",
75474
+ frameworkCli: "create-vue",
75475
+ platform: "workers",
75476
+ displayName: "Vue",
75477
+ copyFiles: {
75478
+ path: "./templates"
75479
+ },
75480
+ path: "templates-experimental/vue",
75481
+ generate: generate12,
75482
+ transformPackageJson: async () => ({
75483
+ scripts: {
75484
+ deploy: `${npm9} run build && wrangler deploy`,
75485
+ preview: `${npm9} run build && wrangler dev`
75486
+ }
75487
+ }),
75488
+ devScript: "dev",
75489
+ deployScript: "deploy",
75490
+ previewScript: "preview"
75491
+ };
75492
+ var c3_default15 = config13;
75493
+
75466
75494
  // templates/analog/c3.ts
75467
75495
  var recast7 = __toESM(require_main3());
75468
- var { npm: npm9, name: pm2 } = detectPackageManager();
75469
- var generate12 = async (ctx) => {
75496
+ var { npm: npm10, name: pm2 } = detectPackageManager();
75497
+ var generate13 = async (ctx) => {
75470
75498
  await runFrameworkGenerator(ctx, [
75471
75499
  ctx.project.name,
75472
75500
  "--template",
@@ -75484,7 +75512,7 @@ var configure9 = async (ctx) => {
75484
75512
  await installPackages(packages, {
75485
75513
  dev: true,
75486
75514
  startText: `Installing ${packages.join(", ")}`,
75487
- doneText: `${brandColor("installed")} ${dim(`via \`${npm9} install\``)}`
75515
+ doneText: `${brandColor("installed")} ${dim(`via \`${npm10} install\``)}`
75488
75516
  });
75489
75517
  }
75490
75518
  updateViteConfig(ctx);
@@ -75542,7 +75570,7 @@ var updateViteConfig = (ctx) => {
75542
75570
  });
75543
75571
  s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
75544
75572
  };
75545
- var config13 = {
75573
+ var config14 = {
75546
75574
  configVersion: 1,
75547
75575
  id: "analog",
75548
75576
  frameworkCli: "create-analog",
@@ -75551,12 +75579,12 @@ var config13 = {
75551
75579
  copyFiles: {
75552
75580
  path: "./templates"
75553
75581
  },
75554
- generate: generate12,
75582
+ generate: generate13,
75555
75583
  configure: configure9,
75556
75584
  transformPackageJson: async () => ({
75557
75585
  scripts: {
75558
- preview: `${npm9} run build && wrangler pages dev`,
75559
- deploy: `${npm9} run build && wrangler pages deploy`,
75586
+ preview: `${npm10} run build && wrangler pages dev`,
75587
+ deploy: `${npm10} run build && wrangler pages deploy`,
75560
75588
  "cf-typegen": `wrangler types`
75561
75589
  }
75562
75590
  }),
@@ -75564,12 +75592,12 @@ var config13 = {
75564
75592
  deployScript: "deploy",
75565
75593
  previewScript: "preview"
75566
75594
  };
75567
- var c3_default15 = config13;
75595
+ var c3_default16 = config14;
75568
75596
 
75569
75597
  // templates/angular/c3.ts
75570
75598
  var import_node_path4 = require("node:path");
75571
- var { npm: npm10 } = detectPackageManager();
75572
- var generate13 = async (ctx) => {
75599
+ var { npm: npm11 } = detectPackageManager();
75600
+ var generate14 = async (ctx) => {
75573
75601
  await runFrameworkGenerator(ctx, [
75574
75602
  ctx.project.name,
75575
75603
  "--ssr",
@@ -75586,7 +75614,7 @@ async function installCFWorker2() {
75586
75614
  await installPackages(["xhr2"], {
75587
75615
  dev: true,
75588
75616
  startText: "Installing additional dependencies",
75589
- doneText: `${brandColor("installed")} ${dim(`via \`${npm10} install\``)}`
75617
+ doneText: `${brandColor("installed")} ${dim(`via \`${npm11} install\``)}`
75590
75618
  });
75591
75619
  }
75592
75620
  async function updateAppCode2() {
@@ -75628,7 +75656,7 @@ function updateAngularJson2(ctx) {
75628
75656
  writeFile2((0, import_node_path4.resolve)("angular.json"), JSON.stringify(angularJson, null, 2));
75629
75657
  s.stop(`${brandColor(`updated`)} ${dim(`\`angular.json\``)}`);
75630
75658
  }
75631
- var config14 = {
75659
+ var config15 = {
75632
75660
  configVersion: 1,
75633
75661
  id: "angular",
75634
75662
  frameworkCli: "@angular/create",
@@ -75640,23 +75668,23 @@ var config14 = {
75640
75668
  devScript: "start",
75641
75669
  deployScript: "deploy",
75642
75670
  previewScript: "start",
75643
- generate: generate13,
75671
+ generate: generate14,
75644
75672
  configure: configure10,
75645
75673
  transformPackageJson: async () => ({
75646
75674
  scripts: {
75647
- start: `${npm10} run build && wrangler pages dev dist/cloudflare ${await compatDateFlag()}`,
75648
- build: `ng build && ${npm10} run process`,
75675
+ start: `${npm11} run build && wrangler pages dev dist/cloudflare ${await compatDateFlag()}`,
75676
+ build: `ng build && ${npm11} run process`,
75649
75677
  process: "node ./tools/copy-files.mjs",
75650
- deploy: `${npm10} run build && wrangler pages deploy dist/cloudflare`
75678
+ deploy: `${npm11} run build && wrangler pages deploy dist/cloudflare`
75651
75679
  }
75652
75680
  })
75653
75681
  };
75654
- var c3_default16 = config14;
75682
+ var c3_default17 = config15;
75655
75683
 
75656
75684
  // templates/astro/c3.ts
75657
75685
  var recast8 = __toESM(require_main3());
75658
75686
  var { npx: npx3 } = detectPackageManager();
75659
- var generate14 = async (ctx) => {
75687
+ var generate15 = async (ctx) => {
75660
75688
  await runFrameworkGenerator(ctx, [ctx.project.name, "--no-install"]);
75661
75689
  logRaw("");
75662
75690
  };
@@ -75715,7 +75743,7 @@ var updateEnvDeclaration2 = (ctx) => {
75715
75743
  }
75716
75744
  });
75717
75745
  };
75718
- var config15 = {
75746
+ var config16 = {
75719
75747
  configVersion: 1,
75720
75748
  id: "astro",
75721
75749
  frameworkCli: "create-astro",
@@ -75727,7 +75755,7 @@ var config15 = {
75727
75755
  devScript: "dev",
75728
75756
  deployScript: "deploy",
75729
75757
  previewScript: "preview",
75730
- generate: generate14,
75758
+ generate: generate15,
75731
75759
  configure: configure11,
75732
75760
  transformPackageJson: async (pkgJson, ctx) => ({
75733
75761
  scripts: {
@@ -75737,10 +75765,10 @@ var config15 = {
75737
75765
  }
75738
75766
  })
75739
75767
  };
75740
- var c3_default17 = config15;
75768
+ var c3_default18 = config16;
75741
75769
 
75742
75770
  // templates/common/c3.ts
75743
- var c3_default18 = {
75771
+ var c3_default19 = {
75744
75772
  configVersion: 1,
75745
75773
  id: "common",
75746
75774
  displayName: "Example router & proxy Worker",
@@ -75760,31 +75788,31 @@ var c3_default18 = {
75760
75788
  };
75761
75789
 
75762
75790
  // templates/docusaurus/c3.ts
75763
- var { npm: npm11 } = detectPackageManager();
75764
- var generate15 = async (ctx) => {
75791
+ var { npm: npm12 } = detectPackageManager();
75792
+ var generate16 = async (ctx) => {
75765
75793
  await runFrameworkGenerator(ctx, [ctx.project.name, "classic"]);
75766
75794
  };
75767
- var config16 = {
75795
+ var config17 = {
75768
75796
  configVersion: 1,
75769
75797
  id: "docusaurus",
75770
75798
  frameworkCli: "create-docusaurus",
75771
75799
  platform: "pages",
75772
75800
  displayName: "Docusaurus",
75773
- generate: generate15,
75801
+ generate: generate16,
75774
75802
  transformPackageJson: async () => ({
75775
75803
  scripts: {
75776
- preview: `${npm11} run build && wrangler pages dev ./build`,
75777
- deploy: `${npm11} run build && wrangler pages deploy ./build`
75804
+ preview: `${npm12} run build && wrangler pages dev ./build`,
75805
+ deploy: `${npm12} run build && wrangler pages deploy ./build`
75778
75806
  }
75779
75807
  }),
75780
75808
  devScript: "preview",
75781
75809
  deployScript: "deploy"
75782
75810
  };
75783
- var c3_default19 = config16;
75811
+ var c3_default20 = config17;
75784
75812
 
75785
75813
  // templates/gatsby/c3.ts
75786
- var { npm: npm12 } = detectPackageManager();
75787
- var generate16 = async (ctx) => {
75814
+ var { npm: npm13 } = detectPackageManager();
75815
+ var generate17 = async (ctx) => {
75788
75816
  const defaultTemplate = "https://github.com/gatsbyjs/gatsby-starter-blog";
75789
75817
  const useTemplate = await inputPrompt({
75790
75818
  type: "confirm",
@@ -75803,27 +75831,27 @@ var generate16 = async (ctx) => {
75803
75831
  }
75804
75832
  await runFrameworkGenerator(ctx, ["new", ctx.project.name, templateUrl]);
75805
75833
  };
75806
- var config17 = {
75834
+ var config18 = {
75807
75835
  configVersion: 1,
75808
75836
  id: "gatsby",
75809
75837
  frameworkCli: "gatsby",
75810
75838
  platform: "pages",
75811
75839
  displayName: "Gatsby",
75812
- generate: generate16,
75840
+ generate: generate17,
75813
75841
  transformPackageJson: async () => ({
75814
75842
  scripts: {
75815
- deploy: `${npm12} run build && wrangler pages deploy ./public`,
75816
- preview: `${npm12} run build && wrangler pages dev ./public`
75843
+ deploy: `${npm13} run build && wrangler pages deploy ./public`,
75844
+ preview: `${npm13} run build && wrangler pages dev ./public`
75817
75845
  }
75818
75846
  }),
75819
75847
  devScript: "develop",
75820
75848
  deployScript: "deploy",
75821
75849
  previewScript: "preview"
75822
75850
  };
75823
- var c3_default20 = config17;
75851
+ var c3_default21 = config18;
75824
75852
 
75825
75853
  // templates/hello-world-durable-object/c3.ts
75826
- var c3_default21 = {
75854
+ var c3_default22 = {
75827
75855
  configVersion: 1,
75828
75856
  id: "hello-world-durable-object",
75829
75857
  displayName: "Hello World Worker Using Durable Objects",
@@ -75842,7 +75870,7 @@ var c3_default21 = {
75842
75870
  };
75843
75871
 
75844
75872
  // templates/hello-world/c3.ts
75845
- var c3_default22 = {
75873
+ var c3_default23 = {
75846
75874
  configVersion: 1,
75847
75875
  id: "hello-world",
75848
75876
  displayName: "Hello World Worker",
@@ -75864,7 +75892,7 @@ var c3_default22 = {
75864
75892
  };
75865
75893
 
75866
75894
  // templates/hono/c3.ts
75867
- var generate17 = async (ctx) => {
75895
+ var generate18 = async (ctx) => {
75868
75896
  const { name: pm4 } = detectPackageManager();
75869
75897
  await runFrameworkGenerator(ctx, [
75870
75898
  ctx.project.name,
@@ -75891,7 +75919,7 @@ var configure12 = async (ctx) => {
75891
75919
  });
75892
75920
  s.stop(`${brandColor("updated")} \`${dim(indexFile)}\``);
75893
75921
  };
75894
- var config18 = {
75922
+ var config19 = {
75895
75923
  configVersion: 1,
75896
75924
  id: "hono",
75897
75925
  frameworkCli: "create-hono",
@@ -75900,7 +75928,7 @@ var config18 = {
75900
75928
  path: "./templates"
75901
75929
  },
75902
75930
  platform: "workers",
75903
- generate: generate17,
75931
+ generate: generate18,
75904
75932
  configure: configure12,
75905
75933
  transformPackageJson: async () => ({
75906
75934
  scripts: {
@@ -75912,12 +75940,12 @@ var config18 = {
75912
75940
  devScript: "dev",
75913
75941
  deployScript: "deploy"
75914
75942
  };
75915
- var c3_default23 = config18;
75943
+ var c3_default24 = config19;
75916
75944
 
75917
75945
  // templates/next/c3.ts
75918
75946
  var import_path10 = require("path");
75919
- var { npm: npm13, npx: npx4 } = detectPackageManager();
75920
- var generate18 = async (ctx) => {
75947
+ var { npm: npm14, npx: npx4 } = detectPackageManager();
75948
+ var generate19 = async (ctx) => {
75921
75949
  const projectName = ctx.project.name;
75922
75950
  await runFrameworkGenerator(ctx, [projectName]);
75923
75951
  const wranglerToml = readFile((0, import_path10.join)(getTemplatePath(ctx), "wrangler.toml"));
@@ -76025,13 +76053,13 @@ var addDevDependencies = async (installEslintPlugin) => {
76025
76053
  doneText: `${brandColor(`installed`)} ${dim(packages.join(", "))}`
76026
76054
  });
76027
76055
  };
76028
- var c3_default24 = {
76056
+ var c3_default25 = {
76029
76057
  configVersion: 1,
76030
76058
  id: "next",
76031
76059
  frameworkCli: "create-next-app",
76032
76060
  platform: "pages",
76033
76061
  displayName: "Next",
76034
- generate: generate18,
76062
+ generate: generate19,
76035
76063
  configure: configure13,
76036
76064
  copyFiles: {
76037
76065
  async selectVariant(ctx) {
@@ -76063,12 +76091,12 @@ var c3_default24 = {
76063
76091
  }
76064
76092
  },
76065
76093
  transformPackageJson: async (_3, ctx) => {
76066
- const isNpm = npm13 === "npm";
76067
- const isBun = npm13 === "bun";
76094
+ const isNpm = npm14 === "npm";
76095
+ const isBun = npm14 === "bun";
76068
76096
  const isNpmOrBun = isNpm || isBun;
76069
76097
  const nextOnPagesScope = isNpmOrBun ? "@cloudflare/" : "";
76070
76098
  const nextOnPagesCommand = `${nextOnPagesScope}next-on-pages`;
76071
- const pmCommand = isNpmOrBun ? npx4 : npm13;
76099
+ const pmCommand = isNpmOrBun ? npx4 : npm14;
76072
76100
  const pagesBuildRunCommand = `${isNpm ? "npm run" : isBun ? "bun" : pmCommand} pages:build`;
76073
76101
  return {
76074
76102
  scripts: {
@@ -76089,14 +76117,14 @@ var c3_default24 = {
76089
76117
 
76090
76118
  // templates/nuxt/c3.ts
76091
76119
  var recast9 = __toESM(require_main3());
76092
- var { npm: npm14, name: pm3 } = detectPackageManager();
76093
- var generate19 = async (ctx) => {
76120
+ var { npm: npm15, name: pm3 } = detectPackageManager();
76121
+ var generate20 = async (ctx) => {
76094
76122
  const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;
76095
76123
  await runFrameworkGenerator(ctx, [
76096
76124
  "init",
76097
76125
  ctx.project.name,
76098
76126
  "--packageManager",
76099
- npm14,
76127
+ npm15,
76100
76128
  gitFlag
76101
76129
  ]);
76102
76130
  writeFile2("./.node-version", "17");
@@ -76110,7 +76138,7 @@ var configure14 = async (ctx) => {
76110
76138
  await installPackages(packages, {
76111
76139
  dev: true,
76112
76140
  startText: "Installing nitro module `nitro-cloudflare-dev`",
76113
- doneText: `${brandColor("installed")} ${dim(`via \`${npm14} install\``)}`
76141
+ doneText: `${brandColor("installed")} ${dim(`via \`${npm15} install\``)}`
76114
76142
  });
76115
76143
  updateNuxtConfig2();
76116
76144
  updateEnvTypes3(ctx);
@@ -76161,7 +76189,7 @@ var updateNuxtConfig2 = () => {
76161
76189
  });
76162
76190
  s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
76163
76191
  };
76164
- var config19 = {
76192
+ var config20 = {
76165
76193
  configVersion: 1,
76166
76194
  id: "nuxt",
76167
76195
  frameworkCli: "nuxi",
@@ -76170,12 +76198,12 @@ var config19 = {
76170
76198
  copyFiles: {
76171
76199
  path: "./templates"
76172
76200
  },
76173
- generate: generate19,
76201
+ generate: generate20,
76174
76202
  configure: configure14,
76175
76203
  transformPackageJson: async () => ({
76176
76204
  scripts: {
76177
- deploy: `${npm14} run build && wrangler pages deploy`,
76178
- preview: `${npm14} run build && wrangler pages dev`,
76205
+ deploy: `${npm15} run build && wrangler pages deploy`,
76206
+ preview: `${npm15} run build && wrangler pages dev`,
76179
76207
  "cf-typegen": `wrangler types`
76180
76208
  }
76181
76209
  }),
@@ -76183,10 +76211,10 @@ var config19 = {
76183
76211
  deployScript: "deploy",
76184
76212
  previewScript: "preview"
76185
76213
  };
76186
- var c3_default25 = config19;
76214
+ var c3_default26 = config20;
76187
76215
 
76188
76216
  // templates/openapi/c3.ts
76189
- var c3_default26 = {
76217
+ var c3_default27 = {
76190
76218
  configVersion: 1,
76191
76219
  id: "openapi",
76192
76220
  displayName: "API starter (OpenAPI compliant)",
@@ -76345,7 +76373,7 @@ async function copyExistingWorkerFiles(ctx) {
76345
76373
  (0, import_path11.join)(ctx.project.path, "wrangler.toml")
76346
76374
  );
76347
76375
  }
76348
- var c3_default27 = {
76376
+ var c3_default28 = {
76349
76377
  configVersion: 1,
76350
76378
  id: "pre-existing",
76351
76379
  displayName: "Pre-existing Worker (from Dashboard)",
@@ -76373,7 +76401,7 @@ function buildConfigure(params) {
76373
76401
  }
76374
76402
 
76375
76403
  // templates/queues/c3.ts
76376
- var c3_default28 = {
76404
+ var c3_default29 = {
76377
76405
  configVersion: 1,
76378
76406
  id: "queues",
76379
76407
  displayName: "Queue consumer & producer Worker",
@@ -76403,8 +76431,8 @@ var c3_default28 = {
76403
76431
 
76404
76432
  // templates/qwik/c3.ts
76405
76433
  var recast10 = __toESM(require_main3());
76406
- var { npm: npm15, npx: npx5 } = detectPackageManager();
76407
- var generate20 = async (ctx) => {
76434
+ var { npm: npm16, npx: npx5 } = detectPackageManager();
76435
+ var generate21 = async (ctx) => {
76408
76436
  await runFrameworkGenerator(ctx, ["playground", ctx.project.name]);
76409
76437
  };
76410
76438
  var configure15 = async (ctx) => {
@@ -76484,7 +76512,7 @@ var populateCloudflareEnv2 = () => {
76484
76512
  });
76485
76513
  s.stop(`${brandColor("updated")} \`${entrypointPath}\``);
76486
76514
  };
76487
- var config20 = {
76515
+ var config21 = {
76488
76516
  configVersion: 1,
76489
76517
  id: "qwik",
76490
76518
  frameworkCli: "create-qwik",
@@ -76493,12 +76521,12 @@ var config20 = {
76493
76521
  copyFiles: {
76494
76522
  path: "./templates"
76495
76523
  },
76496
- generate: generate20,
76524
+ generate: generate21,
76497
76525
  configure: configure15,
76498
76526
  transformPackageJson: async () => ({
76499
76527
  scripts: {
76500
- deploy: `${npm15} run build && wrangler pages deploy`,
76501
- preview: `${npm15} run build && wrangler pages dev`,
76528
+ deploy: `${npm16} run build && wrangler pages deploy`,
76529
+ preview: `${npm16} run build && wrangler pages dev`,
76502
76530
  "cf-typegen": `wrangler types`
76503
76531
  }
76504
76532
  }),
@@ -76506,11 +76534,11 @@ var config20 = {
76506
76534
  deployScript: "deploy",
76507
76535
  previewScript: "preview"
76508
76536
  };
76509
- var c3_default29 = config20;
76537
+ var c3_default30 = config21;
76510
76538
 
76511
76539
  // templates/react/c3.ts
76512
- var { npm: npm16 } = detectPackageManager();
76513
- var generate21 = async (ctx) => {
76540
+ var { npm: npm17 } = detectPackageManager();
76541
+ var generate22 = async (ctx) => {
76514
76542
  const variant = await inputPrompt({
76515
76543
  type: "select",
76516
76544
  question: "Select a variant:",
@@ -76539,29 +76567,29 @@ var variantsOptions = [
76539
76567
  label: "JavaScript + SWC"
76540
76568
  }
76541
76569
  ];
76542
- var config21 = {
76570
+ var config22 = {
76543
76571
  configVersion: 1,
76544
76572
  id: "react",
76545
76573
  // React's documentation now recommends using create-vite.
76546
76574
  frameworkCli: "create-vite",
76547
76575
  displayName: "React",
76548
76576
  platform: "pages",
76549
- generate: generate21,
76577
+ generate: generate22,
76550
76578
  transformPackageJson: async () => ({
76551
76579
  scripts: {
76552
- deploy: `${npm16} run build && wrangler pages deploy ./dist`,
76553
- preview: `${npm16} run build && wrangler pages dev ./dist`
76580
+ deploy: `${npm17} run build && wrangler pages deploy ./dist`,
76581
+ preview: `${npm17} run build && wrangler pages dev ./dist`
76554
76582
  }
76555
76583
  }),
76556
76584
  devScript: "dev",
76557
76585
  deployScript: "deploy",
76558
76586
  previewScript: "preview"
76559
76587
  };
76560
- var c3_default30 = config21;
76588
+ var c3_default31 = config22;
76561
76589
 
76562
76590
  // templates/remix/c3.ts
76563
- var { npm: npm17 } = detectPackageManager();
76564
- var generate22 = async (ctx) => {
76591
+ var { npm: npm18 } = detectPackageManager();
76592
+ var generate23 = async (ctx) => {
76565
76593
  await runFrameworkGenerator(ctx, [
76566
76594
  ctx.project.name,
76567
76595
  "--template",
@@ -76584,7 +76612,7 @@ var configure16 = async () => {
76584
76612
  });
76585
76613
  s.stop(`${brandColor("updated")} \`${dim(typeDefsPath)}\``);
76586
76614
  };
76587
- var config22 = {
76615
+ var config23 = {
76588
76616
  configVersion: 1,
76589
76617
  id: "remix",
76590
76618
  frameworkCli: "create-remix",
@@ -76593,12 +76621,12 @@ var config22 = {
76593
76621
  copyFiles: {
76594
76622
  path: "./templates"
76595
76623
  },
76596
- generate: generate22,
76624
+ generate: generate23,
76597
76625
  configure: configure16,
76598
76626
  transformPackageJson: async () => ({
76599
76627
  scripts: {
76600
- deploy: `${npm17} run build && wrangler pages deploy`,
76601
- preview: `${npm17} run build && wrangler pages dev`,
76628
+ deploy: `${npm18} run build && wrangler pages deploy`,
76629
+ preview: `${npm18} run build && wrangler pages dev`,
76602
76630
  "cf-typegen": `wrangler types`
76603
76631
  }
76604
76632
  }),
@@ -76606,10 +76634,10 @@ var config22 = {
76606
76634
  deployScript: "deploy",
76607
76635
  previewScript: "preview"
76608
76636
  };
76609
- var c3_default31 = config22;
76637
+ var c3_default32 = config23;
76610
76638
 
76611
76639
  // templates/scheduled/c3.ts
76612
- var c3_default32 = {
76640
+ var c3_default33 = {
76613
76641
  configVersion: 1,
76614
76642
  id: "scheduled",
76615
76643
  displayName: "Scheduled Worker (Cron Trigger)",
@@ -76629,8 +76657,8 @@ var c3_default32 = {
76629
76657
 
76630
76658
  // templates/solid/c3.ts
76631
76659
  var recast11 = __toESM(require_main3());
76632
- var { npm: npm18 } = detectPackageManager();
76633
- var generate23 = async (ctx) => {
76660
+ var { npm: npm19 } = detectPackageManager();
76661
+ var generate24 = async (ctx) => {
76634
76662
  await runFrameworkGenerator(ctx, ["-p", ctx.project.name, "-s"]);
76635
76663
  logRaw("");
76636
76664
  };
@@ -76672,7 +76700,7 @@ var configure17 = async (ctx) => {
76672
76700
  }
76673
76701
  });
76674
76702
  };
76675
- var config23 = {
76703
+ var config24 = {
76676
76704
  configVersion: 1,
76677
76705
  id: "solid",
76678
76706
  frameworkCli: "create-solid",
@@ -76681,12 +76709,12 @@ var config23 = {
76681
76709
  copyFiles: {
76682
76710
  path: "./templates"
76683
76711
  },
76684
- generate: generate23,
76712
+ generate: generate24,
76685
76713
  configure: configure17,
76686
76714
  transformPackageJson: async () => ({
76687
76715
  scripts: {
76688
- preview: `${npm18} run build && npx wrangler pages dev`,
76689
- deploy: `${npm18} run build && wrangler pages deploy`
76716
+ preview: `${npm19} run build && npx wrangler pages dev`,
76717
+ deploy: `${npm19} run build && wrangler pages deploy`
76690
76718
  }
76691
76719
  }),
76692
76720
  compatibilityFlags: ["nodejs_compat"],
@@ -76694,14 +76722,14 @@ var config23 = {
76694
76722
  deployScript: "deploy",
76695
76723
  previewScript: "preview"
76696
76724
  };
76697
- var c3_default33 = config23;
76725
+ var c3_default34 = config24;
76698
76726
 
76699
76727
  // templates/svelte/c3.ts
76700
76728
  var import_node_fs3 = require("node:fs");
76701
76729
  var import_node_os4 = require("node:os");
76702
76730
  var recast12 = __toESM(require_main3());
76703
- var { npm: npm19 } = detectPackageManager();
76704
- var generate24 = async (ctx) => {
76731
+ var { npm: npm20 } = detectPackageManager();
76732
+ var generate25 = async (ctx) => {
76705
76733
  await runFrameworkGenerator(ctx, ["create", ctx.project.name]);
76706
76734
  logRaw("");
76707
76735
  };
@@ -76787,7 +76815,7 @@ var updateTypeDefinitions2 = (ctx) => {
76787
76815
  }
76788
76816
  });
76789
76817
  };
76790
- var config24 = {
76818
+ var config25 = {
76791
76819
  configVersion: 1,
76792
76820
  id: "svelte",
76793
76821
  frameworkCli: "sv",
@@ -76799,12 +76827,12 @@ var config24 = {
76799
76827
  ts: { path: "./ts" }
76800
76828
  }
76801
76829
  },
76802
- generate: generate24,
76830
+ generate: generate25,
76803
76831
  configure: configure18,
76804
76832
  transformPackageJson: async (original, ctx) => {
76805
76833
  let scripts = {
76806
- preview: `${npm19} run build && wrangler pages dev`,
76807
- deploy: `${npm19} run build && wrangler pages deploy`
76834
+ preview: `${npm20} run build && wrangler pages dev`,
76835
+ deploy: `${npm20} run build && wrangler pages deploy`
76808
76836
  };
76809
76837
  if (usesTypescript(ctx)) {
76810
76838
  const mv = (0, import_node_os4.platform)() === "win32" ? "move" : "mv";
@@ -76819,34 +76847,34 @@ var config24 = {
76819
76847
  deployScript: "deploy",
76820
76848
  previewScript: "preview"
76821
76849
  };
76822
- var c3_default34 = config24;
76850
+ var c3_default35 = config25;
76823
76851
 
76824
76852
  // templates/vue/c3.ts
76825
- var { npm: npm20 } = detectPackageManager();
76826
- var generate25 = async (ctx) => {
76853
+ var { npm: npm21 } = detectPackageManager();
76854
+ var generate26 = async (ctx) => {
76827
76855
  await runFrameworkGenerator(ctx, [ctx.project.name]);
76828
76856
  };
76829
- var config25 = {
76857
+ var config26 = {
76830
76858
  configVersion: 1,
76831
76859
  id: "vue",
76832
76860
  frameworkCli: "create-vue",
76833
76861
  displayName: "Vue",
76834
76862
  platform: "pages",
76835
- generate: generate25,
76863
+ generate: generate26,
76836
76864
  transformPackageJson: async () => ({
76837
76865
  scripts: {
76838
- deploy: `${npm20} run build && wrangler pages deploy ./dist`,
76839
- preview: `${npm20} run build && wrangler pages dev ./dist`
76866
+ deploy: `${npm21} run build && wrangler pages deploy ./dist`,
76867
+ preview: `${npm21} run build && wrangler pages dev ./dist`
76840
76868
  }
76841
76869
  }),
76842
76870
  devScript: "dev",
76843
76871
  deployScript: "deploy",
76844
76872
  previewScript: "preview"
76845
76873
  };
76846
- var c3_default35 = config25;
76874
+ var c3_default36 = config26;
76847
76875
 
76848
76876
  // ../wrangler/package.json
76849
- var version2 = "3.93.0";
76877
+ var version2 = "3.94.0";
76850
76878
 
76851
76879
  // src/git.ts
76852
76880
  var offerGit = async (ctx) => {
@@ -77122,24 +77150,25 @@ function getFrameworkMap({ experimental = false }) {
77122
77150
  qwik: c3_default11,
77123
77151
  remix: c3_default12,
77124
77152
  solid: c3_default13,
77125
- svelte: c3_default14
77153
+ svelte: c3_default14,
77154
+ vue: c3_default15
77126
77155
  };
77127
77156
  } else {
77128
77157
  return {
77129
- analog: c3_default15,
77130
- angular: c3_default16,
77131
- astro: c3_default17,
77132
- docusaurus: c3_default19,
77133
- gatsby: c3_default20,
77134
- hono: c3_default23,
77135
- next: c3_default24,
77136
- nuxt: c3_default25,
77137
- qwik: c3_default29,
77138
- react: c3_default30,
77139
- remix: c3_default31,
77140
- solid: c3_default33,
77141
- svelte: c3_default34,
77142
- vue: c3_default35
77158
+ analog: c3_default16,
77159
+ angular: c3_default17,
77160
+ astro: c3_default18,
77161
+ docusaurus: c3_default20,
77162
+ gatsby: c3_default21,
77163
+ hono: c3_default24,
77164
+ next: c3_default25,
77165
+ nuxt: c3_default26,
77166
+ qwik: c3_default30,
77167
+ react: c3_default31,
77168
+ remix: c3_default32,
77169
+ solid: c3_default34,
77170
+ svelte: c3_default35,
77171
+ vue: c3_default36
77143
77172
  };
77144
77173
  }
77145
77174
  }
@@ -77152,13 +77181,13 @@ function getTemplateMap({ experimental = false }) {
77152
77181
  };
77153
77182
  } else {
77154
77183
  return {
77155
- "hello-world": c3_default22,
77156
- common: c3_default18,
77157
- scheduled: c3_default32,
77158
- queues: c3_default28,
77159
- "hello-world-durable-object": c3_default21,
77160
- openapi: c3_default26,
77161
- "pre-existing": c3_default27
77184
+ "hello-world": c3_default23,
77185
+ common: c3_default19,
77186
+ scheduled: c3_default33,
77187
+ queues: c3_default29,
77188
+ "hello-world-durable-object": c3_default22,
77189
+ openapi: c3_default27,
77190
+ "pre-existing": c3_default28
77162
77191
  };
77163
77192
  }
77164
77193
  }
@@ -77305,8 +77334,8 @@ var createContext = async (args, prevArgs) => {
77305
77334
  experimental: args.experimental
77306
77335
  });
77307
77336
  const frameworkOptions = Object.entries(frameworkMap).map(
77308
- ([key, config26]) => ({
77309
- label: config26.displayName,
77337
+ ([key, config27]) => ({
77338
+ label: config27.displayName,
77310
77339
  value: key
77311
77340
  })
77312
77341
  );
@@ -77444,28 +77473,28 @@ var processRemoteTemplate = async (args) => {
77444
77473
  src = src.replace("https://github.com/", "github:").replace("/tree/main/", "/");
77445
77474
  }
77446
77475
  const path6 = await downloadRemoteTemplate(src);
77447
- const config26 = inferTemplateConfig(path6);
77448
- validateTemplate(path6, config26);
77476
+ const config27 = inferTemplateConfig(path6);
77477
+ validateTemplate(path6, config27);
77449
77478
  updateStatus(`${brandColor("template")} ${dim("cloned and validated")}`);
77450
77479
  return {
77451
77480
  path: path6,
77452
- ...config26
77481
+ ...config27
77453
77482
  };
77454
77483
  };
77455
- var validateTemplate = (path6, config26) => {
77456
- if (!config26.copyFiles) {
77484
+ var validateTemplate = (path6, config27) => {
77485
+ if (!config27.copyFiles) {
77457
77486
  return;
77458
77487
  }
77459
- if (isVariantInfo(config26.copyFiles)) {
77460
- validateTemplateSrcDirectory((0, import_path13.resolve)(path6, config26.copyFiles.path), config26);
77488
+ if (isVariantInfo(config27.copyFiles)) {
77489
+ validateTemplateSrcDirectory((0, import_path13.resolve)(path6, config27.copyFiles.path), config27);
77461
77490
  } else {
77462
- for (const variant of Object.values(config26.copyFiles.variants)) {
77463
- validateTemplateSrcDirectory((0, import_path13.resolve)(path6, variant.path), config26);
77491
+ for (const variant of Object.values(config27.copyFiles.variants)) {
77492
+ validateTemplateSrcDirectory((0, import_path13.resolve)(path6, variant.path), config27);
77464
77493
  }
77465
77494
  }
77466
77495
  };
77467
- var validateTemplateSrcDirectory = (path6, config26) => {
77468
- if (config26.platform === "workers") {
77496
+ var validateTemplateSrcDirectory = (path6, config27) => {
77497
+ if (config27.platform === "workers") {
77469
77498
  const wranglerTomlPath = (0, import_path13.resolve)(path6, "wrangler.toml");
77470
77499
  if (!(0, import_fs11.existsSync)(wranglerTomlPath)) {
77471
77500
  throw new Error(
@@ -79200,7 +79229,7 @@ var writeWranglerToml = (ctx, contents) => {
79200
79229
 
79201
79230
  // src/deploy.ts
79202
79231
  var offerToDeploy = async (ctx) => {
79203
- const { npm: npm22 } = detectPackageManager();
79232
+ const { npm: npm23 } = detectPackageManager();
79204
79233
  startSection(`Deploy with Cloudflare`, `Step 3 of 3`);
79205
79234
  if (!await isDeployable(ctx)) {
79206
79235
  ctx.args.deploy = false;
@@ -79211,7 +79240,7 @@ var offerToDeploy = async (ctx) => {
79211
79240
  );
79212
79241
  }
79213
79242
  const label = `deploy via \`${quoteShellArgs([
79214
- npm22,
79243
+ npm23,
79215
79244
  "run",
79216
79245
  ctx.template.deployScript ?? "deploy"
79217
79246
  ])}\``;
@@ -79241,11 +79270,11 @@ var isDeployable = async (ctx) => {
79241
79270
  return !hasBinding(wranglerToml);
79242
79271
  };
79243
79272
  var runDeploy = async (ctx) => {
79244
- const { npm: npm22, name: pm4 } = detectPackageManager();
79273
+ const { npm: npm23, name: pm4 } = detectPackageManager();
79245
79274
  if (!ctx.account?.id) {
79246
79275
  throw new Error("Failed to read Cloudflare account.");
79247
79276
  }
79248
- const baseDeployCmd = [npm22, "run", ctx.template.deployScript ?? "deploy"];
79277
+ const baseDeployCmd = [npm23, "run", ctx.template.deployScript ?? "deploy"];
79249
79278
  const insideGitRepo = await isInsideGitRepo(ctx.project.path);
79250
79279
  const deployCmd = [
79251
79280
  ...baseDeployCmd,
@@ -79355,14 +79384,14 @@ var printSummary = (ctx) => {
79355
79384
  const dashboardUrl = ctx.account ? `https://dash.cloudflare.com/?to=/:account/workers/services/view/${ctx.project.name}` : null;
79356
79385
  const relativePath = (0, import_path15.relative)(ctx.originalCWD, ctx.project.path);
79357
79386
  const cdCommand = relativePath ? `cd ${relativePath}` : null;
79358
- const { npm: npm22 } = detectPackageManager();
79387
+ const { npm: npm23 } = detectPackageManager();
79359
79388
  const devServerCommand = quoteShellArgs([
79360
- npm22,
79389
+ npm23,
79361
79390
  "run",
79362
79391
  ctx.template.devScript ?? "start"
79363
79392
  ]);
79364
79393
  const deployCommand = quoteShellArgs([
79365
- npm22,
79394
+ npm23,
79366
79395
  "run",
79367
79396
  ctx.template.deployScript ?? "deploy"
79368
79397
  ]);
@@ -79730,8 +79759,8 @@ var renderValues = (values) => {
79730
79759
  };
79731
79760
 
79732
79761
  // src/helpers/retry.ts
79733
- var retry = async (config26, fn) => {
79734
- let { times } = config26;
79762
+ var retry = async (config27, fn) => {
79763
+ let { times } = config27;
79735
79764
  let error2 = null;
79736
79765
  while (times > 0) {
79737
79766
  try {
@@ -79739,10 +79768,10 @@ var retry = async (config26, fn) => {
79739
79768
  } catch (e) {
79740
79769
  error2 = e;
79741
79770
  times--;
79742
- if (config26.exitCondition?.(e)) {
79771
+ if (config27.exitCondition?.(e)) {
79743
79772
  break;
79744
79773
  }
79745
- await sleep(config26.sleepMs ?? 1e3);
79774
+ await sleep(config27.sleepMs ?? 1e3);
79746
79775
  }
79747
79776
  }
79748
79777
  throw error2;
@@ -81139,14 +81168,14 @@ function applyEdits(text, edits) {
81139
81168
 
81140
81169
  // src/workers.ts
81141
81170
  async function installWorkersTypes(ctx) {
81142
- const { npm: npm22 } = detectPackageManager();
81171
+ const { npm: npm23 } = detectPackageManager();
81143
81172
  if (!usesTypescript(ctx)) {
81144
81173
  return;
81145
81174
  }
81146
81175
  await installPackages(["@cloudflare/workers-types"], {
81147
81176
  dev: true,
81148
81177
  startText: "Installing @cloudflare/workers-types",
81149
- doneText: `${brandColor("installed")} ${dim(`via ${npm22}`)}`
81178
+ doneText: `${brandColor("installed")} ${dim(`via ${npm23}`)}`
81150
81179
  });
81151
81180
  await addWorkersTypesToTsConfig(ctx);
81152
81181
  }
@@ -81169,8 +81198,8 @@ async function addWorkersTypesToTsConfig(ctx) {
81169
81198
  }
81170
81199
  const typesEntrypoint = `@cloudflare/workers-types/${entrypointVersion}`;
81171
81200
  try {
81172
- const config26 = parse3(tsconfig);
81173
- const currentTypes = config26.compilerOptions?.types ?? [];
81201
+ const config27 = parse3(tsconfig);
81202
+ const currentTypes = config27.compilerOptions?.types ?? [];
81174
81203
  const explicitEntrypoint = currentTypes.some(
81175
81204
  (t) => t.match(/@cloudflare\/workers-types\/\d{4}-\d{2}-\d{2}/)
81176
81205
  );
@@ -81200,7 +81229,7 @@ async function addWorkersTypesToTsConfig(ctx) {
81200
81229
  }
81201
81230
 
81202
81231
  // src/cli.ts
81203
- var { npm: npm21 } = detectPackageManager();
81232
+ var { npm: npm22 } = detectPackageManager();
81204
81233
  var main = async (argv) => {
81205
81234
  const result = await parseArgs(argv);
81206
81235
  if (result.type === "unknown") {
@@ -81236,10 +81265,10 @@ ${result.errorMessage}`);
81236
81265
  };
81237
81266
  var runLatest = async () => {
81238
81267
  const args = process.argv.slice(2);
81239
- if (npm21 === "npm") {
81268
+ if (npm22 === "npm") {
81240
81269
  args.unshift("--");
81241
81270
  }
81242
- await runCommand([npm21, "create", "cloudflare@latest", ...args]);
81271
+ await runCommand([npm22, "create", "cloudflare@latest", ...args]);
81243
81272
  };
81244
81273
  var runCli = async (args) => {
81245
81274
  printBanner();