create-cloudflare 2.22.1 → 2.22.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -10
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -2870,7 +2870,7 @@ var init_args = __esm({
2870
2870
  var version;
2871
2871
  var init_package = __esm({
2872
2872
  "package.json"() {
2873
- version = "2.22.1";
2873
+ version = "2.22.2";
2874
2874
  }
2875
2875
  });
2876
2876
 
@@ -23686,15 +23686,15 @@ var init_package2 = __esm({
23686
23686
  "create-analog": "1.3.1",
23687
23687
  "@angular/create": "18.1.1",
23688
23688
  "create-docusaurus": "3.4.0",
23689
- "create-hono": "0.10.0",
23689
+ "create-hono": "0.10.1",
23690
23690
  "create-next-app": "14.1.0",
23691
23691
  "create-qwik": "1.5.7",
23692
23692
  "create-react-app": "5.0.1",
23693
23693
  "create-remix": "2.10.3",
23694
- "create-solid": "0.5.11",
23694
+ "create-solid": "0.5.12",
23695
23695
  "create-svelte": "6.3.3",
23696
23696
  "create-vue": "3.10.4",
23697
- gatsby: "5.13.6",
23697
+ gatsby: "5.13.7",
23698
23698
  nuxi: "3.12.0"
23699
23699
  },
23700
23700
  frameworkCliMap: {
@@ -23771,7 +23771,7 @@ var init_frameworks = __esm({
23771
23771
  var version2;
23772
23772
  var init_package3 = __esm({
23773
23773
  "../wrangler/package.json"() {
23774
- version2 = "3.65.1";
23774
+ version2 = "3.66.0";
23775
23775
  }
23776
23776
  });
23777
23777
 
@@ -71533,9 +71533,14 @@ var init_templates = __esm({
71533
71533
  validate: (val) => validateTemplateUrl(val || C3_DEFAULTS.template),
71534
71534
  defaultValue: C3_DEFAULTS.template
71535
71535
  });
71536
- const path4 = await downloadRemoteTemplate(templateUrl);
71536
+ let src = templateUrl;
71537
+ if (src.startsWith("https://github.com/") && src.includes("/tree/main/")) {
71538
+ src = src.replace("https://github.com/", "github:").replace("/tree/main/", "/");
71539
+ }
71540
+ const path4 = await downloadRemoteTemplate(src);
71537
71541
  const config14 = inferTemplateConfig(path4);
71538
71542
  validateTemplate(path4, config14);
71543
+ updateStatus(`${brandColor("template")} ${dim("cloned and validated")}`);
71539
71544
  return {
71540
71545
  path: path4,
71541
71546
  ...config14
@@ -71586,9 +71591,8 @@ var init_templates = __esm({
71586
71591
  return copyFiles;
71587
71592
  };
71588
71593
  downloadRemoteTemplate = async (src) => {
71589
- const s = spinner();
71590
71594
  try {
71591
- s.start(`Cloning template from: ${blue(src)}`);
71595
+ updateStatus(`Cloning template from: ${blue(src)}`);
71592
71596
  const emitter = (0, import_degit.default)(src, {
71593
71597
  cache: false,
71594
71598
  verbose: false,
@@ -71596,10 +71600,9 @@ var init_templates = __esm({
71596
71600
  });
71597
71601
  const tmpDir = await (0, import_promises2.mkdtemp)((0, import_path15.join)((0, import_os2.tmpdir)(), "c3-template"));
71598
71602
  await emitter.clone(tmpDir);
71599
- s.stop(`${brandColor("template")} ${dim("cloned and validated")}`);
71600
71603
  return tmpDir;
71601
71604
  } catch (error2) {
71602
- s.stop(`${brandColor("template")} ${dim("failed")}`);
71605
+ updateStatus(`${brandColor("template")} ${dim("failed")}`);
71603
71606
  return crash(`Failed to clone remote template: ${src}`);
71604
71607
  }
71605
71608
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.22.1",
3
+ "version": "2.22.2",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -66,8 +66,8 @@
66
66
  "yargs": "^17.7.2",
67
67
  "@cloudflare/cli": "1.1.1",
68
68
  "@cloudflare/eslint-config-worker": "1.1.0",
69
- "@cloudflare/workers-tsconfig": "0.0.0",
70
- "wrangler": "3.65.1"
69
+ "wrangler": "3.66.0",
70
+ "@cloudflare/workers-tsconfig": "0.0.0"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=18.14.1"