package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "@pythnetwork/pyth-lazer-sdk",
  3. "version": "5.0.0",
  4. "description": "Pyth Lazer SDK",
  5. "engines": {
  6. "node": ">=22"
  7. },
  8. "publishConfig": {
  9. "access": "public"
  10. },
  11. "files": [
  12. "dist/**/*"
  13. ],
  14. "main": "./dist/cjs/index.js",
  15. "types": "./dist/cjs/index.d.ts",
  16. "exports": {
  17. "import": {
  18. "types": "./dist/esm/index.d.ts",
  19. "default": "./dist/esm/index.js"
  20. },
  21. "require": {
  22. "types": "./dist/cjs/index.d.ts",
  23. "default": "./dist/cjs/index.js"
  24. }
  25. },
  26. "scripts": {
  27. "build:cjs": "tsc --project tsconfig.build.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
  28. "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json",
  29. "fix:lint": "eslint --fix . --max-warnings 0",
  30. "test:lint": "eslint . --max-warnings 0",
  31. "test:types": "tsc",
  32. "test:format": "prettier --check .",
  33. "fix:format": "prettier --write .",
  34. "example:streaming": "node --loader ts-node/esm examples/streaming.js",
  35. "example:history": "node --loader ts-node/esm examples/history.js",
  36. "example:symbols": "node --loader ts-node/esm examples/symbols.js",
  37. "doc": "typedoc --out docs/typedoc src"
  38. },
  39. "devDependencies": {
  40. "@cprussin/eslint-config": "catalog:",
  41. "@cprussin/tsconfig": "catalog:",
  42. "@types/node": "^18.19.54",
  43. "@types/ws": "^8.5.12",
  44. "eslint": "catalog:",
  45. "prettier": "catalog:",
  46. "ts-node": "catalog:",
  47. "typedoc": "^0.26.8",
  48. "typescript": "catalog:"
  49. },
  50. "bugs": {
  51. "url": "https://github.com/pyth-network/pyth-crosschain/issues"
  52. },
  53. "type": "module",
  54. "homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js",
  55. "repository": {
  56. "type": "git",
  57. "url": "https://github.com/pyth-network/pyth-crosschain",
  58. "directory": "lazer/sdk/js"
  59. },
  60. "keywords": [
  61. "pyth",
  62. "oracle"
  63. ],
  64. "license": "Apache-2.0",
  65. "dependencies": {
  66. "@isaacs/ttlcache": "^1.4.1",
  67. "buffer": "^6.0.3",
  68. "isomorphic-ws": "^5.0.0",
  69. "ts-log": "^2.2.7",
  70. "ws": "^8.18.0"
  71. }
  72. }