Add bun.lock for dependency management, update package version to 2025.1.0, refine TypeScript dependencies, and introduce tsconfig.build.json for type declaration output. Enhance RtmpPush class with dependency injection for command building and process management, and implement new interfaces for better extensibility.

This commit is contained in:
2025-12-18 01:51:15 -05:00
parent cca92f9dc4
commit ca606bacff
15 changed files with 560 additions and 79 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@techniker-me/rtmp-push",
"version": "2025.0.3",
"version": "2025.1.0",
"description": "A TypeScript library for pushing media streams to RTMP servers using FFmpeg",
"main": "dist/node/index.js",
"module": "src/index.ts",
@@ -14,18 +14,18 @@
"ci-build": "bun run build:node && bun run build:browser && bun run build:types",
"build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --minify --production",
"build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --minify --production",
"build:types": "tsc --outDir dist/types",
"build:types": "tsc --project tsconfig.build.json",
"prepublishOnly": "bun run build",
"clean": "rm -rf dist"
},
"devDependencies": {
"@types/bun": "latest",
"@types/node": "20.0.0",
"prettier": "3.6.2",
"typescript": "5.9.2"
"@types/node": "^25.0.3",
"prettier": "^3.7.4",
"typescript": "^5.9.3"
},
"peerDependencies": {
"typescript": "5.9.2"
"typescript": "^5.9.3"
},
"exports": {
".": {