Skip to content

Commit 6e41815

Browse files
committed
docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the externalPackages cache copy in CI (TS7016). Drop express/@types/express from externalPackages and re-ignore the two express server snippets.
1 parent 284b15d commit 6e41815

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

docs/getting-started/quick-start-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ console.log(text)
5151

5252
Here's an Express server that exposes a streaming chat endpoint using Server-Sent Events:
5353

54-
```typescript
54+
```typescript ignore
5555
import express from 'express'
5656
import { chat, toServerSentEventsResponse } from '@tanstack/ai'
5757
import { openaiText } from '@tanstack/ai-openai'

docs/getting-started/quick-start-vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ yarn add @tanstack/ai @tanstack/ai-vue @tanstack/ai-openai
3232

3333
Vue apps typically use a separate backend. Here's an Express server that streams chat responses:
3434

35-
```typescript
35+
```typescript ignore
3636
import express from 'express'
3737
import { chat, toServerSentEventsResponse } from '@tanstack/ai'
3838
import { openaiText } from '@tanstack/ai-openai'

kiira.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ export default defineConfig({
3535
valibot: '^1.0.0',
3636
'@valibot/to-json-schema': '^1.0.0',
3737
'@modelcontextprotocol/sdk': '^1.29.0',
38-
// Server / infra libraries used by real integration examples
39-
express: '^5.0.0',
40-
'@types/express': '^5.0.0',
38+
// Server / infra libraries used by real integration examples.
39+
// (express is intentionally NOT declared here: it's already a transitive
40+
// dependency in the workspace node_modules without its @types, which
41+
// shadows any cache copy — so those two express snippets stay `ignore`d.)
4142
hono: '^4.0.0',
4243
'@hono/node-server': '^2.0.0',
4344
redis: '^6.0.0',

0 commit comments

Comments
 (0)