create-cloudflare 2.62.6 → 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 +25 -2
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -88049,7 +88049,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
88049
88049
|
var yargs_default = Yargs;
|
|
88050
88050
|
|
|
88051
88051
|
// package.json
|
|
88052
|
-
var version = "2.
|
|
88052
|
+
var version = "2.63.0";
|
|
88053
88053
|
|
|
88054
88054
|
// src/metrics.ts
|
|
88055
88055
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -92140,7 +92140,7 @@ var experimental_c3_default3 = config48;
|
|
|
92140
92140
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
92141
92141
|
|
|
92142
92142
|
// ../wrangler/package.json
|
|
92143
|
-
var version2 = "4.
|
|
92143
|
+
var version2 = "4.63.0";
|
|
92144
92144
|
|
|
92145
92145
|
// src/git.ts
|
|
92146
92146
|
var offerGit = async (ctx) => {
|
|
@@ -93597,6 +93597,9 @@ var updateWranglerConfig = async (ctx) => {
|
|
|
93597
93597
|
wranglerJson = appendJSONProperty(wranglerJson, "observability", {
|
|
93598
93598
|
enabled: true
|
|
93599
93599
|
});
|
|
93600
|
+
if (ctx.args.lang !== "python") {
|
|
93601
|
+
wranglerJson = addNodejsCompatFlag(wranglerJson);
|
|
93602
|
+
}
|
|
93600
93603
|
addHintsAsJsonComments(wranglerJson);
|
|
93601
93604
|
writeWranglerJsonOrJsonc(ctx, wranglerJson);
|
|
93602
93605
|
addVscodeConfig(ctx);
|
|
@@ -93612,6 +93615,9 @@ var updateWranglerConfig = async (ctx) => {
|
|
|
93612
93615
|
ctx.project.path
|
|
93613
93616
|
);
|
|
93614
93617
|
wranglerToml.observability ??= { enabled: true };
|
|
93618
|
+
if (ctx.args.lang !== "python") {
|
|
93619
|
+
addNodejsCompatFlagToToml(wranglerToml);
|
|
93620
|
+
}
|
|
93615
93621
|
writeWranglerToml(
|
|
93616
93622
|
ctx,
|
|
93617
93623
|
`#:schema node_modules/wrangler/config-schema.json
|
|
@@ -93754,6 +93760,23 @@ function generateHintsAsTomlComments(wranglerConfig) {
|
|
|
93754
93760
|
}
|
|
93755
93761
|
return commentLines.join("\n");
|
|
93756
93762
|
}
|
|
93763
|
+
function addNodejsCompatFlag(wranglerConfig) {
|
|
93764
|
+
const existingFlags = Array.isArray(wranglerConfig.compatibility_flags) ? wranglerConfig.compatibility_flags : [];
|
|
93765
|
+
if (existingFlags.includes("nodejs_compat") || existingFlags.includes("nodejs_compat_v2") || existingFlags.includes("no_nodejs_compat")) {
|
|
93766
|
+
return wranglerConfig;
|
|
93767
|
+
}
|
|
93768
|
+
return appendJSONProperty(wranglerConfig, "compatibility_flags", [
|
|
93769
|
+
"nodejs_compat",
|
|
93770
|
+
...existingFlags
|
|
93771
|
+
]);
|
|
93772
|
+
}
|
|
93773
|
+
function addNodejsCompatFlagToToml(wranglerConfig) {
|
|
93774
|
+
const existingFlags = Array.isArray(wranglerConfig.compatibility_flags) ? wranglerConfig.compatibility_flags : [];
|
|
93775
|
+
if (existingFlags.includes("nodejs_compat") || existingFlags.includes("nodejs_compat_v2") || existingFlags.includes("no_nodejs_compat")) {
|
|
93776
|
+
return;
|
|
93777
|
+
}
|
|
93778
|
+
wranglerConfig.compatibility_flags = ["nodejs_compat", ...existingFlags];
|
|
93779
|
+
}
|
|
93757
93780
|
|
|
93758
93781
|
// src/deploy.ts
|
|
93759
93782
|
var offerToDeploy = async (ctx) => {
|
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.9.
|
|
75
|
+
"@cloudflare/workers-utils": "0.9.1",
|
|
76
76
|
"@cloudflare/cli": "1.2.1",
|
|
77
77
|
"@cloudflare/eslint-config-shared": "1.2.1",
|
|
78
78
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
79
|
-
"@cloudflare/vite-plugin": "1.23.
|
|
79
|
+
"@cloudflare/vite-plugin": "1.23.1",
|
|
80
80
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
81
|
-
"wrangler": "4.
|
|
81
|
+
"wrangler": "4.63.0"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=18.14.1"
|