File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ npm i y-webrtc
2020
2121``` js
2222import * as Y from ' yjs'
23- import { WebrtcProvider } from ' ../src/ y-webrtc.js '
23+ import { WebrtcProvider } from ' y-webrtc'
2424
2525const ydoc = new Y.Doc ()
2626// clients connected to the same room-name share document updates
Original file line number Diff line number Diff line change 77 "module" : " ./src/y-webrtc.js" ,
88 "sideEffects" : false ,
99 "scripts" : {
10+ "clean" : " rm -rf dist" ,
1011 "start" : " node ./bin/server.js" ,
1112 "debug" : " concurrently 'http-server -o index.html' 'npm run watch'" ,
1213 "demo" : " concurrently 'http-server -o demo/index.html' 'npm run watch'" ,
13- "dist" : " rm -rf dist && rollup -c" ,
14+ "dist" : " rollup -c" ,
15+ "types" : " tsc" ,
1416 "watch" : " rollup -wc" ,
1517 "test" : " npm run lint" ,
1618 "lint" : " standard && tsc" ,
17- "preversion" : " npm run lint && npm run dist"
19+ "preversion" : " npm run clean && npm run lint && npm run dist && npm run types "
1820 },
1921 "bin" : {
2022 "y-webrtc-signaling" : " ./bin/server.js"
You can’t perform that action at this time.
0 commit comments