-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 3.01 KB
/
package.json
File metadata and controls
79 lines (79 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "@mux/playback-core",
"version": "0.33.2",
"description": "Core library for media playback in the browser shared by mux elements",
"main": "./dist/index.cjs.js",
"module": "./dist/index.mjs",
"browser": "./dist/index.mjs",
"unpkg": "./dist/playback-core.js",
"jsdelivr": "./dist/playback-core.js",
"typesVersions": {
"<4.3.5": {
".": [
"./dist/types-ts3.4/index.d.ts"
]
},
"*": {
".": [
"./dist/types/index.d.ts"
]
}
},
"exports": {
".": {
"types@<4.3.5": "./dist/types-ts3.4/index.d.ts",
"types": "./dist/types/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs.js",
"default": "./dist/index.cjs.js"
}
},
"types": "./dist/types/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/muxinc/elements.git",
"directory": "packages/playback-core"
},
"author": "Mux, Inc.",
"license": "MIT",
"scripts": {
"clean": "shx rm -rf dist/",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src/ --ext .js,.jsx,.ts,.tsx",
"test": "web-test-runner **/*.test.js --port 8004 --coverage --config test/web-test-runner.config.mjs --root-dir ../..",
"posttest": "replace 'SF:src/' 'SF:packages/playback-core/src/' coverage/lcov.info --silent",
"dev:cjs": "npm run build:cjs -- --watch=forever",
"dev:esm": "npm run build:esm -- --watch=forever",
"dev:esm-module": "npm run build:esm-module -- --watch=forever",
"dev:iife": "npm run build:iife -- --watch=forever",
"dev:types": "npm run build:types -- -w",
"dev": "npm-run-all --parallel dev:types dev:cjs dev:esm dev:iife dev:esm-module",
"build:esm": "esbuilder src/index.ts --sourcemap --format=esm --out-extension:.js=.mjs --external:mux-embed --external:hls.js",
"build:esm-module": "esbuilder src/index.ts --sourcemap --format=esm --outfile=./dist/playback-core.mjs",
"build:cjs": "esbuilder src/index.ts --sourcemap --format=cjs --out-extension:.js=.cjs.js --external:mux-embed --external:hls.js",
"build:iife": "esbuilder src/index.ts --sourcemap --format=iife --outfile=./dist/playback-core.js",
"prebuild:types": "shx mkdir -p ./dist/types",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4 --to=3.4",
"build": "npm-run-all --parallel 'build:esm -- --minify' 'build:iife -- --minify' 'build:cjs -- --minify' 'build:esm-module -- --minify'"
},
"dependencies": {
"hls.js": "~1.6.15",
"mux-embed": "^5.17.10"
},
"devDependencies": {
"@mux/esbuilder": "0.1.0",
"@open-wc/testing": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^8.27.0",
"@typescript-eslint/parser": "^8.27.0",
"@web/dev-server-esbuild": "^1.0.4",
"@web/dev-server-import-maps": "^0.2.1",
"@web/test-runner": "^0.19.0",
"@web/test-runner-playwright": "^0.11.0",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.25.1",
"eslint": "^9.22.0",
"npm-run-all": "^4.1.5",
"shx": "^0.4.0",
"typescript": "^5.8.2"
}
}