forked from trezor/trezor-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
233 lines (233 loc) · 10.3 KB
/
Copy pathpackage.json
File metadata and controls
233 lines (233 loc) · 10.3 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
"name": "trezor-suite",
"version": "1.0.0",
"private": true,
"repository": "https://github.com/trezor/trezor-suite.git",
"license": "SEE LICENSE IN LICENSE.md",
"engines": {
"node": "24",
"yarn": ">=4"
},
"workspaces": {
"packages": [
"networks/*/*",
"packages/*",
"packages/connect-examples/*",
"suite-native/*",
"suite-common/*",
"suite/*",
"scripts"
]
},
"scripts": {
"_______ Hooks _______": "Yarn hooks.",
"postinstall": "husky",
"_______ Library Scripts #####": "Some libraries have their own build scripts.",
"build:libs": "yarn nx run-many --skip-nx-cache --target=build:lib",
"build:essential": "yarn message-system-sign-config & yarn workspace @trezor/suite-data build:lib & yarn workspace @trezor/transport-bridge build:lib",
"suite:build:web": "yarn workspace @trezor/suite-web build",
"suite:build:web:preview": "yarn workspace @trezor/suite-web build:preview",
"_______ Start Scripts _______": "Here are standalone scripts for running individual applications for development.",
"suite:dev": "yarn workspace @trezor/suite-web dev",
"suite:dev:vite": "yarn workspace @trezor/suite-web dev:vite",
"suite:dev:desktop": "yarn workspace @trezor/suite-desktop dev",
"analytics:docs-dev": "node scripts/analytics-docs-dev.mjs",
"native:start": "yarn workspace @suite-native/app start",
"connect:explorer": "yarn workspace @trezor/connect-explorer dev",
"connect:cli": "yarn workspace @trezor/connect-cli cli",
"_______ Code validation _______": "Static code analysis (incl. autofixes), like formatting, testing, linting, type checking...",
"type-check": "yarn nx affected --target=type-check",
"type-check:all": "yarn nx run-many --target=type-check",
"test:unit": "yarn nx affected --target=test:unit",
"test:unit:suite": "yarn nx affected --target=test:unit --exclude='@suite-native/*'",
"test:unit:native": "yarn nx affected --target=test:unit --exclude='@trezor/*,@suite/*,@suite-common/*,@suite-native/module-trading,@suite-native/trading-*'",
"test:unit:native:trading": "yarn nx affected --target=test:unit --exclude='*,!@suite-native/module-trading,!@suite-native/trading-*'",
"test:unit:all": "yarn nx run-many --target=test:unit",
"test:stylelint-rules": "node --test stylelint-local-rules/*.test.mjs",
"lint:js": "yarn nx affected --target=lint:js",
"lint:js:fix": "yarn lint:js --fix",
"lint:js:all": "yarn nx run-many --target=lint:js --exclude=trezor-suite,@trezor/scripts",
"lint:styles": "yarn test:stylelint-rules && yarn nx affected --target=lint:styles",
"lint:styles:all": "yarn test:stylelint-rules && yarn nx run-many --target=lint:styles",
"lint": "yarn lint:styles && yarn lint:js",
"lint:shellcheck": "./scripts/shellcheck.sh",
"format": "yarn nx format:write",
"format:all": "yarn prettier --write \"**/*.{js,ts,tsx,mdx,md,html,json,yml,yaml}\"",
"format:verify": "yarn nx format:check",
"depcheck": "depcheck && yarn nx affected --target=depcheck",
"requirements:verify": "yarn workspace @trezor/requirements requirements:verify",
"requirements:fix": "yarn workspace @trezor/requirements requirements:fix",
"verify-project-references": "yarn update-project-references --test",
"check-workspace-resolutions": "yarn tsx ./scripts/check-workspace-resolutions.ts",
"build:libs:verify": "yarn nx affected --target=build:lib",
"validate": "yarn verify-project-references && yarn lint:js:fix && yarn lint:styles && yarn build:libs:verify && yarn type-check && yarn check-workspace-resolutions && yarn depcheck",
"_______ Global Scripts _______": "Generic script definitions to be run in individual workspaces.",
"g:eslint": "cd $INIT_CWD && eslint --cache --cache-strategy content --flag v10_config_lookup_from_file --max-warnings 0",
"g:jest": "cd $INIT_CWD && jest",
"g:jest:native": "cd $INIT_CWD && jest --runInBand",
"g:prettier": "cd $INIT_CWD && prettier",
"g:rimraf": "cd $INIT_CWD && rimraf",
"g:tsc": "cd $INIT_CWD && tsc",
"g:tsx": "cd $INIT_CWD && tsx",
"g:depcheck": "cd $INIT_CWD && depcheck",
"_______ Commands _______": "Useful commands and scripts.",
"nx:show-affected": "yarn nx show projects --affected",
"convert-figma-palette": "yarn tsx ./scripts/convertFigmaPalette.ts",
"update-project-references": "yarn tsx ./scripts/updateProjectReferences.ts",
"generate-icons": "yarn workspace @suite-common/icons generate-icons && yarn workspace @trezor/icons generate-icons",
"generate-package": "yarn workspace @trezor/scripts generate-package",
"reserve-npm-package": "node ./scripts/ci/npm-reserve-package.js",
"deps": "rimraf **/node_modules && yarn",
"list-outdated": "./scripts/list-outdated-dependencies/list-outdated-dependencies.sh",
"message-system-sign-config": "yarn workspace @suite-common/message-system sign-config",
"update-submodules": "./scripts/update-submodules.sh",
"update-models": "./scripts/update-models.sh",
"update-protobuf": "./scripts/update-protobuf.sh",
"update-coinjoin-middleware": "yarn workspace @trezor/suite-data update-coinjoin-middleware",
"prepare-desktop-release": "./scripts/prepare-desktop-release.sh",
"prepare-mobile-release": "./scripts/prepare-mobile-release.sh",
"native:android": "yarn workspace @suite-native/app android",
"native:ios": "yarn workspace @suite-native/app ios",
"native:prebuild": "yarn workspace @suite-native/app prebuild",
"native:prebuild:clean": "yarn workspace @suite-native/app prebuild:clean",
"native:reverse-ports": "yarn workspace @suite-native/app reverse-ports",
"ws": "./scripts/workspace-run.sh",
"_______ Aliases _______": "Aliases for longer commands which we often have to run manually. Names don't have to be pretty or make total sense.",
"refs": "yarn update-project-references",
"types": "yarn type-check",
"messages": "yarn message-system-sign-config",
"a": "yarn native:android",
"ios": "yarn native:ios",
"p": "yarn native:prebuild",
"ports": "yarn native:reverse-ports",
"s": "yarn native:start"
},
"resolutions": {
"typescript": "6.0.3",
"@types/jest": "30.0.0",
"prettier": "^3.9.6",
"react-native": "0.85.3",
"type-fest": "5.5.0",
"bcrypto": "5.4.0",
"electron": "43.2.0",
"react": "19.2.3",
"@types/node": "22.13.10",
"bn.js": "5.2.3",
"### Force buffer >=6 so the browser polyfill has writeBig(U)Int64LE etc. (5.x lacks them, see suite-build)": "1.0.0",
"buffer": "^6.0.3",
"node-addon-api": "8.5.0",
"node-gyp": "12.2.0",
"reselect": "5.2.0",
"### We need promise to be same version in mobile unless it produces undefined behavior, check PR #15815": "1.0.0",
"promise": "8.3.0",
"elliptic": "6.6.1",
"@headlessui/react": "^2.2.10",
"### Align versions of sentry internal packages, because electron & native use different versions of @core": "1.0.0",
"@sentry/core": "10.69.0",
"@sentry/browser": "10.69.0",
"expo-build-properties": "~56.0.15",
"@types/react": "19.2.14",
"react-dom": "19.2.3",
"expo-modules-core": "patch:expo-modules-core@npm%3A56.0.13#~/.yarn/patches/expo-modules-core-npm-56.0.13-6a0e36c09c.patch",
"react-test-renderer": "19.2.3"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@babel/cli": "7.29.7",
"@babel/core": "7.29.7",
"@babel/node": "^7.29.7",
"@babel/plugin-proposal-decorators": "^7.29.7",
"@babel/plugin-transform-runtime": "7.29.7",
"@babel/preset-env": "7.29.7",
"@babel/preset-react": "^7.29.7",
"@babel/preset-typescript": "^7.29.7",
"@babel/runtime": "7.29.7",
"@react-native/jest-preset": "0.85.3",
"@swc/core": "^1.15.43",
"@swc/jest": "^0.2.39",
"@trezor/eslint": "workspace:*",
"@types/jest": "30.0.0",
"@types/node": "22.13.10",
"babel-jest": "30.0.0",
"depcheck": "^1.4.7",
"eslint": "^9.39.4",
"husky": "^9.1.7",
"jest": "29.7.0",
"jest-environment-node": "^29.7.0",
"jest-expo": "~56.0.4",
"node-gyp": "12.2.0",
"nx": "23.1.0",
"postcss-styled-syntax": "^0.7.1",
"postcss-value-parser": "^4.2.0",
"prettier": "^3.9.6",
"rimraf": "^6.1.2",
"stylelint": "^17.1.1",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"tsx": "^4.21.0",
"typescript": "6.0.3",
"typescript-eslint": "^8.65.0",
"uint8array-tools": "^0.0.8",
"version-bump-prompt": "^6.1.0"
},
"dependenciesMeta": {
"@anthropic-ai/claude-code": {
"built": true
},
"@bufbuild/buf": {
"built": true
},
"@parcel/watcher": {
"built": true
},
"@playwright/browser-chromium": {
"built": true
},
"@playwright/browser-firefox": {
"built": true
},
"@playwright/browser-webkit": {
"built": true
},
"@shopify/react-native-skia": {
"built": true
},
"@swc/core": {
"built": true
},
"bcrypto": {
"built": true
},
"better-sqlite3": {
"built": true
},
"detox": {
"built": true
},
"esbuild": {
"built": true
},
"msgpackr-extract": {
"built": true
},
"nx": {
"built": true
},
"sharp": {
"built": true
},
"trezor-suite": {
"built": true
},
"ttf2woff2": {
"built": true
},
"unrs-resolver": {
"built": true
},
"usb": {
"built": true
}
},
"packageManager": "yarn@4.14.1"
}