Skip to content

Commit 4538016

Browse files
committed
docs(ai-migration): fix Source of Truth paths; drop dead scss exports
.d.ts types are emitted under dist/types/, not dist/ root. Update the three affected paths and remove the incorrect .d.cts reference (the SDK emits .d.ts only). Point at dist/es/ and dist/cjs/ for transpiled JS. Also remove ./dist/scss/* and ./scss/* from the package.json exports map β€” dist/scss/ is no longer emitted, so those exports were dead.
1 parent 1fb0b16 commit 4538016

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

β€Žai-docs/ai-migration.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Before writing any code, and whenever ambiguity hits, verify against the user's
88

99
Authoritative locations, in order of preference:
1010

11-
1. `node_modules/stream-chat-react/dist/index.d.ts` (and `dist/index.d.cts`) β€” public type surface. Fastest way to confirm a symbol exists, check a prop signature, or see an override-key name.
11+
1. `node_modules/stream-chat-react/dist/types/index.d.ts` β€” public type surface. Fastest way to confirm a symbol exists, check a prop signature, or see an override-key name. (The SDK emits `.d.ts` only; there is no `.d.cts`.)
1212
2. `node_modules/stream-chat-react/package.json` β€” `exports` map and peer dependencies.
13-
3. `node_modules/stream-chat-react/dist/` β€” transpiled JS when runtime behavior matters more than types.
14-
4. `node_modules/stream-chat/dist/index.d.ts` β€” core client types (channel capabilities, event names, `ReactionSort`, etc.).
13+
3. `node_modules/stream-chat-react/dist/es/` and `dist/cjs/` β€” transpiled JS when runtime behavior matters more than types.
14+
4. `node_modules/stream-chat/dist/types/index.d.ts` β€” core client types (channel capabilities, event names, `ReactionSort`, etc.).
1515
5. `node_modules/stream-chat-react/dist/css/index.css` β€” default class names and CSS variables when auditing selectors.
1616

1717
Required workflow:

β€Žpackage.jsonβ€Ž

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,8 @@
3737
"./dist/css/*": {
3838
"default": "./dist/css/*"
3939
},
40-
"./dist/scss/*": {
41-
"default": "./dist/scss/*"
42-
},
4340
"./css/*": {
4441
"default": "./dist/css/*"
45-
},
46-
"./scss/*": {
47-
"default": "./dist/scss/*"
4842
}
4943
},
5044
"typesVersions": {

0 commit comments

Comments
Β (0)