create-cloudflare 2.22.0 → 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.
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.0";
2873
+ version = "2.22.2";
2874
2874
  }
2875
2875
  });
2876
2876
 
@@ -23684,17 +23684,17 @@ var init_package2 = __esm({
23684
23684
  dependencies: {
23685
23685
  "create-astro": "4.8.0",
23686
23686
  "create-analog": "1.3.1",
23687
- "@angular/create": "18.0.4",
23687
+ "@angular/create": "18.1.1",
23688
23688
  "create-docusaurus": "3.4.0",
23689
- "create-hono": "0.9.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
- "create-remix": "2.9.2",
23694
- "create-solid": "0.5.11",
23695
- "create-svelte": "6.3.2",
23693
+ "create-remix": "2.10.3",
23694
+ "create-solid": "0.5.12",
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.63.2";
23774
+ version2 = "3.66.0";
23775
23775
  }
23776
23776
  });
23777
23777
 
@@ -70009,6 +70009,7 @@ async function updateAppCode() {
70009
70009
  const packageManifest = readJSON(packageJsonPath);
70010
70010
  delete packageManifest["dependencies"]["@angular/ssr"];
70011
70011
  delete packageManifest["dependencies"]["express"];
70012
+ delete packageManifest["devDependencies"]["@types/express"];
70012
70013
  writeFile2(packageJsonPath, JSON.stringify(packageManifest, null, 2));
70013
70014
  s.stop(`${brandColor(`updated`)} ${dim(`\`package.json\``)}`);
70014
70015
  }
@@ -70372,7 +70373,7 @@ ${$1}`
70372
70373
 
70373
70374
  // Here we use the @cloudflare/next-on-pages next-dev module to allow us to use bindings during local development
70374
70375
  // (when running the application with \`next dev\`), for more information see:
70375
- // https://github.com/cloudflare/next-on-pages/blob/5712c57ea7/internal-packages/next-dev/README.md
70376
+ // https://github.com/cloudflare/next-on-pages/blob/main/internal-packages/next-dev/README.md
70376
70377
  if (process.env.NODE_ENV === 'development') {
70377
70378
  await setupDevPlatform();
70378
70379
  }
@@ -71532,9 +71533,14 @@ var init_templates = __esm({
71532
71533
  validate: (val) => validateTemplateUrl(val || C3_DEFAULTS.template),
71533
71534
  defaultValue: C3_DEFAULTS.template
71534
71535
  });
71535
- 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);
71536
71541
  const config14 = inferTemplateConfig(path4);
71537
71542
  validateTemplate(path4, config14);
71543
+ updateStatus(`${brandColor("template")} ${dim("cloned and validated")}`);
71538
71544
  return {
71539
71545
  path: path4,
71540
71546
  ...config14
@@ -71585,9 +71591,8 @@ var init_templates = __esm({
71585
71591
  return copyFiles;
71586
71592
  };
71587
71593
  downloadRemoteTemplate = async (src) => {
71588
- const s = spinner();
71589
71594
  try {
71590
- s.start(`Cloning template from: ${blue(src)}`);
71595
+ updateStatus(`Cloning template from: ${blue(src)}`);
71591
71596
  const emitter = (0, import_degit.default)(src, {
71592
71597
  cache: false,
71593
71598
  verbose: false,
@@ -71595,10 +71600,9 @@ var init_templates = __esm({
71595
71600
  });
71596
71601
  const tmpDir = await (0, import_promises2.mkdtemp)((0, import_path15.join)((0, import_os2.tmpdir)(), "c3-template"));
71597
71602
  await emitter.clone(tmpDir);
71598
- s.stop(`${brandColor("template")} ${dim("cloned and validated")}`);
71599
71603
  return tmpDir;
71600
71604
  } catch (error2) {
71601
- s.stop(`${brandColor("template")} ${dim("failed")}`);
71605
+ updateStatus(`${brandColor("template")} ${dim("failed")}`);
71602
71606
  return crash(`Failed to clone remote template: ${src}`);
71603
71607
  }
71604
71608
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.22.0",
3
+ "version": "2.22.2",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -29,7 +29,7 @@
29
29
  "@babel/parser": "^7.21.3",
30
30
  "@babel/types": "^7.21.4",
31
31
  "@clack/prompts": "^0.6.3",
32
- "@cloudflare/workers-types": "^4.20240620.0",
32
+ "@cloudflare/workers-types": "^4.20240718.0",
33
33
  "@iarna/toml": "^3.0.0",
34
34
  "@types/command-exists": "^1.2.0",
35
35
  "@types/cross-spawn": "^6.0.2",
@@ -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.63.2"
69
+ "wrangler": "3.66.0",
70
+ "@cloudflare/workers-tsconfig": "0.0.0"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=18.14.1"
@@ -57,6 +57,7 @@ async function updateAppCode() {
57
57
 
58
58
  delete packageManifest["dependencies"]["@angular/ssr"];
59
59
  delete packageManifest["dependencies"]["express"];
60
+ delete packageManifest["devDependencies"]["@types/express"];
60
61
 
61
62
  writeFile(packageJsonPath, JSON.stringify(packageManifest, null, 2));
62
63
  s.stop(`${brandColor(`updated`)} ${dim(`\`package.json\``)}`);
@@ -23,7 +23,7 @@ Besides the `dev` script mentioned above `c3` has added a few extra scripts that
23
23
  - `preview` to locally preview your Pages application using the [Wrangler](https://developers.cloudflare.com/workers/wrangler/) CLI
24
24
  - `deploy` to deploy your Pages application using the [Wrangler](https://developers.cloudflare.com/workers/wrangler/) CLI
25
25
 
26
- > __Note:__ while the `dev` script is optimal for local development you should preview your Pages application as well (periodically or before deployments) in order to make sure that it can properly work in the Pages environment (for more details see the [`@cloudflare/next-on-pages` recommended workflow](https://github.com/cloudflare/next-on-pages/blob/05b6256/internal-packages/next-dev/README.md#recommended-workflow))
26
+ > __Note:__ while the `dev` script is optimal for local development you should preview your Pages application as well (periodically or before deployments) in order to make sure that it can properly work in the Pages environment (for more details see the [`@cloudflare/next-on-pages` recommended workflow](https://github.com/cloudflare/next-on-pages/blob/main/internal-packages/next-dev/README.md#recommended-development-workflow))
27
27
 
28
28
  ### Bindings
29
29
 
@@ -63,7 +63,7 @@ const updateNextConfig = () => {
63
63
 
64
64
  // Here we use the @cloudflare/next-on-pages next-dev module to allow us to use bindings during local development
65
65
  // (when running the application with \`next dev\`), for more information see:
66
- // https://github.com/cloudflare/next-on-pages/blob/5712c57ea7/internal-packages/next-dev/README.md
66
+ // https://github.com/cloudflare/next-on-pages/blob/main/internal-packages/next-dev/README.md
67
67
  if (process.env.NODE_ENV === 'development') {
68
68
  await setupDevPlatform();
69
69
  }