-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
64 lines (64 loc) · 2.18 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
{
"name": "@0x/0x-parser",
"version": "2.6.0",
"description": "🧾 Designed for 0x integrators: This library parses 0x transactions on EVM blockchains into a format that is both user-friendly and easy to understand.",
"keywords": [
"0x",
"logs",
"swap",
"erc-20",
"events",
"settler",
"ethereum",
"aggregator",
"0x protocol",
"transactions"
],
"author": "henryzhu.eth",
"license": "MIT",
"homepage": "https://github.com/0xproject/0x-parser",
"repository": {
"type": "git",
"url": "https://github.com/0xproject/0x-parser"
},
"bugs": {
"url": "https://github.com/0xproject/0x-parser/issues"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src"
],
"engines": {
"node": ">=20"
},
"scripts": {
"start": "npm run build && cp ./dist ./public/dist",
"build": "npm run build:cjs && npm run build:esm && npm run types",
"build:esm": "esbuild src/index.ts --bundle --minify-whitespace --minify-identifiers --format=esm --target=esnext --outfile=dist/index.esm.js --external:viem",
"build:cjs": "esbuild src/index.ts --bundle --minify-whitespace --minify-identifiers --platform=node --target=node18 --outfile=dist/index.cjs.js --external:viem",
"build:dev": "npm run build:cjs:dev && npm run build:esm:dev && npm run types",
"build:esm:dev": "esbuild src/index.ts --bundle --format=esm --outfile=dist/index.esm.js",
"build:cjs:dev": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.cjs.js",
"types": "rm -rf ./dist/index.d.ts && tsc --emitDeclarationOnly --outDir ./dist",
"web:example": "npm run clean && npm run build:dev && cp ./dist/index.esm.js ./examples/web && http-server ./examples/web --port 8000 -o",
"clean": "rm -rf dist",
"test": "vitest --coverage"
},
"peerDependencies": {
"viem": "^2.21.35"
},
"devDependencies": {
"@types/node": "^22.8.1",
"@vitest/coverage-v8": "^2.1.3",
"abitype": "^1.0.6",
"dotenv": "^16.4.5",
"esbuild": "^0.24.0",
"http-server": "^14.1.1",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
}
}