Skip to content

Commit a007029

Browse files
committed
improve exports field
1 parent e40518e commit a007029

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rtp/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "werift-rtp",
3-
"version": "0.7.26",
3+
"version": "0.8.0-beta.1",
44
"description": "RTP,RTCP,SRTP,SRTCP implementation for TypeScript.",
55
"homepage": "https://github.com/shinyoshiaki/werift-webrtc",
66
"repository": {
@@ -12,8 +12,14 @@
1212
"name": "shinyoshiaki"
1313
},
1414
"exports": {
15-
".": "./lib/rtp/src/index.js",
16-
"./extra": "./lib/rtp/src/extra/index.js"
15+
".": {
16+
"default": "./lib/rtp/src/index.js",
17+
"types": "./lib/rtp/src/index.d.ts"
18+
},
19+
"./extra": {
20+
"default": "./lib/rtp/src/extra/index.js",
21+
"types": "./lib/rtp/src/extra/index.d.ts"
22+
}
1723
},
1824
"main": "lib/rtp/src/index.js",
1925
"types": "lib/rtp/src/index.d.ts",
@@ -25,6 +31,7 @@
2531
"build": "rm -rf lib && npm run format && tsc -p ./tsconfig.production.json",
2632
"ci": "npm run type && npm run lint && npm run test",
2733
"deploy": "npm run build && npm publish",
34+
"deploy:alpha": "npm run build && npm publish --tag alpha",
2835
"doc": "rm -rf doc && typedoc --excludePrivate --disableSources --excludeInternal --plugin typedoc-plugin-markdown --out doc ./src/index.ts",
2936
"format": "npm run unused && npm run lint && prettier --write src/**/*.ts",
3037
"lint": "eslint ./src --fix && eslint ./tests --fix",

packages/webrtc/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@
1616
"name": "shinyoshiaki"
1717
},
1818
"exports": {
19-
".": "./lib/webrtc/src/index.js",
20-
"./nonstandard": "./lib/webrtc/src/nonstandard/index.js"
19+
".": {
20+
"default": "./lib/webrtc/src/index.js",
21+
"types": "./lib/webrtc/src/index.d.ts"
22+
},
23+
"./nonstandard": {
24+
"default": "./lib/webrtc/src/nonstandard/index.js",
25+
"types": "./lib/webrtc/src/nonstandard/index.d.ts"
26+
}
2127
},
2228
"main": "lib/webrtc/src/index.js",
2329
"types": "lib/webrtc/src/index.d.ts",
@@ -42,6 +48,7 @@
4248
"dependencies": {
4349
"@fidm/x509": "^1.2.1",
4450
"@minhducsun2002/leb128": "^1.0.0",
51+
"@noble/curves": "^1.3.0",
4552
"@peculiar/webcrypto": "^1.4.1",
4653
"@peculiar/x509": "^1.9.2",
4754
"@shinyoshiaki/ebml-builder": "^0.0.1",

packages/webrtc/src/nonstandard/recorder/writer/webm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
RtcpSourceCallback,
1010
RtpSourceCallback,
1111
saveToFileSystem,
12-
WebmCallback,
1312
SupportedCodec,
13+
WebmCallback,
1414
} from "../../../../../rtp/src/extra";
1515
import { MediaStreamTrack, WeriftError } from "../../..";
1616
import { MediaWriter } from ".";

0 commit comments

Comments
 (0)