package.json 2.0 KB

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