package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "@pythnetwork/hermes-client",
  3. "version": "2.1.0",
  4. "description": "Pyth Hermes Client",
  5. "author": {
  6. "name": "Pyth Data Association"
  7. },
  8. "homepage": "https://pyth.network",
  9. "files": [
  10. "dist/**/*"
  11. ],
  12. "repository": {
  13. "type": "git",
  14. "url": "https://github.com/pyth-network/pyth-crosschain",
  15. "directory": "apps/hermes/client/js"
  16. },
  17. "publishConfig": {
  18. "access": "public"
  19. },
  20. "scripts": {
  21. "build": "ts-duality",
  22. "build:schemas": "openapi-zod-client ./schema.json --output src/zodSchemas.ts",
  23. "pull:schema": "curl -o schema.json -z schema.json https://hermes.pyth.network/docs/openapi.json",
  24. "example": "node lib/examples/HermesClient.js",
  25. "fix:lint": "eslint src/ --fix --max-warnings 0",
  26. "fix:format": "prettier --write \"src/**/*.ts\"",
  27. "test:lint": "eslint src/ --max-warnings 0",
  28. "test:format": "prettier --check \"src/**/*.ts\"",
  29. "prepublishOnly": "pnpm run build && pnpm run test:lint",
  30. "preversion": "pnpm run test:lint",
  31. "version": "pnpm run format && git add -A src",
  32. "clean": "rm -rf ./dist"
  33. },
  34. "keywords": [
  35. "pyth",
  36. "oracle"
  37. ],
  38. "license": "Apache-2.0",
  39. "devDependencies": {
  40. "@cprussin/eslint-config": "catalog:",
  41. "@pythnetwork/jest-config": "workspace:",
  42. "@types/jest": "^29.4.0",
  43. "@types/node": "^20.14.2",
  44. "@types/yargs": "^17.0.10",
  45. "eslint": "catalog:",
  46. "jest": "^29.4.0",
  47. "openapi-zod-client": "^1.18.1",
  48. "prettier": "catalog:",
  49. "yargs": "^17.4.1"
  50. },
  51. "dependencies": {
  52. "@zodios/core": "^10.9.6",
  53. "eventsource": "^3.0.5",
  54. "zod": "^3.23.8"
  55. },
  56. "engines": {
  57. "node": ">=22.14.0"
  58. },
  59. "type": "module",
  60. "exports": {
  61. "./hermes-client": {
  62. "require": {
  63. "types": "./dist/cjs/hermes-client.d.ts",
  64. "default": "./dist/cjs/hermes-client.cjs"
  65. },
  66. "import": {
  67. "types": "./dist/esm/hermes-client.d.ts",
  68. "default": "./dist/esm/hermes-client.mjs"
  69. }
  70. },
  71. ".": {
  72. "require": {
  73. "types": "./dist/cjs/index.d.ts",
  74. "default": "./dist/cjs/index.cjs"
  75. },
  76. "import": {
  77. "types": "./dist/esm/index.d.ts",
  78. "default": "./dist/esm/index.mjs"
  79. }
  80. },
  81. "./utils": {
  82. "require": {
  83. "types": "./dist/cjs/utils.d.ts",
  84. "default": "./dist/cjs/utils.cjs"
  85. },
  86. "import": {
  87. "types": "./dist/esm/utils.d.ts",
  88. "default": "./dist/esm/utils.mjs"
  89. }
  90. },
  91. "./zodSchemas": {
  92. "require": {
  93. "types": "./dist/cjs/zodSchemas.d.ts",
  94. "default": "./dist/cjs/zodSchemas.cjs"
  95. },
  96. "import": {
  97. "types": "./dist/esm/zodSchemas.d.ts",
  98. "default": "./dist/esm/zodSchemas.mjs"
  99. }
  100. },
  101. "./package.json": "./package.json"
  102. },
  103. "module": "./dist/esm/index.mjs",
  104. "types": "./dist/cjs/index.d.ts",
  105. "main": "./dist/cjs/index.cjs"
  106. }