-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
106 lines (106 loc) · 3.42 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
{
"name": "@cowprotocol/cow-sdk",
"version": "5.9.0",
"license": "(MIT OR Apache-2.0)",
"files": [
"/dist"
],
"source": "src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.module.js",
"exports": {
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "rm -rf dist && yarn run codegen",
"build": "microbundle -f modern,esm,cjs",
"start": "microbundle -f modern,esm,cjs watch",
"postbuild": "cp package.json dist && cp README.md dist && yarn run trading:generateSchemas",
"lint": "eslint src",
"format": "prettier --write \"src/**/*.+(ts|json)\"",
"test": "jest",
"test:coverage": "jest --coverage --json --outputFile=jest.results.json && cat ./coverage/lcov.info | coveralls",
"test:coverage:html": "jest --silent=false --coverage --coverageReporters html",
"codegen": "npm run swagger:codegen && npm run typechain:codegen",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"graphql:codegen": "graphql-codegen --config graphql-codegen.yml",
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.285.0/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false",
"typechain:codegen": "typechain --target ethers-v5 --out-dir ./src/common/generated './abi/*.json'",
"trading:generateSchemas": "ts-node scripts/generateTradingSchemas.ts"
},
"dependencies": {
"@cowprotocol/app-data": "^2.4.0",
"@cowprotocol/contracts": "^1.6.0",
"@ethersproject/abstract-signer": "^5.7.0",
"@openzeppelin/merkle-tree": "^1.0.5",
"cross-fetch": "^3.1.5",
"exponential-backoff": "^3.1.1",
"graphql": "^16.3.0",
"graphql-request": "^4.3.0",
"limiter": "^2.1.0"
},
"peerDependencies": {
"ethers": "^5.7.2"
},
"devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@graphql-codegen/cli": "3.0.0",
"@graphql-codegen/typescript": "3.0.0",
"@graphql-codegen/typescript-operations": "^3.0.0",
"@typechain/ethers-v5": "^11.0.0",
"@types/jest": "^29.4.0",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"babel-plugin-inline-import": "^3.0.0",
"coveralls": "^3.1.1",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unused-imports": "^3.0.0",
"ethers": "^5.7.2",
"jest": "^29.6.4",
"jest-fetch-mock": "^3.0.3",
"microbundle": "^0.15.1",
"openapi-typescript-codegen": "^0.23.0",
"prettier": "^2.5.1",
"ts-json-schema-generator": "^2.3.0",
"ts-mockito": "^2.6.1",
"tsc-watch": "^6.0.0",
"typechain": "^8.2.0",
"typescript": "^4.9.5"
},
"jest": {
"automock": false,
"resetMocks": false,
"setupFiles": [
"./setupTests.js"
],
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"coveragePathIgnorePatterns": [
"src/composable/generated"
],
"moduleDirectories": [
"node_modules"
],
"modulePaths": [
"<rootDir>/"
]
},
"keywords": [
"cow",
"cow-protocol",
"sdk",
"crypto",
"typescript",
"subgraph"
]
}