package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "@pythnetwork/pyth-lazer-sdk",
  3. "version": "0.4.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 . --max-warnings 0",
  27. "test:lint": "eslint . --max-warnings 0",
  28. "test:types": "tsc",
  29. "test:format": "prettier --check .",
  30. "fix:format": "prettier --write .",
  31. "example": "node --loader ts-node/esm examples/index.js",
  32. "doc": "typedoc --out docs/typedoc src",
  33. "publish": "pnpm run script -- publish"
  34. },
  35. "devDependencies": {
  36. "@cprussin/eslint-config": "^3.0.0",
  37. "@cprussin/tsconfig": "^3.0.1",
  38. "@eslint/js": "^9.12.0",
  39. "@types/eslint__js": "^8.42.3",
  40. "@types/node": "^18.19.54",
  41. "@types/ws": "^8.5.12",
  42. "eslint": "^9.12.0",
  43. "prettier": "catalog:",
  44. "ts-node": "^10.9.2",
  45. "typedoc": "^0.26.8",
  46. "typescript": ">=5.5.0 < 5.6.0",
  47. "typescript-eslint": "^8.8.0"
  48. },
  49. "bugs": {
  50. "url": "https://github.com/pyth-lazer-sdk/pyth-lazer-sdk/issues"
  51. },
  52. "type": "module",
  53. "homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js",
  54. "repository": {
  55. "type": "git",
  56. "url": "https://github.com/pyth-network/pyth-crosschain",
  57. "directory": "lazer/sdk/js"
  58. },
  59. "keywords": [
  60. "pyth",
  61. "oracle"
  62. ],
  63. "license": "Apache-2.0",
  64. "dependencies": {
  65. "@isaacs/ttlcache": "^1.4.1",
  66. "@solana/buffer-layout": "^4.0.1",
  67. "@solana/web3.js": "^1.98.0",
  68. "isomorphic-ws": "^5.0.0",
  69. "ts-log": "^2.2.7",
  70. "ws": "^8.18.0"
  71. }
  72. }