feat: add typescript (#3266)
* chore: update dependencies * chore: add typescript config * feat: add types * chore: add build command * chore: fix types * fix: update linters * chore: add display name to component * chore: fix types * chore: remove re-declare name variables * docs: update changelog
This commit is contained in:
45
package.json
45
package.json
@@ -2,8 +2,9 @@
|
||||
"name": "react-native-video",
|
||||
"version": "6.0.0-alpha.8",
|
||||
"description": "A <Video /> element for react-native",
|
||||
"main": "Video.js",
|
||||
"source": "Video.js",
|
||||
"main": "lib/index",
|
||||
"source": "src/index",
|
||||
"react-native": "src/index",
|
||||
"license": "MIT",
|
||||
"author": "Community Contributors",
|
||||
"homepage": "https://github.com/react-native-video/react-native-video#readme",
|
||||
@@ -11,24 +12,32 @@
|
||||
"type": "git",
|
||||
"url": "git@github.com:react-native-video/react-native-video.git"
|
||||
},
|
||||
"resolutions": {
|
||||
"@types/react": "~18.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/eslint-config": "^0.0.5",
|
||||
"eslint": "^6.5.1",
|
||||
"react": "16.9.0",
|
||||
"react-native": "0.61.5",
|
||||
"react-native-windows": "^0.61.0-0"
|
||||
},
|
||||
"dependencies": {
|
||||
"deprecated-react-native-prop-types": "^2.2.0",
|
||||
"keymirror": "^0.1.1",
|
||||
"prop-types": "^15.7.2"
|
||||
"@react-native/eslint-config": "^0.72.2",
|
||||
"@types/jest": "^28.1.2",
|
||||
"@types/react": "~18.0.0",
|
||||
"@types/react-native": "0.72.3",
|
||||
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint-plugin-jest": "^27.4.2",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^2.4.1",
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.72.5",
|
||||
"react-native-windows": "^0.61.0-0",
|
||||
"typescript": "5.1.6"
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"react-native": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "yarn eslint .",
|
||||
"build": "yarn tsc",
|
||||
"xbasic": "yarn --cwd examples/basic",
|
||||
"test": "echo no test available"
|
||||
},
|
||||
@@ -36,11 +45,13 @@
|
||||
"android",
|
||||
"ios",
|
||||
"windows",
|
||||
"FilterType.js",
|
||||
"DRMType.js",
|
||||
"TextTrackType.js",
|
||||
"VideoResizeMode.js",
|
||||
"src",
|
||||
"react-native-video.podspec",
|
||||
"docs"
|
||||
"docs",
|
||||
"!android/build",
|
||||
"!android/buildOutput_*",
|
||||
"!android/local.properties",
|
||||
"!ios/build",
|
||||
"!**/*.tsbuildinfo"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user