package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. {
  2. "name": "@bam.tech/react-native-image-resizer",
  3. "version": "3.0.11",
  4. "description": "Rescale local images with React Native",
  5. "main": "lib/commonjs/index.js",
  6. "module": "lib/module/index.js",
  7. "types": "lib/typescript/index.d.ts",
  8. "react-native": "src/index.tsx",
  9. "source": "src/index",
  10. "files": [
  11. "src",
  12. "lib",
  13. "android",
  14. "ios",
  15. "cpp",
  16. "*.podspec",
  17. "!lib/typescript/example",
  18. "!ios/build",
  19. "!android/build",
  20. "!android/gradle",
  21. "!android/gradlew",
  22. "!android/gradlew.bat",
  23. "!android/local.properties",
  24. "!**/__tests__",
  25. "!**/__fixtures__",
  26. "!**/__mocks__",
  27. "!**/.*"
  28. ],
  29. "scripts": {
  30. "test": "jest",
  31. "typescript": "tsc --noEmit",
  32. "lint": "eslint \"**/*.{js,ts,tsx}\"",
  33. "prepare": "bob build",
  34. "release": "release-it",
  35. "example": "yarn --cwd example",
  36. "bootstrap": "yarn example && yarn && yarn example pods",
  37. "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
  38. },
  39. "keywords": [
  40. "react-native",
  41. "react",
  42. "android",
  43. "ios",
  44. "images",
  45. "image",
  46. "image-resizer",
  47. "scaling",
  48. "scale",
  49. "resize"
  50. ],
  51. "repository": {
  52. "type": "git",
  53. "url": "git+https://github.com/bamlab/react-native-image-resizer.git"
  54. },
  55. "author": "Florian Rival <florianr@bam.tech> (http://bam.tech)",
  56. "license": "MIT",
  57. "bugs": {
  58. "url": "https://github.com/bamlab/react-native-image-resizer/issues"
  59. },
  60. "homepage": "https://github.com/bamlab/react-native-image-resizer#readme",
  61. "publishConfig": {
  62. "registry": "https://registry.npmjs.org/",
  63. "access": "public"
  64. },
  65. "devDependencies": {
  66. "@evilmartians/lefthook": "^1.2.2",
  67. "@commitlint/config-conventional": "^17.0.2",
  68. "@react-native-community/eslint-config": "^3.0.2",
  69. "@release-it/conventional-changelog": "^5.0.0",
  70. "@types/jest": "^28.1.2",
  71. "@types/react": "~17.0.21",
  72. "@types/react-native": "0.70.0",
  73. "commitlint": "^17.0.2",
  74. "del-cli": "^5.0.0",
  75. "eslint": "^8.4.1",
  76. "eslint-config-prettier": "^8.5.0",
  77. "eslint-plugin-prettier": "^4.0.0",
  78. "jest": "^28.1.1",
  79. "pod-install": "^0.1.0",
  80. "prettier": "^2.0.5",
  81. "react": "18.2.0",
  82. "react-native": "0.71.8",
  83. "react-native-builder-bob": "^0.20.0",
  84. "release-it": "^15.0.0",
  85. "typescript": "^4.5.2"
  86. },
  87. "resolutions": {
  88. "@types/react": "17.0.21"
  89. },
  90. "peerDependencies": {
  91. "react": "*",
  92. "react-native": "*"
  93. },
  94. "engines": {
  95. "node": ">= 16.0.0"
  96. },
  97. "packageManager": "^yarn@1.22.15",
  98. "jest": {
  99. "preset": "react-native",
  100. "modulePathIgnorePatterns": [
  101. "<rootDir>/example/node_modules",
  102. "<rootDir>/lib/"
  103. ]
  104. },
  105. "commitlint": {
  106. "extends": [
  107. "@commitlint/config-conventional"
  108. ]
  109. },
  110. "release-it": {
  111. "git": {
  112. "commitMessage": "chore: release ${version}",
  113. "tagName": "v${version}"
  114. },
  115. "npm": {
  116. "publish": true
  117. },
  118. "github": {
  119. "release": true
  120. },
  121. "plugins": {
  122. "@release-it/conventional-changelog": {
  123. "preset": "angular"
  124. }
  125. }
  126. },
  127. "eslintConfig": {
  128. "root": true,
  129. "extends": [
  130. "@react-native-community",
  131. "prettier"
  132. ],
  133. "rules": {
  134. "prettier/prettier": [
  135. "error",
  136. {
  137. "quoteProps": "consistent",
  138. "singleQuote": true,
  139. "tabWidth": 2,
  140. "trailingComma": "es5",
  141. "useTabs": false
  142. }
  143. ]
  144. }
  145. },
  146. "eslintIgnore": [
  147. "node_modules/",
  148. "lib/"
  149. ],
  150. "prettier": {
  151. "quoteProps": "consistent",
  152. "singleQuote": true,
  153. "tabWidth": 2,
  154. "trailingComma": "es5",
  155. "useTabs": false
  156. },
  157. "react-native-builder-bob": {
  158. "source": "src",
  159. "output": "lib",
  160. "targets": [
  161. "commonjs",
  162. "module",
  163. [
  164. "typescript",
  165. {
  166. "project": "tsconfig.build.json"
  167. }
  168. ]
  169. ]
  170. },
  171. "codegenConfig": {
  172. "name": "RNImageResizerSpec",
  173. "type": "modules",
  174. "jsSrcsDir": "src"
  175. }
  176. }