-
-
Notifications
You must be signed in to change notification settings - Fork 801
/
package.json
117 lines (117 loc) · 4.12 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "react-native-country-picker-modal",
"version": "2.0.0",
"description": "react-native country picker",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/xcarpentier/react-native-country-picker-modal.git"
},
"scripts": {
"start": "yarn config:dev && expo start",
"start:web": "yarn config:dev && expo start -w --dev",
"tsc": "node_modules/.bin/tsc --noEmit",
"build": "rm -rf lib/ && node_modules/.bin/tsc && mkdir ./lib && cp -rf ./src/assets ./lib/assets && yarn minify",
"minify": "yarn minify:emoji",
"minify:emoji": "./scripts/minify.js ./lib/assets/data/countries-emoji.json",
"config:dev": "json -I -f package.json -e 'this.main=\"node_modules/expo/AppEntry.js\"'",
"config:npm": "json -I -f package.json -e 'this.main=\"lib/index.js\"'",
"lint": "eslint .",
"test": "TZ=Europe/Paris jest",
"data:image": "rm -rf ./data/countries.json && ./scripts/transform-world-countries.js > ./data/countries.json",
"data:emoji": "rm -rf ./data/countries-emoji.json && ./scripts/transform-world-countries.js --emoji > ./data/countries-emoji.json",
"data:cca2": "rm -rf ./data/cca2.json && ./scripts/transform-world-countries.js --cca2 > ./data/cca2.json",
"data:regions": "rm -rf ./data/cca2.json && ./scripts/transform-world-countries.js --regions > ./data/regions.json",
"data:subregions": "rm -rf ./data/cca2.json && ./scripts/transform-world-countries.js --subregions > ./data/subregions.json",
"cleaning": "rm -rf node_modules && rm -f yarn.lock && yarn cache clean && yarn install && watchman watch-del-all && rm -fr $TMPDIR/react-*",
"verify": "yarn lint && yarn build && yarn test",
"prepublishOnly": "yarn verify && yarn config:npm",
"postpublish": "yarn config:dev",
"deploy": "gh-pages -d web-build",
"predeploy": "yarn verify && expo build:web && mkdir web-build/countries && cp ./data/countries.json web-build/countries/index.json"
},
"keywords": [
"react-native",
"components",
"country-picker",
"country",
"flag"
],
"author": "Xavier Carpentier <xcapetir@gmail.com> (https://xaviercarpentier.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/xcarpentier/react-native-country-picker-modal/issues"
},
"homepage": "http://xcarpentier.github.io/react-native-country-picker-modal",
"dependencies": {
"@callstack/react-theme-provider": "3.0.9",
"fuse.js": "3.4.5",
"node-emoji": "1.11.0",
"react-async-hook": "4.0.0"
},
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/eslint-parser": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@types/jest": "29.5.5",
"@types/node-emoji": "1.8.2",
"@types/react": "18.2.24",
"@types/react-native": "0.72.3",
"@types/react-test-renderer": "18.0.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"babel-cli": "6.26.0",
"babel-jest": "29.7.0",
"babel-preset-expo": "^9.5.2",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.33.2",
"expo": "^49.0.13",
"gh-pages": "6.0.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-expo": "^49.0.0",
"json": "^11.0.0",
"prettier": "3.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.5",
"react-native-web": "^0.19.9",
"react-test-renderer": "18.2.0",
"typescript": "5.2.2",
"world-countries": "5.0.0"
},
"jest": {
"preset": "react-native",
"testEnvironment": "jsdom",
"moduleFileExtensions": [
"js",
"jsx",
"json",
"ts",
"tsx"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
},
"testMatch": [
"**/*.test.ts?(x)"
],
"modulePathIgnorePatterns": [
"<rootDir>/example-expo",
"<rootDir>/example-slack-message"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && yarn tsc"
}
},
"resolutions": {
"mem": "^4.0.0"
}
}