package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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": "catalog:",
  37. "@cprussin/tsconfig": "catalog:",
  38. "@types/node": "^18.19.54",
  39. "@types/ws": "^8.5.12",
  40. "eslint": "catalog:",
  41. "prettier": "catalog:",
  42. "ts-node": "catalog:",
  43. "typedoc": "^0.26.8",
  44. "typescript": "catalog:"
  45. },
  46. "bugs": {
  47. "url": "https://github.com/pyth-lazer-sdk/pyth-lazer-sdk/issues"
  48. },
  49. "type": "module",
  50. "homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js",
  51. "repository": {
  52. "type": "git",
  53. "url": "https://github.com/pyth-network/pyth-crosschain",
  54. "directory": "lazer/sdk/js"
  55. },
  56. "keywords": [
  57. "pyth",
  58. "oracle"
  59. ],
  60. "license": "Apache-2.0",
  61. "dependencies": {
  62. "@isaacs/ttlcache": "^1.4.1",
  63. "@solana/buffer-layout": "^4.0.1",
  64. "@solana/web3.js": "^1.98.0",
  65. "isomorphic-ws": "^5.0.0",
  66. "ts-log": "^2.2.7",
  67. "ws": "^8.18.0"
  68. }
  69. }