1 | {
|
2 | "name": "react-native-device-info",
|
3 | "version": "8.4.0",
|
4 | "description": "Get device information using react-native",
|
5 | "react-native": "src/index.ts",
|
6 | "types": "lib/typescript/index.d.ts",
|
7 | "main": "lib/commonjs/index.js",
|
8 | "module": "lib/module/index.js",
|
9 | "files": [
|
10 | "__tests__/",
|
11 | "android/",
|
12 | "ios/",
|
13 | "lib/",
|
14 | "src/",
|
15 | "jest/",
|
16 | "web/",
|
17 | "windows/",
|
18 | "RNDeviceInfo.podspec",
|
19 | "babel.config.js",
|
20 | "jest.config.js",
|
21 | "jest.setup.ts"
|
22 | ],
|
23 | "repository": {
|
24 | "type": "git",
|
25 | "url": "https://github.com/react-native-device-info/react-native-device-info"
|
26 | },
|
27 | "homepage": "https://github.com/react-native-device-info/react-native-device-info#readme",
|
28 | "scripts": {
|
29 | "analyze": "yarn ts-check && yarn flow-check",
|
30 | "flow-check": "npx flow-bin check-contents < src/index.js.flow",
|
31 | "ts-check": "npx tsc --noEmit",
|
32 | "clean": "cd example && npx react-native-clean-project --keep-node-modules --remove-iOS-build --remove-iOS-pods --remove-android-build --clean-android-project --keep-brew --keep-pods && \\rm -fr ios/Pods",
|
33 | "dev-sync": "yarn build && cp -r package.json *podspec lib windows android ios src jest example/node_modules/react-native-device-info/",
|
34 | "lint": "npx eslint ./ --ignore-pattern example --ignore-pattern node_modules --fix --quiet",
|
35 | "shipit": "yarn clean && semantic-release",
|
36 | "example:install": "yarn && cd example && yarn && cd .. && yarn dev-sync",
|
37 | "example:install:pods": "cd example/ios && pod install",
|
38 | "example:android": "cd example && yarn android",
|
39 | "example:android:build": "cd example/android && ./gradlew assembleDebug",
|
40 | "example:ios": "cd example && yarn ios",
|
41 | "example:ios:build": "cd example/ios && xcodebuild CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace example.xcworkspace -configuration Debug -scheme example -sdk iphonesimulator -arch x86_64 ONLY_ACTIVE_ARCH=YES | xcpretty",
|
42 | "example:packager": "cd example && yarn start",
|
43 | "test": "jest",
|
44 | "precommit": "lint-staged && yarn analyze",
|
45 | "build": "bob build",
|
46 | "prepare": "bob build",
|
47 | "ci:install": "rm -rf ./node_modules && yarn install --frozen-lockfile",
|
48 | "ci:shipit": "semantic-release"
|
49 | },
|
50 | "lint-staged": {
|
51 | "*.ts": [
|
52 | "yarn lint",
|
53 | "git add"
|
54 | ]
|
55 | },
|
56 | "keywords": [
|
57 | "react-component",
|
58 | "react-native",
|
59 | "ios",
|
60 | "android",
|
61 | "windows",
|
62 | "device",
|
63 | "events",
|
64 | "cocoapod"
|
65 | ],
|
66 | "author": "Rebecca Hughes <rebecca@learnium.net> (https://github.com/rebeccahughes)",
|
67 | "contributors": [
|
68 | {
|
69 | "name": "Gant Laborde",
|
70 | "email": "gant@infinite.red",
|
71 | "url": "https://github.com/gantman"
|
72 | },
|
73 | {
|
74 | "name": "Mehdi Achour",
|
75 | "email": "machour@gmail.com",
|
76 | "url": "https://github.com/machour"
|
77 | },
|
78 | {
|
79 | "name": "Mike Hardy",
|
80 | "email": "github@mikehardy.net",
|
81 | "url": "https://github.com/mikehardy"
|
82 | }
|
83 | ],
|
84 | "license": "MIT",
|
85 | "peerDependencies": {
|
86 | "react-native": "*"
|
87 | },
|
88 | "devDependencies": {
|
89 | "@react-native-community/eslint-config": "2.0.0",
|
90 | "@semantic-release/changelog": "^5.0.1",
|
91 | "@semantic-release/commit-analyzer": "^8.0.1",
|
92 | "@semantic-release/git": "^9.0.0",
|
93 | "@semantic-release/github": "^7.2.0",
|
94 | "@semantic-release/npm": "^7.0.10",
|
95 | "@semantic-release/release-notes-generator": "^9.0.2",
|
96 | "@testing-library/react-hooks": "^5.1.0",
|
97 | "@types/jest": "^26.0.20",
|
98 | "@types/react": "16.14.5",
|
99 | "@types/react-native": "^0.63.51",
|
100 | "eslint": "^7.21.0",
|
101 | "eslint-plugin-prettier": "^3.3.1",
|
102 | "husky": "^6.0.0",
|
103 | "jest": "^26.6.0",
|
104 | "lint-staged": "^10.5.4",
|
105 | "metro-react-native-babel-preset": "^0.63.0",
|
106 | "prettier": "^2.2.1",
|
107 | "react": "16.14.0",
|
108 | "react-native": "^0.63.4",
|
109 | "react-native-builder-bob": "^0.18.1",
|
110 | "react-native-windows": "^0.63.23",
|
111 | "react-test-renderer": "^17.0.1",
|
112 | "semantic-release": "^17.4.2",
|
113 | "ts-jest": "^26.5.3",
|
114 | "typescript": "^4.2.3"
|
115 | },
|
116 | "resolutions": {
|
117 | "@types/react": "16.14.5"
|
118 | },
|
119 | "eslintConfig": {
|
120 | "extends": "@react-native-community"
|
121 | },
|
122 | "react-native-builder-bob": {
|
123 | "source": "src",
|
124 | "output": "lib",
|
125 | "targets": [
|
126 | "commonjs",
|
127 | "module",
|
128 | "typescript"
|
129 | ]
|
130 | }
|
131 | }
|