-
Notifications
You must be signed in to change notification settings - Fork 62
/
package.json
165 lines (165 loc) · 4.98 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
{
"name": "orca-payment-page",
"version": "0.106.16",
"main": "index.js",
"private": true,
"dependencies": {
"@glennsl/rescript-fetch": "^0.2.0",
"@rescript/core": "^0.7.0",
"@rescript/react": "^0.12.1",
"@sentry/react": "^7.119.0",
"@sentry/webpack-plugin": "^2.22.5",
"react": "^18.2.0",
"react-datepicker": "^6.9.0",
"react-dom": "^18.2.0",
"recoil": "^0.1.2",
"webpack-merge": "^5.9.0"
},
"scripts": {
"build": "webpack --config webpack.common.js",
"build:v2": "cross-env SDK_VERSION=v2 webpack --config webpack.common.js",
"build:integ": "cross-env sdkEnv=integ webpack --config webpack.common.js",
"build:playground": "npm run setup:playground && webpack --config webpack.common.js",
"build:sandbox": "cross-env sdkEnv=sandbox webpack --config webpack.common.js",
"build:prod": "cross-env sdkEnv=prod webpack --config webpack.common.js",
"build:integ:v2": "cross-env sdkEnv=integ SDK_VERSION=v2 webpack --config webpack.common.js",
"build:sandbox:v2": "cross-env sdkEnv=sandbox SDK_VERSION=v2 webpack --config webpack.common.js",
"build:prod:v2": "cross-env sdkEnv=prod SDK_VERSION=v2 webpack --config webpack.common.js",
"deploy-to-s3": "node ./scripts/pushToS3.js",
"postinstall": "cd Hyperswitch-React-Demo-App && npm i",
"prepare": "husky install",
"re:build": "rescript",
"re:clean": "rescript clean",
"re:format": "rescript format -all",
"re:start": "rescript -w",
"setup:playground": "npm run postinstall && cd Hyperswitch-React-Demo-App && node promptScript.js",
"start": "cross-env sdkEnv=local webpack serve --config webpack.dev.js",
"start:playground": "npm run setup:playground && npm run start",
"test": "cd cypress-tests && npm run cypress:run",
"test:hooks": "npx eslint src/"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-react": "^7.24.7",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.1",
"autoprefixer": "^10.4.8",
"babel-loader": "^9.1.3",
"babel-plugin-add-react-displayname": "^0.0.5",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.6.0",
"husky": "^8.0.3",
"mini-css-extract-plugin": "^1.3.1",
"postcss": "^8.4.16",
"postcss-loader": "^7.0.1",
"rescript": "^11.1.0",
"semantic-release": "^24.0.0",
"tailwindcss": "^3.1.8",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.94.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
},
"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-web.git",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "refactor",
"release": "patch"
},
{
"type": "chore",
"release": "patch"
},
{
"type": "revert",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/git"
]
}
}