create-cloudflare 2.43.7 → 2.44.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 +35 -13
- package/package.json +6 -6
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.
|
|
74563
|
+
var version = "2.44.0";
|
|
74564
74564
|
|
|
74565
74565
|
// src/metrics.ts
|
|
74566
74566
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -74853,7 +74853,7 @@ var detectPmMismatch = (ctx) => {
|
|
|
74853
74853
|
|
|
74854
74854
|
// src/helpers/sparrow.ts
|
|
74855
74855
|
var import_undici = __toESM(require_undici());
|
|
74856
|
-
var SPARROW_SOURCE_KEY = "";
|
|
74856
|
+
var SPARROW_SOURCE_KEY = "50598e014ed44c739ec8074fdc16057c";
|
|
74857
74857
|
var SPARROW_URL = "https://sparrow.cloudflare.com";
|
|
74858
74858
|
function hasSparrowSourceKey() {
|
|
74859
74859
|
return SPARROW_SOURCE_KEY !== "";
|
|
@@ -75337,18 +75337,18 @@ var package_default = {
|
|
|
75337
75337
|
dependencies: {
|
|
75338
75338
|
"create-astro": "4.11.1",
|
|
75339
75339
|
"create-analog": "1.8.1",
|
|
75340
|
-
"@angular/create": "19.2.
|
|
75340
|
+
"@angular/create": "19.2.6",
|
|
75341
75341
|
"create-docusaurus": "3.7.0",
|
|
75342
|
-
"create-hono": "0.
|
|
75342
|
+
"create-hono": "0.17.0",
|
|
75343
75343
|
"create-next-app": "15.2.1",
|
|
75344
|
-
"create-qwik": "1.
|
|
75344
|
+
"create-qwik": "1.13.0",
|
|
75345
75345
|
"create-vite": "6.3.1",
|
|
75346
|
-
"create-remix": "2.
|
|
75347
|
-
"create-react-router": "7.
|
|
75346
|
+
"create-remix": "2.16.5",
|
|
75347
|
+
"create-react-router": "7.5.0",
|
|
75348
75348
|
"create-solid": "0.6.2",
|
|
75349
|
-
"create-vue": "3.
|
|
75349
|
+
"create-vue": "3.16.4",
|
|
75350
75350
|
gatsby: "5.14.1",
|
|
75351
|
-
sv: "0.
|
|
75351
|
+
sv: "0.8.0",
|
|
75352
75352
|
nuxi: "3.24.1"
|
|
75353
75353
|
}
|
|
75354
75354
|
};
|
|
@@ -78065,7 +78065,7 @@ var c3_default50 = config47;
|
|
|
78065
78065
|
var import_node_assert = __toESM(require("node:assert"));
|
|
78066
78066
|
|
|
78067
78067
|
// ../wrangler/package.json
|
|
78068
|
-
var version2 = "4.
|
|
78068
|
+
var version2 = "4.11.1";
|
|
78069
78069
|
|
|
78070
78070
|
// src/git.ts
|
|
78071
78071
|
var offerGit = async (ctx) => {
|
|
@@ -78716,7 +78716,7 @@ var processRemoteTemplate = async (args) => {
|
|
|
78716
78716
|
if (src.startsWith("https://github.com/") && src.includes("/tree/main/")) {
|
|
78717
78717
|
src = src.replace("https://github.com/", "github:").replace("/tree/main/", "/");
|
|
78718
78718
|
}
|
|
78719
|
-
const path6 = await downloadRemoteTemplate(src);
|
|
78719
|
+
const path6 = await downloadRemoteTemplate(src, args.templateMode);
|
|
78720
78720
|
const config48 = inferTemplateConfig(path6);
|
|
78721
78721
|
validateTemplate(path6, config48);
|
|
78722
78722
|
updateStatus(`${brandColor("template")} ${dim("cloned and validated")}`);
|
|
@@ -78775,13 +78775,14 @@ var inferCopyFilesDefinition = (path6) => {
|
|
|
78775
78775
|
const copyFiles = Object.keys(variants).length !== 0 ? { variants } : { path: "." };
|
|
78776
78776
|
return copyFiles;
|
|
78777
78777
|
};
|
|
78778
|
-
var downloadRemoteTemplate = async (src) => {
|
|
78778
|
+
var downloadRemoteTemplate = async (src, mode) => {
|
|
78779
78779
|
try {
|
|
78780
78780
|
updateStatus(`Cloning template from: ${blue(src)}`);
|
|
78781
78781
|
const emitter = (0, import_degit.default)(src, {
|
|
78782
78782
|
cache: false,
|
|
78783
78783
|
verbose: false,
|
|
78784
|
-
force: true
|
|
78784
|
+
force: true,
|
|
78785
|
+
mode
|
|
78785
78786
|
});
|
|
78786
78787
|
const tmpDir = await (0, import_promises4.mkdtemp)((0, import_path13.join)((0, import_os2.tmpdir)(), "c3-template"));
|
|
78787
78788
|
await emitter.clone(tmpDir);
|
|
@@ -79036,6 +79037,27 @@ var cliDefinition = {
|
|
|
79036
79037
|
npm create cloudflare -- --template https://github.com/cloudflare/workers-sdk/templates/worker-r2
|
|
79037
79038
|
`
|
|
79038
79039
|
},
|
|
79040
|
+
{
|
|
79041
|
+
name: "template-mode",
|
|
79042
|
+
type: "string",
|
|
79043
|
+
requiresArg: true,
|
|
79044
|
+
description: `The mechanism to use when fetching the template.
|
|
79045
|
+
|
|
79046
|
+
Can be either "git" or "tar". "tar" does not support fetching from private
|
|
79047
|
+
repositories. By default, degit will use "tar" if the template is hosted on GitHub, BitBucket, GitLab, or git.sr.ht.
|
|
79048
|
+
Otherwise, it will use "git".
|
|
79049
|
+
`,
|
|
79050
|
+
values: [
|
|
79051
|
+
{
|
|
79052
|
+
name: "git",
|
|
79053
|
+
description: "Use git to fetch the template. Supports private repositories."
|
|
79054
|
+
},
|
|
79055
|
+
{
|
|
79056
|
+
name: "tar",
|
|
79057
|
+
description: "Use tar to fetch the template. Only supported on public repositories hosted on GitHub, BitBucket, GitLab, or git.sr.ht."
|
|
79058
|
+
}
|
|
79059
|
+
]
|
|
79060
|
+
},
|
|
79039
79061
|
{
|
|
79040
79062
|
name: "accept-defaults",
|
|
79041
79063
|
alias: "y",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.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.20250410.0",
|
|
34
34
|
"@iarna/toml": "^3.0.0",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"degit": "^2.8.4",
|
|
53
53
|
"dns2": "^2.1.0",
|
|
54
54
|
"dotenv": "^16.0.0",
|
|
55
|
-
"esbuild": "0.
|
|
55
|
+
"esbuild": "0.25.2",
|
|
56
56
|
"execa": "^7.1.1",
|
|
57
57
|
"glob": "^10.3.3",
|
|
58
58
|
"haikunator": "^2.1.2",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"wrap-ansi": "^9.0.0",
|
|
71
71
|
"xdg-app-paths": "^8.3.0",
|
|
72
72
|
"yargs": "^17.7.2",
|
|
73
|
+
"@cloudflare/cli": "1.1.1",
|
|
73
74
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
74
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
75
|
-
"@cloudflare/vite-plugin": "1.0.
|
|
76
|
+
"@cloudflare/vite-plugin": "1.0.7",
|
|
76
77
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
77
|
-
"wrangler": "4.
|
|
78
|
-
"@cloudflare/cli": "1.1.1"
|
|
78
|
+
"wrangler": "4.11.1"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=18.14.1"
|