-
-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathpackage.json
More file actions
177 lines (177 loc) · 8.43 KB
/
package.json
File metadata and controls
177 lines (177 loc) · 8.43 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
{
"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": [
"packages/*",
"packages/connect-examples/*",
"suite-native/*",
"suite-common/*",
"suite/*",
"scripts"
]
},
"scripts": {
"_______ Hooks _______": "Yarn hooks.",
"postinstall": "yarn run patch-package && 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",
"_______ 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' --parallel=2",
"test:unit:all": "yarn nx run-many --target=test:unit",
"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 nx affected --target=lint:styles",
"lint:styles:all": "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: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",
"generate-package": "yarn workspace @trezor/scripts generate-package",
"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-coins": "./scripts/update-coins.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": "5.8.3",
"prettier": "3.8.1",
"react-native": "0.83.2",
"type-fest": "5.5.0",
"bcrypto": "5.4.0",
"react": "19.2.4",
"electron": "41.0.4",
"@types/node": "22.13.10",
"bn.js": "5.2.3",
"node-addon-api": "8.5.0",
"node-gyp": "12.2.0",
"reselect": "5.1.1",
"### 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.0",
"### Align versions of sentry internal packages, because electron & native use different versions of @core": "1.0.0",
"@sentry/core": "10.42.0",
"@sentry/browser": "10.42.0",
"expo-build-properties": "~55.0.9",
"@types/react": "19.2.14",
"expo-modules-core": "~55.0.13",
"react-dom": "19.2.4",
"react-test-renderer": "19.2.4"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@babel/cli": "7.28.6",
"@babel/core": "7.29.0",
"@babel/node": "^7.29.0",
"@babel/plugin-proposal-decorators": "^7.29.0",
"@babel/plugin-transform-runtime": "7.29.0",
"@babel/preset-env": "7.29.2",
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@babel/runtime": "7.29.2",
"@trezor/eslint": "workspace:*",
"@types/jest": "29.5.12",
"@types/node": "22.13.10",
"@types/node-fetch": "^2.6.12",
"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": "~55.0.9",
"node-gyp": "12.2.0",
"nx": "^22.6.1",
"patch-package": "8.0.1",
"prettier": "^3.8.1",
"rimraf": "^6.1.2",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"tsx": "^4.21.0",
"typescript": "5.8.3",
"typescript-eslint": "^8.57.2",
"version-bump-prompt": "^6.1.0"
},
"dependenciesMeta": {
"@shopify/react-native-skia": {
"built": true
},
"better-sqlite3": {
"built": true
},
"core-js-pure": {
"built": false
},
"electron": {
"built": true
},
"trezor-suite": {
"built": true
}
},
"packageManager": "[email protected]"
}