-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy pathpackage.json
144 lines (144 loc) · 4.3 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "@stripe/stripe-react-native",
"version": "0.42.0",
"author": "Stripe",
"description": "Stripe SDK for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\" --ignore-pattern \"docs/api-reference/*\" --ignore-path .gitignore",
"prepare": "bob build && husky",
"release": "./scripts/publish",
"example": "yarn --cwd example",
"pods": "cd example && npx pod-install --quiet",
"update-pods": "cd example/ios && pod update Stripe StripeApplePay StripeFinancialConnections StripePayments StripePaymentSheet StripePaymentsUI StripeCore StripeUICore",
"bootstrap": "yarn example && yarn && yarn pods",
"bootstrap-no-pods": "yarn example && yarn",
"docs": "yarn typedoc ./src/index.tsx --out ./docs/api-reference --tsconfig ./tsconfig.json --readme none --sort source-order",
"run-example-ios": "cd example && yarn ios --simulator \"iPhone 16\"",
"run-example-ios:release": "cd example && yarn build:ios && yarn ios --mode Release --simulator \"iPhone 16\" --no-packager",
"run-example-android": "cd example && yarn android",
"run-example-android:release": "cd example && yarn build:android && yarn android --mode=release --no-packager",
"test:e2e:ios": "bash ./scripts/run-maestro-tests ios",
"test:e2e:android": "bash ./scripts/run-maestro-tests android",
"test:unit:ios": "xcodebuild test -workspace example/ios/example.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 16' -scheme stripe-react-native-Unit-Tests",
"test:unit:android": "cd example/android && ./gradlew connectedAndroidTest",
"test-ios": "maestro test -e APP_ID=com.stripe.react.native",
"test-android": "maestro test -e APP_ID=com.stripe.react.native",
"format:android:check": "cd android && ./gradlew spotlessCheck",
"format:android:write": "cd android && ./gradlew spotlessApply"
},
"keywords": [
"react-native",
"ios",
"android"
],
"repository": "https://github.com/stripe/stripe-react-native",
"license": "MIT",
"bugs": {
"url": "https://github.com/stripe/stripe-react-native/issues"
},
"homepage": "https://github.com/stripe/stripe-react-native/#readme",
"dependencies": {},
"devDependencies": {
"@expo/config-plugins": "^9.0.16",
"@react-native/babel-preset": "^0.78.0",
"@react-native/eslint-config": "^0.78.0",
"@types/jest": "^29.5.14",
"@types/react": "^19.0.10",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"prettier": "^3.5.2",
"react-native-builder-bob": "^0.37.0",
"react-native": "^0.78.0",
"react": "^19.0.0",
"ts-node": "^10.9.2",
"typedoc": "^0.27.9",
"typescript": "^5.7.3"
},
"peerDependencies": {
"expo": ">=46.0.9",
"react": "*",
"react-native": "*"
},
"peerDependenciesMeta": {
"expo": {
"optional": true
}
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules",
"<rootDir>/lib/",
"<rootDir>/e2e"
]
},
"eslintConfig": {
"extends": [
"@react-native",
"plugin:prettier/recommended"
],
"rules": {
"no-shadow": "off",
"@typescript-eslint/no-shadow": [
"error"
],
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration[const=true]",
"message": "`const enum` declarations are not allowed"
}
]
}
},
"eslintIgnore": [
"node_modules/",
"lib/",
"dist/",
"server-dist/"
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
[
"commonjs",
{
"configFile": true
}
],
[
"module",
{
"configFile": true
}
],
[
"typescript",
{
"configFile": true
}
]
]
},
"resolutions": {
"simple-plist": "1.3.1"
}
}