diff --git a/README.md b/README.md index d35d111..22b77aa 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,16 @@ npm install @hackmd/y-socketio-redis ## Usage -Server side: +Server-side: ```js import { createYSocketIOServer, createWorker } from '@hackmd/y-socketio-redis' ``` -Client side: +Client-side: ```js -import { SocketIOProvider } from '@hackmd/y-socketio-redis/client' +import { SocketIOProvider } from '@hackmd/y-socketio-redis/dist/client' ``` --- diff --git a/package.json b/package.json index 5c72d09..8cd59d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hackmd/y-socketio-redis", - "version": "0.0.8", + "version": "0.0.9", "description": "Scalable Socket.IO provider for Yjs using redis", "sideEffects": false, "type": "module", @@ -30,13 +30,16 @@ "src/*" ], "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { + "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.cjs" }, - "./client": { + "./dist/client": { + "types": "./dist/client/index.d.ts", "import": "./dist/client/index.js", "default": "./dist/client/index.cjs" }