-
-
Notifications
You must be signed in to change notification settings - Fork 569
/
package.json
163 lines (163 loc) · 5.82 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
{
"private": true,
"type": "module",
"scripts": {
"bench": "vitest bench",
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
"build:cjs": "pnpm build:trustedSetups:start && tsc --project ./tsconfig.build.json --module commonjs --outDir ./src/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./src/_cjs/package.json && pnpm build:trustedSetups:end",
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./src/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./src/_esm/package.json",
"build:trustedSetups:start": "mv src/node/trustedSetups.ts src/node/trustedSetups_esm.ts && mv src/node/trustedSetups_cjs.ts src/node/trustedSetups.ts",
"build:trustedSetups:end": "mv src/node/trustedSetups.ts src/node/trustedSetups_cjs.ts && mv src/node/trustedSetups_esm.ts src/node/trustedSetups.ts",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./src/_types --emitDeclarationOnly --declaration --declarationMap",
"changeset:prepublish": "pnpm version:update && bun scripts/prepublishOnly.ts && pnpm build",
"changeset:publish": "pnpm changeset:prepublish && changeset publish",
"changeset:version": "changeset version && pnpm install --lockfile-only && pnpm version:update",
"clean": "rimraf *.tsbuildinfo src/*.tsbuildinfo src/_esm src/_cjs src/_types",
"contracts:build": "forge build --config-path ./test/foundry.toml && bun ./scripts/generateTypedArtifacts.ts",
"docs:dev": "pnpm --filter site dev",
"docs:build": "pnpm --filter site build",
"docs:preview": "pnpm --filter site preview",
"lint": "biome check . --apply",
"postinstall": "git submodule update --init --recursive && pnpm contracts:build",
"prepare": "pnpm simple-git-hooks",
"prepublishOnly": "bun scripts/prepublishOnly.ts",
"size": "size-limit",
"test": "vitest -c ./test/vitest.config.ts dev",
"test:chains": "vitest test/chains.test.ts",
"test:ci": "CI=true vitest -c ./test/vitest.config.ts --coverage --retry=3 --bail=1",
"test:cov": "vitest dev -c ./test/vitest.config.ts --coverage",
"test:env": "pnpm test:env:bun && pnpm test:env:next && pnpm test:env:node && pnpm test:env:tsc && pnpm test:env:vite",
"test:env:bun": "pnpm --filter test-bun test",
"test:env:next": "pnpm --filter test-next test",
"test:env:node": "pnpm --filter test-node test",
"test:env:tsc": "pnpm --filter test-tsc test",
"test:env:vite": "pnpm --filter test-vite test",
"test:typecheck": "SKIP_GLOBAL_SETUP=true vitest --typecheck.only -c ./test/vitest.config.ts",
"test:ui": "vitest dev -c ./test/vitest.config.ts --ui",
"typebench": "tsx test/typebench.ts --benchPercentThreshold 10 --benchErrorOnThresholdExceeded",
"typecheck": "tsc --noEmit",
"vectors": "bun test vectors/**/*.test.ts",
"vectors:generate": "bun vectors/generate.ts",
"version:update": "bun scripts/updateVersion.ts"
},
"devDependencies": {
"@arktype/attest": "0.7.5",
"@biomejs/biome": "^1.7.3",
"@changesets/changelog-github": "^0.4.5",
"@changesets/cli": "^2.23.2",
"@ethereumjs/rlp": "^5.0.0",
"@size-limit/preset-big-lib": "^11.1.2",
"@types/bun": "^1.1.3",
"@types/fs-extra": "^9.0.13",
"@types/node": "^20.14.0",
"@vitest/coverage-v8": "^1.0.4",
"@vitest/ui": "^1.0.4",
"abitype": "1.0.0",
"bun": "^1.1.12",
"c-kzg": "^2.1.2",
"ethers": "^6.0.2",
"fs-extra": "^10.1.0",
"globby": "^13.2.2",
"prool": "^0.0.4",
"rimraf": "^4.4.1",
"simple-git-hooks": "^2.8.1",
"size-limit": "^11.1.2",
"tsx": "^4.11.0",
"typescript": "5.4.5",
"vite": "^5.0.7",
"vitest": "^1.0.4"
},
"trustedDependencies": ["c-kzg"],
"packageManager": "[email protected]",
"engines": {
"node": "22.x"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint"
},
"size-limit": [
{
"name": "viem (esm)",
"path": "./src/_esm/index.js",
"limit": "59.1 kB",
"import": "*"
},
{
"name": "viem (cjs)",
"path": "./src/_cjs/index.js",
"limit": "78 kB"
},
{
"name": "viem (minimal surface - tree-shaking)",
"path": "./src/_esm/index.js",
"limit": "4.1 kB",
"import": "{ createClient, http }"
},
{
"name": "viem/accounts",
"path": "./src/_esm/accounts/index.js",
"limit": "92 kB",
"import": "*"
},
{
"name": "viem/accounts (tree-shaking)",
"path": "./src/_esm/accounts/index.js",
"limit": "20 kB",
"import": "{ privateKeyToAccount }"
},
{
"name": "viem/actions",
"path": "./src/_esm/ens/index.js",
"limit": "45 kB",
"import": "*"
},
{
"name": "viem/actions (tree-shaking)",
"path": "./src/_esm/actions/index.js",
"limit": "1 kB",
"import": "{ getBlockNumber }"
},
{
"name": "viem/chains",
"path": "./src/_esm/chains/index.js",
"limit": "30 kB",
"import": "*"
},
{
"name": "viem/chains (tree-shaking)",
"path": "./src/_esm/chains/index.js",
"limit": "500 B",
"import": "{ mainnet }"
},
{
"name": "viem/chains/utils",
"path": "./src/_esm/chains/utils.js",
"limit": "8 kB",
"import": "*"
},
{
"name": "viem/ens",
"path": "./src/_esm/ens/index.js",
"limit": "45 kB",
"import": "*"
},
{
"name": "viem/ens (tree-shaking)",
"path": "./src/_esm/ens/index.js",
"limit": "19 kB",
"import": "{ getEnsAvatar }"
},
{
"name": "viem/siwe",
"path": "./src/_esm/siwe/index.js",
"limit": "28 kB",
"import": "*"
},
{
"name": "viem/siwe (tree-shaking)",
"path": "./src/_esm/siwe/index.js",
"limit": "27 kB",
"import": "{ verifySiweMessage }"
}
]
}