Compare commits

...

2 Commits

Author SHA1 Message Date
d0b31f0147 chore(license): updated the license file header
Some checks failed
Build and Deploy to CDN / build (push) Failing after 5s
2026-05-10 00:22:17 +03:30
6bd3a0174d refactor(npm): more robust yet simple package.json 2026-05-08 22:54:36 +03:30
2 changed files with 16 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
Copyright (c) 2026 db
Licensed under CC-BY-NC-SA 4.0 with the text below:
Attribution-NonCommercial-ShareAlike 4.0 International
=======================================================================
@@ -439,3 +441,4 @@ the avoidance of doubt, this paragraph does not form part of the
public licenses.
Creative Commons may be contacted at creativecommons.org.

View File

@@ -1,10 +1,16 @@
{
"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",
"main": "./dist/video-player.cjs.js",
"module": "./dist/video-player.es.js",
"types": "./dist/index.d.ts",
"sideEffects": [
"*.css"
],
"exports": {
".": {
"import": "./dist/video-player.es.js",
@@ -20,7 +26,6 @@
"scripts": {
"dev": "vite build --watch",
"build": "tsc --emitDeclarationOnly && vite build",
"build:raw": "tsc",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint . --ext .ts",
@@ -29,7 +34,11 @@
"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",
@@ -41,8 +50,5 @@
"typescript-eslint": "^8.59.0",
"vite": "^8.0.9",
"vitest": "^4.1.5"
},
"dependencies": {
"hls.js": "^1.6.16"
}
}