create-cloudflare 2.74.12 → 2.74.14
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 +36 -28
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -106473,9 +106473,9 @@ var validateTriggers = /* @__PURE__ */ __name((diagnostics, triggersFieldName, t
|
|
|
106473
106473
|
for (const [filterName, filterValue] of Object.entries(
|
|
106474
106474
|
event.filter
|
|
106475
106475
|
)) {
|
|
106476
|
-
if (filterName !== "namespace" && filterName !== "repo_name" || typeof filterValue !== "string") {
|
|
106476
|
+
if (filterName !== "namespace" && filterName !== "repo_name" || typeof filterValue !== "string" || filterValue.length === 0) {
|
|
106477
106477
|
diagnostics.errors.push(
|
|
106478
|
-
`Expected "${eventFieldName}.filter" to contain only string "namespace" and "repo_name" fields, but got ${JSON.stringify(event.filter)}.`
|
|
106478
|
+
`Expected "${eventFieldName}.filter" to contain only non-empty string "namespace" and "repo_name" fields, but got ${JSON.stringify(event.filter)}.`
|
|
106479
106479
|
);
|
|
106480
106480
|
isValid = false;
|
|
106481
106481
|
break;
|
|
@@ -111791,7 +111791,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
111791
111791
|
}, {});
|
|
111792
111792
|
}
|
|
111793
111793
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
111794
|
-
var DEFAULT_COMPAT_DATE = "2026-11-
|
|
111794
|
+
var DEFAULT_COMPAT_DATE = "2026-11-17";
|
|
111795
111795
|
function constructWranglerConfig(config50) {
|
|
111796
111796
|
const mappedBindings = mapWorkerMetadataBindings(config50.bindings);
|
|
111797
111797
|
const durableObjectClassNames = config50.bindings.filter(
|
|
@@ -120468,7 +120468,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
120468
120468
|
var yargs_default = Yargs;
|
|
120469
120469
|
|
|
120470
120470
|
// package.json
|
|
120471
|
-
var version2 = "2.74.
|
|
120471
|
+
var version2 = "2.74.14";
|
|
120472
120472
|
|
|
120473
120473
|
// src/metrics.ts
|
|
120474
120474
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -123180,18 +123180,18 @@ var import_semver3 = __toESM(require_semver2());
|
|
|
123180
123180
|
var package_default = {
|
|
123181
123181
|
name: "frameworks_clis_info",
|
|
123182
123182
|
dependencies: {
|
|
123183
|
-
"@angular/create": "22.2.
|
|
123183
|
+
"@angular/create": "22.2.7",
|
|
123184
123184
|
"@tanstack/cli": "0.72.16",
|
|
123185
|
-
"create-analog": "2.9.
|
|
123186
|
-
"create-astro": "5.3.
|
|
123185
|
+
"create-analog": "2.9.7",
|
|
123186
|
+
"create-astro": "5.3.2",
|
|
123187
123187
|
"create-docusaurus": "3.10.2",
|
|
123188
123188
|
"create-hono": "0.19.5",
|
|
123189
|
-
"create-next-app": "16.4.
|
|
123190
|
-
"create-qwik": "1.20.
|
|
123189
|
+
"create-next-app": "16.4.6",
|
|
123190
|
+
"create-qwik": "1.20.4",
|
|
123191
123191
|
"create-react-router": "8.5.1",
|
|
123192
123192
|
"create-rwsdk": "3.1.3",
|
|
123193
123193
|
"create-solid": "0.12.0",
|
|
123194
|
-
"create-vike": "0.0.
|
|
123194
|
+
"create-vike": "0.0.694",
|
|
123195
123195
|
"create-vinext-app": "1.1.0",
|
|
123196
123196
|
"create-vite": "9.3.4",
|
|
123197
123197
|
"create-vue": "3.24.0",
|
|
@@ -125965,7 +125965,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
125965
125965
|
var import_node_assert7 = __toESM(require("node:assert"));
|
|
125966
125966
|
|
|
125967
125967
|
// ../wrangler/package.json
|
|
125968
|
-
var version3 = "4.
|
|
125968
|
+
var version3 = "4.164.0";
|
|
125969
125969
|
|
|
125970
125970
|
// src/git.ts
|
|
125971
125971
|
var offerGit = async (ctx) => {
|
|
@@ -127361,15 +127361,23 @@ function secondsSince(start) {
|
|
|
127361
127361
|
}
|
|
127362
127362
|
|
|
127363
127363
|
// src/cf/deploy.ts
|
|
127364
|
+
var import_node_fs23 = require("node:fs");
|
|
127364
127365
|
var import_node_path27 = require("node:path");
|
|
127365
|
-
var DEFAULT_WORKER_CONFIG_PATH = ".cloudflare/output/
|
|
127366
|
+
var DEFAULT_WORKER_CONFIG_PATH = ".cloudflare/output/v1/workers/default/worker.config.json";
|
|
127367
|
+
var LEGACY_DEFAULT_WORKER_CONFIG_PATH = ".cloudflare/output/v0/workers/default/worker.config.json";
|
|
127366
127368
|
async function getDeploymentUrl(projectPath, accountId) {
|
|
127369
|
+
const configPath = [
|
|
127370
|
+
DEFAULT_WORKER_CONFIG_PATH,
|
|
127371
|
+
LEGACY_DEFAULT_WORKER_CONFIG_PATH
|
|
127372
|
+
].find((candidate) => (0, import_node_fs23.existsSync)((0, import_node_path27.join)(projectPath, candidate)));
|
|
127367
127373
|
let name3;
|
|
127368
127374
|
try {
|
|
127369
|
-
({ name: name3 } = readJSON(
|
|
127375
|
+
({ name: name3 } = readJSON(
|
|
127376
|
+
(0, import_node_path27.join)(projectPath, configPath ?? DEFAULT_WORKER_CONFIG_PATH)
|
|
127377
|
+
));
|
|
127370
127378
|
} catch {
|
|
127371
127379
|
throw new Error(
|
|
127372
|
-
`Failed to find deployment url: could not read the Worker's name from \`${DEFAULT_WORKER_CONFIG_PATH}\`.`
|
|
127380
|
+
`Failed to find deployment url: could not read the Worker's name from \`${configPath ?? DEFAULT_WORKER_CONFIG_PATH}\`.`
|
|
127373
127381
|
);
|
|
127374
127382
|
}
|
|
127375
127383
|
const { npx: npx6 } = detectPackageManager();
|
|
@@ -127403,7 +127411,7 @@ ${e instanceof Error ? e.message : String(e)}`
|
|
|
127403
127411
|
}
|
|
127404
127412
|
|
|
127405
127413
|
// src/wrangler/config.ts
|
|
127406
|
-
var
|
|
127414
|
+
var import_node_fs24 = require("node:fs");
|
|
127407
127415
|
var import_node_path28 = require("node:path");
|
|
127408
127416
|
|
|
127409
127417
|
// src/helpers/json.ts
|
|
@@ -127526,12 +127534,12 @@ var getWranglerJsoncPath = (ctx) => {
|
|
|
127526
127534
|
};
|
|
127527
127535
|
var wranglerTomlExists = (ctx) => {
|
|
127528
127536
|
const wranglerTomlPath = getWranglerTomlPath(ctx);
|
|
127529
|
-
return (0,
|
|
127537
|
+
return (0, import_node_fs24.existsSync)(wranglerTomlPath);
|
|
127530
127538
|
};
|
|
127531
127539
|
var wranglerJsonOrJsoncExists = (ctx) => {
|
|
127532
127540
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
127533
127541
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
127534
|
-
return (0,
|
|
127542
|
+
return (0, import_node_fs24.existsSync)(wranglerJsonPath) || (0, import_node_fs24.existsSync)(wranglerJsoncPath);
|
|
127535
127543
|
};
|
|
127536
127544
|
var readWranglerToml = (ctx) => {
|
|
127537
127545
|
const wranglerTomlPath = getWranglerTomlPath(ctx);
|
|
@@ -127539,7 +127547,7 @@ var readWranglerToml = (ctx) => {
|
|
|
127539
127547
|
};
|
|
127540
127548
|
var readWranglerJsonOrJsonc = (ctx, reviver) => {
|
|
127541
127549
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
127542
|
-
if ((0,
|
|
127550
|
+
if ((0, import_node_fs24.existsSync)(wranglerJsonPath)) {
|
|
127543
127551
|
return readJSONWithComments(wranglerJsonPath, reviver);
|
|
127544
127552
|
}
|
|
127545
127553
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
@@ -127551,7 +127559,7 @@ var writeWranglerToml = (ctx, contents) => {
|
|
|
127551
127559
|
};
|
|
127552
127560
|
var writeWranglerJsonOrJsonc = (ctx, config50) => {
|
|
127553
127561
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
127554
|
-
if ((0,
|
|
127562
|
+
if ((0, import_node_fs24.existsSync)(wranglerJsonPath)) {
|
|
127555
127563
|
return writeJSONWithComments(wranglerJsonPath, config50);
|
|
127556
127564
|
}
|
|
127557
127565
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
@@ -127559,10 +127567,10 @@ var writeWranglerJsonOrJsonc = (ctx, config50) => {
|
|
|
127559
127567
|
};
|
|
127560
127568
|
var addVscodeConfig = (ctx) => {
|
|
127561
127569
|
const settingsPath = `${ctx.project.path}/.vscode/settings.json`;
|
|
127562
|
-
if ((0,
|
|
127570
|
+
if ((0, import_node_fs24.existsSync)(settingsPath)) {
|
|
127563
127571
|
return;
|
|
127564
127572
|
}
|
|
127565
|
-
(0,
|
|
127573
|
+
(0, import_node_fs24.mkdirSync)(`${ctx.project.path}/.vscode`, { recursive: true });
|
|
127566
127574
|
writeJSON(settingsPath, {
|
|
127567
127575
|
"files.associations": {
|
|
127568
127576
|
"wrangler.json": "jsonc"
|
|
@@ -128321,7 +128329,7 @@ var createProject = async (ctx) => {
|
|
|
128321
128329
|
};
|
|
128322
128330
|
|
|
128323
128331
|
// src/project-directory.ts
|
|
128324
|
-
var
|
|
128332
|
+
var import_node_fs25 = require("node:fs");
|
|
128325
128333
|
var import_node_path31 = require("node:path");
|
|
128326
128334
|
var import_node_process15 = require("node:process");
|
|
128327
128335
|
var setupProjectDirectory = (ctx) => {
|
|
@@ -128331,14 +128339,14 @@ var setupProjectDirectory = (ctx) => {
|
|
|
128331
128339
|
throw new Error(err);
|
|
128332
128340
|
}
|
|
128333
128341
|
const directory = (0, import_node_path31.dirname)(path9);
|
|
128334
|
-
if (!(0,
|
|
128335
|
-
(0,
|
|
128342
|
+
if (!(0, import_node_fs25.existsSync)(directory)) {
|
|
128343
|
+
(0, import_node_fs25.mkdirSync)(directory, { recursive: true });
|
|
128336
128344
|
}
|
|
128337
128345
|
(0, import_node_process15.chdir)(directory);
|
|
128338
128346
|
};
|
|
128339
128347
|
|
|
128340
128348
|
// src/workers.ts
|
|
128341
|
-
var
|
|
128349
|
+
var import_node_fs26 = require("node:fs");
|
|
128342
128350
|
var import_node_path32 = require("node:path");
|
|
128343
128351
|
|
|
128344
128352
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
@@ -129673,7 +129681,7 @@ function getTypesPath(ctx) {
|
|
|
129673
129681
|
}
|
|
129674
129682
|
async function generateWorkersTypes(ctx, npm25) {
|
|
129675
129683
|
const packageJsonPath = (0, import_node_path32.join)(ctx.project.path, "package.json");
|
|
129676
|
-
if (!(0,
|
|
129684
|
+
if (!(0, import_node_fs26.existsSync)(packageJsonPath)) {
|
|
129677
129685
|
return;
|
|
129678
129686
|
}
|
|
129679
129687
|
const packageManifest = readJSON(packageJsonPath);
|
|
@@ -129717,7 +129725,7 @@ var maybeInstallNodeTypes = async (ctx, npm25) => {
|
|
|
129717
129725
|
};
|
|
129718
129726
|
async function updateTsConfig(ctx, { usesNodeCompat }) {
|
|
129719
129727
|
const tsconfigPath = (0, import_node_path32.join)(ctx.project.path, "tsconfig.json");
|
|
129720
|
-
if (!(0,
|
|
129728
|
+
if (!(0, import_node_fs26.existsSync)(tsconfigPath)) {
|
|
129721
129729
|
return;
|
|
129722
129730
|
}
|
|
129723
129731
|
const tsconfig = readFile2(tsconfigPath);
|
|
@@ -129740,7 +129748,7 @@ async function updateTsConfig(ctx, { usesNodeCompat }) {
|
|
|
129740
129748
|
newTypes.delete("@cloudflare/workers-types");
|
|
129741
129749
|
if (entrypointVersion !== null) {
|
|
129742
129750
|
newTypes.add(`@cloudflare/workers-types/${entrypointVersion}`);
|
|
129743
|
-
} else if ((0,
|
|
129751
|
+
} else if ((0, import_node_fs26.existsSync)(
|
|
129744
129752
|
(0, import_node_path32.join)(
|
|
129745
129753
|
ctx.project.path,
|
|
129746
129754
|
"node_modules",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.74.
|
|
3
|
+
"version": "2.74.14",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/types": "^7.21.4",
|
|
33
33
|
"@clack/prompts": "^1.2.0",
|
|
34
34
|
"@cloudflare/vite-plugin": "npm:@cloudflare/vite-plugin@1.63.2",
|
|
35
|
-
"@cloudflare/workers-types": "^5.
|
|
35
|
+
"@cloudflare/workers-types": "^5.20261117.1",
|
|
36
36
|
"@types/command-exists": "^1.2.0",
|
|
37
37
|
"@types/cross-spawn": "^6.0.2",
|
|
38
38
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -71,12 +71,12 @@
|
|
|
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.3.
|
|
74
|
+
"@cloudflare/cli-shared-helpers": "0.3.10",
|
|
75
|
+
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
75
76
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
76
77
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
77
|
-
"@cloudflare/
|
|
78
|
-
"
|
|
79
|
-
"wrangler": "4.162.0"
|
|
78
|
+
"@cloudflare/workers-utils": "0.54.2",
|
|
79
|
+
"wrangler": "4.164.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22.0.0"
|