-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.json
More file actions
218 lines (218 loc) · 14.3 KB
/
Copy pathpackage.json
File metadata and controls
218 lines (218 loc) · 14.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
{
"name": "vultisig-sdk",
"type": "module",
"packageManager": "yarn@4.16.0",
"workspaces": [
"clients/cli",
"clients/mcp",
"examples/*",
"packages/sdk",
"packages/core/chain",
"packages/core/config",
"packages/core/mpc",
"packages/lib/dkls",
"packages/lib/mldsa",
"packages/lib/schnorr",
"packages/lib/utils",
"packages/rujira",
"packages/client-shared",
"packages/mpc-types",
"packages/mpc-wasm",
"packages/mpc-native",
"packages/walletcore-native"
],
"scripts": {
"format": "prettier --config .config/.prettierrc --ignore-path .config/.prettierignore --write 'packages/sdk/**/*.{ts,tsx,js,jsx}' 'packages/rujira/**/*.{ts,tsx,js,jsx}' 'packages/client-shared/**/*.{ts,tsx,js,jsx}' 'packages/core/**/*.{ts,tsx,js,jsx}' 'packages/lib/utils/**/*.{ts,tsx,js,jsx}' 'packages/mpc-native/**/*.{ts,tsx,js,jsx}' 'packages/walletcore-native/**/*.{ts,tsx,js,jsx}' 'clients/**/*.{ts,tsx,js,jsx}' 'examples/**/*.{ts,tsx,js,jsx}'",
"format:check": "prettier --config .config/.prettierrc --ignore-path .config/.prettierignore --check 'packages/sdk/**/*.{ts,tsx,js,jsx}' 'packages/rujira/**/*.{ts,tsx,js,jsx}' 'packages/client-shared/**/*.{ts,tsx,js,jsx}' 'packages/core/**/*.{ts,tsx,js,jsx}' 'packages/lib/utils/**/*.{ts,tsx,js,jsx}' 'packages/mpc-native/**/*.{ts,tsx,js,jsx}' 'packages/walletcore-native/**/*.{ts,tsx,js,jsx}' 'clients/**/*.{ts,tsx,js,jsx}' 'examples/**/*.{ts,tsx,js,jsx}'",
"lint": "node scripts/run-eslint.mjs --config .config/eslint.config.mjs 'packages/sdk/**/*.{js,jsx,ts,tsx}' 'packages/rujira/**/*.{js,jsx,ts,tsx}' 'packages/client-shared/**/*.{js,jsx,ts,tsx}' 'packages/mpc-types/src/**/*.ts' 'packages/core/**/*.ts' 'packages/lib/utils/**/*.{js,jsx,ts,tsx}' 'packages/mpc-native/**/*.{js,jsx,ts,tsx}' 'packages/walletcore-native/**/*.{js,jsx,ts,tsx}' 'clients/**/*.{js,jsx,ts,tsx}' 'examples/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "node scripts/run-eslint.mjs --config .config/eslint.config.mjs 'packages/sdk/**/*.{js,jsx,ts,tsx}' 'packages/rujira/**/*.{js,jsx,ts,tsx}' 'packages/client-shared/**/*.{js,jsx,ts,tsx}' 'packages/mpc-types/src/**/*.ts' 'packages/core/**/*.ts' 'packages/lib/utils/**/*.{js,jsx,ts,tsx}' 'packages/mpc-native/**/*.{js,jsx,ts,tsx}' 'packages/walletcore-native/**/*.{js,jsx,ts,tsx}' 'clients/**/*.{js,jsx,ts,tsx}' 'examples/**/*.{js,jsx,ts,tsx}' --fix",
"build:all": "yarn build:shared && yarn build:sdk:bundle && yarn build:client-shared && yarn build:rujira",
"build:sdk": "yarn build:shared && yarn build:sdk:bundle",
"build:sdk:bundle": "yarn workspace @vultisig/sdk build",
"build:client-shared": "yarn workspace @vultisig/client-shared build",
"build:rujira": "yarn workspace @vultisig/rujira build",
"build:shared": "node scripts/build-shared-packages.mjs",
"check:shared-exports": "node scripts/build-shared-packages.mjs --check",
"pack:shared": "node scripts/pack-shared-packages.mjs",
"sync-packages": "syncpack fix-mismatches",
"typecheck": "node scripts/check-agent-toolchain.mjs --typescript-only && tsc --project .config/tsconfig.json --noEmit && yarn workspace @vultisig/client-shared typecheck && yarn workspace @vultisig/cli typecheck && yarn workspace @vultisig/mcp typecheck && yarn workspace @vultisig/sdk typecheck && yarn workspace @vultisig/rujira typecheck && yarn workspace @vultisig/example-browser typecheck && yarn workspace @vultisig/example-electron typecheck",
"typecheck:example-browser": "node scripts/check-agent-toolchain.mjs --typescript-only && yarn workspace @vultisig/examples-shared typecheck && yarn workspace @vultisig/example-browser typecheck",
"test": "yarn test:scripts && yarn workspace @vultisig/sdk test && yarn test:rujira && yarn test:core && yarn workspace @vultisig/cli test && yarn workspace @vultisig/mcp test",
"test:coverage": "yarn workspace @vultisig/sdk test:coverage",
"test:scripts": "node --test scripts/**/*.test.mjs",
"test:all": "yarn test:unit; yarn test:integration; yarn test:e2e",
"test:unit": "yarn workspace @vultisig/sdk test:unit",
"test:integration": "yarn workspace @vultisig/sdk test:integration",
"test:e2e": "yarn workspace @vultisig/sdk test:e2e",
"test:e2e:funded": "yarn workspace @vultisig/sdk test:e2e:funded",
"test:e2e:balance": "yarn workspace @vultisig/sdk test:e2e:balance",
"test:e2e:gas": "yarn workspace @vultisig/sdk test:e2e:gas",
"test:e2e:multi-chain": "yarn workspace @vultisig/sdk test:e2e:multi-chain",
"test:e2e:prepare-send": "yarn workspace @vultisig/sdk test:e2e:prepare-send",
"test:e2e:fast-signing": "yarn workspace @vultisig/sdk test:e2e:fast-signing",
"test:e2e:fiat-value": "yarn workspace @vultisig/sdk test:e2e:fiat-value",
"test:e2e:sign-bytes": "yarn workspace @vultisig/sdk test:e2e:sign-bytes",
"test:e2e:swap-quotes": "yarn workspace @vultisig/sdk test:e2e:swap-quotes",
"test:e2e:swap-transactions": "yarn workspace @vultisig/sdk test:e2e:swap-transactions",
"test:e2e:secure-signing": "yarn workspace @vultisig/sdk test:e2e:secure-signing",
"test:core": "vitest run --config .config/vitest.core.config.ts",
"test:cli": "vitest run --config .config/vitest.cli.config.ts",
"test:rujira": "yarn workspace @vultisig/rujira test",
"test:watch": "yarn workspace @vultisig/sdk test:watch",
"test:unit:watch": "yarn workspace @vultisig/sdk test:unit:watch",
"test:integration:watch": "yarn workspace @vultisig/sdk test:integration:watch",
"test:e2e:watch": "yarn workspace @vultisig/sdk test:e2e:watch",
"test:changed": "yarn workspace @vultisig/sdk test:changed",
"knip": "knip --config .config/knip.jsonc",
"knip:fix": "knip --config .config/knip.jsonc --fix --allow-remove-files",
"quality:architecture": "depcruise --config .config/dependency-cruiser.cjs --output-type err .",
"quality:audit": "yarn npm audit --recursive --all --severity high",
"quality:complexity": "node scripts/run-eslint.mjs --config .config/eslint-health.config.mjs 'packages/sdk/**/*.{js,jsx,ts,tsx}' 'packages/rujira/**/*.{js,jsx,ts,tsx}' 'packages/client-shared/**/*.{js,jsx,ts,tsx}' 'packages/mpc-types/src/**/*.ts' 'packages/core/**/*.ts' 'packages/lib/utils/**/*.{js,jsx,ts,tsx}' 'packages/mpc-native/**/*.{js,jsx,ts,tsx}' 'packages/walletcore-native/**/*.{js,jsx,ts,tsx}' 'clients/**/*.{js,jsx,ts,tsx}' 'examples/**/*.{js,jsx,ts,tsx}'",
"quality:docs": "yarn quality:docs:markdown && yarn quality:docs:links",
"quality:docs:links": "git ls-files '*.md' ':!:docs/api/**' ':!:tasks/**' ':!:packages/**/CHANGELOG.md' ':!:clients/**/CHANGELOG.md' | xargs -n 1 markdown-link-check -q -c .config/markdown-link-check.json",
"quality:docs:markdown": "markdownlint-cli2 --config .config/markdownlint-cli2.jsonc",
"quality:duplication": "jscpd --config .config/jscpd.json packages clients examples scripts",
"quality:health": "yarn quality:architecture && yarn quality:duplication && yarn quality:complexity && yarn quality:secrets && yarn quality:audit && yarn quality:docs",
"quality:secrets": "secretlint --secretlintrc .config/secretlintrc.json --secretlintignore .config/secretlintignore \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml,cjs,mjs,sh}\"",
"check": "concurrently --kill-others-on-fail -n shared-exports,typecheck,lint,knip,format \"yarn check:shared-exports\" \"yarn typecheck\" \"yarn lint\" \"yarn knip\" \"yarn format:check\"",
"check:agent": "node scripts/check-agent-toolchain.mjs && yarn check:shared-exports && yarn lint && yarn typecheck && yarn knip && yarn format:check",
"check:ci": "yarn check:shared-exports && yarn build:all && yarn cli:build && yarn cli:smoke && yarn mcp:build && yarn mcp:smoke && yarn changeset:check-sdk-bundle && yarn quality:contracts && yarn lint && yarn typecheck && yarn knip && yarn format:check && yarn quality:architecture && yarn quality:duplication && yarn quality:complexity && yarn quality:secrets && yarn quality:audit && yarn quality:docs:markdown",
"check:all": "yarn check:ci && yarn test",
"prepare": "husky",
"cli": "yarn workspace @vultisig/cli dev",
"cli:build": "yarn workspace @vultisig/cli build",
"cli:smoke": "node clients/cli/dist/index.js --help > /dev/null",
"quality:contracts": "node scripts/quality-contracts.mjs",
"cli:interactive": "yarn workspace @vultisig/cli repl",
"mcp:build": "yarn workspace @vultisig/mcp build",
"mcp:smoke": "node scripts/smoke-mcp.mjs",
"proto:regen:core-mpc": "node scripts/regenerate-core-mpc-protos.mjs",
"changeset:check-sdk-bundle": "node scripts/check-sdk-bundled-changeset.mjs",
"docs": "typedoc --options .config/typedoc.json",
"docs:watch": "typedoc --options .config/typedoc.json --watch",
"changeset": "changeset",
"changeset:version": "changeset version && yarn install --mode=update-lockfile",
"changeset:publish": "yarn workspace @vultisig/mpc-types npm publish --tolerate-republish && yarn workspace @vultisig/mpc-wasm npm publish --tolerate-republish && yarn workspace @vultisig/mpc-native npm publish --tolerate-republish && yarn workspace @vultisig/core-config npm publish --tolerate-republish && yarn workspace @vultisig/lib-utils npm publish --tolerate-republish && yarn workspace @vultisig/lib-dkls npm publish --tolerate-republish && yarn workspace @vultisig/lib-mldsa npm publish --tolerate-republish && yarn workspace @vultisig/lib-schnorr npm publish --tolerate-republish && yarn workspace @vultisig/core-mpc npm publish --tolerate-republish && yarn workspace @vultisig/core-chain npm publish --tolerate-republish && yarn workspace @vultisig/sdk npm publish --tolerate-republish && yarn workspace @vultisig/client-shared npm publish --tolerate-republish && yarn workspace @vultisig/rujira npm publish --tolerate-republish && yarn workspace @vultisig/cli npm publish --tolerate-republish && yarn workspace @vultisig/mcp npm publish --tolerate-republish && yarn workspace @vultisig/walletcore-native npm publish --tolerate-republish",
"release": "yarn build:shared && yarn build:all && yarn cli:build && yarn mcp:build && yarn changeset:publish",
"update": "yarn set version latest && yarn dlx npm-check-updates@latest -u --workspaces --root && yarn install"
},
"lint-staged": {
"packages/sdk/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/rujira/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/client-shared/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/core/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --ignore-path .config/.prettierignore --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/lib/utils/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --ignore-path .config/.prettierignore --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/mpc-native/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/walletcore-native/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"clients/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"examples/**/*.{js,jsx,ts,tsx}": [
"prettier --config .config/.prettierrc --write",
"eslint --config .config/eslint.config.mjs --fix"
],
"packages/sdk/tests/!(e2e)/**/*.test.ts": [
"yarn workspace @vultisig/sdk test:changed"
]
},
"devDependencies": {
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@google-cloud/translate": "^9.4.2",
"@react-native-async-storage/async-storage": "^3.1.1",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@rollup/plugin-typescript": "^12.3.0",
"@secretlint/secretlint-rule-preset-recommend": "^13.0.2",
"@types/node": "^26.0.0",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@types/uuid": "^11.0.0",
"@typescript-eslint/eslint-plugin": "^8.61.1",
"@typescript-eslint/parser": "^8.61.0",
"@vitejs/plugin-react": "^6.0.2",
"concurrently": "^10.0.3",
"dependency-cruiser": "^17.4.3",
"eslint": "^10.5.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-simple-import-sort": "^13.0.0",
"eslint-plugin-sonarjs": "^4.0.3",
"eslint-plugin-storybook": "^10.4.3",
"eslint-plugin-unused-imports": "^4.4.1",
"globals": "^17.6.0",
"husky": "^9.1.7",
"jscpd": "^5.0.11",
"knip": "^6.16.1",
"lint-staged": "^17.0.7",
"markdown-link-check": "^3.14.2",
"markdownlint-cli2": "^0.22.1",
"prettier": "^3.8.4",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.4.1",
"secretlint": "^13.0.2",
"syncpack": "^15.3.2",
"tsx": "^4.22.4",
"typedoc": "^0.28.19",
"typescript": "^6.0.3",
"vite": "^8.0.16",
"vitest": "^4.1.8"
},
"resolutions": {
"readable-stream": "3.6.2",
"@grpc/grpc-js": "1.14.4",
"@cosmjs/encoding/@scure/base": "1.2.6",
"esbuild@npm:~0.28.0": "0.28.1",
"shell-quote": "1.8.4",
"tmp@npm:^0.0.33": "0.2.7",
"tmp@npm:^0.2.0": "0.2.7",
"esbuild": "^0.28.1",
"protobufjs@npm:^7.5.3": "^7.6.1",
"protobufjs@npm:^7.4.0": "^7.6.1",
"protobufjs@npm:>=6.11.3": "^8.4.1",
"vite@npm:^6.0.0 || ^7.0.0 || ^8.0.0": "^8.0.16",
"ws@npm:^7": "^7.5.11",
"ws@npm:^7.5.10": "^7.5.11",
"ws@npm:^8.0.0": "^8.21.0",
"ws@npm:^8.5.0": "^8.21.0",
"ws@npm:^8.8.1": "^8.21.0",
"ws@npm:^8.12.1": "^8.21.0",
"ws@npm:^8.18.0": "^8.21.0",
"ws@npm:^8.20.0": "^8.21.0",
"ws@npm:8.17.1": "8.21.0",
"ws@npm:8.20.1": "8.21.0",
"form-data@npm:^4.0.5": "^4.0.6",
"hono@npm:^4.11.4": "4.12.25",
"undici": "^7.28.0",
"linkify-it": "5.0.1"
}
}