forked from react-native-netinfo/react-native-netinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
125 lines (125 loc) · 3.78 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
118
119
120
121
122
123
124
125
{
"name": "@react-native-community/netinfo",
"version": "11.0.1",
"description": "React Native Network Info API for iOS & Android",
"react-native": "src/index.ts",
"types": "lib/typescript/src/index.d.ts",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"files": [
"/android",
"!/android/build",
"/ios",
"/windows",
"/macos",
"/src",
"/lib",
"/*.podspec",
"/jest"
],
"author": "Matt Oakes <[email protected]>",
"contributors": [
"Mike Diarmid (Salakar) <[email protected]>"
],
"homepage": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
"license": "MIT",
"scripts": {
"start": "react-native start",
"start:android": "react-native run-android --appId com.reactnativecommunity.netinfo.example",
"start:ios": "react-native run-ios",
"start:macos": "react-native run-macos --scheme NetInfoExample --project-path example/macos",
"start:web": "webpack-dev-server --config example/webpack.config.js",
"start:windows": "install-windows-test-app --project-directory example/windows && react-native run-windows --root example --arch x64",
"test": "yarn validate:eslint && yarn validate:typescript && yarn test:jest",
"validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
"validate:typescript": "tsc --project ./ --noEmit",
"test:jest": "jest \"/src/\"",
"build:e2e:macos": "scripts/run_macos_e2e.sh 'build'",
"test:e2e:macos": "scripts/run_macos_e2e.sh 'test'",
"ci:publish": "yarn semantic-release",
"semantic-release": "semantic-release",
"prepare": "bob build"
},
"keywords": [
"react-native",
"react native",
"netinfo",
"networking",
"network info"
],
"peerDependencies": {
"react-native": ">=0.59"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/bob": "^0.17.1",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.11",
"@tsconfig/react-native": "^3.0.0",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "9.0.0",
"@types/jest": "^29.2.1",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"babel-jest": "^29.2.1",
"babel-loader": "^8.0.6",
"eslint": "8.19.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "3.1.2",
"html-webpack-plugin": "^3.2.0",
"husky": "^2.7.0",
"jest": "^29.2.1",
"jest-expo": "^49.0.0",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^8.2.1",
"metro-react-native-babel-preset": "^0.76.8",
"prettier": "^2.4.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "^0.72.6",
"react-native-macos": "^0.72.5",
"react-native-test-app": "^2.5.32",
"react-native-web": "^0.17.7",
"react-native-windows": "^0.72.18",
"react-test-renderer": "18.2.0",
"rimraf": "^2.6.3",
"semantic-release": "^17.4.7",
"source-map-loader": "^0.2.4",
"ts-jest": "^29.1.1",
"ts-loader": "^6.2.1",
"typescript": "^5.2.2",
"webpack": "^4.47.0",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.11.3"
},
"repository": {
"type": "git",
"url": "https://github.com/react-native-netinfo/react-native-netinfo.git"
},
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn test"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"yarn eslint --fix",
"git add"
]
}
}