keep and publish declaration files
This commit is contained in:
parent
902998d131
commit
7d44fbb6ba
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue