Skip to content

Commit 6cc9755

Browse files
committed
Improve example npm scripts
1 parent 0efc978 commit 6cc9755

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

example/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
2-
"name": "RNPermissionsExample",
2+
"name": "react-native-permissions-example",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6+
"clean-modules": "rm -rf ./node_modules/react-native-permissions/{example,node_modules}",
7+
"clean": "rm -rf ./node_modules ./ios/Pods",
8+
"postinstall": "yarn clean-modules && yarn pod-install",
9+
"pod-install": "cd ./ios && pod install && cd ..",
610
"start": "react-native start",
7-
"postinstall": "rm -rf node_modules/react-native-permissions/{example,node_modules}",
8-
"reinstall": "rm -rf node_modules ios/Pods && yarn install && cd ios && pod install"
11+
"reinstall": "yarn clean && yarn install"
912
},
1013
"dependencies": {
1114
"react": "16.8.6",

0 commit comments

Comments
 (0)