Skip to content

Commit 7d44fbb

Browse files
committed
keep and publish declaration files
1 parent 902998d commit 7d44fbb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm i y-webrtc
2020

2121
```js
2222
import * as Y from 'yjs'
23-
import { WebrtcProvider } from '../src/y-webrtc.js'
23+
import { WebrtcProvider } from 'y-webrtc'
2424

2525
const ydoc = new Y.Doc()
2626
// clients connected to the same room-name share document updates

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
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"

0 commit comments

Comments
 (0)