-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
224 lines (224 loc) · 7.82 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"name": "hyperswitch",
"version": "1.1.0",
"private": true,
"scripts": {
"start": "react-native start --reset-cache",
"server": "node server.js",
"re:start": "rescript build -w",
"re:format": "rescript format -all",
"web": "NODE_ENV=development webpack serve --mode=development --config reactNativeWeb/webpack.config.js",
"web:demo": "concurrently \"yarn web\" \"yarn server\" \"webpack server --mode=development --config reactNativeWeb/DemoApp/webpack.config.js\" ",
"bundle": "bundle install && cd ios && bundle exec pod install",
"ios": "react-native run-ios",
"run:ios": "bundle && react-native run-ios",
"android": "react-native run-android --appIdSuffix demoapp --main-activity .demoapp.MainActivity && yarn run adb",
"web:next": "cd reactNativeWeb && next",
"bundle:android": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/hyperswitch.bundle",
"bundle:ios": "react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios/hyperswitchSDK/Core/Resources/hyperswitch.bundle",
"build:web": "rm -rf reactNativeWeb/dist/ && webpack --mode=production --config reactNativeWeb/webpack.config.js",
"build:lib": "android/build-lib.sh",
"clean": "rm -rf node_modules && rm -rf package-lock.json && rm -rf yarn.lock && yarn run clean:gradle && yarn run clean:pod",
"re:build": "rescript",
"re:check": "rescript build -warn-error +a-4-9",
"re:clean": "rescript clean",
"pod": "cd ios && pod install && cd ..",
"adb": "adb reverse tcp:8081 tcp:8081",
"clean:gradle": "cd android && ./gradlew clean && cd ..",
"clean:pod": "cd ios && pod deintegrate && cd ..",
"clean:gradle:cache": "rm -rf ~/.gradle",
"clean:pod:cache": "pod cache clean --all",
"deploy-to-s3": "node ./scripts/pushToS3.js",
"lint": "eslint .",
"test": "jest",
"android:e2e": "npx detox test --configuration android.emu.debug --loglevel trace --record-logs all",
"build:android-e2e": "npx detox build --configuration android.emu.debug",
"build:ios-e2e": "npx detox build --configuration ios.sim.debug",
"ios-e2e": "npx detox test --configuration ios.sim.debug --loglevel trace --record-logs all",
"prepare": "husky"
},
"dependencies": {
"@sentry/react-native": "^5.9.1",
"pako": "^2.1.0",
"react-native-hyperswitch-netcetera-3ds": "^0.1.3",
"react-native-hyperswitch-samsung-pay": "^0.1.3",
"react-native-hyperswitch-scancard": "^0.3.1",
"react-native-inappbrowser-reborn": "^3.7.0",
"react-native-klarna-inapp-sdk": "^2.1.13",
"react-native-svg": "^15.6.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/eslint-parser": "^7.24.5",
"@babel/plugin-proposal-decorators": "^7.20.13",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.20.5",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@react-native/babel-preset": "0.75.2",
"@react-native/eslint-config": "0.75.2",
"@react-native/metro-config": "0.75.2",
"@react-native/typescript-config": "0.75.2",
"@rescript/core": "^1.5.2",
"@rescript/react": "^0.12.1",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^11.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@sentry/nextjs": "^7.73.0",
"@svgr/webpack": "^6.5.1",
"@swc/core": "^1.7.23",
"@tsconfig/react-native": "^3.0.0",
"@types/jest": "^29.2.1",
"@types/pako": "^2",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"babel-loader": "^9.1.3",
"babel-plugin-react-native-web": "^0.18.12",
"bufferutil": "^4.0.8",
"concurrently": "^9.0.1",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"detox": "^20.28.0",
"dotenv": "^10.0.0",
"esbuild": "^0.23.1",
"eslint": "^8.19.0",
"eslint-config-next": "^13.5.5",
"express": "^4.18.2",
"html-webpack-plugin": "^5.6.0",
"husky": "^9.0.11",
"jest": "^29.6.3",
"next": "^14.2.25",
"patch-package": "^6.5.1",
"prettier": "2.8.8",
"react": "18.3.1",
"react-content-loader": "^6.2.1",
"react-dom": "18.3.1",
"react-native": "^0.75.2",
"react-native-bundle-visualizer": "^3.1.3",
"react-native-dotenv": "^3.4.11",
"react-native-web": "^0.19.12",
"react-test-renderer": "18.3.1",
"rescript": "11",
"rescript-react-native": "^0.73.1",
"semantic-release": "^22.0.7",
"supports-color": "^9.4.0",
"swc-loader": "^0.2.3",
"terser-webpack-plugin": "^5.3.9",
"ts-loader": "^9.5.1",
"typescript": "5.2.2",
"url-loader": "^4.1.1",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
},
"jest": {
"preset": "react-native"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog",
"types": {
"feat": {
"description": "A new feature",
"title": "Features"
},
"fix": {
"description": "A bug fix",
"title": "Bug Fixes"
},
"refactor": {
"description": "A code change that neither fixes a bug nor adds a feature",
"title": "Code Refactoring"
},
"chore": {
"description": "Other changes that don't modify src or test files",
"title": "Chores"
},
"docs": {
"description": "Documentation only changes",
"title": "Documentation"
},
"revert": {
"description": "Reverts a previous commit",
"title": "Reverts"
}
}
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"release": {
"branches": [
"main",
{
"name": "release-[0-9]+",
"prerelease": true
}
],
"repositoryUrl": "https://github.com/juspay/hyperswitch-client-core.git",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "refactor",
"release": false
},
{
"type": "docs",
"release": false
},
{
"type": "chore",
"release": false
},
{
"type": "fix",
"release": "patch"
},
{
"type": "revert",
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "BREAKING CHANGE",
"release": "major"
}
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/git"
]
},
"engines": {
"node": ">=18"
},
"packageManager": "yarn@4.4.1",
"resolutions": {
"@react-native-community/cli-platform-android": "patch:@react-native-community/cli-platform-android@npm%3A14.0.0#~/.yarn/patches/@react-native-community-cli-platform-android-npm-14.0.0-56241f53c3.patch",
"@react-native/assets-registry": "patch:@react-native/assets-registry@npm%3A0.75.2#~/.yarn/patches/@react-native-assets-registry-npm-0.75.2-553af80bf2.patch",
"@react-native/gradle-plugin": "patch:@react-native/gradle-plugin@npm%3A0.75.2#~/.yarn/patches/@react-native-gradle-plugin-npm-0.75.2-3de59c69c5.patch"
},
"workspaces": [
"detox-tests"
]
}