package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "name": "@pythnetwork/pyth-sui-js",
  3. "version": "2.4.0",
  4. "description": "Pyth Network Sui Utilities",
  5. "homepage": "https://pyth.network",
  6. "author": {
  7. "name": "Pyth Data Association"
  8. },
  9. "main": "./dist/cjs/index.cjs",
  10. "types": "./dist/cjs/index.d.ts",
  11. "type": "module",
  12. "files": [
  13. "dist/**/*"
  14. ],
  15. "repository": {
  16. "type": "git",
  17. "url": "https://github.com/pyth-network/pyth-crosschain",
  18. "directory": "target_chains/sui/sdk/js"
  19. },
  20. "publishConfig": {
  21. "access": "public"
  22. },
  23. "scripts": {
  24. "build": "ts-duality",
  25. "example-relay": "node lib/examples/SuiRelay.js",
  26. "test:lint": "eslint src/ --max-warnings 0",
  27. "test:format": "prettier --check \"src/**/*.ts\"",
  28. "fix:lint": "eslint src/ --fix --max-warnings 0",
  29. "fix:format": "prettier --write \"src/**/*.ts\"",
  30. "prepublishOnly": "pnpm run build && pnpm test:lint",
  31. "preversion": "pnpm run test:lint",
  32. "version": "pnpm run format && git add -A src",
  33. "clean": "rm -rf ./dist"
  34. },
  35. "keywords": [
  36. "pyth",
  37. "oracle",
  38. "sui"
  39. ],
  40. "license": "Apache-2.0",
  41. "devDependencies": {
  42. "@cprussin/eslint-config": "catalog:",
  43. "@pythnetwork/jest-config": "workspace:",
  44. "@truffle/hdwallet-provider": "^2.1.5",
  45. "@types/ethereum-protocol": "^1.0.2",
  46. "@types/jest": "^29.4.0",
  47. "@types/node": "^18.11.18",
  48. "@types/web3-provider-engine": "^14.0.1",
  49. "@types/yargs": "^17.0.20",
  50. "@typescript-eslint/eslint-plugin": "^6.0.0",
  51. "@typescript-eslint/parser": "^6.0.0",
  52. "eslint": "catalog:",
  53. "jest": "^29.4.1",
  54. "prettier": "catalog:",
  55. "web3": "^1.8.2",
  56. "yargs": "^17.0.20"
  57. },
  58. "dependencies": {
  59. "@mysten/sui": "^1.3.0",
  60. "@pythnetwork/hermes-client": "workspace:*",
  61. "buffer": "^6.0.3"
  62. },
  63. "engines": {
  64. "node": ">=22.14.0"
  65. },
  66. "exports": {
  67. "./SuiPriceServiceConnection": {
  68. "require": {
  69. "types": "./dist/cjs/SuiPriceServiceConnection.d.ts",
  70. "default": "./dist/cjs/SuiPriceServiceConnection.cjs"
  71. },
  72. "import": {
  73. "types": "./dist/esm/SuiPriceServiceConnection.d.ts",
  74. "default": "./dist/esm/SuiPriceServiceConnection.mjs"
  75. }
  76. },
  77. "./client": {
  78. "require": {
  79. "types": "./dist/cjs/client.d.ts",
  80. "default": "./dist/cjs/client.cjs"
  81. },
  82. "import": {
  83. "types": "./dist/esm/client.d.ts",
  84. "default": "./dist/esm/client.mjs"
  85. }
  86. },
  87. ".": {
  88. "require": {
  89. "types": "./dist/cjs/index.d.ts",
  90. "default": "./dist/cjs/index.cjs"
  91. },
  92. "import": {
  93. "types": "./dist/esm/index.d.ts",
  94. "default": "./dist/esm/index.mjs"
  95. }
  96. },
  97. "./package.json": "./package.json"
  98. },
  99. "module": "./dist/esm/index.mjs"
  100. }