Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
204 lines (204 loc) · 6.47 KB
/
Copy pathpackage.json
File metadata and controls
204 lines (204 loc) · 6.47 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
"name": "@sentry/react-native",
"homepage": "https://github.com/getsentry/sentry-react-native",
"repository": "https://github.com/getsentry/sentry-react-native",
"version": "8.34.0",
"description": "Official Sentry SDK for react-native",
"typings": "dist/js/index.d.ts",
"types": "dist/js/index.d.ts",
"typesVersions": {
"<4.9": {
"*": [
"ts3.8/*"
]
}
},
"typescript": {
"definition": "dist/js/index.d.ts"
},
"main": "dist/js/index.js",
"sideEffects": false,
"scripts": {
"build": "npx run-s build:sdk downlevel build:tools build:plugin build:replay-stubs",
"build:sdk": "tsc -p tsconfig.build.json",
"build:sdk:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:tools": "tsc -p tsconfig.build.tools.json",
"build:tools:watch": "tsc -p tsconfig.build.tools.json -w --preserveWatchOutput",
"build:plugin": "EXPO_NONINTERACTIVE=true expo-module build plugin",
"build:replay-stubs": "[ \"$PLATFORM\" = \"ios\" ] && echo 'Skipping replay-stubs for iOS' && exit 0 || cd android/replay-stubs && ./gradlew jar",
"build:tarball": "bash scripts/build-tarball.sh",
"downlevel": "downlevel-dts dist ts3.8/dist --to=3.8",
"clean": "rimraf dist coverage && yarn clean:plugin",
"clean:plugin": "expo-module clean plugin",
"circularDepCheck": "madge --circular dist/js/index.js && madge --circular metro.js && madge --circular expo.js",
"test": "yarn test:sdk && yarn test:tools",
"test:sdk": "sh -c 'if [ \"$CI\" = \"true\" ]; then yarn test:sdk-ci; else yarn test:sdk-local; fi'",
"test:sdk-ci": "npx jest",
"test:sdk-local": "jest --maxWorkers=8",
"test:tools": "npx jest --config jest.config.tools.js",
"test:watch": "npx jest --watch",
"yalc:add:sentry-javascript": "yalc add @sentry/browser @sentry/core @sentry/react",
"fix": "npx run-s fix:oxlint fix:fmt",
"fix:oxlint": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --fix",
"fix:fmt": "oxfmt \"{src,test,scripts,plugin/src}/**/**.ts\" \"{src,test}/**/**.tsx\"",
"lint": "npx run-s lint:oxlint lint:fmt lint:side-effects",
"lint:oxlint": "sh -c 'OUT=$(OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --deny-warnings 2>&1); echo \"$OUT\"; echo \"$OUT\" | grep -qE \"Found 0 warnings and 0 errors\"'",
"lint:side-effects": "node scripts/check-side-effects.js",
"lint:fmt": "oxfmt --check \"{src,test,scripts,plugin/src}/**/**.ts\" \"{src,test}/**/**.tsx\"",
"api-report:generate": "api-extractor run --local --verbose",
"api-report:check": "api-extractor run --verbose"
},
"bin": {
"sentry-eas-build-on-complete": "scripts/eas-build-hook.js",
"sentry-eas-build-on-error": "scripts/eas-build-hook.js",
"sentry-eas-build-on-success": "scripts/eas-build-hook.js",
"sentry-expo-upload-sourcemaps": "scripts/expo-upload-sourcemaps.js"
},
"keywords": [
"react-native",
"sentry",
"crashreporting",
"ios"
],
"publishConfig": {
"access": "public"
},
"author": "Sentry",
"license": "MIT",
"//": [
"React version to be compatible with RN",
"When bumping make sure to update the version of react, i.e: https://github.com/facebook/react-native/blob/v0.56.0/package.json"
],
"peerDependencies": {
"@babel/core": ">=7.0.0",
"@expo/config": "*",
"@expo/config-types": "*",
"@expo/env": "*",
"@react-navigation/native": "*",
"dotenv": "*",
"expo": ">=49.0.0",
"expo-router": "*",
"expo-updates": "*",
"metro": "*",
"metro-config": "*",
"metro-resolver": "*",
"open": "*",
"promise": "*",
"react": ">=17.0.0",
"react-native": ">=0.65.0"
},
"dependencies": {
"@sentry/browser": "10.78.0",
"@sentry/bundler-plugins": "10.78.0",
"@sentry/cli": "3.8.2",
"@sentry/core": "10.78.0",
"@sentry/expo-upload-sourcemaps": "workspace:*",
"@sentry/react": "10.78.0"
},
"devDependencies": {
"@babel/core": "^7.26.7",
"@expo/config": "^11.0.8",
"@expo/config-types": "^53.0.3",
"@expo/metro-config": "~0.20.0",
"@microsoft/api-extractor": "^7.58.7",
"@mswjs/interceptors": "^0.25.15",
"@react-native/babel-preset": "0.88.1",
"@react-native/jest-preset": "0.88.1",
"@sentry/eslint-plugin-sdk": "10.78.0",
"@sentry/typescript": "10.78.0",
"@sentry/wizard": "9.1.0",
"@testing-library/react-native": "^13.2.2",
"@types/jest": "^29.5.13",
"@types/node": "^20.9.3",
"@types/react": "^19.2.0",
"@types/react-test-renderer": "^19.1.0",
"@types/uglify-js": "^3.17.2",
"@types/xmlhttprequest": "^1.8.2",
"babel-jest": "^29.6.3",
"babel-plugin-module-resolver": "^5.0.0",
"babel-preset-fbjs": "^3.4.0",
"downlevel-dts": "^0.11.0",
"expo": "^53.0.0",
"expo-module-scripts": "3.1.0",
"jest": "^29.6.3",
"jest-environment-jsdom": "^29.6.2",
"jest-extended": "^4.0.2",
"madge": "^6.1.0",
"metro": "0.84.4",
"metro-config": "0.84.4",
"metro-resolver": "0.84.4",
"oxfmt": "^0.42.0",
"oxlint": "^1.56.0",
"oxlint-tsgolint": "^0.17.4",
"promise": "^8.3.0",
"react": "19.3.0",
"react-native": "0.88.1",
"react-test-renderer": "19.3.0",
"rimraf": "^4.1.1",
"ts-jest": "^29.3.1",
"typescript": "~5.9.3",
"uglify-js": "^3.17.4",
"xmlhttprequest": "^1.8.0"
},
"codegenConfig": {
"name": "RNSentrySpec",
"type": "all",
"jsSrcsDir": "src",
"android": {
"javaPackageName": "io.sentry.react"
},
"ios": {
"componentProvider": {
"RNSentryReplayMask": "RNSentryReplayMask",
"RNSentryReplayUnmask": "RNSentryReplayUnmask"
}
}
},
"swiftpmConfig": {
"name": "RNSentry"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"@expo/config": {
"optional": true
},
"@expo/config-types": {
"optional": true
},
"@expo/env": {
"optional": true
},
"@react-navigation/native": {
"optional": true
},
"dotenv": {
"optional": true
},
"expo": {
"optional": true
},
"expo-router": {
"optional": true
},
"expo-updates": {
"optional": true
},
"metro": {
"optional": true
},
"metro-config": {
"optional": true
},
"metro-resolver": {
"optional": true
},
"open": {
"optional": true
},
"promise": {
"optional": true
}
}
}