This commit is contained in:
@@ -62,6 +62,11 @@ npm run index # regenerates index.json
|
|||||||
npm run release # both
|
npm run release # both
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> `@source/presence-sdk` is **not** a published npm package. The build pipeline
|
||||||
|
> aliases it to a local runtime shim ([scripts/sdk-runtime.mjs](scripts/sdk-runtime.mjs))
|
||||||
|
> at bundle time, and TypeScript resolves the import to a local `.d.ts`
|
||||||
|
> ([types/presence-sdk.d.ts](types/presence-sdk.d.ts)). Don't add it to `package.json`.
|
||||||
|
|
||||||
## Presence API
|
## Presence API
|
||||||
|
|
||||||
`PresenceDefinition` shape (also defined in [`types/presence-sdk.d.ts`](types/presence-sdk.d.ts)):
|
`PresenceDefinition` shape (also defined in [`types/presence-sdk.d.ts`](types/presence-sdk.d.ts)):
|
||||||
|
|||||||
@@ -11,8 +11,5 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"esbuild": "^0.24.2",
|
"esbuild": "^0.24.2",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.7.3"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@source/presence-sdk": "0.1.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user