Skip to content

Commit eccb4ff

Browse files
committed
chore: add generated types to ignore list
1 parent d30ed85 commit eccb4ff

File tree

8 files changed

+5147
-4356
lines changed

8 files changed

+5147
-4356
lines changed

.changeset/config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": [
4-
"@changesets/changelog-github",
5-
{ "repo": "cloudflare/ai" }
6-
],
3+
"changelog": ["@changesets/changelog-github", { "repo": "cloudflare/ai" }],
74
"commit": false,
85
"fixed": [],
96
"linked": [],

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"enabled": true
55
},
66
"files": {
7-
"ignore": ["worker-configuration.d.ts"]
7+
"ignore": ["worker-configuration.d.ts", "types/worker.d.ts"]
88
},
99
"vcs": {
1010
"enabled": true,

demos/routing/src/routing-workflow.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ export class RoutingWorkflow extends WorkflowEntrypoint<Env, RoutingWorkflowPara
4949

5050
return {
5151
grade: gradeObj,
52-
selectedModel: gradeObj.grade > 50 ? "@cf/meta/llama-3.3-70b-instruct-fp8-fast" : "@cf/meta/llama-3.1-8b-instruct",
52+
selectedModel:
53+
gradeObj.grade > 50
54+
? "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
55+
: "@cf/meta/llama-3.1-8b-instruct",
5356
finalOutput: finalObj,
5457
};
5558
}

scripts/readme-generator/readme-generator.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ async function main() {
200200
if (fs.existsSync(readmePath)) {
201201
const readmeContent = fs.readFileSync(readmePath, "utf-8");
202202
// Use regex to extract commit SHA from a comment in the form: <!-- Last updated: <sha> -->
203-
const match = readmeContent.match(
204-
/<!--\s*Last\s+updated:\s*([a-f0-9]+)\s*-->/i,
205-
);
203+
const match = readmeContent.match(/<!--\s*Last\s+updated:\s*([a-f0-9]+)\s*-->/i);
206204
if (match?.[1]) {
207205
baseCommit = match[1];
208206
}
@@ -249,9 +247,7 @@ async function main() {
249247

250248
// If no files have changed, skip updating this project.
251249
if (projectFiles.length === 0) {
252-
console.log(
253-
`No changes detected for project "${project}". Skipping update.`,
254-
);
250+
console.log(`No changes detected for project "${project}". Skipping update.`);
255251
continue;
256252
}
257253

@@ -341,9 +337,7 @@ function findPackageJsonFiles(dir: string): string[] {
341337
function buildProjectMap(): Map<string, string> {
342338
const projectMap = new Map<string, string>();
343339
// Start the search from the current working directory.
344-
const packageJsonFiles = findPackageJsonFiles(
345-
path.join(process.cwd(), "apps"),
346-
);
340+
const packageJsonFiles = findPackageJsonFiles(path.join(process.cwd(), "apps"));
347341
for (const file of packageJsonFiles) {
348342
try {
349343
const packageData = JSON.parse(fs.readFileSync(file, "utf-8"));

tsconfig.browser.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@
99
"jsx": "react-jsx",
1010
"noUncheckedSideEffectImports": true
1111
},
12-
"include": [
13-
"./demos/ui-worker/src/client/**/*.ts",
14-
"./demos/ui-worker/src/client/**/*.tsx"
15-
]
12+
"include": ["./demos/ui-worker/src/client/**/*.ts", "./demos/ui-worker/src/client/**/*.tsx"]
1613
}

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
"extends": "./tsconfig.base.json",
33
"include": [],
44
"files": [],
5-
"references": [
6-
{ "path": "./tsconfig.browser.json" },
7-
{ "path": "./tsconfig.node.json" }
8-
]
5+
"references": [{ "path": "./tsconfig.browser.json" }, { "path": "./tsconfig.node.json" }]
96
}

tsconfig.workerd.json

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
{
2-
"extends": "./tsconfig.base.json",
3-
"compilerOptions": {
4-
"types": [
5-
"./types/workerd.d.ts"
6-
]
7-
},
8-
"include": [
9-
"./demos/agent-scheduler/src/**/*.ts",
10-
"./demos/agent-task-manager-human-in-the-loop/src/**/*.ts",
11-
"./demos/agent-task-manager/src/**/*.ts",
12-
"./demos/evaluator-optimiser/src/**/*.ts",
13-
"./demos/model-scraper/src/**/*.ts",
14-
"./demos/orchestrator-workers/src/**/*.ts",
15-
"./demos/parallelisation/src/**/*.ts",
16-
"./demos/prompt-chaining/src/**/*.ts",
17-
"./demos/routing/src/**/*.ts",
18-
"./demos/structured-output/src/**/*.ts",
19-
"./demos/text-generation-stream/src/**/*.ts",
20-
"./demos/text-generation/src/**/*.ts",
21-
"./demos/tool-calling-stream-traditional/src/**/*.ts",
22-
"./demos/tool-calling-stream/src/**/*.ts",
23-
"./demos/tool-calling/src/**/*.ts",
24-
"./demos/ui-worker/src/server/**/*.ts"
25-
]
2+
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {
4+
"types": ["./types/workerd.d.ts"]
5+
},
6+
"include": [
7+
"./demos/agent-scheduler/src/**/*.ts",
8+
"./demos/agent-task-manager-human-in-the-loop/src/**/*.ts",
9+
"./demos/agent-task-manager/src/**/*.ts",
10+
"./demos/evaluator-optimiser/src/**/*.ts",
11+
"./demos/model-scraper/src/**/*.ts",
12+
"./demos/orchestrator-workers/src/**/*.ts",
13+
"./demos/parallelisation/src/**/*.ts",
14+
"./demos/prompt-chaining/src/**/*.ts",
15+
"./demos/routing/src/**/*.ts",
16+
"./demos/structured-output/src/**/*.ts",
17+
"./demos/text-generation-stream/src/**/*.ts",
18+
"./demos/text-generation/src/**/*.ts",
19+
"./demos/tool-calling-stream-traditional/src/**/*.ts",
20+
"./demos/tool-calling-stream/src/**/*.ts",
21+
"./demos/tool-calling/src/**/*.ts",
22+
"./demos/ui-worker/src/server/**/*.ts"
23+
]
2624
}

0 commit comments

Comments
 (0)