Files
VideoPlayer/package.json

55 lines
1.3 KiB
JSON

{
"name": "@db/VP",
"version": "0.0.2",
"description": "Low-latency video player with HLS.js and WebRTC/WHEP support",
"license": "CC-BY-NC-SA-4.0",
"repository": {
"type": "git",
"url": "https://git.db123.ir/db/VP"
},
"type": "module",
"sideEffects": [
"*.css"
],
"exports": {
".": {
"import": "./dist/video-player.es.js",
"require": "./dist/video-player.cjs.js",
"types": "./dist/index.d.ts"
},
"./style.css": "./dist/style.css"
},
"files": [
"dist",
"README.md"
],
"scripts": {
"dev": "vite build --watch",
"build": "tsc --emitDeclarationOnly && vite build",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint . --ext .ts",
"format": "prettier --write .",
"format:check": "prettier --check .",
"preview": "vite preview",
"prepublishOnly": "npm run lint && npm run format && npm run test && npm run build"
},
"peerDependencies": {
"hls.js": "^1.6.16"
},
"devDependencies": {
"hls.js": "^1.6.16",
"@eslint/js": "^9.39.4",
"@types/eslint": "^9.6.1",
"@types/node": "^25.6.0",
"esbuild": "^0.28.0",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.8.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.0",
"vite": "^8.0.9",
"vitest": "^4.1.5"
}
}