package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {
  2. "author": "Richard Moore <me@ricmoo.com>",
  3. "browser": {
  4. "./lib.esm/crypto/crypto.js": "./lib.esm/crypto/crypto-browser.js",
  5. "./lib.esm/providers/provider-ipcsocket.js": "./lib.esm/providers/provider-ipcsocket-browser.js",
  6. "./lib.esm/providers/ws.js": "./lib.esm/providers/ws-browser.js",
  7. "./lib.esm/utils/base64.js": "./lib.esm/utils/base64-browser.js",
  8. "./lib.esm/utils/geturl.js": "./lib.esm/utils/geturl-browser.js",
  9. "./lib.esm/wordlists/wordlists.js": "./lib.esm/wordlists/wordlists-browser.js"
  10. },
  11. "dependencies": {
  12. "@adraffy/ens-normalize": "1.10.1",
  13. "@noble/curves": "1.2.0",
  14. "@noble/hashes": "1.3.2",
  15. "@types/node": "22.7.5",
  16. "aes-js": "4.0.0-beta.5",
  17. "tslib": "2.7.0",
  18. "ws": "8.17.1"
  19. },
  20. "description": "A complete and compact Ethereum library, for dapps, wallets and any other tools.",
  21. "devDependencies": {
  22. "@rollup/plugin-node-resolve": "15.3.0",
  23. "@types/mocha": "10.0.9",
  24. "@types/semver": "7.5.8",
  25. "c8": "7.12.0",
  26. "mocha": "10.7.3",
  27. "rollup": "4.24.0",
  28. "semver": "7.6.3",
  29. "typescript": "5.0.4",
  30. "uglify-js": "3.19.3"
  31. },
  32. "engines": {
  33. "node": ">=14.0.0"
  34. },
  35. "ethereum": "donations.ethers.eth",
  36. "exports": {
  37. ".": {
  38. "import": "./lib.esm/index.js",
  39. "default": "./lib.commonjs/index.js"
  40. },
  41. "./abi": {
  42. "import": "./lib.esm/abi/index.js",
  43. "default": "./lib.commonjs/abi/index.js"
  44. },
  45. "./address": {
  46. "import": "./lib.esm/address/index.js",
  47. "default": "./lib.commonjs/address/index.js"
  48. },
  49. "./constants": {
  50. "import": "./lib.esm/constants/index.js",
  51. "default": "./lib.commonjs/constants/index.js"
  52. },
  53. "./contract": {
  54. "import": "./lib.esm/contract/index.js",
  55. "default": "./lib.commonjs/contract/index.js"
  56. },
  57. "./crypto": {
  58. "import": "./lib.esm/crypto/index.js",
  59. "default": "./lib.commonjs/crypto/index.js"
  60. },
  61. "./hash": {
  62. "import": "./lib.esm/hash/index.js",
  63. "default": "./lib.commonjs/hash/index.js"
  64. },
  65. "./providers": {
  66. "import": "./lib.esm/providers/index.js",
  67. "default": "./lib.commonjs/providers/index.js"
  68. },
  69. "./transaction": {
  70. "import": "./lib.esm/transaction/index.js",
  71. "default": "./lib.commonjs/transaction/index.js"
  72. },
  73. "./utils": {
  74. "import": "./lib.esm/utils/index.js",
  75. "default": "./lib.commonjs/utils/index.js"
  76. },
  77. "./wallet": {
  78. "import": "./lib.esm/wallet/index.js",
  79. "default": "./lib.commonjs/wallet/index.js"
  80. },
  81. "./wordlists": {
  82. "import": "./lib.esm/wordlists/index.js",
  83. "default": "./lib.commonjs/wordlists/index.js"
  84. }
  85. },
  86. "funding": [
  87. {
  88. "type": "individual",
  89. "url": "https://github.com/sponsors/ethers-io/"
  90. },
  91. {
  92. "type": "individual",
  93. "url": "https://www.buymeacoffee.com/ricmoo"
  94. }
  95. ],
  96. "gitHead": "7654ee3c6487171a4e13207accfc90f93a22b0fc",
  97. "homepage": "https://ethers.org",
  98. "keywords": [
  99. "ethereum",
  100. "ethers",
  101. "ethersjs"
  102. ],
  103. "license": "MIT",
  104. "main": "./lib.commonjs/index.js",
  105. "module": "./lib.esm/index.js",
  106. "name": "ethers",
  107. "publishConfig": {
  108. "access": "public",
  109. "tag": "latest"
  110. },
  111. "repository": {
  112. "type": "git",
  113. "url": "git://github.com/ethers-io/ethers.js.git"
  114. },
  115. "scripts": {
  116. "_build-dist": "rollup -c && uglifyjs ./dist/ethers.js -o ./dist/ethers.min.js && uglifyjs ./dist/ethers.umd.js -o ./dist/ethers.umd.min.js && uglifyjs ./dist/wordlists-extra.js -o ./dist/wordlists-extra.min.js",
  117. "_dist-stats": "gzip -k9f -S '.gz' ./dist/ethers.min.js && gzip -k9f -S '.gz' ./dist/ethers.umd.min.js && gzip -k9f -S '.gz' ./dist/wordlists-extra.min.js && du -hs ./dist/*.gz && echo '' && du -hs ./dist/*.js",
  118. "auto-build": "npm run build -- -w",
  119. "build": "tsc --project tsconfig.esm.json",
  120. "build-all": "npm run build && npm run build-commonjs",
  121. "build-clean": "npm run clean && npm run build && node lib.esm/_admin/update-version.js && node lib.esm/_admin/update-changelog.js && npm run build-all && npm run _build-dist && npm run _dist-stats",
  122. "build-commonjs": "tsc --project tsconfig.commonjs.json",
  123. "build-dist": "npm run build && npm run _build-dist && npm run _dist-stats",
  124. "clean": "rm -rf dist lib.esm lib.commonjs && cp -r misc/basedirs/* .",
  125. "postpublish": "node lib.esm/_admin/create-release.js",
  126. "stats": "echo 'Dependencies' && npm ls --all --omit=dev",
  127. "test": "npm run test-esm",
  128. "test-browser": "node lib.esm/_admin/test-browser",
  129. "test-commonjs": "mocha --reporter ./reporter.cjs ./lib.commonjs/_tests/test-*.js",
  130. "test-coverage": "c8 -o output -r lcov -r text mocha --no-color --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js | tee output/summary.txt",
  131. "test-esm": "mocha --trace-warnings --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js"
  132. },
  133. "sideEffects": false,
  134. "version": "6.13.5"
  135. }