package.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "@solana-program/token",
  3. "version": "0.1.2",
  4. "description": "JavaScript client for the Token program",
  5. "sideEffects": false,
  6. "module": "./dist/src/index.js",
  7. "main": "./dist/src/index.cjs",
  8. "types": "./dist/types/src/index.d.ts",
  9. "type": "module",
  10. "exports": {
  11. "browser": {
  12. "import": "./dist/src/index.js",
  13. "require": "./dist/src/index.cjs"
  14. },
  15. "node": {
  16. "import": "./dist/src/index.js",
  17. "require": "./dist/src/index.cjs"
  18. },
  19. "types": "./dist/types/src/index.d.ts"
  20. },
  21. "files": [
  22. "./dist/src",
  23. "./dist/types"
  24. ],
  25. "scripts": {
  26. "build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
  27. "build:docs": "typedoc",
  28. "test": "ava",
  29. "lint": "eslint --ext js,ts,tsx src",
  30. "lint:fix": "eslint --fix --ext js,ts,tsx src",
  31. "format": "prettier --check src test",
  32. "format:fix": "prettier --write src test",
  33. "prepublishOnly": "pnpm build"
  34. },
  35. "publishConfig": {
  36. "access": "public",
  37. "registry": "https://registry.npmjs.org"
  38. },
  39. "license": "MIT",
  40. "peerDependencies": {
  41. "@solana/web3.js": "2.0.0-preview.3"
  42. },
  43. "devDependencies": {
  44. "@ava/typescript": "^4.1.0",
  45. "@solana/eslint-config-solana": "^3.0.0",
  46. "@solana/web3.js": "tp3",
  47. "@solana/webcrypto-ed25519-polyfill": "tp3",
  48. "@solana-program/system": "^0.3.1",
  49. "@typescript-eslint/eslint-plugin": "^7.3.1",
  50. "@typescript-eslint/parser": "^7.3.1",
  51. "ava": "^6.1.2",
  52. "eslint": "^8.57.0",
  53. "prettier": "^3.2.5",
  54. "rimraf": "^5.0.5",
  55. "tsup": "^8.0.2",
  56. "typedoc": "^0.25.12",
  57. "typedoc-plugin-missing-exports": "^2.2.0",
  58. "typescript": "^5.4.2"
  59. },
  60. "ava": {
  61. "require": [
  62. "@solana/webcrypto-ed25519-polyfill"
  63. ],
  64. "typescript": {
  65. "compile": false,
  66. "rewritePaths": {
  67. "test/": "dist/test/"
  68. }
  69. }
  70. },
  71. "packageManager": "pnpm@8.2.0"
  72. }