package.json 2.0 KB

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