-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 2.67 KB
/
package.json
File metadata and controls
93 lines (93 loc) · 2.67 KB
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
{
"name": "hyperliquid",
"version": "1.7.7",
"description": "SDK for Hyperliquid API",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"browser": "./dist/browser.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"browser": {
"./dist/index.js": "./dist/browser.js"
},
"files": [
"dist",
"src",
"README.md",
"LICENSE"
],
"sideEffects": false,
"scripts": {
"prebuild": "npm run format",
"build": "tsup",
"test": "jest",
"prepare": "node -e \"if (process.env.NODE_ENV !== 'production' && require('fs').existsSync('.git')) { require('child_process').execSync('npm run build', {stdio: 'inherit'}) }\"",
"test:node": "node examples/node-test.js",
"test:browser": "npx serve -s . -p 3000",
"test:ws:cjs": "npm run build && node scripts/test-ws-connection.cjs",
"test:ws:esm": "npm run build && node scripts/test-ws-connection.mjs",
"test:ws:current": "npm run test:ws:cjs && npm run test:ws:esm",
"test:ws:node22": "npm run build && node scripts/test-with-node-version.js",
"test:all": "npm run build && npm run test:ws:current && echo '\nTo test in browser, run: npm run test:browser and visit http://localhost:3000/examples/browser-test.html'",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx}\"",
"format:all": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"postinstall": "node -e \"if (process.env.NODE_ENV !== 'production' && require('fs').existsSync('.git')) { try { require('husky').install() } catch (e) { console.log('Husky setup skipped') } }\"",
"dev:setup": "husky install"
},
"keywords": [
"hyperliquid",
"api",
"sdk",
"rest",
"websocket",
"trading",
"crypto",
"blockchain",
"arbitrum",
"dex"
],
"author": "Nomeida",
"license": "MIT",
"dependencies": {
"@msgpack/msgpack": "^3.0.0-beta2",
"axios": "^1.7.2",
"dotenv": "^16.5.0",
"ethers": "^6.13.2",
"ws": "^8.18.2"
},
"devDependencies": {
"@types/jest": "^29.0.0",
"husky": "^9.1.7",
"jest": "^29.0.0",
"lint-staged": "^15.5.1",
"prettier": "^3.5.3",
"serve": "^14.0.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0"
},
"directories": {
"test": "tests"
},
"repository": {
"type": "git",
"url": "https://github.com/nomeida/hyperliquid-api"
},
"engines": {
"node": ">=16.0.0"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"prettier --write"
],
"*.{json,md}": [
"prettier --write"
]
}
}