package.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "@pythnetwork/price-service-sdk",
  3. "version": "1.8.0",
  4. "description": "Pyth price service SDK",
  5. "homepage": "https://pyth.network",
  6. "main": "./dist/cjs/index.js",
  7. "types": "./dist/cjs/index.d.ts",
  8. "files": [
  9. "dist/**/*"
  10. ],
  11. "repository": {
  12. "type": "git",
  13. "url": "https://github.com/pyth-network/pyth-crosschain.git",
  14. "directory": "price_service/sdk/js"
  15. },
  16. "publishConfig": {
  17. "access": "public"
  18. },
  19. "scripts": {
  20. "build": "ts-duality",
  21. "gen-ts-schema": "quicktype --src-lang schema src/schemas/price_feed.json -o src/schemas/PriceFeed.ts --raw-type any --converters all-objects && prettier --write \"src/schemas/*.ts\"",
  22. "test:unit": "jest",
  23. "test:lint": "eslint src/ --max-warnings 0",
  24. "fix:format": "prettier --write \"src/**/*.ts\"",
  25. "fix:lint": "eslint src/ --fix --max-warnings 0",
  26. "prepublishOnly": "pnpm run build && pnpm test:unit && pnpm run test:lint",
  27. "preversion": "pnpm run test:lint",
  28. "version": "pnpm run format && git add -A src",
  29. "clean": "rm -rf ./dist"
  30. },
  31. "keywords": [
  32. "pyth",
  33. "oracle"
  34. ],
  35. "license": "Apache-2.0",
  36. "devDependencies": {
  37. "@cprussin/eslint-config": "catalog:",
  38. "@types/bn.js": "^5.1.5",
  39. "@types/jest": "^29.4.0",
  40. "eslint": "catalog:",
  41. "jest": "^29.4.0",
  42. "prettier": "catalog:",
  43. "quicktype": "^23.0.76",
  44. "ts-jest": "^29.0.5"
  45. },
  46. "dependencies": {
  47. "bn.js": "^5.2.1"
  48. },
  49. "engines": {
  50. "node": ">=22.14.0",
  51. "pnpm": ">=10.7.0"
  52. },
  53. "packageManager": "pnpm@10.19.0",
  54. "type": "module",
  55. "exports": {
  56. "./AccumulatorUpdateData": {
  57. "require": {
  58. "default": "./dist/cjs/AccumulatorUpdateData.js",
  59. "types": "./dist/cjs/AccumulatorUpdateData.d.ts"
  60. },
  61. "import": {
  62. "default": "./dist/esm/AccumulatorUpdateData.js",
  63. "types": "./dist/esm/AccumulatorUpdateData.d.ts"
  64. }
  65. },
  66. ".": {
  67. "require": {
  68. "default": "./dist/cjs/index.js",
  69. "types": "./dist/cjs/index.d.ts"
  70. },
  71. "import": {
  72. "default": "./dist/esm/index.js",
  73. "types": "./dist/esm/index.d.ts"
  74. }
  75. },
  76. "./schemas/PriceFeed": {
  77. "require": {
  78. "default": "./dist/cjs/schemas/PriceFeed.js",
  79. "types": "./dist/cjs/schemas/PriceFeed.d.ts"
  80. },
  81. "import": {
  82. "default": "./dist/esm/schemas/PriceFeed.js",
  83. "types": "./dist/esm/schemas/PriceFeed.d.ts"
  84. }
  85. },
  86. "./package.json": "./package.json"
  87. },
  88. "module": "./dist/esm/index.js"
  89. }