forked from wevm/viem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
70 lines (70 loc) · 3.43 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
{
"workspaces": ["examples/*", "environments/*", "site", "src", "test"],
"private": true,
"type": "module",
"scripts": {
"bench": "vitest bench",
"bench:ci": "CI=true vitest bench",
"build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./src/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./src/_cjs/package.json",
"build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./src/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./src/_esm/package.json",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./src/_types --emitDeclarationOnly --declaration --declarationMap",
"chaincheck": "bun test test/chains/check.test.ts",
"changeset": "changeset",
"changeset:publish": "bun scripts/updateVersion.ts && bun run prepublishOnly && bun run build && changeset publish",
"changeset:version": "changeset version && bun install --lockfile-only && bun scripts/updateVersion.ts",
"clean": "rimraf src/_esm src/_cjs src/_types",
"contracts:build": "forge build --config-path ./test/foundry.toml && bun ./scripts/generateTypedArtifacts.ts",
"docs:dev": "cd site && bun run dev",
"docs:build": "cd site && bun run build",
"docs:preview": "cd site && bun run preview",
"format": "biome format . --write",
"lint": "biome check .",
"lint:fix": "bun run lint --apply",
"postinstall": "bun run contracts:build",
"prepare": "bun x simple-git-hooks",
"prepublishOnly": "bun scripts/prepublishOnly.ts",
"size": "size-limit",
"test": "vitest -c ./test/vitest.config.ts dev",
"test:cov": "vitest dev -c ./test/vitest.config.ts --coverage",
"test:ci": "CI=true vitest -c ./test/vitest.config.ts --coverage --retry=3 --bail=1 --pool=forks",
"test:env": "bun run test:env:bun && bun run test:env:next && bun run test:env:node && bun run test:env:vite && bun run test:env:sveltekit",
"test:env:bun": "cd environments/bun && bun run test",
"test:env:next": "cd environments/next && bun run test",
"test:env:node": "cd environments/node && bun run test",
"test:env:sveltekit": "cd environments/sveltekit && bun run test",
"test:env:tsc": "cd environments/tsc && bun run test",
"test:env:vite": "cd environments/vite && bun run 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",
"vectors": "bun test vectors/**/*.test.ts",
"vectors:generate": "bun vectors/generate.ts",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@biomejs/biome": "^1.4.0",
"@changesets/changelog-github": "^0.4.5",
"@changesets/cli": "^2.23.2",
"@ethereumjs/rlp": "^5.0.0",
"@size-limit/preset-big-lib": "^8.2.4",
"@types/fs-extra": "^9.0.13",
"@viem/anvil": "0.0.5",
"@vitest/coverage-v8": "^1.0.4",
"@vitest/ui": "^1.0.4",
"bun-types": "^1.0.1",
"ethers": "^6.0.2",
"fs-extra": "^10.1.0",
"globby": "^13.2.2",
"rimraf": "^4.4.1",
"simple-git-hooks": "^2.8.1",
"size-limit": "^8.2.4",
"typescript": "5.3.2",
"vite": "^5.0.7",
"vitest": "^1.0.4"
},
"simple-git-hooks": {
"pre-commit": "bun run format && bun run lint:fix"
}
}