create-cloudflare 0.0.0-c33a636d → 0.0.0-c36b78b4

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
@@ -58091,7 +58091,7 @@ var Yargs = YargsFactory(esm_default);
58091
58091
  var yargs_default = Yargs;
58092
58092
 
58093
58093
  // package.json
58094
- var version = "0.0.0-c33a636d";
58094
+ var version = "0.0.0-c36b78b4";
58095
58095
  var devDependencies = {
58096
58096
  "@babel/parser": "^7.21.3",
58097
58097
  "@babel/types": "^7.21.4",
@@ -61389,7 +61389,7 @@ function secondsSince(start) {
61389
61389
  }
61390
61390
 
61391
61391
  // ../wrangler/package.json
61392
- var version2 = "3.11.0";
61392
+ var version2 = "3.12.0";
61393
61393
 
61394
61394
  // src/common.ts
61395
61395
  var { name, npm: npm12 } = detectPackageManager();
@@ -61570,6 +61570,16 @@ var offerGit = async (ctx) => {
61570
61570
  ctx.args.git = false;
61571
61571
  return;
61572
61572
  }
61573
+ const gitConfigured = await isGitConfigured();
61574
+ if (!gitConfigured) {
61575
+ if (ctx.args.git) {
61576
+ updateStatus(
61577
+ "Must configure `user.name` and user.email` to use git. Continuing without git."
61578
+ );
61579
+ }
61580
+ ctx.args.git = false;
61581
+ return;
61582
+ }
61573
61583
  const insideGitRepo = await isInsideGitRepo(ctx.project.path);
61574
61584
  if (insideGitRepo)
61575
61585
  return;
@@ -61651,6 +61661,25 @@ async function getGitVersion() {
61651
61661
  async function isGitInstalled() {
61652
61662
  return await getGitVersion() !== null;
61653
61663
  }
61664
+ async function isGitConfigured() {
61665
+ try {
61666
+ const userName = await runCommand("git config user.name", {
61667
+ useSpinner: false,
61668
+ silent: true
61669
+ });
61670
+ if (!userName)
61671
+ return false;
61672
+ const email = await runCommand("git config user.email", {
61673
+ useSpinner: false,
61674
+ silent: true
61675
+ });
61676
+ if (!email)
61677
+ return false;
61678
+ return true;
61679
+ } catch {
61680
+ return false;
61681
+ }
61682
+ }
61654
61683
  async function isInsideGitRepo(cwd) {
61655
61684
  try {
61656
61685
  const output = await runCommand("git status", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-c33a636d",
3
+ "version": "0.0.0-c36b78b4",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -66,7 +66,7 @@
66
66
  "yargs": "^17.7.1",
67
67
  "yarn": "^1.22.19",
68
68
  "@cloudflare/workers-tsconfig": "0.0.0",
69
- "wrangler": "3.11.0"
69
+ "wrangler": "3.12.0"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=18.14.1"
@@ -35,7 +35,7 @@ compatibility_date = "<TBD>"
35
35
  # Docs: https://developers.cloudflare.com/workers/platform/services
36
36
  # [[services]]
37
37
  # binding = "MY_SERVICE"
38
- # service = "/api/*"
38
+ # service = "my-service"
39
39
 
40
40
  # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
41
  # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
@@ -35,7 +35,7 @@ compatibility_date = "<TBD>"
35
35
  # Docs: https://developers.cloudflare.com/workers/platform/services
36
36
  # [[services]]
37
37
  # binding = "MY_SERVICE"
38
- # service = "/api/*"
38
+ # service = "my-service"
39
39
 
40
40
  # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
41
  # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
@@ -35,7 +35,7 @@ compatibility_date = "<TBD>"
35
35
  # Docs: https://developers.cloudflare.com/workers/platform/services
36
36
  # [[services]]
37
37
  # binding = "MY_SERVICE"
38
- # service = "/api/*"
38
+ # service = "my-service"
39
39
 
40
40
  # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
41
  # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
@@ -35,7 +35,7 @@ compatibility_date = "<TBD>"
35
35
  # Docs: https://developers.cloudflare.com/workers/platform/services
36
36
  # [[services]]
37
37
  # binding = "MY_SERVICE"
38
- # service = "/api/*"
38
+ # service = "my-service"
39
39
 
40
40
  # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
41
  # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.