create-cloudflare 2.72.0 → 2.72.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 +1392 -1005
- package/package.json +7 -7
- package/templates/analog/c3.ts +5 -2
- package/templates/astro/pages/c3.ts +1 -1
- package/templates/hello-world/js/package.json +2 -2
- package/templates/hello-world/js/vitest.config.mjs +10 -0
- package/templates/hello-world/ts/package.json +2 -2
- package/templates/hello-world/ts/test/tsconfig.json +1 -1
- package/templates/hello-world/ts/vitest.config.mts +8 -9
- package/templates/hello-world-with-assets/js/package.json +2 -2
- package/templates/hello-world-with-assets/js/vitest.config.mjs +10 -0
- package/templates/hello-world-with-assets/ts/package.json +2 -2
- package/templates/hello-world-with-assets/ts/test/tsconfig.json +1 -1
- package/templates/hello-world-with-assets/ts/vitest.config.mts +8 -9
- package/templates/nuxt/pages/c3.ts +4 -1
- package/templates/nuxt/workers/c3.ts +4 -1
- package/templates/qwik/pages/c3.ts +1 -1
- package/templates/qwik/workers/c3.ts +1 -1
- package/templates/react/workers/c3.ts +1 -1
- package/templates/solid/c3.ts +4 -1
- package/templates/svelte/pages/c3.ts +1 -1
- package/templates/svelte/workers/c3.ts +1 -1
- package/templates/hello-world/js/vitest.config.js +0 -11
- package/templates/hello-world/ts/test/env.d.ts +0 -3
- package/templates/hello-world-with-assets/js/vitest.config.js +0 -11
- package/templates/hello-world-with-assets/ts/test/env.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.72.
|
|
3
|
+
"version": "2.72.2",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/parser": "^7.21.3",
|
|
32
32
|
"@babel/types": "^7.21.4",
|
|
33
33
|
"@clack/prompts": "^1.2.0",
|
|
34
|
-
"@cloudflare/workers-types": "^5.
|
|
34
|
+
"@cloudflare/workers-types": "^5.20260820.1",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
37
37
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"which-pm-runs": "^1.1.0",
|
|
72
72
|
"wrap-ansi": "^9.0.0",
|
|
73
73
|
"yargs": "^17.7.2",
|
|
74
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
74
|
+
"@cloudflare/cli-shared-helpers": "0.1.25",
|
|
75
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
|
-
"@cloudflare/
|
|
77
|
-
"@cloudflare/vite-plugin": "1.
|
|
76
|
+
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
77
|
+
"@cloudflare/vite-plugin": "1.53.1",
|
|
78
78
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
79
|
-
"@cloudflare/workers-utils": "0.
|
|
80
|
-
"wrangler": "4.
|
|
79
|
+
"@cloudflare/workers-utils": "0.34.0",
|
|
80
|
+
"wrangler": "4.125.0"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=22.0.0"
|
package/templates/analog/c3.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
|
|
2
2
|
import { blue } from "@cloudflare/cli-shared-helpers/colors";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
mergeObjectProperties,
|
|
5
|
+
transformFile,
|
|
6
|
+
} from "@cloudflare/shared-ast-primitives";
|
|
4
7
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
5
8
|
import { getWorkerdCompatibilityDate } from "helpers/compatDate";
|
|
6
9
|
import { usesTypescript } from "helpers/files";
|
|
@@ -25,7 +28,7 @@ const configure = async (ctx: C3Context) => {
|
|
|
25
28
|
usesTypescript(ctx);
|
|
26
29
|
const filePath = `vite.config.${usesTypescript(ctx) ? "ts" : "js"}`;
|
|
27
30
|
|
|
28
|
-
const compatDate = getWorkerdCompatibilityDate(
|
|
31
|
+
const compatDate = getWorkerdCompatibilityDate();
|
|
29
32
|
|
|
30
33
|
updateStatus(`Updating configuration in ${blue(filePath)}`);
|
|
31
34
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
|
|
2
2
|
import { blue, brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
|
|
3
3
|
import { runCommand } from "@cloudflare/cli-shared-helpers/command";
|
|
4
|
-
import { transformFile } from "@cloudflare/
|
|
4
|
+
import { transformFile } from "@cloudflare/shared-ast-primitives";
|
|
5
5
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
6
6
|
import { usesTypescript } from "helpers/files";
|
|
7
7
|
import { detectPackageManager } from "helpers/packageManagers";
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"cf-typegen": "wrangler types"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@cloudflare/vitest-pool-workers": "^0.
|
|
13
|
+
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
|
14
14
|
"typescript": "^5.5.2",
|
|
15
|
-
"vitest": "~
|
|
15
|
+
"vitest": "~4.1.0",
|
|
16
16
|
"wrangler": "^4"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cloudflareTest } from "@cloudflare/vitest-pool-workers";
|
|
2
|
+
import { defineConfig } from "vitest/config";
|
|
2
3
|
|
|
3
|
-
export default
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
},
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [
|
|
6
|
+
cloudflareTest({
|
|
7
|
+
wrangler: { configPath: "./wrangler.jsonc" },
|
|
8
|
+
}),
|
|
9
|
+
],
|
|
11
10
|
});
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"cf-typegen": "wrangler types"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@cloudflare/vitest-pool-workers": "^0.
|
|
13
|
+
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
|
14
14
|
"typescript": "^5.5.2",
|
|
15
|
-
"vitest": "~
|
|
15
|
+
"vitest": "~4.1.0",
|
|
16
16
|
"wrangler": "^4"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cloudflareTest } from "@cloudflare/vitest-pool-workers";
|
|
2
|
+
import { defineConfig } from "vitest/config";
|
|
2
3
|
|
|
3
|
-
export default
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
},
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [
|
|
6
|
+
cloudflareTest({
|
|
7
|
+
wrangler: { configPath: "./wrangler.jsonc" },
|
|
8
|
+
}),
|
|
9
|
+
],
|
|
11
10
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { logRaw } from "@cloudflare/cli-shared-helpers";
|
|
2
2
|
import { brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
|
|
3
3
|
import { spinner } from "@cloudflare/cli-shared-helpers/interactive";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
mergeObjectProperties,
|
|
6
|
+
transformFile,
|
|
7
|
+
} from "@cloudflare/shared-ast-primitives";
|
|
5
8
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
6
9
|
import { writeFile } from "helpers/files";
|
|
7
10
|
import { detectPackageManager } from "helpers/packageManagers";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { logRaw } from "@cloudflare/cli-shared-helpers";
|
|
2
2
|
import { brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
|
|
3
3
|
import { spinner } from "@cloudflare/cli-shared-helpers/interactive";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
mergeObjectProperties,
|
|
6
|
+
transformFile,
|
|
7
|
+
} from "@cloudflare/shared-ast-primitives";
|
|
5
8
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
6
9
|
import { writeFile } from "helpers/files";
|
|
7
10
|
import { detectPackageManager } from "helpers/packageManagers";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runCommand,
|
|
6
6
|
} from "@cloudflare/cli-shared-helpers/command";
|
|
7
7
|
import { spinner } from "@cloudflare/cli-shared-helpers/interactive";
|
|
8
|
-
import { transformFile } from "@cloudflare/
|
|
8
|
+
import { transformFile } from "@cloudflare/shared-ast-primitives";
|
|
9
9
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
10
10
|
import { loadTemplateSnippets } from "helpers/codemod";
|
|
11
11
|
import { usesTypescript } from "helpers/files";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runCommand,
|
|
6
6
|
} from "@cloudflare/cli-shared-helpers/command";
|
|
7
7
|
import { spinner } from "@cloudflare/cli-shared-helpers/interactive";
|
|
8
|
-
import { transformFile } from "@cloudflare/
|
|
8
|
+
import { transformFile } from "@cloudflare/shared-ast-primitives";
|
|
9
9
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
10
10
|
import { loadTemplateSnippets } from "helpers/codemod";
|
|
11
11
|
import { usesTypescript } from "helpers/files";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inputPrompt,
|
|
6
6
|
spinner,
|
|
7
7
|
} from "@cloudflare/cli-shared-helpers/interactive";
|
|
8
|
-
import { transformFile } from "@cloudflare/
|
|
8
|
+
import { transformFile } from "@cloudflare/shared-ast-primitives";
|
|
9
9
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
10
10
|
import { readJSON, usesTypescript, writeJSON } from "helpers/files";
|
|
11
11
|
import { detectPackageManager } from "helpers/packageManagers";
|
package/templates/solid/c3.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
|
|
2
2
|
import { blue } from "@cloudflare/cli-shared-helpers/colors";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
mergeObjectProperties,
|
|
5
|
+
transformFile,
|
|
6
|
+
} from "@cloudflare/shared-ast-primitives";
|
|
4
7
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
5
8
|
import { usesTypescript } from "helpers/files";
|
|
6
9
|
import { detectPackageManager } from "helpers/packageManagers";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
|
|
3
3
|
import { blue, brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
|
|
4
|
-
import { transformFile } from "@cloudflare/
|
|
4
|
+
import { transformFile } from "@cloudflare/shared-ast-primitives";
|
|
5
5
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
6
6
|
import { usesTypescript } from "helpers/files";
|
|
7
7
|
import { detectPackageManager } from "helpers/packageManagers";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
|
|
2
2
|
import { blue, brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
|
|
3
|
-
import { transformFile } from "@cloudflare/
|
|
3
|
+
import { transformFile } from "@cloudflare/shared-ast-primitives";
|
|
4
4
|
import { runFrameworkGenerator } from "frameworks/index";
|
|
5
5
|
import { usesTypescript } from "helpers/files";
|
|
6
6
|
import { detectPackageManager } from "helpers/packageManagers";
|