-
Notifications
You must be signed in to change notification settings - Fork 69
/
package.json
142 lines (142 loc) · 4.53 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
{
"name": "@lifi/sdk",
"version": "3.0.0-beta.0",
"description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
"keywords": [
"bridge",
"bridge-aggregation",
"cross-chain",
"cross-chain-applications",
"cross-chain-bridge",
"dapp",
"defi",
"ethereum",
"ethers",
"lifi",
"metamask",
"multi-chain",
"sdk",
"swap",
"viem",
"wagmi",
"web3",
"web3-react"
],
"homepage": "https://github.com/lifinance/sdk",
"bugs": {
"url": "https://github.com/lifinance/sdk/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/lifinance/sdk.git"
},
"license": "Apache-2.0",
"author": "LI.FI <github@li.finance>",
"type": "module",
"exports": {
".": {
"types": "./src/_types/index.d.ts",
"import": "./src/_esm/index.js",
"default": "./src/_cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "./src/_cjs/index.js",
"module": "./src/_esm/index.js",
"types": "./src/_types/index.d.ts",
"typings": "./src/_types/index.d.ts",
"sideEffects": false,
"directories": {
"test": "tests"
},
"files": [
"src",
"!src/**/*.test.ts",
"!src/**/*.mock.ts",
"!src/**/*.spec.ts",
"!src/**/*.handlers.ts",
"!src/**/*.tsbuildinfo"
],
"scripts": {
"build": "yarn clean && yarn build:cjs && yarn build:esm && yarn 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",
"clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo src/tsconfig.build.tsbuildinfo src/_esm src/_cjs src/_types",
"coverage": "vitest run --coverage",
"postinstall": "husky",
"lint": "eslint --ext .tsx --ext .ts ./src",
"lint:fix": "eslint --ext .tsx --ext .ts ./src --fix",
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"package": "npm run build && npm pack",
"pre-commit": "lint-staged",
"pre-push": "yarn check:types && yarn check:circular-deps && yarn test:unit",
"prepublishOnly": "yarn node scripts/prepublishOnly.js",
"prettier:fix": "prettier --write ./src/.",
"release": "standard-version -a",
"release:alpha": "standard-version -a --prerelease alpha --skip.changelog",
"release:beta": "standard-version -a --prerelease beta --skip.changelog",
"test": "vitest --run --dangerouslyIgnoreUnhandledErrors",
"test:cov": "yarn test --coverage",
"test:e2e": "yarn test -c vitest.e2e.config.ts",
"test:unit": "yarn test .unit.spec.ts",
"check:types": "tsc --noEmit",
"check:circular-deps": "madge --circular $(find ./src -name '*.ts')",
"check:circular-deps-graph": "madge --circular $(find ./src -name '*.ts') --image graph.svg",
"watch": "tsc -w -p ./tsconfig.json",
"prepare": "husky"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"yarn run lint:fix",
"yarn run prettier:fix"
]
},
"dependencies": {
"@lifi/types": "^13.12.0",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/web3.js": "^1.92.2",
"eth-rpc-errors": "^4.0.3",
"viem": "^2.13.7"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/fs-extra": "^11.0.4",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@vitest/coverage-v8": "^1.6.0",
"bs58": "^5.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^48.2.8",
"eslint-plugin-prettier": "^5.1.3",
"fs-extra": "^11.2.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"madge": "^7.0.0",
"msw": "^2.3.1",
"pinst": "^3.0.0",
"prettier": "^3.3.1",
"standard-version": "^9.5.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"peerDependencies": {
"@solana/wallet-adapter-base": "^0.9.0",
"@solana/web3.js": "^1.91.0",
"viem": "^2.10.0"
},
"packageManager": "yarn@4.2.2",
"publishConfig": {
"access": "public"
},
"standard-version": {
"scripts": {
"postbump": "node scripts/version.js && git add ."
}
}
}