forked from OneKeyHQ/app-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
178 lines (178 loc) · 7.48 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
{
"name": "@onekeyhq/app-monorepo",
"private": true,
"workspaces": [
"packages/*"
],
"engines": {
"node": "^16.0.0"
},
"scripts": {
"postinstall": "yarn setup:env && husky install && patch-package && yarn build:networklist && yarn copy:inject ",
"copy:inject": "bash development/copy-injected.sh",
"clean": "./clean_workspace.sh && yarn cache clean",
"_tsc": "sh -c 'npx tsc --noEmit --tsBuildInfoFile \"$(yarn config get cacheFolder)\"/.app-mono-ts-cache'",
"_lint": "sh -c 'npx eslint . --ext .ts,.tsx --fix --cache --cache-location \"$(yarn config get cacheFolder)\"'",
"lint:project": "yarn _tsc && yarn _lint",
"lint": "ultra lint:project",
"reset-cache": "node development/resetCache.js",
"native": "yarn workspace @onekeyhq/app start",
"stats:ios": "node development/build-ios-stats.js",
"ios": "yarn copy:inject && yarn workspace @onekeyhq/app ios",
"m1:ios": "arch -x86_64 yarn ios",
"m1:ios:device": "arch -x86_64 yarn ios:device",
"arm:ios": "arch -arm64 yarn ios",
"arm:ios:device": "arch -arm64 yarn ios:device",
"ios:device": "yarn copy:inject && yarn workspace @onekeyhq/app ios:device",
"ios-install": "cd ./packages/app/ios && pod install && cd -",
"ios-xcode": "open ./packages/app/ios/OneKeyWallet.xcworkspace",
"android": "yarn copy:inject && yarn workspace @onekeyhq/app android",
"android:device": "yarn copy:inject && yarn workspace @onekeyhq/app android:device",
"web": "yarn copy:inject && yarn workspace @onekeyhq/web start",
"web-embed": "yarn copy:inject && yarn workspace @onekeyhq/web-embed start",
"build:web-embed": "yarn copy:inject && yarn workspace @onekeyhq/web-embed build",
"firefox": "yarn copy:inject && yarn workspace @onekeyhq/ext firefox",
"ext": "yarn copy:inject && cross-env GENERATE_SOURCEMAP=false ENABLE_ANALYZER=1 yarn workspace @onekeyhq/ext start",
"ext:sourcemap": "yarn copy:inject && cross-env GENERATE_SOURCEMAP=true ENABLE_ANALYZER=1 yarn workspace @onekeyhq/ext start",
"build:ext": "yarn copy:inject && yarn workspace @onekeyhq/ext build:all",
"build:networklist": "node development/build-networklist.js",
"desktop": "yarn copy:inject && cross-env ENABLE_ANALYZER=1 yarn workspace @onekeyhq/desktop dev",
"build:desktop": "yarn copy:inject && yarn workspace @onekeyhq/desktop build",
"build:icon": "yarn workspace @onekeyhq/components build:icons",
"fetch:locale": "yarn workspace @onekeyhq/components fetch:locale",
"test": "yarn test:unit && yarn test:snapshot",
"test:unit": "yarn jest ./test/unit/",
"test:snapshot": "yarn jest ./test/snapshot/",
"setup:env": "bash -c 'if [ ! -f .env ]; then cp .env.example .env; fi'",
"prepare": "husky install",
"stats:web": "yarn workspace @onekeyhq/web stats",
"web-bundle-analyzer": "ANALYSE_MODULE=1 yarn stats:web && yarn webpack-bundle-analyzer packages/web/web-build/stats.json",
"swap-lock-registry": "npx swap-lock-registry --yarn --parallel --url https://registry.yarnpkg.com yarn.lock"
},
"ultra": {
"concurrent": [
"lint:project"
]
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "1.1.13",
"@onekeyfe/cross-inpage-provider-errors": "1.1.13",
"@onekeyfe/cross-inpage-provider-injected": "1.1.13",
"@onekeyfe/cross-inpage-provider-types": "1.1.13",
"@onekeyfe/extension-bridge-hosted": "1.1.13",
"@onekeyfe/hd-ble-sdk": "0.2.12",
"@onekeyfe/hd-core": "0.2.12",
"@onekeyfe/hd-shared": "0.2.12",
"@onekeyfe/hd-transport": "0.2.12",
"@onekeyfe/hd-web-sdk": "0.2.12",
"@onekeyfe/inpage-providers-hub": "1.1.13",
"@onekeyfe/onekey-aptos-provider": "1.1.13",
"@onekeyfe/onekey-cross-webview": "1.1.13",
"@web3-react/core": "8.0.35-beta.0",
"@web3-react/empty": "8.0.20-beta.0",
"@web3-react/metamask": "8.0.28-beta.0",
"@web3-react/types": "8.0.20-beta.0",
"@web3-react/url": "8.0.25-beta.0",
"axios": "^0.26.0",
"expo-device": "^4.3.0",
"memoizee": "^0.4.15"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-react": "^7.18.6",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@types/chrome": "^0.0.161",
"@types/jest": "^29.2.3",
"@types/memoizee": "^0.4.8",
"@types/node": "^16.7.13",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@types/react-test-renderer": "17",
"@types/semver": "^7.3.6",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"babel-loader": "8.3.0",
"babel-plugin-inline-import": "^3.0.0",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
"copy-webpack-plugin": "^6.0.2",
"cross-env": "^7.0.3",
"css-loader": "^5.2.7",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"ejs-loader": "^0.5.0",
"eslint": "^8.25.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-wesbos": "^3.1.4",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eth-rpc-errors": "^4.0.3",
"expo": "^45.0.5",
"expo-yarn-workspaces": "^2.0.3",
"file-loader": "^6.2.0",
"fs-extra": "^10.0.0",
"globalthis": "^1.0.2",
"html-loader": "^1.3.2",
"html-webpack-plugin": "^4.5.0",
"http-server": "^14.0.0",
"husky": "^7.0.4",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"metro-minify-terser": "^0.72.3",
"node-notifier": "^10.0.0",
"patch-package": "^6.5.0",
"prettier": "^2.8.1",
"react-native": "0.68.3",
"react-refresh": "^0.14.0",
"react-test-renderer": "17.0.2",
"rimraf": "^3.0.2",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "^4.2.3",
"typescript": "4.8.4",
"ultra-runner": "^3.10.5",
"webpack": "4.46.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1"
},
"resolutions": {
"@babel/core": "^7.19.3",
"webpack-dev-server": "^4.3.1",
"browserslist": "^4",
"immer": "^9",
"node-fetch": "^2",
"metro-react-native-babel-preset": "0.70.0",
"tslib": "^2.4.0",
"got": "^11.8.5",
"shell-quote": "^1.7.3",
"react-native-svg": "12.3.0",
"react-native-qrcode-svg": "6.1.2",
"@solana/web3.js": "1.47.3",
"buffer": "^6.0.3",
"@types/react-native": "~0.68",
"@types/react": "^17",
"react-native-webview": "https://github.com/OneKeyHQ/react-native-webview.git#feat/refactor-webview",
"dmg-builder": "23.6.0",
"keccak": "^3",
"rimraf": "^3.0.2",
"postinstall-postinstall": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.2.1.tgz",
"minimatch": "patch:minimatch@npm%3A3.1.2#./.yarn/patches/minimatch-npm-3.1.2-9405269906.patch",
"babel-preset-expo": "^9.2.0",
"[email protected]": "^4",
"[email protected]": "^4",
"[email protected]": "^5",
"axios": "^0.27.2",
"webpack": "4.46.0",
"js-conflux-sdk": "^2.1.6",
"[email protected]": "patch:react-native-web@npm%3A0.18.10#./.yarn/patches/react-native-web-npm-0.18.10-f9d1f2dee1.patch",
"expo-device@^4.3.0": "patch:expo-device@npm%3A4.3.0#./.yarn/patches/expo-device-npm-4.3.0-6bf71e0966.patch"
},
"packageManager": "[email protected]"
}