File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -92,5 +92,5 @@ Event order and content have changed in some places. See **Breaking Changes** be
92
92
### TypeScript
93
93
94
94
v0.x types are not compatible with v1.x. Type definitions are now exported with the build and npm package in
95
- ` dist/hls.js. d.ts ` . Please use these type definitions if you are having trouble with
95
+ ` dist/hls.d.ts ` and ` dist/hls.d.mts ` . Please use these type definitions if you are having trouble with
96
96
[ DefinitelyTyped] ( https://github.com/DefinitelyTyped/DefinitelyTyped ) ` @types/hls.js ` and v1.x.
Original file line number Diff line number Diff line change 16
16
},
17
17
"dtsRollup" : {
18
18
"enabled" : true ,
19
- "untrimmedFilePath" : " <projectFolder>/dist/hls.js. d.ts"
19
+ "untrimmedFilePath" : " <projectFolder>/dist/hls.d.ts"
20
20
},
21
21
"tsdocMetadata" : {
22
22
"enabled" : false
Original file line number Diff line number Diff line change 13
13
},
14
14
"main" : " ./dist/hls.js" ,
15
15
"module" : " ./dist/hls.mjs" ,
16
- "types" : " ./dist/hls.js. d.ts" ,
16
+ "types" : " ./dist/hls.d.ts" ,
17
17
"exports" : {
18
18
"." : {
19
- "types" : " ./dist/hls.js.d.ts" ,
20
19
"import" : " ./dist/hls.mjs" ,
21
20
"require" : " ./dist/hls.js"
22
21
},
32
31
},
33
32
"scripts" : {
34
33
"build" : " rollup --config && npm run build:types" ,
35
- "build:ci" : " rollup --config && tsc --build tsconfig-lib.json && api-extractor run && es-check" ,
34
+ "build:ci" : " rollup --config && tsc --build tsconfig-lib.json && api-extractor run && npm run build:copy-types && es-check" ,
36
35
"build:debug" : " rollup --config --configType full --configType demo" ,
37
36
"build:watch" : " rollup --config --configType full --configType demo --watch" ,
38
- "build:types" : " tsc --build tsconfig-lib.json && api-extractor run --local" ,
37
+ "build:types" : " tsc --build tsconfig-lib.json && api-extractor run --local && npm run build:copy-types" ,
38
+ "build:copy-types" : " cp ./dist/hls.d.ts ./dist/hls.d.mts && cp ./dist/hls.d.ts ./dist/hls.js.d.ts" ,
39
39
"dev" : " run-p build:watch serve" ,
40
40
"serve" : " http-server -o /demo ." ,
41
41
"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" ,
You can’t perform that action at this time.
0 commit comments