-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathpackage.json
More file actions
81 lines (81 loc) · 2.31 KB
/
package.json
File metadata and controls
81 lines (81 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"name": "@livekit/rtc-node",
"description": "LiveKit RTC Node",
"license": "Apache-2.0",
"author": "LiveKit",
"version": "0.12.2",
"main": "dist/index.js",
"require": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/livekit/node-sdks.git",
"directory": "packages/livekit-rtc"
},
"files": [
"dist",
"src",
"build.rs",
"Cargo.toml",
"Cargo.lock"
],
"napi": {
"name": "rtc-node",
"triples": {
"defaults": false,
"additional": [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc"
]
}
},
"dependencies": {
"@bufbuild/protobuf": "^2.0.0",
"@livekit/mutex": "^1.0.0",
"@livekit/typed-emitter": "^3.0.0"
},
"devDependencies": {
"@napi-rs/cli": "^2.18.0",
"@types/node": "^20.9.2",
"prettier": "^3.0.3",
"tsup": "^8.3.5",
"typescript": "^5.2.2",
"@bufbuild/protoc-gen-es": "^1.10.0"
},
"optionalDependencies": {
"@livekit/rtc-node-darwin-arm64": "workspace:*",
"@livekit/rtc-node-darwin-x64": "workspace:*",
"@livekit/rtc-node-linux-arm64-gnu": "workspace:*",
"@livekit/rtc-node-linux-x64-gnu": "workspace:*",
"@livekit/rtc-node-win32-x64-msvc": "workspace:*"
},
"engines": {
"node": ">= 18"
},
"scripts": {
"prebuild": "node -p \"'export const SDK_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"build:ts": "pnpm prebuild && tsup --onSuccess \"tsc --declaration --emitDeclarationOnly\" && cp -r src/napi dist/ && cp -r src/napi/* dist/",
"build": "pnpm build:ts && napi build --platform --release --dts native.d.ts --js native.cjs --pipe \"prettier -w\" src/napi",
"artifacts": "pnpm build:ts && napi artifacts",
"build:debug": "napi build --platform",
"lint": "eslint -f unix \"src/**/*.ts\" --ignore-pattern \"src/proto/*\"",
"universal": "napi universal",
"version": "napi version"
}
}