{ "name": "artplayer-packages", "type": "module", "version": "6.1.0", "private": true, "packageManager": "yarn@1.22.22", "description": "ArtPlayer.js is a modern and full featured HTML5 video player", "workspaces": [ "packages/*" ], "author": "Harvey Zhao ", "license": "MIT", "homepage": "https://artplayer.org", "repository": { "type": "git", "url": "git+https://github.com/zhw2590582/ArtPlayer.git" }, "bugs": { "url": "https://github.com/zhw2590582/ArtPlayer/issues" }, "keywords": [ "video", "player" ], "engines": { "node": "^20.19.0 || >=22.12.0" }, "scripts": { "bootstrap": "npx lerna link", "postinstall": "npx lerna run prepare", "build:ts": "node ./scripts/build-ts.js", "build:llm": "node ./scripts/build-llm.js", "build:docs": "yarn build:site-assets && node ./scripts/build-docs.js", "build:i18n": "node ./scripts/build-i18n.js", "build:test": "node ./scripts/build-test.js", "test:playback": "node --test test/playback.test.js", "test:ads": "node --test test/ads.test.js test/ads-lifecycle.test.js", "trans:docs": "node ./scripts/trans-docs.js", "create:plugin": "node ./scripts/plugin/create.js", "test:dash-control": "node --test test/dash-control.test.js test/dash-contract.test.js test/dash-lifecycle.test.js test/dash-events.test.js", "dev": "npx cross-env NODE_ENV=development node ./scripts/dev.js", "build": "npx cross-env NODE_ENV=production node ./scripts/build.js", "lint": "eslint \"packages/*/{src,public,types,package.json}\" \"scripts/*.{js,mjs}\" \"packages/artplayer-vitepress/{browser,build}/**/*.ts\" \"scripts/{docs-smoke,editor-declarations,documentation,site-build,library,pages,site-vendor,browser-validation}/**/*.ts\" \"scripts/plugin/*.{js,ts}\" \"test/*\" \"docs/assets/ts/*\" \"types/*.d.ts\" \"playwright*.config.js\" --no-fix", "build:all": "yarn ci:build && yarn lint", "check:toolchain": "node scripts/check-toolchain.mjs", "lint:fix": "eslint \"packages/*/{src,public,types,package.json}\" \"scripts/*.{js,mjs}\" \"packages/artplayer-vitepress/{browser,build}/**/*.ts\" \"scripts/{docs-smoke,editor-declarations,documentation,site-build,library,pages,site-vendor,browser-validation}/**/*.ts\" \"scripts/plugin/*.{js,ts}\" \"test/*\" \"docs/assets/ts/*\" \"types/*.d.ts\" \"playwright*.config.js\" --fix", "check:plan": "node refactor/scripts/plan.mjs --check", "test:node": "yarn test:unit && node --test test/toolchain.test.js test/build-docs.test.js test/package-check.test.js test/declarations.test.js test/editor-types.test.js test/coverage.test.js test/performance-report.test.js test/media-gate.test.js test/ci-summary.test.js test/package-runtime.test.js test/library-build.test.js test/site-loading.test.js test/documentation-pipeline.test.js test/site-build.test.js test/site-markdown.test.js test/site-editor.test.js test/plugin-scaffold.test.js test/dev-server.test.js test/pages-artifact.test.js test/site-notices.test.js test/vconsole-lifecycle.test.js test/browser-validation.test.js test/rollback-files.test.js test/pages-recovery.test.js", "test:baseline": "node --test refactor/scripts/*.test.mjs", "ci:check": "yarn check:toolchain --strict && yarn check:commits --report && yarn check:impact --report && yarn check:ci && yarn test:contracts && yarn check:contracts --report && yarn check:plan && yarn check:release-ledger && yarn check:rollback-inventory && yarn lint && yarn typecheck:library && yarn typecheck:scaffold && yarn typecheck:docs-tools && yarn check:docs-smoke && yarn check:editor-types && yarn check:llm && yarn check:vconsole && yarn check:site-notices && yarn typecheck:site-assets && yarn check:site-assets && yarn check:types && yarn typecheck && yarn typecheck:react && yarn lint:react && yarn typecheck:vue && yarn lint:vue && yarn test", "ci:build": "yarn build:types && yarn build all && yarn build:i18n && yarn build:ts && yarn build:llm && yarn build:vconsole && yarn build:site-notices && yarn build:test && yarn build:docs && yarn test:imports", "test:imports": "node --test test/esm.test.js test/i18n.test.js test/ssr.test.js test/asr-distribution.test.js", "typecheck": "node scripts/typecheck.mjs", "test:unit": "node --test test/danmuku-setting.test.js test/danmuku-heatmap.test.js test/danmuku-renderer.test.js test/danmuku-scheduler.test.js test/danmuku-worker-client.test.js test/danmuku-input.test.js test/danmuku-parser.test.js test/danmuku-failures.test.js test/danmuku-mask-failures.test.js test/danmuku-mask-lifecycle.test.js test/asr-encoding.test.js test/asr-lifecycle.test.js test/asr-audio.test.js test/asr.test.js test/jassub.test.js test/jassub-registration.test.js test/jassub-runtime.test.js test/jassub-vendor-lifecycle.test.js test/jassub-frame-polyfill.test.js test/jassub-offscreen.test.js test/multiple-subtitles-ass.test.js test/multiple-subtitles-caption.test.js test/multiple-subtitles-merge.test.js test/multiple-subtitles-entities.test.js test/multiple-subtitles-lifecycle.test.js test/multiple-subtitles-failures.test.js test/multiple-subtitles.test.js test/multiple-subtitles-vendor.test.js test/vtt-thumbnail-parser.test.js test/vtt-thumbnail-lifecycle.test.js test/vtt-thumbnail.test.js test/auto-thumbnail-exports.test.js test/auto-thumbnail-canvas.test.js test/auto-thumbnail-frames.test.js test/auto-thumbnail-encoding.test.js test/auto-thumbnail-lifecycle.test.js test/auto-thumbnail.test.js test/thumbnail-emitter.test.js test/thumbnail-runtime.test.js test/thumbnail-vendor.test.js test/thumbnail-lifecycle.test.js test/thumbnail-input.test.js test/thumbnail.test.js test/iframe-navigation.test.js test/iframe-boundaries.test.js test/iframe-lifecycle.test.js test/iframe.test.js test/mediabunny.test.js test/mediabunny-shim.test.js test/mediabunny-coordination.test.js test/mediabunny-video.test.js test/mediabunny-audio.test.js test/mediabunny-hls.test.js test/mediabunny-entry.test.js test/mediabunny-capability.test.js test/mediabunny-load.test.js test/mediabunny-input.test.js test/dpip.test.js test/dpip-lifecycle.test.js test/canvas.test.js test/canvas-lifecycle.test.js test/ambilight.test.js test/ambilight-lifecycle.test.js test/ambilight-proxy.test.js test/vast-exports.test.js test/vast.test.js test/vast-lifecycle.test.js test/vast-compatibility.test.js test/ads.test.js test/ads-lifecycle.test.js test/playback.test.js test/dash-control.test.js test/dash-contract.test.js test/dash-lifecycle.test.js test/dash-events.test.js test/hls-control.test.js test/audio-track.test.js test/public-behavior.test.js test/helpers.test.js test/chapter.test.js test/utils.test.js test/resource-scope.test.js test/instance-lifecycle.test.js test/options.test.js test/media-hosts.test.js test/plugins.test.js test/source.test.js test/playback-properties.test.js test/media-events.test.js test/template-resources.test.js test/core-vendor.test.js test/component-resources.test.js test/setting-model.test.js test/setting-layout.test.js test/setting-resources.test.js test/subtitle.test.js test/display-native.test.js test/display-video-fullscreen.test.js test/display-pip.test.js test/display-mini.test.js test/display-sizing.test.js test/display-orientation.test.js test/hotkey.test.js test/listener-registry.test.js test/global-events.test.js test/pointer-events.test.js test/gesture.test.js test/event-scheduling.test.js test/notice.test.js test/fast-forward.test.js test/auto-playback.test.js test/builtin-layers.test.js test/prompt-components.test.js test/screenshot.test.js test/thumbnails.test.js test/progress.test.js test/environment.test.js test/storage.test.js test/facade-properties.test.js test/dom-boundaries.test.js test/initialization.test.js test/entry.test.js test/accessibility-button.test.js test/accessibility-focus.test.js test/accessibility-slider.test.js test/asr-fallback-routing.test.js test/asr-local-example.test.js test/asr-explicit-capture.test.js test/chromecast.test.js test/chromecast-failures.test.js test/chromecast-runtime.test.js", "test:coverage": "node --test test/coverage.test.js && node scripts/coverage.mjs", "test": "yarn test:node && yarn test:baseline", "test:browser": "playwright test", "test:iframe-history": "playwright test --config playwright.iframe-history.config.js", "test:performance": "playwright test --config playwright.performance.config.js", "test:browser:install": "playwright install chromium firefox webkit", "test:browser:report": "playwright show-report refactor/.cache/browser/html", "test:package": "node scripts/package-check.mjs", "test:rollback": "node scripts/rollback-consumer.mjs", "test:rollback:browser": "playwright test --config playwright.rollback.config.js", "test:package:release": "node scripts/package-check.mjs --release", "build:types": "node scripts/build-types.mjs --write", "check:types": "node scripts/build-types.mjs --check", "test:dash-types-package": "node refactor/scripts/dash-package-types.mjs", "test:ads-types-package": "node refactor/scripts/ads-package-types.mjs", "test:ads-native-visibility": "node refactor/scripts/ads-native-visibility.mjs", "test:vast": "node --test test/vast-exports.test.js test/vast.test.js test/vast-lifecycle.test.js test/vast-compatibility.test.js", "check:commits": "node refactor/scripts/commit-audit.mjs", "check:impact": "node refactor/scripts/impact.mjs", "check:contracts": "node refactor/scripts/contracts.mjs", "test:contracts": "node refactor/scripts/run-contracts.mjs", "test:ambilight": "node --test test/ambilight.test.js test/ambilight-lifecycle.test.js test/ambilight-proxy.test.js", "test:ambilight-types-package": "node refactor/scripts/ambilight-package-types.mjs", "test:canvas": "node --test test/canvas.test.js test/canvas-lifecycle.test.js", "test:canvas-types-package": "node refactor/scripts/canvas-package-types.mjs", "test:dpip": "node --test test/dpip.test.js test/dpip-lifecycle.test.js", "test:dpip-types-package": "node refactor/scripts/dpip-package-types.mjs", "test:mediabunny": "node --test test/mediabunny.test.js test/mediabunny-shim.test.js test/mediabunny-coordination.test.js test/mediabunny-video.test.js test/mediabunny-audio.test.js test/mediabunny-hls.test.js test/mediabunny-entry.test.js test/mediabunny-capability.test.js test/mediabunny-load.test.js test/mediabunny-input.test.js", "test:mediabunny-types-package": "node refactor/scripts/mb-package-types.mjs", "test:mediabunny-soak": "playwright test --config playwright.soak.config.js", "generate:media:hls": "node scripts/generate-hls-fixture.mjs", "test:iframe": "node --test test/iframe-navigation.test.js test/iframe-boundaries.test.js test/iframe.test.js test/iframe-lifecycle.test.js refactor/scripts/iframe-contract.test.mjs refactor/scripts/iframe-types.test.mjs", "test:iframe-types-package": "node refactor/scripts/iframe-package-types.mjs", "test:thumbnail": "node --test test/thumbnail-emitter.test.js test/thumbnail-runtime.test.js test/thumbnail-vendor.test.js test/thumbnail-lifecycle.test.js test/thumbnail-input.test.js test/thumbnail.test.js refactor/scripts/thumbnail-contract.test.mjs refactor/scripts/thumbnail-types.test.mjs", "test:thumbnail-types-package": "node refactor/scripts/thumbnail-package-types.mjs", "test:auto-thumbnail": "node --test test/auto-thumbnail-exports.test.js test/auto-thumbnail-canvas.test.js test/auto-thumbnail-frames.test.js test/auto-thumbnail-encoding.test.js test/auto-thumbnail-lifecycle.test.js test/auto-thumbnail.test.js refactor/scripts/auto-thumbnail-contract.test.mjs refactor/scripts/auto-thumbnail-types.test.mjs", "test:vtt-thumbnail": "node --test test/vtt-thumbnail-parser.test.js test/vtt-thumbnail-lifecycle.test.js test/vtt-thumbnail.test.js refactor/scripts/vtt-thumbnail-contract.test.mjs refactor/scripts/vtt-thumbnail-types.test.mjs", "test:vtt-thumbnail-types-package": "node refactor/scripts/vtt-thumbnail-package-types.mjs", "test:multiple-subtitles": "node --test test/multiple-subtitles-ass.test.js test/multiple-subtitles-caption.test.js test/multiple-subtitles-merge.test.js test/multiple-subtitles-entities.test.js test/multiple-subtitles-lifecycle.test.js test/multiple-subtitles-failures.test.js test/multiple-subtitles.test.js test/multiple-subtitles-vendor.test.js refactor/scripts/multiple-subtitles-contract.test.mjs refactor/scripts/multiple-subtitles-runtime-types.test.mjs refactor/scripts/multiple-subtitles-types.test.mjs", "test:multiple-subtitles-types-package": "node refactor/scripts/multiple-subtitles-package-types.mjs", "test:jassub": "node --test test/jassub.test.js test/jassub-registration.test.js test/jassub-runtime.test.js test/jassub-vendor-lifecycle.test.js test/jassub-frame-polyfill.test.js test/jassub-offscreen.test.js refactor/scripts/jassub-contract.test.mjs refactor/scripts/jassub-provenance.test.mjs refactor/scripts/jassub-failures.test.mjs refactor/scripts/jassub-types.test.mjs refactor/scripts/jassub-vendor-patch.test.mjs", "test:jassub-types": "node --test refactor/scripts/jassub-types.test.mjs", "test:jassub-types-package": "node refactor/scripts/jassub-package-types.mjs", "check:ci": "node refactor/scripts/ci-workflow.mjs", "test:ci": "node --test test/ci-summary.test.js refactor/scripts/ci-workflow.test.mjs refactor/scripts/impact.test.mjs test/package-runtime.test.js test/pages-artifact.test.js", "test:package:runtime": "node scripts/package-runtime.mjs --canonical", "test:asr": "node --test test/asr.test.js test/asr-audio.test.js test/asr-encoding.test.js test/asr-lifecycle.test.js test/asr-distribution.test.js test/asr-fallback-routing.test.js test/asr-local-example.test.js test/asr-explicit-capture.test.js", "test:asr-types-package": "node refactor/scripts/asr-package-types.mjs", "test:asr-demo": "node refactor/scripts/asr-local-demo.mjs", "test:chromecast": "node --test test/chromecast.test.js test/chromecast-failures.test.js test/chromecast-runtime.test.js", "test:chromecast-types-package": "node refactor/scripts/chromecast-package-types.mjs", "test:danmuku-mask": "node --test test/danmuku-mask-lifecycle.test.js test/danmuku-mask-failures.test.js refactor/scripts/danmuku-mask-contract.test.mjs", "test:danmuku": "node --test test/danmuku-setting.test.js test/danmuku-heatmap.test.js test/danmuku-renderer.test.js test/danmuku-scheduler.test.js test/danmuku-worker-client.test.js test/danmuku-input.test.js test/danmuku-parser.test.js test/danmuku-failures.test.js refactor/scripts/danmuku-contract.test.mjs", "test:danmuku-types": "node --test refactor/scripts/danmuku-types.test.mjs", "test:danmuku-types-package": "node refactor/scripts/danmuku-package-types.mjs", "test:danmuku-mask-types-package": "node refactor/scripts/danmuku-mask-package-types.mjs", "test:auto-thumbnail-types": "node --test refactor/scripts/auto-thumbnail-types.test.mjs", "test:auto-thumbnail-types-package": "node refactor/scripts/auto-thumbnail-package-types.mjs", "probe:auto-thumbnail-rendering": "node refactor/scripts/auto-thumbnail-rendering-probe.mjs", "dev:react": "vite example/react.js --config example/react.js/vite.config.js", "typecheck:react": "node node_modules/typescript/bin/tsc -p example/react.js/tsconfig.json --noEmit", "build:react": "yarn typecheck:react && vite build example/react.js --config example/react.js/vite.config.js --outDir ../../refactor/.cache/react-example-dist", "test:react-consumer": "node refactor/scripts/react-consumer.mjs", "lint:react": "eslint example/react.js --no-fix", "dev:vue": "vite example/vue.js --config example/vue.js/vite.config.js", "typecheck:vue": "vue-tsc -p example/vue.js/tsconfig.json --noEmit", "build:vue": "yarn typecheck:vue && vite build example/vue.js --config example/vue.js/vite.config.js --outDir ../../refactor/.cache/vue-example-dist", "test:vue-consumer": "node refactor/scripts/vue-consumer.mjs", "lint:vue": "eslint example/vue.js --no-fix", "typecheck:docs-tools": "node node_modules/typescript/bin/tsc -p scripts/tsconfig.docs.json --noEmit", "check:docs-smoke": "node scripts/build-test.js --check", "check:editor-types": "node scripts/build-ts.js --check", "build:site-assets": "node scripts/build-site-assets.mjs", "check:site-assets": "node scripts/build-site-assets.mjs --check", "typecheck:site-assets": "node node_modules/typescript/bin/tsc -p packages/artplayer-vitepress/browser/tsconfig.json --noEmit", "check:llm": "node scripts/build-llm.js --check", "test:site-build": "node --test test/site-build.test.js test/build-docs.test.js test/site-markdown.test.js", "test:site-editor": "node --test test/site-editor.test.js", "typecheck:scaffold": "node node_modules/typescript/bin/tsc -p scripts/tsconfig.scaffold.json --noEmit", "test:scaffold": "node --test test/plugin-scaffold.test.js", "typecheck:library": "node node_modules/typescript/bin/tsc -p scripts/tsconfig.library.json --noEmit", "test:library": "node --test refactor/scripts/build.test.mjs test/library-build.test.js test/performance-report.test.js test/plugin-scaffold.test.js test/dev-server.test.js", "test:dev-server": "node --test test/dev-server.test.js", "probe:auto-thumbnail-native": "node refactor/scripts/auto-thumbnail-native-probe.mjs", "check:release-ledger": "node refactor/scripts/release-ledger.mjs", "report:release-ledger": "node refactor/scripts/release-ledger.mjs --report", "release:preflight": "yarn check:toolchain --strict && node refactor/scripts/release-ledger.mjs --report --strict", "test:release-ledger": "node --test refactor/scripts/release-ledger.test.mjs", "prepare:pages": "node scripts/prepare-pages.mjs", "test:pages": "node --test test/pages-artifact.test.js test/pages-recovery.test.js", "test:pages:browser": "node test/pages-browser.mjs", "build:site-notices": "node scripts/build-site-notices.mjs", "check:site-notices": "node scripts/build-site-notices.mjs --check", "test:site-notices": "node --test test/site-notices.test.js", "build:vconsole": "node scripts/build-vconsole.mjs", "check:vconsole": "node scripts/build-vconsole.mjs --check", "test:vconsole": "node --test test/vconsole-lifecycle.test.js", "test:browser:source": "node scripts/browser-check.mjs source", "test:browser:installed": "node scripts/browser-check.mjs installed", "test:vast-types": "node --test refactor/scripts/vast-types.test.mjs", "test:vast-types-package": "node refactor/scripts/vast-package-types.mjs", "test:vast-native": "playwright test --config playwright.vast-native.config.js", "test:rollback:iframe": "node scripts/iframe-rollback.mjs", "test:rollback:mainline": "node scripts/mainline-rehearsal.mjs", "check:rollback-inventory": "node refactor/scripts/rollback-inventory.mjs --check", "test:rollback:pages": "node scripts/pages-recovery.mjs", "test:rollback:pages:browser": "node test/pages-recovery-browser.mjs", "test:bun-install": "node refactor/scripts/bun-evaluation.mjs", "test:chapter-native": "playwright test --config playwright.chapter-native.config.js" }, "browserslist": "last 1 Chrome version", "devDependencies": { "@antfu/eslint-config": "5.4.1", "@playwright/test": "1.63.0", "@types/markdown-it": "14.1.2", "@types/node": "24.10.0", "@types/react": "19.1.10", "@types/react-dom": "19.1.7", "@vitejs/plugin-react": "5.0.0", "@vitejs/plugin-vue": "6.0.1", "@vue/compiler-sfc": "3.5.28", "@yarnpkg/lockfile": "1.1.0", "c8": "12.0.0", "cpy": "13.2.3", "cross-env": "10.1.0", "cross-spawn": "7.0.6", "dotenv": "17.2.4", "dts-bundle-generator": "9.5.1", "esbuild": "0.27.7", "eslint": "9.39.2", "eslint-plugin-format": "2.0.1", "glob": "13.0.6", "lerna": "8.2.4", "less": "4.5.1", "linkedom": "0.18.13", "monaco-editor": "0.30.1", "mrmime": "2.0.1", "pngjs": "7.0.0", "prompts": "2.4.2", "react": "19.1.1", "react-dom": "19.1.1", "semver": "7.7.4", "servor": "4.0.2", "svgo": "4.1.0", "terser": "5.51.2", "typescript": "5.9.3", "typescript-compat": "npm:typescript@4.3.5", "typescript-runtime-compat": "npm:typescript@5.1.6", "vite": "7.3.6", "vue": "3.5.28", "vue-tsc": "3.3.11", "yaml": "2.8.2" }, "resolutions": { "**/@types/dom-webcodecs": "0.1.19", "dts-bundle-generator/typescript": "5.9.3" } }