-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpackage.json
More file actions
155 lines (155 loc) · 6.45 KB
/
package.json
File metadata and controls
155 lines (155 loc) · 6.45 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "node-av",
"version": "5.2.4-beta.1",
"description": "FFmpeg bindings for Node.js",
"author": "seydx (https://github.com/seydx/node-av)",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"./api": {
"types": "./dist/api/index.d.ts",
"require": "./dist/api/index.js",
"default": "./dist/api/index.js"
},
"./lib": {
"types": "./dist/lib/index.d.ts",
"require": "./dist/lib/index.js",
"default": "./dist/lib/index.js"
},
"./constants": {
"types": "./dist/constants/index.d.ts",
"require": "./dist/constants/index.js",
"default": "./dist/constants/index.js"
},
"./ffmpeg": {
"types": "./dist/ffmpeg/index.d.ts",
"require": "./dist/ffmpeg/index.js",
"default": "./dist/ffmpeg/index.js"
}
},
"scripts": {
"benchmark": "tsx benchmarks/index.ts",
"build": "npm run generate && npm run build:tests && npm run build:examples && npm run build:tsc && npm run build:native",
"build:benchmarks": "tsc -p tsconfig.benchmarks.json",
"build:examples": "tsc -p tsconfig.examples.json",
"build:native": "node-gyp rebuild && cpy --flat build/Release/node-av.node binary/ && node scripts/copy-native-to-platform.js",
"build:tests": "tsc -p tsconfig.tests.json",
"build:tsc": "rimraf dist && npm run generate:ffmpeg-version && tsc -p tsconfig.build.json && cpy --flat src/api/data/* dist/api/data --parents",
"clean": "rimraf dist && node-gyp clean && npm run generate && npm run format && npm run lint:fix && npm run build:tests && npm run build:examples && npm run build:tsc",
"docs:dev": "npm run predocs && vitepress dev docs --port 5173",
"docs:build": "npm run predocs && rimraf docs/.vitepress/dist && vitepress build docs && cpy --flat docs/logo.png docs/.vitepress/dist",
"docs:preview": "npm run predocs && vitepress preview docs --port 5174",
"format": "prettier --write src/ --write test/ --write scripts/ --write examples/ --write benchmarks/ --ignore-unknown --no-error-on-unmatched-pattern",
"generate": "npm run patch:ffmpeg && npm run generate:ffmpeg-version && npm run generate:constants && npm run generate:encoders && npm run generate:decoders && npm run generate:hardware && npm run generate:layouts",
"generate:ffmpeg-version": "node scripts/generate-ffmpeg-version.js",
"generate:constants": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-constants.js && prettier --write src/constants/constants.ts",
"generate:encoders": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-encoders.js --with-patches && prettier --write src/constants/encoders.ts",
"generate:decoders": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-decoders.js --with-patches && prettier --write src/constants/decoders.ts",
"generate:hardware": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-hardware.js --with-patches && prettier --write src/constants/hardware.ts",
"generate:layouts": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-channel-layouts.js && prettier --write src/constants/channel-layouts.ts",
"install": "node install/check.js",
"install-updates": "npm i --save",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"patch:ffmpeg": "node scripts/patch-ffmpeg.js",
"postinstall": "node dist/ffmpeg/install.js",
"predocs": "typedoc && cpy README.md docs/ --rename=index.md",
"release:patch": "npm run build:tsc && node scripts/prepare-release.js patch",
"release:minor": "npm run build:tsc && node scripts/prepare-release.js minor",
"release:major": "npm run build:tsc && node scripts/prepare-release.js major",
"release:beta:patch": "npm run build:tsc && node scripts/prepare-release.js beta-patch",
"release:beta:minor": "npm run build:tsc && node scripts/prepare-release.js beta-minor",
"release:beta:major": "npm run build:tsc && node scripts/prepare-release.js beta-major",
"test": "tsx --test test/*.test.ts",
"test:all": "npm run build:tests && npm run build:tsc && tsx --test test/*.test.ts",
"update": "updates --update ./"
},
"dependencies": {
"unzipper": "^0.12.3",
"werift": "^0.23.0"
},
"optionalDependencies": {
"@seydx/node-av-darwin-arm64": "^5.2.4-beta.1",
"@seydx/node-av-darwin-x64": "^5.2.4-beta.1",
"@seydx/node-av-linux-arm64": "^5.2.4-beta.1",
"@seydx/node-av-linux-x64": "^5.2.4-beta.1",
"@seydx/node-av-win32-arm64-mingw": "^5.2.4-beta.1",
"@seydx/node-av-win32-arm64-msvc": "^5.2.4-beta.1",
"@seydx/node-av-win32-x64-mingw": "^5.2.4-beta.1",
"@seydx/node-av-win32-x64-msvc": "^5.2.4-beta.1"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^25.7.0",
"@types/node-abi": "^3.0.3",
"@types/semver": "^7.7.1",
"@types/unzipper": "^0.10.11",
"@types/ws": "^8.18.1",
"@typescript-eslint/parser": "^8.59.3",
"concurrently": "^9.2.1",
"cpy-cli": "^7.0.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.2",
"eslint-plugin-jsdoc": "^62.9.0",
"globals": "^17.6.0",
"node-addon-api": "^8.7.0",
"node-gyp": "^12.3.0",
"prettier": "^3.8.3",
"rimraf": "^6.1.3",
"sharp": "^0.34.5",
"tsx": "^4.21.0",
"typedoc": "^0.28.19",
"typedoc-plugin-markdown": "^4.11.0",
"typedoc-vitepress-theme": "^1.1.2",
"typescript": "5.9.3",
"typescript-eslint": "^8.59.3",
"updates": "^17.16.10",
"vitepress": "^2.0.0-alpha.17",
"ws": "^8.20.0"
},
"overrides": {
"werift": {
"@shinyoshiaki/binary-data": "npm:@seydx/binary-data@0.6.2",
"ip": "npm:neoip@2.1.0"
},
"werift-dtls": {
"@shinyoshiaki/binary-data": "npm:@seydx/binary-data@0.6.2"
},
"werift-ice": {
"ip": "npm:neoip@2.1.0"
},
"werift-sctp": {
"@shinyoshiaki/binary-data": "npm:@seydx/binary-data@0.6.2"
}
},
"bugs": {
"url": "https://github.com/seydx/node-av/issues"
},
"homepage": "https://github.com/seydx/node-av#readme",
"keywords": [
"node",
"ffmpeg",
"av",
"libav",
"bindings",
"whisper",
"binary",
"windows",
"linux",
"darwin",
"x64",
"arm64",
"static"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/seydx/node-av.git"
}
}