create-cloudflare 2.43.3 → 2.43.5
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 +39 -17
- package/package.json +4 -4
- package/templates/angular/pages/c3.ts +1 -0
- package/templates/astro/pages/c3.ts +1 -0
- package/templates/docusaurus/pages/c3.ts +1 -0
- package/templates/gatsby/pages/c3.ts +1 -0
- package/templates/hono/pages/c3.ts +1 -0
- package/templates/next/pages/c3.ts +1 -0
- package/templates/next/workers/templates/open-next.config.ts +5 -2
- package/templates/nuxt/pages/c3.ts +1 -0
- package/templates/qwik/pages/c3.ts +1 -0
- package/templates/react/pages/c3.ts +1 -0
- package/templates/remix/pages/c3.ts +1 -0
- package/templates/svelte/pages/c3.ts +1 -0
- package/templates/vue/pages/c3.ts +1 -0
package/dist/cli.js
CHANGED
|
@@ -74560,7 +74560,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
74560
74560
|
var yargs_default = Yargs;
|
|
74561
74561
|
|
|
74562
74562
|
// package.json
|
|
74563
|
-
var version = "2.43.
|
|
74563
|
+
var version = "2.43.5";
|
|
74564
74564
|
|
|
74565
74565
|
// src/metrics.ts
|
|
74566
74566
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -75349,7 +75349,7 @@ var package_default = {
|
|
|
75349
75349
|
"create-vue": "3.15.1",
|
|
75350
75350
|
gatsby: "5.14.1",
|
|
75351
75351
|
sv: "0.6.23",
|
|
75352
|
-
nuxi: "3.
|
|
75352
|
+
nuxi: "3.24.1"
|
|
75353
75353
|
}
|
|
75354
75354
|
};
|
|
75355
75355
|
|
|
@@ -75750,6 +75750,7 @@ var config3 = {
|
|
|
75750
75750
|
frameworkCli: "@angular/create",
|
|
75751
75751
|
displayName: "Angular",
|
|
75752
75752
|
platform: "pages",
|
|
75753
|
+
hidden: true,
|
|
75753
75754
|
copyFiles: {
|
|
75754
75755
|
path: "./templates"
|
|
75755
75756
|
},
|
|
@@ -75909,6 +75910,7 @@ var config6 = {
|
|
|
75909
75910
|
id: "astro",
|
|
75910
75911
|
frameworkCli: "create-astro",
|
|
75911
75912
|
platform: "pages",
|
|
75913
|
+
hidden: true,
|
|
75912
75914
|
displayName: "Astro",
|
|
75913
75915
|
path: "templates/astro/pages",
|
|
75914
75916
|
copyFiles: {
|
|
@@ -76053,6 +76055,7 @@ var config10 = {
|
|
|
76053
76055
|
id: "docusaurus",
|
|
76054
76056
|
frameworkCli: "create-docusaurus",
|
|
76055
76057
|
platform: "pages",
|
|
76058
|
+
hidden: true,
|
|
76056
76059
|
displayName: "Docusaurus",
|
|
76057
76060
|
path: "templates/docusaurus/pages",
|
|
76058
76061
|
generate: generate7,
|
|
@@ -76129,6 +76132,7 @@ var config13 = {
|
|
|
76129
76132
|
id: "gatsby",
|
|
76130
76133
|
frameworkCli: "gatsby",
|
|
76131
76134
|
platform: "pages",
|
|
76135
|
+
hidden: true,
|
|
76132
76136
|
displayName: "Gatsby",
|
|
76133
76137
|
path: "templates/gatsby/pages",
|
|
76134
76138
|
generate: generate9,
|
|
@@ -76333,6 +76337,7 @@ var config20 = {
|
|
|
76333
76337
|
},
|
|
76334
76338
|
path: "templates/hono/pages",
|
|
76335
76339
|
platform: "pages",
|
|
76340
|
+
hidden: true,
|
|
76336
76341
|
generate: generate11,
|
|
76337
76342
|
transformPackageJson: async () => ({
|
|
76338
76343
|
scripts: {
|
|
@@ -76496,6 +76501,7 @@ var c3_default24 = {
|
|
|
76496
76501
|
id: "next",
|
|
76497
76502
|
frameworkCli: "create-next-app",
|
|
76498
76503
|
platform: "pages",
|
|
76504
|
+
hidden: true,
|
|
76499
76505
|
displayName: "Next.js",
|
|
76500
76506
|
path: "templates/next/pages",
|
|
76501
76507
|
generate: generate13,
|
|
@@ -76707,6 +76713,7 @@ var config24 = {
|
|
|
76707
76713
|
id: "nuxt",
|
|
76708
76714
|
frameworkCli: "nuxi",
|
|
76709
76715
|
platform: "pages",
|
|
76716
|
+
hidden: true,
|
|
76710
76717
|
displayName: "Nuxt",
|
|
76711
76718
|
copyFiles: {
|
|
76712
76719
|
path: "./templates"
|
|
@@ -77153,6 +77160,7 @@ var config30 = {
|
|
|
77153
77160
|
frameworkCli: "create-qwik",
|
|
77154
77161
|
displayName: "Qwik",
|
|
77155
77162
|
platform: "pages",
|
|
77163
|
+
hidden: true,
|
|
77156
77164
|
copyFiles: {
|
|
77157
77165
|
path: "./templates"
|
|
77158
77166
|
},
|
|
@@ -77365,6 +77373,7 @@ var config34 = {
|
|
|
77365
77373
|
frameworkCli: "create-vite",
|
|
77366
77374
|
displayName: "React",
|
|
77367
77375
|
platform: "pages",
|
|
77376
|
+
hidden: true,
|
|
77368
77377
|
path: "templates/react/pages",
|
|
77369
77378
|
generate: generate20,
|
|
77370
77379
|
transformPackageJson: async () => ({
|
|
@@ -77554,6 +77563,7 @@ var config37 = {
|
|
|
77554
77563
|
id: "remix",
|
|
77555
77564
|
frameworkCli: "create-remix",
|
|
77556
77565
|
platform: "pages",
|
|
77566
|
+
hidden: true,
|
|
77557
77567
|
displayName: "Remix",
|
|
77558
77568
|
copyFiles: {
|
|
77559
77569
|
path: "./templates"
|
|
@@ -77810,6 +77820,7 @@ var config42 = {
|
|
|
77810
77820
|
frameworkCli: "sv",
|
|
77811
77821
|
displayName: "SvelteKit",
|
|
77812
77822
|
platform: "pages",
|
|
77823
|
+
hidden: true,
|
|
77813
77824
|
copyFiles: {
|
|
77814
77825
|
path: "./templates"
|
|
77815
77826
|
},
|
|
@@ -77953,6 +77964,7 @@ var config45 = {
|
|
|
77953
77964
|
frameworkCli: "create-vue",
|
|
77954
77965
|
displayName: "Vue",
|
|
77955
77966
|
platform: "pages",
|
|
77967
|
+
hidden: true,
|
|
77956
77968
|
path: "templates/pages/vue",
|
|
77957
77969
|
generate: generate27,
|
|
77958
77970
|
transformPackageJson: async () => ({
|
|
@@ -78053,7 +78065,7 @@ var c3_default50 = config47;
|
|
|
78053
78065
|
var import_node_assert = __toESM(require("node:assert"));
|
|
78054
78066
|
|
|
78055
78067
|
// ../wrangler/package.json
|
|
78056
|
-
var version2 = "4.
|
|
78068
|
+
var version2 = "4.9.0";
|
|
78057
78069
|
|
|
78058
78070
|
// src/git.ts
|
|
78059
78071
|
var offerGit = async (ctx) => {
|
|
@@ -78552,21 +78564,31 @@ var createContext = async (args, prevArgs) => {
|
|
|
78552
78564
|
throw new Error(`Unsupported framework: ${framework}`);
|
|
78553
78565
|
}
|
|
78554
78566
|
if ("platformVariants" in frameworkConfig) {
|
|
78567
|
+
const availableVariants = Object.entries(
|
|
78568
|
+
frameworkConfig.platformVariants
|
|
78569
|
+
).filter(([, config48]) => !config48.hidden);
|
|
78570
|
+
if (availableVariants.length === 1) {
|
|
78571
|
+
args.platform ??= availableVariants[0][0];
|
|
78572
|
+
}
|
|
78555
78573
|
const platform3 = await processArgument(args, "platform", {
|
|
78556
78574
|
type: "select",
|
|
78557
78575
|
label: "platform",
|
|
78558
78576
|
question: "Select your deployment platform",
|
|
78559
78577
|
options: [
|
|
78560
|
-
|
|
78561
|
-
|
|
78562
|
-
|
|
78563
|
-
|
|
78564
|
-
|
|
78565
|
-
|
|
78566
|
-
|
|
78567
|
-
|
|
78568
|
-
|
|
78569
|
-
|
|
78578
|
+
...args.platform === "workers" || !frameworkConfig.platformVariants.workers.hidden ? [
|
|
78579
|
+
{
|
|
78580
|
+
label: "Workers with Assets",
|
|
78581
|
+
value: "workers",
|
|
78582
|
+
description: "Take advantage of the full Developer Platform, including R2, Queues, Durable Objects and more."
|
|
78583
|
+
}
|
|
78584
|
+
] : [],
|
|
78585
|
+
...args.platform === "pages" || !frameworkConfig.platformVariants.pages.hidden ? [
|
|
78586
|
+
{
|
|
78587
|
+
label: "Pages",
|
|
78588
|
+
value: "pages",
|
|
78589
|
+
description: "Great for simple websites and applications."
|
|
78590
|
+
}
|
|
78591
|
+
] : [],
|
|
78570
78592
|
backOption
|
|
78571
78593
|
],
|
|
78572
78594
|
defaultValue: "workers"
|
|
@@ -78947,12 +78969,12 @@ var cliDefinition = {
|
|
|
78947
78969
|
description: `Whether the application should be deployed to Pages or Workers. This is only applicable for Frameworks templates that support both Pages and Workers.`,
|
|
78948
78970
|
values: [
|
|
78949
78971
|
{
|
|
78950
|
-
name: "
|
|
78951
|
-
description: "Create a web application that can be deployed to
|
|
78972
|
+
name: "workers",
|
|
78973
|
+
description: "Create a web application that can be deployed to Workers."
|
|
78952
78974
|
},
|
|
78953
78975
|
{
|
|
78954
|
-
name: "
|
|
78955
|
-
description: "Create a web application that can be deployed to
|
|
78976
|
+
name: "pages",
|
|
78977
|
+
description: "Create a web application that can be deployed to Pages."
|
|
78956
78978
|
}
|
|
78957
78979
|
],
|
|
78958
78980
|
requiresArg: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.5",
|
|
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.20250405.0",
|
|
34
34
|
"@iarna/toml": "^3.0.0",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"@cloudflare/cli": "1.1.1",
|
|
74
74
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
75
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
|
-
"@cloudflare/vite-plugin": "1.0.
|
|
76
|
+
"@cloudflare/vite-plugin": "1.0.2",
|
|
77
77
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
78
|
-
"wrangler": "4.
|
|
78
|
+
"wrangler": "4.9.0"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=18.14.1"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
|
|
2
|
-
import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
|
|
3
2
|
|
|
4
3
|
export default defineCloudflareConfig({
|
|
5
|
-
|
|
4
|
+
// Uncomment to enable R2 cache,
|
|
5
|
+
// It should be imported as:
|
|
6
|
+
// `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
|
|
7
|
+
// See https://opennext.js.org/cloudflare/caching for more details
|
|
8
|
+
// incrementalCache: r2IncrementalCache,
|
|
6
9
|
});
|