react-native-country-picker-modal-xkelxmc
Version:
react-native country picker
131 lines (130 loc) • 4.56 kB
JSON
{
"name": "react-native-country-picker-modal-xkelxmc",
"version": "2.1.3",
"description": "react-native country picker",
"main": "lib/index.js",
"source": "src/index.ts",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/xkelxmc/react-native-country-picker-modal.git"
},
"files": [
"lib"
],
"exports": {
"./package.json": "./package.json",
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.js"
}
},
"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 --build tsconfig.build.json && mkdir -p ./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\"'",
"config:yarn": "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/xkelxmc/react-native-country-picker-modal/issues"
},
"homepage": "https://github.com/xkelxmc/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"
}
}