package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "name": "@pythnetwork/pyth-sui-js",
  3. "version": "2.3.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.js",
  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. "@truffle/hdwallet-provider": "^2.1.5",
  44. "@types/ethereum-protocol": "^1.0.2",
  45. "@types/jest": "^29.4.0",
  46. "@types/node": "^18.11.18",
  47. "@types/web3-provider-engine": "^14.0.1",
  48. "@types/yargs": "^17.0.20",
  49. "@typescript-eslint/eslint-plugin": "^6.0.0",
  50. "@typescript-eslint/parser": "^6.0.0",
  51. "eslint": "catalog:",
  52. "jest": "^29.4.1",
  53. "prettier": "catalog:",
  54. "ts-jest": "^29.0.5",
  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.16.0",
  65. "pnpm": ">=10.19.0"
  66. },
  67. "packageManager": "pnpm@10.19.0",
  68. "exports": {
  69. "./SuiPriceServiceConnection": {
  70. "require": {
  71. "default": "./dist/cjs/SuiPriceServiceConnection.js",
  72. "types": "./dist/cjs/SuiPriceServiceConnection.d.ts"
  73. },
  74. "import": {
  75. "default": "./dist/esm/SuiPriceServiceConnection.js",
  76. "types": "./dist/esm/SuiPriceServiceConnection.d.ts"
  77. }
  78. },
  79. "./client": {
  80. "require": {
  81. "default": "./dist/cjs/client.js",
  82. "types": "./dist/cjs/client.d.ts"
  83. },
  84. "import": {
  85. "default": "./dist/esm/client.js",
  86. "types": "./dist/esm/client.d.ts"
  87. }
  88. },
  89. ".": {
  90. "require": {
  91. "default": "./dist/cjs/index.js",
  92. "types": "./dist/cjs/index.d.ts"
  93. },
  94. "import": {
  95. "default": "./dist/esm/index.js",
  96. "types": "./dist/esm/index.d.ts"
  97. }
  98. },
  99. "./package.json": "./package.json"
  100. },
  101. "module": "./dist/esm/index.js"
  102. }