1 | {
|
2 | "name": "react-native-device-info",
|
3 | "version": "10.0.2",
|
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 | "dev-sync-windows": "for %x in (lib windows android src jest) do xcopy \"%x\" .\\example\\node_modules\\react-native-device-info\\%x /S /E /R /H /I /Y",
|
35 | "lint": "npx eslint ./ --ignore-pattern example --ignore-pattern node_modules --fix --quiet",
|
36 | "shipit": "yarn clean && semantic-release",
|
37 | "example:install": "yarn && cd example && yarn && cd .. && yarn dev-sync",
|
38 | "example:install-windows": "yarn && cd example && yarn && cd .. && yarn dev-sync-windows",
|
39 | "example:install:pods": "cd example/ios && pod install",
|
40 | "example:android": "cd example && yarn android",
|
41 | "example:android:build": "cd example/android && ./gradlew assembleDebug",
|
42 | "example:ios": "cd example && yarn ios",
|
43 | "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",
|
44 | "example:windows": "cd example && yarn windows",
|
45 | "example:packager": "cd example && yarn start",
|
46 | "test": "jest",
|
47 | "precommit": "lint-staged && yarn analyze",
|
48 | "build": "bob build",
|
49 | "prepare": "bob build",
|
50 | "ci:install": "rm -rf ./node_modules && yarn install --frozen-lockfile",
|
51 | "ci:shipit": "semantic-release"
|
52 | },
|
53 | "lint-staged": {
|
54 | "*.ts": [
|
55 | "yarn lint",
|
56 | "git add"
|
57 | ]
|
58 | },
|
59 | "keywords": [
|
60 | "react-component",
|
61 | "react-native",
|
62 | "ios",
|
63 | "android",
|
64 | "windows",
|
65 | "device",
|
66 | "events",
|
67 | "cocoapod"
|
68 | ],
|
69 | "author": "Rebecca Hughes <rebecca@learnium.net> (https://github.com/rebeccahughes)",
|
70 | "contributors": [
|
71 | {
|
72 | "name": "Gant Laborde",
|
73 | "email": "gant@infinite.red",
|
74 | "url": "https://github.com/gantman"
|
75 | },
|
76 | {
|
77 | "name": "Mehdi Achour",
|
78 | "email": "machour@gmail.com",
|
79 | "url": "https://github.com/machour"
|
80 | },
|
81 | {
|
82 | "name": "Mike Hardy",
|
83 | "email": "github@mikehardy.net",
|
84 | "url": "https://github.com/mikehardy"
|
85 | },
|
86 | {
|
87 | "name": "Dustin Schie",
|
88 | "email": "github@schie.io",
|
89 | "url": "https://github.com/schie"
|
90 | }
|
91 | ],
|
92 | "license": "MIT",
|
93 | "peerDependencies": {
|
94 | "react-native": "*"
|
95 | },
|
96 | "devDependencies": {
|
97 | "@react-native-community/eslint-config": "^3.0.1",
|
98 | "@semantic-release/changelog": "^6.0.1",
|
99 | "@semantic-release/commit-analyzer": "^9.0.2",
|
100 | "@semantic-release/git": "^10.0.1",
|
101 | "@semantic-release/github": "^8.0.2",
|
102 | "@semantic-release/npm": "^9.0.1",
|
103 | "@semantic-release/release-notes-generator": "^10.0.3",
|
104 | "@testing-library/react-hooks": "^7.0.2",
|
105 | "@types/jest": "^27.4.1",
|
106 | "@types/react": "17.0.39",
|
107 | "@types/react-native": "^0.67.2",
|
108 | "eslint": "^7",
|
109 | "eslint-plugin-prettier": "^4.0.0",
|
110 | "husky": "^7.0.4",
|
111 | "jest": "^27.5.1",
|
112 | "lint-staged": "^12.3.4",
|
113 | "metro-react-native-babel-preset": "^0.67.0",
|
114 | "react": "17.0.2",
|
115 | "react-native": "^0.67.3",
|
116 | "react-native-builder-bob": "^0.18.2",
|
117 | "react-native-windows": "^0.67.3",
|
118 | "react-test-renderer": "^17.0.1",
|
119 | "semantic-release": "^19.0.2",
|
120 | "ts-jest": "^27.1.3",
|
121 | "typescript": "^4.6.2"
|
122 | },
|
123 | "resolutions": {
|
124 | "@types/react": "17.0.39"
|
125 | },
|
126 | "eslintConfig": {
|
127 | "extends": "@react-native-community"
|
128 | },
|
129 | "react-native-builder-bob": {
|
130 | "source": "src",
|
131 | "output": "lib",
|
132 | "targets": [
|
133 | "commonjs",
|
134 | "module",
|
135 | "typescript"
|
136 | ]
|
137 | }
|
138 | }
|