Skip to content

Commit

Permalink
keep and publish declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Apr 14, 2020
1 parent 902998d commit 7d44fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm i y-webrtc

```js
import * as Y from 'yjs'
import { WebrtcProvider } from '../src/y-webrtc.js'
import { WebrtcProvider } from 'y-webrtc'

const ydoc = new Y.Doc()
// clients connected to the same room-name share document updates
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
"module": "./src/y-webrtc.js",
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"start": "node ./bin/server.js",
"debug": "concurrently 'http-server -o index.html' 'npm run watch'",
"demo": "concurrently 'http-server -o demo/index.html' 'npm run watch'",
"dist": "rm -rf dist && rollup -c",
"dist": "rollup -c",
"types": "tsc",
"watch": "rollup -wc",
"test": "npm run lint",
"lint": "standard && tsc",
"preversion": "npm run lint && npm run dist"
"preversion": "npm run clean && npm run lint && npm run dist && npm run types"
},
"bin": {
"y-webrtc-signaling": "./bin/server.js"
Expand Down

0 comments on commit 7d44fbb

Please sign in to comment.