create-cloudflare 2.74.11 → 2.74.13
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 +117 -65
- 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;
|
|
@@ -111064,7 +111064,7 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
111064
111064
|
// TODO: Miniflare currently ignores `remote: true` on queues, tracked in #13727.
|
|
111065
111065
|
queue: "local-and-remote",
|
|
111066
111066
|
flagship: "local-and-remote",
|
|
111067
|
-
artifacts: "
|
|
111067
|
+
artifacts: "local-and-remote",
|
|
111068
111068
|
analytics_engine: "local-and-remote",
|
|
111069
111069
|
vectorize: "remote",
|
|
111070
111070
|
mtls_certificate: "remote",
|
|
@@ -111094,32 +111094,17 @@ function resolveBindingRemote(type, remote, { remoteBindingsDisabled = false } =
|
|
|
111094
111094
|
return true;
|
|
111095
111095
|
case "local-only":
|
|
111096
111096
|
return false;
|
|
111097
|
-
case "remote-default-with-local-opt-in":
|
|
111098
|
-
return !remoteBindingsDisabled && remote !== false;
|
|
111099
111097
|
case "local-and-remote":
|
|
111100
111098
|
case "remote":
|
|
111101
111099
|
return !remoteBindingsDisabled && remote === true;
|
|
111102
111100
|
}
|
|
111103
111101
|
}
|
|
111104
111102
|
__name(resolveBindingRemote, "resolveBindingRemote");
|
|
111105
|
-
function validateBindingRemoteSetting(type, remote, warn2
|
|
111106
|
-
binding,
|
|
111107
|
-
remoteBindingsDisabled = false,
|
|
111108
|
-
configFormat: configFormat2 = "wrangler"
|
|
111109
|
-
} = {}) {
|
|
111110
|
-
const remoteSetting = /* @__PURE__ */ __name((value) => configFormat2 === "cloudflare-config" ? `\`dev: { remote: ${value} }\`` : `\`remote: ${value}\``, "remoteSetting");
|
|
111103
|
+
function validateBindingRemoteSetting(type, remote, warn2) {
|
|
111111
111104
|
const support = getBindingLocalSupport(type);
|
|
111112
111105
|
switch (support) {
|
|
111113
111106
|
case "local-and-remote":
|
|
111114
111107
|
return;
|
|
111115
|
-
case "remote-default-with-local-opt-in":
|
|
111116
|
-
if (remote === void 0 && !remoteBindingsDisabled) {
|
|
111117
|
-
const subject = binding === void 0 ? `${getBindingTypeFriendlyName(type)} bindings use` : `${getBindingTypeFriendlyName(type)} binding ${binding} uses`;
|
|
111118
|
-
warn2(
|
|
111119
|
-
`${subject} the deployed resource. Set ${remoteSetting(false)} to use the local simulator, or ${remoteSetting(true)} to silence this warning.`
|
|
111120
|
-
);
|
|
111121
|
-
}
|
|
111122
|
-
return;
|
|
111123
111108
|
case "local-only":
|
|
111124
111109
|
if (remote === true) {
|
|
111125
111110
|
throw new UserError(
|
|
@@ -111163,6 +111148,24 @@ function validateBindingRemoteSetting(type, remote, warn2, {
|
|
|
111163
111148
|
}
|
|
111164
111149
|
}
|
|
111165
111150
|
__name(validateBindingRemoteSetting, "validateBindingRemoteSetting");
|
|
111151
|
+
function createArtifactsLocalDefaultWarner(configFormat2) {
|
|
111152
|
+
const remoteSetting = /* @__PURE__ */ __name((value) => configFormat2 === "cloudflare-config" ? `\`dev: { remote: ${value} }\`` : `\`remote: ${value}\``, "remoteSetting");
|
|
111153
|
+
const warned = /* @__PURE__ */ new Set();
|
|
111154
|
+
return ({ id, bindings }, warn2) => {
|
|
111155
|
+
for (const { name: name3, remote, worker } of bindings) {
|
|
111156
|
+
const key = JSON.stringify([id, worker ?? null, name3]);
|
|
111157
|
+
if (remote !== void 0 || warned.has(key)) {
|
|
111158
|
+
continue;
|
|
111159
|
+
}
|
|
111160
|
+
warned.add(key);
|
|
111161
|
+
const subject = worker === void 0 ? name3 : `${name3} in Worker ${worker}`;
|
|
111162
|
+
warn2(
|
|
111163
|
+
`Artifacts binding ${subject} uses the local simulator by default. Set ${remoteSetting(true)} to use deployed repos, or ${remoteSetting(false)} to silence this warning.`
|
|
111164
|
+
);
|
|
111165
|
+
}
|
|
111166
|
+
};
|
|
111167
|
+
}
|
|
111168
|
+
__name(createArtifactsLocalDefaultWarner, "createArtifactsLocalDefaultWarner");
|
|
111166
111169
|
var supportedPagesConfigFields = [
|
|
111167
111170
|
"pages_build_output_dir",
|
|
111168
111171
|
"name",
|
|
@@ -111335,14 +111338,10 @@ function getInstalledPackageVersion(packageName, projectPath, opts = {}) {
|
|
|
111335
111338
|
return void 0;
|
|
111336
111339
|
}
|
|
111337
111340
|
const lastDir = opts.stopAtProjectPath === true ? projectPath : void 0;
|
|
111338
|
-
const
|
|
111339
|
-
if (!
|
|
111341
|
+
const packageJson = findPackageRootManifest(packagePath, lastDir);
|
|
111342
|
+
if (!packageJson) {
|
|
111340
111343
|
return void 0;
|
|
111341
111344
|
}
|
|
111342
|
-
const packageJson = parsePackageJSON(
|
|
111343
|
-
readFileSync(packageJsonPath),
|
|
111344
|
-
packageJsonPath
|
|
111345
|
-
);
|
|
111346
111345
|
if (packageJson.name !== packageName) {
|
|
111347
111346
|
const bundledVersion = packageJson.bundledVersions?.[packageName];
|
|
111348
111347
|
if (bundledVersion !== void 0) {
|
|
@@ -111354,29 +111353,27 @@ function getInstalledPackageVersion(packageName, projectPath, opts = {}) {
|
|
|
111354
111353
|
}
|
|
111355
111354
|
}
|
|
111356
111355
|
__name(getInstalledPackageVersion, "getInstalledPackageVersion");
|
|
111357
|
-
function
|
|
111356
|
+
function findPackageRootManifest(startDir, lastDir) {
|
|
111358
111357
|
let dir2 = startDir;
|
|
111359
|
-
const root = import_node_path5.default.parse(dir2).root;
|
|
111360
111358
|
while (true) {
|
|
111361
|
-
const
|
|
111362
|
-
|
|
111363
|
-
|
|
111364
|
-
|
|
111359
|
+
const packageJsonPath = import_node_path5.default.join(dir2, "package.json");
|
|
111360
|
+
if ((0, import_node_fs4.statSync)(packageJsonPath, { throwIfNoEntry: false })?.isFile()) {
|
|
111361
|
+
const packageJson = parsePackageJSON(
|
|
111362
|
+
readFileSync(packageJsonPath),
|
|
111363
|
+
packageJsonPath
|
|
111364
|
+
);
|
|
111365
|
+
if (packageJson.name !== void 0) {
|
|
111366
|
+
return packageJson.version !== void 0 ? packageJson : void 0;
|
|
111365
111367
|
}
|
|
111366
|
-
} catch {
|
|
111367
|
-
}
|
|
111368
|
-
if (lastDir !== void 0 && dir2 === lastDir) {
|
|
111369
|
-
break;
|
|
111370
111368
|
}
|
|
111371
111369
|
const parent = import_node_path5.default.dirname(dir2);
|
|
111372
|
-
if (parent === dir2 ||
|
|
111373
|
-
|
|
111370
|
+
if (dir2 === lastDir || parent === dir2 || import_node_path5.default.basename(parent) === "node_modules" || import_node_path5.default.basename(parent).startsWith("@") && import_node_path5.default.basename(import_node_path5.default.dirname(parent)) === "node_modules") {
|
|
111371
|
+
return void 0;
|
|
111374
111372
|
}
|
|
111375
111373
|
dir2 = parent;
|
|
111376
111374
|
}
|
|
111377
|
-
return void 0;
|
|
111378
111375
|
}
|
|
111379
|
-
__name(
|
|
111376
|
+
__name(findPackageRootManifest, "findPackageRootManifest");
|
|
111380
111377
|
function mapWorkerMetadataBindings(bindings) {
|
|
111381
111378
|
return bindings.filter((binding) => binding.type !== "secret_text").reduce((configObj, binding) => {
|
|
111382
111379
|
switch (binding.type) {
|
|
@@ -111794,7 +111791,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
111794
111791
|
}, {});
|
|
111795
111792
|
}
|
|
111796
111793
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
111797
|
-
var DEFAULT_COMPAT_DATE = "2026-11-
|
|
111794
|
+
var DEFAULT_COMPAT_DATE = "2026-11-16";
|
|
111798
111795
|
function constructWranglerConfig(config50) {
|
|
111799
111796
|
const mappedBindings = mapWorkerMetadataBindings(config50.bindings);
|
|
111800
111797
|
const durableObjectClassNames = config50.bindings.filter(
|
|
@@ -113451,6 +113448,53 @@ function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
|
|
|
113451
113448
|
};
|
|
113452
113449
|
}
|
|
113453
113450
|
__name(getWranglerTmpDir, "getWranglerTmpDir");
|
|
113451
|
+
var MetricsRegistry = class {
|
|
113452
|
+
static {
|
|
113453
|
+
__name(this, "MetricsRegistry");
|
|
113454
|
+
}
|
|
113455
|
+
counters = [];
|
|
113456
|
+
/**
|
|
113457
|
+
* Create and register a new counter metric.
|
|
113458
|
+
*
|
|
113459
|
+
* @param name - The metric name (e.g. "service_request_total")
|
|
113460
|
+
* @param help - A human-readable description of the metric
|
|
113461
|
+
* @returns A Counter that can be incremented
|
|
113462
|
+
*/
|
|
113463
|
+
createCounter(name3, help) {
|
|
113464
|
+
const entry = { name: name3, help, value: 0 };
|
|
113465
|
+
this.counters.push(entry);
|
|
113466
|
+
return {
|
|
113467
|
+
inc: /* @__PURE__ */ __name(() => {
|
|
113468
|
+
entry.value++;
|
|
113469
|
+
}, "inc"),
|
|
113470
|
+
add: /* @__PURE__ */ __name((amount) => {
|
|
113471
|
+
if (amount < 0) {
|
|
113472
|
+
throw new Error("Counter value cannot decrease");
|
|
113473
|
+
}
|
|
113474
|
+
entry.value += amount;
|
|
113475
|
+
}, "add")
|
|
113476
|
+
};
|
|
113477
|
+
}
|
|
113478
|
+
/**
|
|
113479
|
+
* Serialize all registered metrics in Prometheus text exposition format.
|
|
113480
|
+
*
|
|
113481
|
+
* @see https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format
|
|
113482
|
+
*/
|
|
113483
|
+
metrics() {
|
|
113484
|
+
return this.counters.map((c2) => {
|
|
113485
|
+
let result = "";
|
|
113486
|
+
if (c2.help.length > 0) {
|
|
113487
|
+
result += `# HELP ${c2.name} ${c2.help}
|
|
113488
|
+
`;
|
|
113489
|
+
}
|
|
113490
|
+
result += `# TYPE ${c2.name} counter
|
|
113491
|
+
`;
|
|
113492
|
+
result += `${c2.name} ${c2.value}
|
|
113493
|
+
`;
|
|
113494
|
+
return result;
|
|
113495
|
+
}).join("");
|
|
113496
|
+
}
|
|
113497
|
+
};
|
|
113454
113498
|
function buildDetailedError(message, ...extra) {
|
|
113455
113499
|
return new ParseError({
|
|
113456
113500
|
text: message,
|
|
@@ -120424,7 +120468,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
120424
120468
|
var yargs_default = Yargs;
|
|
120425
120469
|
|
|
120426
120470
|
// package.json
|
|
120427
|
-
var version2 = "2.74.
|
|
120471
|
+
var version2 = "2.74.13";
|
|
120428
120472
|
|
|
120429
120473
|
// src/metrics.ts
|
|
120430
120474
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -123136,18 +123180,18 @@ var import_semver3 = __toESM(require_semver2());
|
|
|
123136
123180
|
var package_default = {
|
|
123137
123181
|
name: "frameworks_clis_info",
|
|
123138
123182
|
dependencies: {
|
|
123139
|
-
"@angular/create": "22.2.
|
|
123183
|
+
"@angular/create": "22.2.7",
|
|
123140
123184
|
"@tanstack/cli": "0.72.16",
|
|
123141
|
-
"create-analog": "2.9.
|
|
123142
|
-
"create-astro": "5.3.
|
|
123185
|
+
"create-analog": "2.9.7",
|
|
123186
|
+
"create-astro": "5.3.2",
|
|
123143
123187
|
"create-docusaurus": "3.10.2",
|
|
123144
123188
|
"create-hono": "0.19.5",
|
|
123145
|
-
"create-next-app": "16.4.
|
|
123146
|
-
"create-qwik": "1.20.
|
|
123189
|
+
"create-next-app": "16.4.6",
|
|
123190
|
+
"create-qwik": "1.20.4",
|
|
123147
123191
|
"create-react-router": "8.5.1",
|
|
123148
123192
|
"create-rwsdk": "3.1.3",
|
|
123149
123193
|
"create-solid": "0.12.0",
|
|
123150
|
-
"create-vike": "0.0.
|
|
123194
|
+
"create-vike": "0.0.694",
|
|
123151
123195
|
"create-vinext-app": "1.1.0",
|
|
123152
123196
|
"create-vite": "9.3.4",
|
|
123153
123197
|
"create-vue": "3.24.0",
|
|
@@ -125921,7 +125965,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
125921
125965
|
var import_node_assert7 = __toESM(require("node:assert"));
|
|
125922
125966
|
|
|
125923
125967
|
// ../wrangler/package.json
|
|
125924
|
-
var version3 = "4.
|
|
125968
|
+
var version3 = "4.163.0";
|
|
125925
125969
|
|
|
125926
125970
|
// src/git.ts
|
|
125927
125971
|
var offerGit = async (ctx) => {
|
|
@@ -127317,15 +127361,23 @@ function secondsSince(start) {
|
|
|
127317
127361
|
}
|
|
127318
127362
|
|
|
127319
127363
|
// src/cf/deploy.ts
|
|
127364
|
+
var import_node_fs23 = require("node:fs");
|
|
127320
127365
|
var import_node_path27 = require("node:path");
|
|
127321
|
-
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";
|
|
127322
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)));
|
|
127323
127373
|
let name3;
|
|
127324
127374
|
try {
|
|
127325
|
-
({ name: name3 } = readJSON(
|
|
127375
|
+
({ name: name3 } = readJSON(
|
|
127376
|
+
(0, import_node_path27.join)(projectPath, configPath ?? DEFAULT_WORKER_CONFIG_PATH)
|
|
127377
|
+
));
|
|
127326
127378
|
} catch {
|
|
127327
127379
|
throw new Error(
|
|
127328
|
-
`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}\`.`
|
|
127329
127381
|
);
|
|
127330
127382
|
}
|
|
127331
127383
|
const { npx: npx6 } = detectPackageManager();
|
|
@@ -127359,7 +127411,7 @@ ${e instanceof Error ? e.message : String(e)}`
|
|
|
127359
127411
|
}
|
|
127360
127412
|
|
|
127361
127413
|
// src/wrangler/config.ts
|
|
127362
|
-
var
|
|
127414
|
+
var import_node_fs24 = require("node:fs");
|
|
127363
127415
|
var import_node_path28 = require("node:path");
|
|
127364
127416
|
|
|
127365
127417
|
// src/helpers/json.ts
|
|
@@ -127482,12 +127534,12 @@ var getWranglerJsoncPath = (ctx) => {
|
|
|
127482
127534
|
};
|
|
127483
127535
|
var wranglerTomlExists = (ctx) => {
|
|
127484
127536
|
const wranglerTomlPath = getWranglerTomlPath(ctx);
|
|
127485
|
-
return (0,
|
|
127537
|
+
return (0, import_node_fs24.existsSync)(wranglerTomlPath);
|
|
127486
127538
|
};
|
|
127487
127539
|
var wranglerJsonOrJsoncExists = (ctx) => {
|
|
127488
127540
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
127489
127541
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
127490
|
-
return (0,
|
|
127542
|
+
return (0, import_node_fs24.existsSync)(wranglerJsonPath) || (0, import_node_fs24.existsSync)(wranglerJsoncPath);
|
|
127491
127543
|
};
|
|
127492
127544
|
var readWranglerToml = (ctx) => {
|
|
127493
127545
|
const wranglerTomlPath = getWranglerTomlPath(ctx);
|
|
@@ -127495,7 +127547,7 @@ var readWranglerToml = (ctx) => {
|
|
|
127495
127547
|
};
|
|
127496
127548
|
var readWranglerJsonOrJsonc = (ctx, reviver) => {
|
|
127497
127549
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
127498
|
-
if ((0,
|
|
127550
|
+
if ((0, import_node_fs24.existsSync)(wranglerJsonPath)) {
|
|
127499
127551
|
return readJSONWithComments(wranglerJsonPath, reviver);
|
|
127500
127552
|
}
|
|
127501
127553
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
@@ -127507,7 +127559,7 @@ var writeWranglerToml = (ctx, contents) => {
|
|
|
127507
127559
|
};
|
|
127508
127560
|
var writeWranglerJsonOrJsonc = (ctx, config50) => {
|
|
127509
127561
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
127510
|
-
if ((0,
|
|
127562
|
+
if ((0, import_node_fs24.existsSync)(wranglerJsonPath)) {
|
|
127511
127563
|
return writeJSONWithComments(wranglerJsonPath, config50);
|
|
127512
127564
|
}
|
|
127513
127565
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
@@ -127515,10 +127567,10 @@ var writeWranglerJsonOrJsonc = (ctx, config50) => {
|
|
|
127515
127567
|
};
|
|
127516
127568
|
var addVscodeConfig = (ctx) => {
|
|
127517
127569
|
const settingsPath = `${ctx.project.path}/.vscode/settings.json`;
|
|
127518
|
-
if ((0,
|
|
127570
|
+
if ((0, import_node_fs24.existsSync)(settingsPath)) {
|
|
127519
127571
|
return;
|
|
127520
127572
|
}
|
|
127521
|
-
(0,
|
|
127573
|
+
(0, import_node_fs24.mkdirSync)(`${ctx.project.path}/.vscode`, { recursive: true });
|
|
127522
127574
|
writeJSON(settingsPath, {
|
|
127523
127575
|
"files.associations": {
|
|
127524
127576
|
"wrangler.json": "jsonc"
|
|
@@ -128277,7 +128329,7 @@ var createProject = async (ctx) => {
|
|
|
128277
128329
|
};
|
|
128278
128330
|
|
|
128279
128331
|
// src/project-directory.ts
|
|
128280
|
-
var
|
|
128332
|
+
var import_node_fs25 = require("node:fs");
|
|
128281
128333
|
var import_node_path31 = require("node:path");
|
|
128282
128334
|
var import_node_process15 = require("node:process");
|
|
128283
128335
|
var setupProjectDirectory = (ctx) => {
|
|
@@ -128287,14 +128339,14 @@ var setupProjectDirectory = (ctx) => {
|
|
|
128287
128339
|
throw new Error(err);
|
|
128288
128340
|
}
|
|
128289
128341
|
const directory = (0, import_node_path31.dirname)(path9);
|
|
128290
|
-
if (!(0,
|
|
128291
|
-
(0,
|
|
128342
|
+
if (!(0, import_node_fs25.existsSync)(directory)) {
|
|
128343
|
+
(0, import_node_fs25.mkdirSync)(directory, { recursive: true });
|
|
128292
128344
|
}
|
|
128293
128345
|
(0, import_node_process15.chdir)(directory);
|
|
128294
128346
|
};
|
|
128295
128347
|
|
|
128296
128348
|
// src/workers.ts
|
|
128297
|
-
var
|
|
128349
|
+
var import_node_fs26 = require("node:fs");
|
|
128298
128350
|
var import_node_path32 = require("node:path");
|
|
128299
128351
|
|
|
128300
128352
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
@@ -129629,7 +129681,7 @@ function getTypesPath(ctx) {
|
|
|
129629
129681
|
}
|
|
129630
129682
|
async function generateWorkersTypes(ctx, npm25) {
|
|
129631
129683
|
const packageJsonPath = (0, import_node_path32.join)(ctx.project.path, "package.json");
|
|
129632
|
-
if (!(0,
|
|
129684
|
+
if (!(0, import_node_fs26.existsSync)(packageJsonPath)) {
|
|
129633
129685
|
return;
|
|
129634
129686
|
}
|
|
129635
129687
|
const packageManifest = readJSON(packageJsonPath);
|
|
@@ -129673,7 +129725,7 @@ var maybeInstallNodeTypes = async (ctx, npm25) => {
|
|
|
129673
129725
|
};
|
|
129674
129726
|
async function updateTsConfig(ctx, { usesNodeCompat }) {
|
|
129675
129727
|
const tsconfigPath = (0, import_node_path32.join)(ctx.project.path, "tsconfig.json");
|
|
129676
|
-
if (!(0,
|
|
129728
|
+
if (!(0, import_node_fs26.existsSync)(tsconfigPath)) {
|
|
129677
129729
|
return;
|
|
129678
129730
|
}
|
|
129679
129731
|
const tsconfig = readFile2(tsconfigPath);
|
|
@@ -129696,7 +129748,7 @@ async function updateTsConfig(ctx, { usesNodeCompat }) {
|
|
|
129696
129748
|
newTypes.delete("@cloudflare/workers-types");
|
|
129697
129749
|
if (entrypointVersion !== null) {
|
|
129698
129750
|
newTypes.add(`@cloudflare/workers-types/${entrypointVersion}`);
|
|
129699
|
-
} else if ((0,
|
|
129751
|
+
} else if ((0, import_node_fs26.existsSync)(
|
|
129700
129752
|
(0, import_node_path32.join)(
|
|
129701
129753
|
ctx.project.path,
|
|
129702
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.13",
|
|
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.20261116.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.9",
|
|
75
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
|
-
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
77
76
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
78
|
-
"@cloudflare/
|
|
79
|
-
"
|
|
77
|
+
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
78
|
+
"@cloudflare/workers-utils": "0.54.1",
|
|
79
|
+
"wrangler": "4.163.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22.0.0"
|