mirror of
https://github.com/video-dev/hls.js.git
synced 2026-05-17 13:30:38 +00:00
Support TypeScript Node16/NodeNext module resolution (#6616)
This commit is contained in:
+1
-1
@@ -92,5 +92,5 @@ Event order and content have changed in some places. See **Breaking Changes** be
|
||||
### TypeScript
|
||||
|
||||
v0.x types are not compatible with v1.x. Type definitions are now exported with the build and npm package in
|
||||
`dist/hls.js.d.ts`. Please use these type definitions if you are having trouble with
|
||||
`dist/hls.d.ts` and `dist/hls.d.mts`. Please use these type definitions if you are having trouble with
|
||||
[DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) `@types/hls.js` and v1.x.
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true,
|
||||
"untrimmedFilePath": "<projectFolder>/dist/hls.js.d.ts"
|
||||
"untrimmedFilePath": "<projectFolder>/dist/hls.d.ts"
|
||||
},
|
||||
"tsdocMetadata": {
|
||||
"enabled": false
|
||||
|
||||
+4
-4
@@ -13,10 +13,9 @@
|
||||
},
|
||||
"main": "./dist/hls.js",
|
||||
"module": "./dist/hls.mjs",
|
||||
"types": "./dist/hls.js.d.ts",
|
||||
"types": "./dist/hls.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/hls.js.d.ts",
|
||||
"import": "./dist/hls.mjs",
|
||||
"require": "./dist/hls.js"
|
||||
},
|
||||
@@ -32,10 +31,11 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup --config && npm run build:types",
|
||||
"build:ci": "rollup --config && tsc --build tsconfig-lib.json && api-extractor run && es-check",
|
||||
"build:ci": "rollup --config && tsc --build tsconfig-lib.json && api-extractor run && npm run build:copy-types && es-check",
|
||||
"build:debug": "rollup --config --configType full --configType demo",
|
||||
"build:watch": "rollup --config --configType full --configType demo --watch",
|
||||
"build:types": "tsc --build tsconfig-lib.json && api-extractor run --local",
|
||||
"build:types": "tsc --build tsconfig-lib.json && api-extractor run --local && npm run build:copy-types",
|
||||
"build:copy-types": "cp ./dist/hls.d.ts ./dist/hls.d.mts && cp ./dist/hls.d.ts ./dist/hls.js.d.ts",
|
||||
"dev": "run-p build:watch serve",
|
||||
"serve": "http-server -o /demo .",
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user