Browse Source

Update project dependencies

Mathieu Acthernoene 5 years ago
parent
commit
9f73dee792
5 changed files with 1339 additions and 228 deletions
  1. 5
    0
      .flowconfig
  2. 0
    2
      .prettierignore
  3. 1
    3
      .prettierrc
  4. 20
    9
      package.json
  5. 1313
    214
      yarn.lock

+ 5
- 0
.flowconfig View File

@@ -7,3 +7,8 @@
7 7
 [lints]
8 8
 
9 9
 [options]
10
+munge_underscores=true
11
+suppress_type=$FlowFixMe
12
+
13
+[version]
14
+^0.91.0

+ 0
- 2
.prettierignore View File

@@ -1,3 +1 @@
1
-android/
2
-ios/
3 1
 example/node_modules/

+ 1
- 3
.prettierrc View File

@@ -1,5 +1,3 @@
1 1
 {
2
-  "singleQuote": true,
3
-  "trailingComma": "all",
4
-  "semi": false
2
+  "trailingComma": "all"
5 3
 }

+ 20
- 9
package.json View File

@@ -1,10 +1,14 @@
1 1
 {
2 2
   "name": "react-native-permissions",
3
-  "version": "1.1.1",
4
-  "description": "Check user permissions in React Native",
3
+  "version": "2.0.0-alpha.1",
4
+  "description": "Check and request user permissions in React Native.",
5 5
   "author": "Yonah Forst <yonaforst@hotmail.com>",
6 6
   "homepage": "https://github.com/yonahforst/react-native-permissions",
7
-  "keywords": ["react-native", "react-permissions", "permissions"],
7
+  "keywords": [
8
+    "react-native",
9
+    "react-permissions",
10
+    "permissions"
11
+  ],
8 12
   "main": "index.js",
9 13
   "license": "MIT",
10 14
   "repository": {
@@ -13,15 +17,22 @@
13 17
   },
14 18
   "scripts": {
15 19
     "precommit": "lint-staged",
16
-    "prettier": "prettier --write '**/*.{js,json,md}'"
20
+    "format": "prettier --write '**/*.{js,json,md}'",
21
+    "typecheck": "flow ."
17 22
   },
18 23
   "lint-staged": {
19
-    "**/*.{js,json,md}": ["prettier --write", "git add"]
24
+    "**/*.{js,json,md}": [
25
+      "prettier --write",
26
+      "git add"
27
+    ]
28
+  },
29
+  "peerDependencies": {
30
+    "react-native": ">=0.56.0"
20 31
   },
21 32
   "devDependencies": {
22
-    "flow-bin": "^0.57.3",
23
-    "husky": "^0.14.3",
24
-    "lint-staged": "^6.0.0",
25
-    "prettier": "^1.9.2"
33
+    "flow-bin": "0.91.0",
34
+    "husky": "1.3.1",
35
+    "lint-staged": "8.1.1",
36
+    "prettier": "1.16.1"
26 37
   }
27 38
 }

+ 1313
- 214
yarn.lock
File diff suppressed because it is too large
View File