-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpackage.json
144 lines (144 loc) · 5.14 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
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.1.13",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=16.18.0"
},
"scripts": {
"start": "nodemon -e ts,tsx,json,js,jsx --watch ./src --ignore ./dist --exec 'yarn build'",
"build": "yarn run clean && yarn run build:cjs & yarn run build:esm & yarn run build:types; wait",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}' && yarn copy-abi:cjs",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir ./dist/esm && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}' && yarn copy-abi:esm",
"build:types": "tsc --project tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"copy-abi:cjs": "DIR=cjs yarn copy-abi",
"copy-abi:esm": "DIR=esm yarn copy-abi",
"copy-abi": "abi=utils/abi/contracts; dstdir=\"./dist/${DIR}/${abi}\"; mkdir -p \"${dstdir}\"; cp ./src/${abi}/*.json \"${dstdir}\"",
"test": "hardhat test",
"test:watch": "hardhat watch test",
"test:run:arweave": "npx -y arlocal",
"lint": "eslint --fix src test e2e && yarn prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"e2e/**/*.ts\"",
"lint-check": "eslint src test e2e && yarn prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"e2e/**/*.ts\"",
"prepare": "yarn build && husky install",
"size": "size-limit",
"analyze": "size-limit --why",
"clean": "rm -rf ./dist",
"bump-version:major": "yarn version --major --no-git-tag-version --no-commit-hooks && git commit -m 'chore: bump version' ./package.json --no-verify",
"bump-version:minor": "yarn version --minor --no-git-tag-version --no-commit-hooks && git commit -m 'chore: bump version' ./package.json --no-verify",
"bump-version:patch": "yarn version --patch --no-git-tag-version --no-commit-hooks && git commit -m 'chore: bump version' ./package.json --no-verify"
},
"lint-staged": {
"*.ts": "yarn lint"
},
"peerDependencies": {},
"sideEffects": false,
"size-limit": [
{
"path": "dist/sdk.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/sdk.esm.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@defi-wonderland/smock": "^2.3.5",
"@eth-optimism/contracts": "^0.5.37",
"@nomiclabs/hardhat-ethers": "^2.2.1",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomiclabs/hardhat-waffle": "^2.0.3",
"@openzeppelin/hardhat-upgrades": "^1.28.0",
"@size-limit/preset-small-lib": "^7.0.8",
"@typechain/ethers-v5": "^11.1.1",
"@typechain/hardhat": "^6.1.6",
"@types/chai": "^4.3.6",
"@types/dotenv": "^8.2.0",
"@types/lodash": "^4.14.199",
"@types/lodash.get": "^4.4.7",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"arlocal": "^1.1.65",
"chai": "^4.3.8",
"chai-exclude": "^2.1.0",
"dotenv": "^16.0.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-chai-expect": "^3.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-mocha": "^10.2.0",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"ethereum-waffle": "^4.0.10",
"hardhat": "^2.17.4",
"hardhat-deploy": "^0.11.2",
"hardhat-gas-reporter": "^1.0.8",
"hardhat-watcher": "^2.5.0",
"husky": "^8.0.0",
"lint-staged": "^12.4.1",
"nodemon": "^3.0.1",
"prettier": "^3.0.3",
"sinon": "^16.0.0",
"size-limit": "^7.0.8",
"solidity-coverage": "^0.8.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typechain": "^8.3.1",
"typescript": "5",
"winston": "^3.10.0",
"winston-transport": "^4.5.0"
},
"dependencies": {
"@across-protocol/across-token": "^1.0.0",
"@across-protocol/constants": "^3.1.10",
"@across-protocol/contracts": "^3.0.6",
"@eth-optimism/sdk": "^3.3.1",
"@pinata/sdk": "^2.1.0",
"@types/mocha": "^10.0.1",
"@uma/sdk": "^0.34.1",
"arweave": "^1.14.4",
"axios": "^0.27.2",
"big-number": "^2.0.0",
"decimal.js": "^10.3.1",
"ethers": "^5.7.2",
"lodash.get": "^4.4.2",
"superstruct": "^0.15.4",
"tslib": "^2.6.2"
},
"publishConfig": {
"registry": "https://registry.npmjs.com/",
"access": "public"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"typings": "./dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts"
},
"./dist/cjs/*": {
"require": "./dist/cjs/*.js",
"import": "./dist/esm/*.js"
},
"./dist/esm/*": {
"require": "./dist/cjs/*.js",
"import": "./dist/esm/*.js"
}
}
}