package.json 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "name": "react-native-permissions",
  3. "version": "2.0.2",
  4. "license": "MIT",
  5. "description": "An unified permissions API for React Native on iOS and Android",
  6. "author": "Mathieu Acthernoene <zoontek@gmail.com>",
  7. "homepage": "https://github.com/react-native-community/react-native-permissions#readme",
  8. "repository": {
  9. "type": "git",
  10. "url": "https://github.com/react-native-community/react-native-permissions.git"
  11. },
  12. "keywords": [
  13. "react-native",
  14. "react native",
  15. "permission",
  16. "authorization"
  17. ],
  18. "react-native": "src/index.ts",
  19. "types": "lib/typescript/index.d.ts",
  20. "main": "lib/commonjs/index.js",
  21. "module": "lib/module/index.js",
  22. "files": [
  23. "/android",
  24. "!/android/build",
  25. "/ios",
  26. "/src",
  27. "/lib",
  28. "/*.podspec"
  29. ],
  30. "scripts": {
  31. "start": "react-native start",
  32. "format": "prettier '**/*.{js,json,md,ts,tsx}' --write",
  33. "prepare": "bob build",
  34. "validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
  35. "validate:tsc": "tsc --project ./ --noEmit"
  36. },
  37. "@react-native-community/bob": {
  38. "source": "src",
  39. "output": "lib",
  40. "targets": [
  41. "commonjs",
  42. "module",
  43. "typescript"
  44. ]
  45. },
  46. "husky": {
  47. "hooks": {
  48. "pre-commit": "lint-staged"
  49. }
  50. },
  51. "lint-staged": {
  52. "**/*.{json,md}": [
  53. "yarn format",
  54. "git add"
  55. ],
  56. "**/*.{js,ts,tsx}": [
  57. "yarn format",
  58. "yarn validate:eslint",
  59. "git add"
  60. ]
  61. },
  62. "peerDependencies": {
  63. "react": ">=16.8.6",
  64. "react-native": ">=0.60.0"
  65. },
  66. "devDependencies": {
  67. "@babel/core": "7.6.2",
  68. "@react-native-community/bob": "0.7.0",
  69. "@react-native-community/eslint-config": "0.0.5",
  70. "@types/react-native": "0.60.18",
  71. "@typescript-eslint/eslint-plugin": "2.3.2",
  72. "@typescript-eslint/parser": "2.3.2",
  73. "eslint": "6.5.1",
  74. "eslint-config-prettier": "6.3.0",
  75. "eslint-plugin-prettier": "3.1.1",
  76. "husky": "3.0.8",
  77. "lint-staged": "9.4.1",
  78. "prettier": "1.18.2",
  79. "react": "16.9.0",
  80. "react-native": "0.61.2",
  81. "typescript": "3.6.3"
  82. }
  83. }