package.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "web3-utils",
  3. "sideEffects": false,
  4. "version": "4.0.1",
  5. "description": "Collection of utility functions used in web3.js.",
  6. "main": "./lib/commonjs/index.js",
  7. "module": "./lib/esm/index.js",
  8. "exports": {
  9. ".": {
  10. "types": "./lib/types/index.d.ts",
  11. "import": "./lib/esm/index.js",
  12. "require": "./lib/commonjs/index.js"
  13. }
  14. },
  15. "repository": "https://github.com/ChainSafe/web3.js",
  16. "author": "ChainSafe Systems",
  17. "license": "LGPL-3.0",
  18. "engines": {
  19. "node": ">=14",
  20. "npm": ">=6.12.0"
  21. },
  22. "files": [
  23. "lib/**/*",
  24. "src/**/*"
  25. ],
  26. "scripts": {
  27. "clean": "rimraf dist && rimraf lib",
  28. "prebuild": "yarn clean",
  29. "build": "yarn build:cjs & yarn build:esm & yarn build:types",
  30. "build:cjs": "tsc --build tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./lib/commonjs/package.json",
  31. "build:esm": "tsc --build tsconfig.esm.json && echo '{\"type\": \"module\"}' > ./lib/esm/package.json",
  32. "build:types": "tsc --build tsconfig.types.json",
  33. "build:check": "node -e \"require('./lib')\"",
  34. "lint": "eslint --ext .js,.ts .",
  35. "lint:fix": "eslint --fix --ext .js,.ts .",
  36. "format": "prettier --write '**/*'",
  37. "test": "jest --config=./test/unit/jest.config.js",
  38. "test:coverage:unit": "jest --config=./test/unit/jest.config.js --coverage=true --coverage-reporters=text",
  39. "test:coverage:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests --coverage=true --coverage-reporters=text",
  40. "test:ci": "jest --coverage=true --coverage-reporters=json --verbose",
  41. "test:watch": "npm test -- --watch",
  42. "test:unit": "jest --config=./test/unit/jest.config.js",
  43. "test:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests"
  44. },
  45. "devDependencies": {
  46. "@humeris/espresso-shot": "^4.0.0",
  47. "@types/jest": "^28.1.6",
  48. "@typescript-eslint/eslint-plugin": "^5.30.7",
  49. "@typescript-eslint/parser": "^5.30.7",
  50. "eslint": "^8.20.0",
  51. "eslint-config-prettier": "^8.5.0",
  52. "eslint-config-web3-base": "0.1.0",
  53. "eslint-plugin-import": "^2.26.0",
  54. "jest": "^28.1.3",
  55. "jest-extended": "^3.0.1",
  56. "js-sha3": "^0.8.0",
  57. "prettier": "^2.7.1",
  58. "ts-jest": "^28.0.7",
  59. "typescript": "^4.7.4"
  60. },
  61. "dependencies": {
  62. "ethereum-cryptography": "^2.0.0",
  63. "web3-errors": "^1.0.0",
  64. "web3-types": "^1.0.0",
  65. "web3-validator": "^1.0.0"
  66. },
  67. "gitHead": "5b5bf8765ab01946d8af215e5ecd343f321fbe2a"
  68. }