package.json 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "name": "react-native-permissions",
  3. "version": "2.0.0",
  4. "license": "MIT",
  5. "description": "Check and request user permissions in React Native",
  6. "author": "Mathieu Acthernoene <zoontek@gmail.com>",
  7. "homepage": "https://github.com/zoontek/react-native-permissions#readme",
  8. "repository": {
  9. "type": "git",
  10. "url": "https://github.com/zoontek/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.17",
  71. "@typescript-eslint/eslint-plugin": "2.3.1",
  72. "@typescript-eslint/parser": "2.3.1",
  73. "eslint": "6.4.0",
  74. "eslint-config-prettier": "6.3.0",
  75. "eslint-plugin-prettier": "3.1.1",
  76. "husky": "3.0.7",
  77. "lint-staged": "9.4.0",
  78. "prettier": "1.18.2",
  79. "react": "16.9.0",
  80. "react-native": "0.61.1",
  81. "typescript": "3.6.3"
  82. }
  83. }