package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "name": "@pythnetwork/pyth-starknet-js",
  3. "version": "0.3.0",
  4. "description": "Pyth Network Starknet 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. "files": [
  12. "dist/**/*"
  13. ],
  14. "repository": {
  15. "type": "git",
  16. "url": "https://github.com/pyth-network/pyth-crosschain",
  17. "directory": "target_chains/starknet/sdk/js"
  18. },
  19. "publishConfig": {
  20. "access": "public"
  21. },
  22. "scripts": {
  23. "build": "ts-duality",
  24. "usage-example": "ts-node src/examples/usage.ts",
  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 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. "@types/node": "^18.11.18",
  42. "eslint": "catalog:",
  43. "jest": "^29.4.1",
  44. "prettier": "catalog:",
  45. "ts-jest": "^29.0.5",
  46. "ts-node": "catalog:"
  47. },
  48. "engines": {
  49. "node": ">=22.14.0"
  50. },
  51. "type": "module",
  52. "exports": {
  53. ".": {
  54. "require": {
  55. "types": "./dist/cjs/index.d.ts",
  56. "default": "./dist/cjs/index.cjs"
  57. },
  58. "import": {
  59. "types": "./dist/esm/index.d.ts",
  60. "default": "./dist/esm/index.mjs"
  61. }
  62. },
  63. "./package.json": "./package.json"
  64. },
  65. "module": "./dist/esm/index.mjs"
  66. }