package.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {
  2. "name": "hls.js",
  3. "license": "Apache-2.0",
  4. "description": "JavaScript HLS client using MediaSourceExtension",
  5. "homepage": "https://github.com/video-dev/hls.js",
  6. "authors": "Guillaume du Pontavice <g.du.pontavice@gmail.com>",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/video-dev/hls.js"
  10. },
  11. "bugs": {
  12. "url": "https://github.com/video-dev/hls.js/issues"
  13. },
  14. "main": "./dist/hls.js",
  15. "module": "./dist/hls.mjs",
  16. "types": "./dist/hls.d.ts",
  17. "exports": {
  18. ".": {
  19. "import": "./dist/hls.mjs",
  20. "require": "./dist/hls.js"
  21. },
  22. "./light": {
  23. "import": "./dist/hls.light.mjs",
  24. "require": "./dist/hls.light.js"
  25. },
  26. "./dist/*": "./dist/*",
  27. "./package.json": "./package.json"
  28. },
  29. "files": [
  30. "dist/**/*",
  31. "src/**/*"
  32. ],
  33. "publishConfig": {
  34. "access": "public"
  35. },
  36. "scripts": {
  37. "build": "rollup --config && npm run build:types",
  38. "build:ci": "rollup --config && tsc --build tsconfig-lib.json && api-extractor run && npm run build:copy-types && es-check",
  39. "build:debug": "rollup --config --configType full --configType demo",
  40. "build:watch": "rollup --config --configType full --configType demo --watch",
  41. "build:types": "tsc --build tsconfig-lib.json && api-extractor run --local && npm run build:copy-types",
  42. "build:copy-types": "cp ./dist/hls.d.ts ./dist/hls.d.mts && cp ./dist/hls.d.ts ./dist/hls.js.d.ts",
  43. "dev": "run-p build:watch serve",
  44. "serve": "http-server -o /demo .",
  45. "docs": "doctoc ./docs/API.md && api-documenter markdown -i api-extractor -o api-extractor/api-documenter && rm api-extractor/api-documenter/index.md && npm run docs-md-to-html",
  46. "docs-md-to-html": "generate-md --layout github --input api-extractor/api-documenter --output api-docs",
  47. "lint": "eslint --cache src/ tests/ --ext .js --ext .ts",
  48. "lint:fix": "npm run lint -- --fix",
  49. "lint:quiet": "npm run lint -- --quiet",
  50. "lint:staged": "lint-staged",
  51. "prettier": "prettier --cache --write .",
  52. "prettier:verify": "prettier --cache --check .",
  53. "pretest": "npm run lint",
  54. "sanity-check": "npm run lint && npm run prettier:verify && npm run type-check && npm run build && es-check && npm run docs && npm run test:unit",
  55. "start": "npm run dev",
  56. "test": "npm run test:unit && npm run test:func",
  57. "test:unit": "karma start karma.conf.js",
  58. "test:unit:debug": "DEBUG_UNIT_TESTS=1 karma start karma.conf.js --auto-watch --no-single-run --browsers Chrome",
  59. "test:unit:watch": "karma start karma.conf.js --auto-watch --no-single-run",
  60. "test:func": "BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
  61. "test:func:light": "BABEL_ENV=development HLSJS_LIGHT=1 mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
  62. "test:func:sauce": "SAUCE=1 UA=safari OS='OS X 10.15' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
  63. "type-check": "tsc --noEmit",
  64. "type-check:watch": "npm run type-check -- --watch",
  65. "prepare": "husky"
  66. },
  67. "devDependencies": {
  68. "@babel/core": "7.26.10",
  69. "@babel/helper-module-imports": "7.25.9",
  70. "@babel/plugin-proposal-class-properties": "7.18.6",
  71. "@babel/plugin-proposal-object-rest-spread": "7.20.7",
  72. "@babel/plugin-proposal-optional-chaining": "7.21.0",
  73. "@babel/plugin-transform-object-assign": "7.25.9",
  74. "@babel/preset-env": "7.26.9",
  75. "@babel/preset-typescript": "7.27.0",
  76. "@babel/register": "7.25.9",
  77. "@microsoft/api-documenter": "7.26.18",
  78. "@microsoft/api-extractor": "7.52.2",
  79. "@rollup/plugin-alias": "5.1.1",
  80. "@rollup/plugin-babel": "6.0.4",
  81. "@rollup/plugin-commonjs": "28.0.3",
  82. "@rollup/plugin-node-resolve": "16.0.1",
  83. "@rollup/plugin-replace": "6.0.2",
  84. "@rollup/plugin-terser": "0.4.4",
  85. "@rollup/plugin-typescript": "12.1.2",
  86. "@svta/common-media-library": "0.10.0",
  87. "@types/chai": "4.3.20",
  88. "@types/chart.js": "2.9.41",
  89. "@types/mocha": "10.0.10",
  90. "@types/sinon-chai": "3.2.12",
  91. "@typescript-eslint/eslint-plugin": "8.29.1",
  92. "@typescript-eslint/parser": "8.29.1",
  93. "babel-loader": "10.0.0",
  94. "babel-plugin-transform-remove-console": "6.9.4",
  95. "chai": "4.5.0",
  96. "chart.js": "2.9.4",
  97. "chromedriver": "134.0.5",
  98. "doctoc": "2.2.1",
  99. "es-check": "8.0.2",
  100. "eslint": "8.57.1",
  101. "eslint-config-prettier": "10.1.1",
  102. "eslint-plugin-import": "2.31.0",
  103. "eslint-plugin-mocha": "10.5.0",
  104. "eslint-plugin-n": "17.17.0",
  105. "eslint-plugin-promise": "7.2.1",
  106. "eventemitter3": "5.0.1",
  107. "http-server": "14.1.1",
  108. "husky": "9.1.7",
  109. "jsonpack": "1.1.5",
  110. "karma": "6.4.4",
  111. "karma-chrome-launcher": "3.2.0",
  112. "karma-coverage": "2.2.1",
  113. "karma-mocha": "2.0.1",
  114. "karma-mocha-reporter": "2.2.5",
  115. "karma-rollup-preprocessor": "github:jlmakes/karma-rollup-preprocessor#7a7268d91149307b3cf2888ee4e65ccd079955a3",
  116. "karma-sinon-chai": "2.0.2",
  117. "karma-sourcemap-loader": "0.4.0",
  118. "lint-staged": "15.5.0",
  119. "markdown-styles": "3.2.0",
  120. "micromatch": "4.0.8",
  121. "mocha": "11.1.0",
  122. "node-fetch": "3.3.2",
  123. "npm-run-all2": "7.0.2",
  124. "prettier": "3.5.3",
  125. "promise-polyfill": "8.3.0",
  126. "rollup": "4.39.0",
  127. "rollup-plugin-istanbul": "5.0.0",
  128. "sauce-connect-launcher": "1.3.2",
  129. "selenium-webdriver": "4.30.0",
  130. "semver": "7.7.1",
  131. "sinon": "19.0.5",
  132. "sinon-chai": "3.7.0",
  133. "typescript": "5.8.2",
  134. "url-toolkit": "2.2.5",
  135. "wrangler": "3.114.5"
  136. },
  137. "version": "1.6.2"
  138. }