-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
145 lines (145 loc) · 4.64 KB
/
package.json
File metadata and controls
145 lines (145 loc) · 4.64 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "react-native-device-info",
"version": "15.0.1",
"description": "Get device information using react-native",
"react-native": "src/index.ts",
"types": "lib/typescript/index.d.ts",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"files": [
"__tests__/",
"android/",
"ios/",
"lib/",
"src/",
"jest/",
"web/",
"windows/",
"RNDeviceInfo.podspec",
"babel.config.js",
"jest.config.js",
"jest.setup.ts"
],
"repository": {
"type": "git",
"url": "https://github.com/react-native-device-info/react-native-device-info"
},
"homepage": "https://github.com/react-native-device-info/react-native-device-info#readme",
"scripts": {
"analyze": "yarn ts-check && yarn flow-check",
"flow-check": "npx flow-bin check-contents < src/index.js.flow",
"ts-check": "npx tsc -p tsconfig.build.json --noEmit",
"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",
"dev-sync": "yarn build && cp -r package.json *podspec lib windows android ios src jest example/node_modules/react-native-device-info/",
"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",
"lint": "npx eslint ./ --ignore-pattern example --ignore-pattern node_modules --fix --quiet",
"shipit": "yarn clean && release-it",
"example:install": "yarn && cd example && yarn && cd .. && yarn dev-sync",
"example:install-windows": "yarn && cd example && yarn && cd .. && yarn dev-sync-windows",
"example:install:pods": "cd example/ios && pod install",
"example:android": "cd example && yarn android",
"example:android:build": "cd example/android && ./gradlew assembleDebug",
"example:ios": "cd example && yarn ios --simulator 'iPhone 16'",
"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",
"example:windows": "cd example && yarn windows",
"example:packager": "cd example && yarn start",
"test": "jest",
"precommit": "lint-staged && yarn analyze",
"build": "bob build",
"prepare": "bob build",
"ci:install": "rm -rf ./node_modules && yarn install --frozen-lockfile",
"ci:shipit": "release-it --ci",
"docs": "npx typedoc",
"docs:serve": "npx http-server docs"
},
"lint-staged": {
"*.ts": [
"yarn lint",
"git add"
]
},
"keywords": [
"react-component",
"react-native",
"ios",
"android",
"windows",
"device",
"events",
"cocoapod"
],
"author": "Rebecca Hughes <rebecca@learnium.net> (https://github.com/rebeccahughes)",
"contributors": [
{
"name": "Gant Laborde",
"email": "gant@infinite.red",
"url": "https://github.com/gantman"
},
{
"name": "Mehdi Achour",
"email": "machour@gmail.com",
"url": "https://github.com/machour"
},
{
"name": "Mike Hardy",
"email": "github@mikehardy.net",
"url": "https://github.com/mikehardy"
},
{
"name": "Dustin Schie",
"email": "github@schie.io",
"url": "https://github.com/schie"
}
],
"license": "MIT",
"peerDependencies": {
"react-native": "*"
},
"devDependencies": {
"@jest/globals": "^30.2.0",
"@react-native-community/eslint-config": "^3.0.1",
"@release-it/conventional-changelog": "^10.0.1",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^30.0.0",
"@types/react": "17.0.39",
"@types/react-native": "^0.67.2",
"eslint": "^7",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.4",
"metro-react-native-babel-preset": "^0.67.0",
"react": "17.0.2",
"react-native": "^0.67.3",
"react-native-builder-bob": "^0.18.2",
"react-native-windows": "^0.67.3",
"react-test-renderer": "^17.0.1",
"release-it": "^19.0.6",
"ts-jest": "^27.1.3",
"typescript": "^4.6.2"
},
"resolutions": {
"@types/react": "17.0.39"
},
"eslintConfig": {
"extends": "@react-native-community"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}