UNPKG

react-player

Version:

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion

121 lines (120 loc) 3.86 kB
{ "name": "react-player", "version": "3.0.0-canary.3", "description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion", "author": "Pete Cook (https://github.com/cookpete)", "license": "MIT", "homepage": "https://github.com/cookpete/react-player", "bugs": { "url": "https://github.com/cookpete/react-player/issues" }, "repository": { "type": "git", "url": "git+https://github.com/cookpete/react-player.git" }, "files": [ "dist" ], "main": "dist/index.js", "type": "module", "exports": { ".": { "default": "./dist/index.js", "types": "./dist/index.d.ts" }, "./lazy": { "default": "./dist/lazy/index.js", "types": "./dist/lazy/index.d.ts" }, "./*": { "default": "./dist/*.js", "types": "./dist/*.d.ts" } }, "scripts": { "clean": "rimraf dist demo coverage", "start": "cp -r examples/react/public/ demo & npm run build:esm:main --watch=forever & builder examples/react/src/index.js --format=iife --bundle --outdir=demo --watch --servedir=demo --livereload", "lint": "standard --verbose | snazzy", "lint:fix": "standard --fix", "lint:ts": "ts-standard --verbose types/*.d.ts | snazzy", "lint:ts:fix": "ts-standard --fix types/*.d.ts", "test": "tester test/*.js test/*/*.js --outdir=disttest --platform=node --format=esm --bundle --external:sinon --external:zora --target=esnext --sourcemap=inline", "test:coverage": "c8 --src src --exclude 'test/**' --exclude 'node_modules/**' --exclude 'scripts/**' --exclude-after-remap npm test", "test:codecov": "npm run test:coverage && c8 report --reporter json && codecov -f coverage/coverage-final.json", "build:demo": "cp -r examples/react/public demo && npm run build:esm:main && builder examples/react/src/index.js --format=iife --bundle --outdir=demo --minify --sourcemap", "build": "run-s build:esm:*", "build:esm:main": "builder src/*.js src/players/*.js --outdir=dist --format=esm", "build:esm:lazy": "builder src/*.js src/players/*.js --outdir=dist/lazy --format=esm", "build:esm:single": "node scripts/pre-publish.js", "preversion": "npm run lint && npm run test", "version": "auto-changelog -p && git add CHANGELOG.md", "prepublishOnly": "npm run build && cp -r types/* dist", "postpublish": "npm run clean" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18", "react": "^17.0.2 || ^18", "react-dom": "^17.0.2 || ^18" }, "devDependencies": { "@types/node": "^14.0.24", "@types/react": "^18.2.79", "auto-changelog": "^2.0.0", "builder": "file:./scripts/builder", "c8": "^8.0.1", "codecov": "^3.6.5", "cross-env": "^7.0.2", "esbuild": "^0.19.4", "npm-run-all": "^4.1.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "rimraf": "^3.0.2", "screenfull": "^5.0.2", "sinon": "^16.0.0", "snazzy": "^8.0.0", "standard": "^17.1.0", "tester": "file:./scripts/tester", "ts-standard": "^12.0.2", "typescript": "^5.4.5", "zora": "^5.2.0" }, "dependencies": { "deepmerge": "^4.0.0", "load-script": "^1.0.0", "memoize-one": "^5.1.1", "prop-types": "^15.7.2", "react-fast-compare": "^3.0.1" }, "standard": { "ignore": [ "/dist/*", "/examples/*" ] }, "auto-changelog": { "breakingPattern": "Breaking changes:" }, "sideEffects": [ "./src/standalone.js", "./test/**/*" ], "keywords": [ "react", "media", "player", "video", "audio", "youtube", "facebook", "twitch", "soundcloud", "streamable", "vimeo", "wistia", "dailymotion", "hls", "dash", "react-component" ] }