package.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "name": "@pythnetwork/pyth-fuel-js",
  3. "version": "1.0.7",
  4. "description": "Pyth Network Fuel Utils in JS",
  5. "homepage": "https://pyth.network",
  6. "author": {
  7. "name": "Pyth Data Association"
  8. },
  9. "main": "lib/index.js",
  10. "types": "lib/index.d.ts",
  11. "files": [
  12. "lib/**/*"
  13. ],
  14. "repository": {
  15. "type": "git",
  16. "url": "https://github.com/pyth-network/pyth-crosschain",
  17. "directory": "target_chains/fuel/sdk/js"
  18. },
  19. "publishConfig": {
  20. "access": "public"
  21. },
  22. "scripts": {
  23. "usage-example": "ts-node src/examples/usage.ts",
  24. "build": "pnpm run generate-fuel-types && tsc && copyfiles -u 1 \"src/**/*.d.ts\" lib",
  25. "test:format": "prettier --check \"src/**/*.ts\"",
  26. "test:lint": "eslint src/ --max-warnings 0",
  27. "fix:format": "prettier --write \"src/**/*.ts\"",
  28. "fix:lint": "eslint src/ --fix --max-warnings 0",
  29. "prepublishOnly": "pnpm run build && pnpm run test:lint",
  30. "preversion": "pnpm run test:lint",
  31. "version": "pnpm run test:format && git add -A src",
  32. "generate-fuel-types": "pnpm fuels typegen -i ../../contracts/pyth-contract/out/release/*-abi.json -o ./src/types && pnpm run fix:format"
  33. },
  34. "keywords": [
  35. "pyth",
  36. "oracle"
  37. ],
  38. "license": "Apache-2.0",
  39. "devDependencies": {
  40. "@pythnetwork/hermes-client": "workspace:*",
  41. "@typescript-eslint/eslint-plugin": "^7.7.0",
  42. "@typescript-eslint/parser": "^7.7.0",
  43. "copyfiles": "^2.4.1",
  44. "eslint": "^8.14.0",
  45. "prettier": "catalog:",
  46. "ts-node": "^10.9.2",
  47. "typescript": "^5.4.5"
  48. },
  49. "dependencies": {
  50. "fuels": "^0.96.1"
  51. }
  52. }