UNPKG

3.98 kBJSONView Raw
1{
2 "name": "@react-native-community/netinfo",
3 "version": "9.3.0",
4 "description": "React Native Network Info API for iOS & Android",
5 "react-native": "src/index.ts",
6 "types": "lib/typescript/src/index.d.ts",
7 "main": "lib/commonjs/index.js",
8 "module": "lib/module/index.js",
9 "files": [
10 "/android",
11 "!/android/build",
12 "/ios",
13 "/windows",
14 "/macos",
15 "/src",
16 "/lib",
17 "/*.podspec",
18 "/jest"
19 ],
20 "author": "Matt Oakes <hello@mattoakes.net>",
21 "contributors": [
22 "Mike Diarmid (Salakar) <mike@invertase.io>"
23 ],
24 "homepage": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
25 "license": "MIT",
26 "scripts": {
27 "start": "react-native start",
28 "start:android": "cd example && yarn react-native run-android",
29 "start:ios": "cd example && yarn react-native run-ios --project-path `pwd`/ios",
30 "start:macos:packager": "node node_modules/react-native-macos/local-cli/cli.js start --use-react-native-macos",
31 "start:web": "webpack-dev-server --config example/webpack.config.js",
32 "start:windows:packager": "react-native start --use-react-native-windows",
33 "start:windows": "react-native run-windows --arch x64 --logging --root example",
34 "test": "yarn validate:eslint && yarn validate:typescript && yarn test:jest",
35 "validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
36 "validate:typescript": "tsc --project ./ --noEmit",
37 "test:jest": "jest \"/src/\"",
38 "build:e2e:macos": "scripts/run_macos_e2e.sh 'build'",
39 "test:e2e:macos": "scripts/run_macos_e2e.sh 'test'",
40 "ci:publish": "yarn semantic-release",
41 "semantic-release": "semantic-release",
42 "prepare": "bob build"
43 },
44 "keywords": [
45 "react-native",
46 "react native",
47 "netinfo",
48 "networking",
49 "network info"
50 ],
51 "peerDependencies": {
52 "react-native": ">=0.59"
53 },
54 "dependencies": {},
55 "devDependencies": {
56 "@babel/core": "^7.12.17",
57 "@babel/runtime": "^7.12.18",
58 "@react-native-community/bob": "^0.17.1",
59 "@react-native-community/cli": "^6.0.0",
60 "@react-native-community/cli-platform-android": "^6.0.0",
61 "@react-native-community/cli-platform-ios": "^6.0.0",
62 "@react-native-community/eslint-config": "^3.0.1",
63 "@semantic-release/changelog": "^5.0.1",
64 "@semantic-release/git": "9.0.0",
65 "@types/jest": "^27.0.2",
66 "@types/react-native": "^0.65.1",
67 "@typescript-eslint/eslint-plugin": "^4.32.0",
68 "@typescript-eslint/parser": "^4.32.0",
69 "babel-loader": "^8.0.6",
70 "eslint": "7.31.0",
71 "eslint-config-prettier": "^6.15.0",
72 "eslint-plugin-prettier": "3.1.2",
73 "html-webpack-plugin": "^3.2.0",
74 "husky": "^2.3.0",
75 "jest": "^27.2.4",
76 "jest-expo": "^42.1.0",
77 "jest-fetch-mock": "^3.0.3",
78 "lint-staged": "^8.1.7",
79 "metro": "^0.66.2",
80 "metro-config": "^0.66.1",
81 "metro-react-native-babel-preset": "^0.66.2",
82 "prettier": "^1.17.0",
83 "react": "17.0.2",
84 "react-dom": "17.0.2",
85 "react-native": "0.65.1",
86 "react-native-codegen": "^0.0.8",
87 "react-native-macos": "0.60.0-microsoft.50",
88 "react-native-web": "^0.17.5",
89 "react-native-windows": "0.65.8",
90 "react-test-renderer": "17.0.2",
91 "rimraf": "^2.6.3",
92 "semantic-release": "^17.4.6",
93 "source-map-loader": "^0.2.4",
94 "ts-jest": "^27.0.5",
95 "ts-loader": "^6.2.1",
96 "typescript": "^4.4.3",
97 "webpack": "^4.41.5",
98 "webpack-cli": "^3.3.10",
99 "webpack-dev-server": "^3.10.2"
100 },
101 "repository": {
102 "type": "git",
103 "url": "https://github.com/react-native-netinfo/react-native-netinfo.git"
104 },
105 "@react-native-community/bob": {
106 "source": "src",
107 "output": "lib",
108 "targets": [
109 "commonjs",
110 "module",
111 "typescript"
112 ]
113 },
114 "husky": {
115 "hooks": {
116 "pre-commit": "lint-staged",
117 "pre-push": "yarn test"
118 }
119 },
120 "lint-staged": {
121 "*.{js,ts,tsx}": [
122 "yarn eslint --fix",
123 "git add"
124 ]
125 }
126}