create-cloudflare 2.62.5 → 2.63.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 +328 -433
- package/package.json +8 -8
- package/templates/astro/pages/c3.ts +10 -5
- package/templates/astro/workers/c3.ts +10 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.0",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@babel/parser": "^7.21.3",
|
|
31
31
|
"@babel/types": "^7.21.4",
|
|
32
32
|
"@clack/prompts": "^0.6.3",
|
|
33
|
-
"@cloudflare/workers-types": "^4.
|
|
33
|
+
"@cloudflare/workers-types": "^4.20260205.0",
|
|
34
34
|
"@types/command-exists": "^1.2.0",
|
|
35
35
|
"@types/cross-spawn": "^6.0.2",
|
|
36
36
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
"wrap-ansi": "^9.0.0",
|
|
73
73
|
"xdg-app-paths": "^8.3.0",
|
|
74
74
|
"yargs": "^17.7.2",
|
|
75
|
-
"@cloudflare/workers-utils": "0.
|
|
76
|
-
"@cloudflare/
|
|
75
|
+
"@cloudflare/workers-utils": "0.9.1",
|
|
76
|
+
"@cloudflare/cli": "1.2.1",
|
|
77
|
+
"@cloudflare/eslint-config-shared": "1.2.1",
|
|
77
78
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
78
|
-
"@cloudflare/vite-plugin": "1.
|
|
79
|
+
"@cloudflare/vite-plugin": "1.23.1",
|
|
79
80
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
80
|
-
"wrangler": "4.
|
|
81
|
-
"@cloudflare/cli": "1.2.1"
|
|
81
|
+
"wrangler": "4.63.0"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=18.14.1"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "node -r esbuild-register scripts/build.ts",
|
|
95
95
|
"dev:codemod": "node -r esbuild-register scripts/codemodDev.ts",
|
|
96
|
-
"check:lint": "eslint . --max-warnings=0",
|
|
96
|
+
"check:lint": "eslint . --max-warnings=0 --cache",
|
|
97
97
|
"check:type": "tsc",
|
|
98
98
|
"test:e2e": "vitest run --config ./vitest-e2e.config.mts",
|
|
99
99
|
"test:unit": "vitest run --config ./vitest.config.mts",
|
|
@@ -12,7 +12,15 @@ import type { C3Context, PackageJson } from "types";
|
|
|
12
12
|
const { npx } = detectPackageManager();
|
|
13
13
|
|
|
14
14
|
const generate = async (ctx: C3Context) => {
|
|
15
|
-
|
|
15
|
+
// `--add cloudflare` could be used here because it invokes `astro` which is not installed (`--no-install`)
|
|
16
|
+
// The adapter is added in the `configure` step instead
|
|
17
|
+
await runFrameworkGenerator(ctx, [
|
|
18
|
+
ctx.project.name,
|
|
19
|
+
// c3 will later install the dependencies
|
|
20
|
+
"--no-install",
|
|
21
|
+
// c3 will later ask users if they want to use git
|
|
22
|
+
"--no-git",
|
|
23
|
+
]);
|
|
16
24
|
|
|
17
25
|
logRaw(""); // newline
|
|
18
26
|
};
|
|
@@ -26,10 +34,7 @@ const configure = async () => {
|
|
|
26
34
|
)}`,
|
|
27
35
|
});
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const updateAstroConfig = () => {
|
|
37
|
+
// Update Astro config to enable platformProxy and imageService
|
|
33
38
|
const filePath = "astro.config.mjs";
|
|
34
39
|
|
|
35
40
|
updateStatus(`Updating configuration in ${blue(filePath)}`);
|
|
@@ -12,7 +12,15 @@ import type { C3Context, PackageJson } from "types";
|
|
|
12
12
|
const { npx } = detectPackageManager();
|
|
13
13
|
|
|
14
14
|
const generate = async (ctx: C3Context) => {
|
|
15
|
-
|
|
15
|
+
// `--add cloudflare` could be used here because it invokes `astro` which is not installed (`--no-install`)
|
|
16
|
+
// The adapter is added in the `configure` step instead
|
|
17
|
+
await runFrameworkGenerator(ctx, [
|
|
18
|
+
ctx.project.name,
|
|
19
|
+
// c3 will later install the dependencies
|
|
20
|
+
"--no-install",
|
|
21
|
+
// c3 will later ask users if they want to use git
|
|
22
|
+
"--no-git",
|
|
23
|
+
]);
|
|
16
24
|
|
|
17
25
|
logRaw(""); // newline
|
|
18
26
|
};
|
|
@@ -26,10 +34,7 @@ const configure = async () => {
|
|
|
26
34
|
)}`,
|
|
27
35
|
});
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const updateAstroConfig = () => {
|
|
37
|
+
// Update Astro config to enable platformProxy and imageService
|
|
33
38
|
const filePath = "astro.config.mjs";
|
|
34
39
|
|
|
35
40
|
updateStatus(`Updating configuration in ${blue(filePath)}`);
|