create-cloudflare 2.29.3 → 2.30.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/dist/cli.js CHANGED
@@ -73714,7 +73714,7 @@ var Yargs = YargsFactory(esm_default);
73714
73714
  var yargs_default = Yargs;
73715
73715
 
73716
73716
  // package.json
73717
- var version = "2.29.3";
73717
+ var version = "2.30.0";
73718
73718
 
73719
73719
  // src/metrics.ts
73720
73720
  var import_node_async_hooks = require("node:async_hooks");
@@ -74462,7 +74462,7 @@ var usesEslint = (ctx) => {
74462
74462
  var import_node_path3 = require("node:path");
74463
74463
 
74464
74464
  // ../wrangler/package.json
74465
- var version2 = "3.80.5";
74465
+ var version2 = "3.81.0";
74466
74466
 
74467
74467
  // src/git.ts
74468
74468
  var offerGit = async (ctx) => {
@@ -74656,11 +74656,11 @@ var package_default = {
74656
74656
  "create-analog": "1.8.1",
74657
74657
  "@angular/create": "18.2.8",
74658
74658
  "create-docusaurus": "3.5.2",
74659
- "create-hono": "0.12.0",
74659
+ "create-hono": "0.14.1",
74660
74660
  "create-next-app": "14.2.5",
74661
- "create-qwik": "1.9.0",
74662
- "create-vite": "5.2.3",
74663
- "create-remix": "2.12.0",
74661
+ "create-qwik": "1.9.1",
74662
+ "create-vite": "5.5.3",
74663
+ "create-remix": "2.13.1",
74664
74664
  "create-solid": "0.5.13",
74665
74665
  "create-svelte": "6.4.0",
74666
74666
  "create-vue": "3.10.4",
@@ -77217,6 +77217,10 @@ var createContext = async (args, prevArgs) => {
77217
77217
  const currentArgs = { ...args };
77218
77218
  let linesPrinted = 0;
77219
77219
  switch (from) {
77220
+ case "category":
77221
+ linesPrinted = 6;
77222
+ args.projectName = void 0;
77223
+ break;
77220
77224
  case "type":
77221
77225
  linesPrinted = 9;
77222
77226
  args.category = void 0;
@@ -77250,7 +77254,7 @@ var createContext = async (args, prevArgs) => {
77250
77254
  type: "text",
77251
77255
  question: `In which directory do you want to create your application?`,
77252
77256
  helpText: "also used as application name",
77253
- defaultValue: defaultName,
77257
+ defaultValue: prevArgs?.projectName ?? defaultName,
77254
77258
  label: "dir",
77255
77259
  validate: (value) => validateProjectDirectory(String(value) || C3_DEFAULTS.projectName, args),
77256
77260
  format: (val) => `./${val}`
@@ -77277,7 +77281,8 @@ var createContext = async (args, prevArgs) => {
77277
77281
  description: "Start from an existing GitHub repo link"
77278
77282
  },
77279
77283
  // This is used only if the type is `pre-existing`
77280
- { label: "Others", value: "others", hidden: true }
77284
+ { label: "Others", value: "others", hidden: true },
77285
+ backOption
77281
77286
  ];
77282
77287
  const category = await processArgument(args, "category", {
77283
77288
  type: "select",
@@ -77286,6 +77291,9 @@ var createContext = async (args, prevArgs) => {
77286
77291
  options: categoryOptions,
77287
77292
  defaultValue: prevArgs?.category ?? C3_DEFAULTS.category
77288
77293
  });
77294
+ if (category === BACK_VALUE) {
77295
+ return goBack("category");
77296
+ }
77289
77297
  let template;
77290
77298
  if (category === "web-framework") {
77291
77299
  const frameworkMap = getFrameworkMap({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.29.3",
3
+ "version": "2.30.0",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -68,7 +68,7 @@
68
68
  "yargs": "^17.7.2",
69
69
  "@cloudflare/cli": "1.1.1",
70
70
  "@cloudflare/eslint-config-worker": "1.1.0",
71
- "wrangler": "3.80.5",
71
+ "wrangler": "3.81.0",
72
72
  "@cloudflare/workers-tsconfig": "0.0.0"
73
73
  },
74
74
  "engines": {
@@ -2,7 +2,7 @@
2
2
  name = "<TBD>"
3
3
  compatibility_date = "<TBD>"
4
4
  compatibility_flags = ["nodejs_compat_v2"]
5
- main = "./dist/_worker.js"
5
+ main = "./dist/_worker.js/index.js"
6
6
  assets = { directory = "./dist", binding = "ASSETS" }
7
7
 
8
8
  # Workers Logs