create-cloudflare 2.64.0 → 2.64.1

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 CHANGED
@@ -34,6 +34,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  ));
35
35
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
36
 
37
+ // ../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/vendors.json
38
+ var require_vendors = __commonJS({
39
+ "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/vendors.json"(exports2, module3) {
40
+ module3.exports = [
41
+ {
42
+ name: "Agola CI",
43
+ constant: "AGOLA",
44
+ env: "AGOLA_GIT_REF",
45
+ pr: "AGOLA_PULL_REQUEST_ID"
46
+ },
47
+ {
48
+ name: "Alpic",
49
+ constant: "ALPIC",
50
+ env: "ALPIC_HOST"
51
+ },
52
+ {
53
+ name: "Appcircle",
54
+ constant: "APPCIRCLE",
55
+ env: "AC_APPCIRCLE",
56
+ pr: {
57
+ env: "AC_GIT_PR",
58
+ ne: "false"
59
+ }
60
+ },
61
+ {
62
+ name: "AppVeyor",
63
+ constant: "APPVEYOR",
64
+ env: "APPVEYOR",
65
+ pr: "APPVEYOR_PULL_REQUEST_NUMBER"
66
+ },
67
+ {
68
+ name: "AWS CodeBuild",
69
+ constant: "CODEBUILD",
70
+ env: "CODEBUILD_BUILD_ARN",
71
+ pr: {
72
+ env: "CODEBUILD_WEBHOOK_EVENT",
73
+ any: [
74
+ "PULL_REQUEST_CREATED",
75
+ "PULL_REQUEST_UPDATED",
76
+ "PULL_REQUEST_REOPENED"
77
+ ]
78
+ }
79
+ },
80
+ {
81
+ name: "Azure Pipelines",
82
+ constant: "AZURE_PIPELINES",
83
+ env: "TF_BUILD",
84
+ pr: {
85
+ BUILD_REASON: "PullRequest"
86
+ }
87
+ },
88
+ {
89
+ name: "Bamboo",
90
+ constant: "BAMBOO",
91
+ env: "bamboo_planKey"
92
+ },
93
+ {
94
+ name: "Bitbucket Pipelines",
95
+ constant: "BITBUCKET",
96
+ env: "BITBUCKET_COMMIT",
97
+ pr: "BITBUCKET_PR_ID"
98
+ },
99
+ {
100
+ name: "Bitrise",
101
+ constant: "BITRISE",
102
+ env: "BITRISE_IO",
103
+ pr: "BITRISE_PULL_REQUEST"
104
+ },
105
+ {
106
+ name: "Buddy",
107
+ constant: "BUDDY",
108
+ env: "BUDDY_WORKSPACE_ID",
109
+ pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
110
+ },
111
+ {
112
+ name: "Buildkite",
113
+ constant: "BUILDKITE",
114
+ env: "BUILDKITE",
115
+ pr: {
116
+ env: "BUILDKITE_PULL_REQUEST",
117
+ ne: "false"
118
+ }
119
+ },
120
+ {
121
+ name: "CircleCI",
122
+ constant: "CIRCLE",
123
+ env: "CIRCLECI",
124
+ pr: "CIRCLE_PULL_REQUEST"
125
+ },
126
+ {
127
+ name: "Cirrus CI",
128
+ constant: "CIRRUS",
129
+ env: "CIRRUS_CI",
130
+ pr: "CIRRUS_PR"
131
+ },
132
+ {
133
+ name: "Cloudflare Pages",
134
+ constant: "CLOUDFLARE_PAGES",
135
+ env: "CF_PAGES"
136
+ },
137
+ {
138
+ name: "Cloudflare Workers",
139
+ constant: "CLOUDFLARE_WORKERS",
140
+ env: "WORKERS_CI"
141
+ },
142
+ {
143
+ name: "Codefresh",
144
+ constant: "CODEFRESH",
145
+ env: "CF_BUILD_ID",
146
+ pr: {
147
+ any: [
148
+ "CF_PULL_REQUEST_NUMBER",
149
+ "CF_PULL_REQUEST_ID"
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ name: "Codemagic",
155
+ constant: "CODEMAGIC",
156
+ env: "CM_BUILD_ID",
157
+ pr: "CM_PULL_REQUEST"
158
+ },
159
+ {
160
+ name: "Codeship",
161
+ constant: "CODESHIP",
162
+ env: {
163
+ CI_NAME: "codeship"
164
+ }
165
+ },
166
+ {
167
+ name: "Drone",
168
+ constant: "DRONE",
169
+ env: "DRONE",
170
+ pr: {
171
+ DRONE_BUILD_EVENT: "pull_request"
172
+ }
173
+ },
174
+ {
175
+ name: "dsari",
176
+ constant: "DSARI",
177
+ env: "DSARI"
178
+ },
179
+ {
180
+ name: "Earthly",
181
+ constant: "EARTHLY",
182
+ env: "EARTHLY_CI"
183
+ },
184
+ {
185
+ name: "Expo Application Services",
186
+ constant: "EAS",
187
+ env: "EAS_BUILD"
188
+ },
189
+ {
190
+ name: "Gerrit",
191
+ constant: "GERRIT",
192
+ env: "GERRIT_PROJECT"
193
+ },
194
+ {
195
+ name: "Gitea Actions",
196
+ constant: "GITEA_ACTIONS",
197
+ env: "GITEA_ACTIONS"
198
+ },
199
+ {
200
+ name: "GitHub Actions",
201
+ constant: "GITHUB_ACTIONS",
202
+ env: "GITHUB_ACTIONS",
203
+ pr: {
204
+ GITHUB_EVENT_NAME: "pull_request"
205
+ }
206
+ },
207
+ {
208
+ name: "GitLab CI",
209
+ constant: "GITLAB",
210
+ env: "GITLAB_CI",
211
+ pr: "CI_MERGE_REQUEST_ID"
212
+ },
213
+ {
214
+ name: "GoCD",
215
+ constant: "GOCD",
216
+ env: "GO_PIPELINE_LABEL"
217
+ },
218
+ {
219
+ name: "Google Cloud Build",
220
+ constant: "GOOGLE_CLOUD_BUILD",
221
+ env: "BUILDER_OUTPUT"
222
+ },
223
+ {
224
+ name: "Harness CI",
225
+ constant: "HARNESS",
226
+ env: "HARNESS_BUILD_ID"
227
+ },
228
+ {
229
+ name: "Heroku",
230
+ constant: "HEROKU",
231
+ env: {
232
+ env: "NODE",
233
+ includes: "/app/.heroku/node/bin/node"
234
+ }
235
+ },
236
+ {
237
+ name: "Hudson",
238
+ constant: "HUDSON",
239
+ env: "HUDSON_URL"
240
+ },
241
+ {
242
+ name: "Jenkins",
243
+ constant: "JENKINS",
244
+ env: [
245
+ "JENKINS_URL",
246
+ "BUILD_ID"
247
+ ],
248
+ pr: {
249
+ any: [
250
+ "ghprbPullId",
251
+ "CHANGE_ID"
252
+ ]
253
+ }
254
+ },
255
+ {
256
+ name: "LayerCI",
257
+ constant: "LAYERCI",
258
+ env: "LAYERCI",
259
+ pr: "LAYERCI_PULL_REQUEST"
260
+ },
261
+ {
262
+ name: "Magnum CI",
263
+ constant: "MAGNUM",
264
+ env: "MAGNUM"
265
+ },
266
+ {
267
+ name: "Netlify CI",
268
+ constant: "NETLIFY",
269
+ env: "NETLIFY",
270
+ pr: {
271
+ env: "PULL_REQUEST",
272
+ ne: "false"
273
+ }
274
+ },
275
+ {
276
+ name: "Nevercode",
277
+ constant: "NEVERCODE",
278
+ env: "NEVERCODE",
279
+ pr: {
280
+ env: "NEVERCODE_PULL_REQUEST",
281
+ ne: "false"
282
+ }
283
+ },
284
+ {
285
+ name: "Prow",
286
+ constant: "PROW",
287
+ env: "PROW_JOB_ID"
288
+ },
289
+ {
290
+ name: "ReleaseHub",
291
+ constant: "RELEASEHUB",
292
+ env: "RELEASE_BUILD_ID"
293
+ },
294
+ {
295
+ name: "Render",
296
+ constant: "RENDER",
297
+ env: "RENDER",
298
+ pr: {
299
+ IS_PULL_REQUEST: "true"
300
+ }
301
+ },
302
+ {
303
+ name: "Sail CI",
304
+ constant: "SAIL",
305
+ env: "SAILCI",
306
+ pr: "SAIL_PULL_REQUEST_NUMBER"
307
+ },
308
+ {
309
+ name: "Screwdriver",
310
+ constant: "SCREWDRIVER",
311
+ env: "SCREWDRIVER",
312
+ pr: {
313
+ env: "SD_PULL_REQUEST",
314
+ ne: "false"
315
+ }
316
+ },
317
+ {
318
+ name: "Semaphore",
319
+ constant: "SEMAPHORE",
320
+ env: "SEMAPHORE",
321
+ pr: "PULL_REQUEST_NUMBER"
322
+ },
323
+ {
324
+ name: "Sourcehut",
325
+ constant: "SOURCEHUT",
326
+ env: {
327
+ CI_NAME: "sourcehut"
328
+ }
329
+ },
330
+ {
331
+ name: "Strider CD",
332
+ constant: "STRIDER",
333
+ env: "STRIDER"
334
+ },
335
+ {
336
+ name: "TaskCluster",
337
+ constant: "TASKCLUSTER",
338
+ env: [
339
+ "TASK_ID",
340
+ "RUN_ID"
341
+ ]
342
+ },
343
+ {
344
+ name: "TeamCity",
345
+ constant: "TEAMCITY",
346
+ env: "TEAMCITY_VERSION"
347
+ },
348
+ {
349
+ name: "Travis CI",
350
+ constant: "TRAVIS",
351
+ env: "TRAVIS",
352
+ pr: {
353
+ env: "TRAVIS_PULL_REQUEST",
354
+ ne: "false"
355
+ }
356
+ },
357
+ {
358
+ name: "Vela",
359
+ constant: "VELA",
360
+ env: "VELA",
361
+ pr: {
362
+ VELA_PULL_REQUEST: "1"
363
+ }
364
+ },
365
+ {
366
+ name: "Vercel",
367
+ constant: "VERCEL",
368
+ env: {
369
+ any: [
370
+ "NOW_BUILDER",
371
+ "VERCEL"
372
+ ]
373
+ },
374
+ pr: "VERCEL_GIT_PULL_REQUEST_ID"
375
+ },
376
+ {
377
+ name: "Visual Studio App Center",
378
+ constant: "APPCENTER",
379
+ env: "APPCENTER_BUILD_ID"
380
+ },
381
+ {
382
+ name: "Woodpecker",
383
+ constant: "WOODPECKER",
384
+ env: {
385
+ CI: "woodpecker"
386
+ },
387
+ pr: {
388
+ CI_BUILD_EVENT: "pull_request"
389
+ }
390
+ },
391
+ {
392
+ name: "Xcode Cloud",
393
+ constant: "XCODE_CLOUD",
394
+ env: "CI_XCODE_PROJECT",
395
+ pr: "CI_PULL_REQUEST_NUMBER"
396
+ },
397
+ {
398
+ name: "Xcode Server",
399
+ constant: "XCODE_SERVER",
400
+ env: "XCS"
401
+ }
402
+ ];
403
+ }
404
+ });
405
+
406
+ // ../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/index.js
407
+ var require_ci_info = __commonJS({
408
+ "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/index.js"(exports2) {
409
+ "use strict";
410
+ var vendors = require_vendors();
411
+ var env3 = process.env;
412
+ Object.defineProperty(exports2, "_vendors", {
413
+ value: vendors.map(function(v2) {
414
+ return v2.constant;
415
+ })
416
+ });
417
+ exports2.name = null;
418
+ exports2.isPR = null;
419
+ exports2.id = null;
420
+ if (env3.CI !== "false") {
421
+ vendors.forEach(function(vendor) {
422
+ const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
423
+ const isCI = envs.every(function(obj) {
424
+ return checkEnv(obj);
425
+ });
426
+ exports2[vendor.constant] = isCI;
427
+ if (!isCI) {
428
+ return;
429
+ }
430
+ exports2.name = vendor.name;
431
+ exports2.isPR = checkPR(vendor);
432
+ exports2.id = vendor.constant;
433
+ });
434
+ }
435
+ exports2.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
436
+ (env3.BUILD_ID || // Jenkins, Cloudbees
437
+ env3.BUILD_NUMBER || // Jenkins, TeamCity
438
+ env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
439
+ env3.CI_APP_ID || // Appflow
440
+ env3.CI_BUILD_ID || // Appflow
441
+ env3.CI_BUILD_NUMBER || // Appflow
442
+ env3.CI_NAME || // Codeship and others
443
+ env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
444
+ env3.RUN_ID || // TaskCluster, dsari
445
+ exports2.name || false));
446
+ function checkEnv(obj) {
447
+ if (typeof obj === "string") return !!env3[obj];
448
+ if ("env" in obj) {
449
+ return env3[obj.env] && env3[obj.env].includes(obj.includes);
450
+ }
451
+ if ("any" in obj) {
452
+ return obj.any.some(function(k2) {
453
+ return !!env3[k2];
454
+ });
455
+ }
456
+ return Object.keys(obj).every(function(k2) {
457
+ return env3[k2] === obj[k2];
458
+ });
459
+ }
460
+ function checkPR(vendor) {
461
+ switch (typeof vendor.pr) {
462
+ case "string":
463
+ return !!env3[vendor.pr];
464
+ case "object":
465
+ if ("env" in vendor.pr) {
466
+ if ("any" in vendor.pr) {
467
+ return vendor.pr.any.some(function(key) {
468
+ return env3[vendor.pr.env] === key;
469
+ });
470
+ } else {
471
+ return vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne;
472
+ }
473
+ } else if ("any" in vendor.pr) {
474
+ return vendor.pr.any.some(function(key) {
475
+ return !!env3[key];
476
+ });
477
+ } else {
478
+ return checkEnv(vendor.pr);
479
+ }
480
+ default:
481
+ return null;
482
+ }
483
+ }
484
+ }
485
+ });
486
+
37
487
  // ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
38
488
  var require_src = __commonJS({
39
489
  "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module3) {
@@ -77455,7 +77905,8 @@ var bindingTypeFriendlyNames = {
77455
77905
  worker_loader: "Worker Loader",
77456
77906
  vpc_service: "VPC Service",
77457
77907
  media: "Media",
77458
- assets: "Assets"
77908
+ assets: "Assets",
77909
+ inherit: "Inherited"
77459
77910
  };
77460
77911
  function getBindingTypeFriendlyName(bindingType) {
77461
77912
  if (bindingType in bindingTypeFriendlyNames) {
@@ -81403,12 +81854,13 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
81403
81854
  __name(validateDurableObjectBinding2, "validateDurableObjectBinding");
81404
81855
 
81405
81856
  // ../cli/check-macos-version.ts
81857
+ var import_ci_info = __toESM(require_ci_info());
81406
81858
  var MINIMUM_MACOS_VERSION = "13.5.0";
81407
81859
  function checkMacOSVersion(options) {
81408
81860
  if (process.platform !== "darwin") {
81409
81861
  return;
81410
81862
  }
81411
- if (process.env.CI) {
81863
+ if (import_ci_info.default.isCI) {
81412
81864
  return;
81413
81865
  }
81414
81866
  const release = import_node_os3.default.release();
@@ -88101,7 +88553,7 @@ var Yargs = YargsFactory(esm_default2);
88101
88553
  var yargs_default = Yargs;
88102
88554
 
88103
88555
  // package.json
88104
- var version = "2.64.0";
88556
+ var version = "2.64.1";
88105
88557
 
88106
88558
  // src/metrics.ts
88107
88559
  var import_node_async_hooks = require("node:async_hooks");
@@ -89717,17 +90169,17 @@ var package_default = {
89717
90169
  "create-hono": "0.19.4",
89718
90170
  "create-next-app": "15.5.6",
89719
90171
  "create-qwik": "1.19.0",
89720
- "create-vite": "7.1.1",
90172
+ "create-vite": "8.3.0",
89721
90173
  "create-rwsdk": "3.1.3",
89722
90174
  "create-react-router": "7.13.0",
89723
90175
  "create-solid": "0.6.11",
89724
90176
  "create-vike": "0.0.575",
89725
90177
  "create-vue": "3.21.0",
89726
90178
  "create-waku": "0.12.5-1.0.0-alpha.3-0",
89727
- "@tanstack/create-start": "0.40.0",
90179
+ "@tanstack/create-start": "0.48.10",
89728
90180
  gatsby: "5.16.0",
89729
- sv: "0.11.4",
89730
- nuxi: "3.30.0"
90181
+ sv: "0.12.1",
90182
+ nuxi: "3.33.1"
89731
90183
  }
89732
90184
  };
89733
90185
 
@@ -91973,7 +92425,7 @@ var config41 = {
91973
92425
  }),
91974
92426
  devScript: "dev",
91975
92427
  deployScript: "deploy",
91976
- previewScript: "serve"
92428
+ previewScript: "preview"
91977
92429
  };
91978
92430
  var c3_default44 = config41;
91979
92431
 
@@ -92236,7 +92688,7 @@ Retrieve API references and limits from:
92236
92688
  var import_node_assert6 = __toESM(require("node:assert"));
92237
92689
 
92238
92690
  // ../wrangler/package.json
92239
- var version2 = "4.64.0";
92691
+ var version2 = "4.65.0";
92240
92692
 
92241
92693
  // src/git.ts
92242
92694
  var offerGit = async (ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.64.0",
3
+ "version": "2.64.1",
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.20260210.0",
33
+ "@cloudflare/workers-types": "^4.20260212.0",
34
34
  "@types/command-exists": "^1.2.0",
35
35
  "@types/cross-spawn": "^6.0.2",
36
36
  "@types/deepmerge": "^2.2.0",
@@ -63,6 +63,7 @@
63
63
  "recast": "^0.22.0",
64
64
  "semver": "^7.7.1",
65
65
  "smol-toml": "^1.5.2",
66
+ "tree-kill": "^1.2.2",
66
67
  "typescript": "~5.8.3",
67
68
  "undici": "7.18.2",
68
69
  "vite": "^5.4.14",
@@ -72,13 +73,13 @@
72
73
  "wrap-ansi": "^9.0.0",
73
74
  "xdg-app-paths": "^8.3.0",
74
75
  "yargs": "^17.7.2",
75
- "@cloudflare/workers-utils": "0.9.1",
76
- "@cloudflare/cli": "1.2.1",
76
+ "@cloudflare/workers-utils": "0.10.0",
77
77
  "@cloudflare/eslint-config-shared": "1.2.1",
78
+ "@cloudflare/cli": "1.2.1",
78
79
  "@cloudflare/mock-npm-registry": "0.0.0",
79
- "@cloudflare/vite-plugin": "1.24.0",
80
+ "@cloudflare/vite-plugin": "1.25.0",
80
81
  "@cloudflare/workers-tsconfig": "0.0.0",
81
- "wrangler": "4.64.0"
82
+ "wrangler": "4.65.0"
82
83
  },
83
84
  "engines": {
84
85
  "node": ">=18.14.1"
@@ -36,6 +36,6 @@ const config: TemplateConfig = {
36
36
  }),
37
37
  devScript: "dev",
38
38
  deployScript: "deploy",
39
- previewScript: "serve",
39
+ previewScript: "preview",
40
40
  };
41
41
  export default config;