package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "name": "web3-validator",
  3. "version": "1.0.0",
  4. "description": "JSON-Schema compatible validator for web3",
  5. "main": "./lib/commonjs/index.js",
  6. "module": "./lib/esm/index.js",
  7. "exports": {
  8. ".": {
  9. "types": "./lib/types/index.d.ts",
  10. "import": "./lib/esm/index.js",
  11. "require": "./lib/commonjs/index.js"
  12. }
  13. },
  14. "browser": "./dist/web3-validator.min.js",
  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. "dist/**/*"
  26. ],
  27. "scripts": {
  28. "clean": "rimraf dist && rimraf lib",
  29. "prebuild": "yarn clean",
  30. "build": "yarn build:cjs & yarn build:esm & yarn build:types",
  31. "build:cjs": "tsc --build tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./lib/commonjs/package.json",
  32. "build:esm": "tsc --build tsconfig.esm.json && echo '{\"type\": \"module\"}' > ./lib/esm/package.json",
  33. "build:types": "tsc --build tsconfig.types.json",
  34. "build:web": "npx webpack",
  35. "build:check": "node -e \"require('./lib')\"",
  36. "lint": "eslint --ext .js,.ts .",
  37. "lint:fix": "eslint --fix --ext .js,.ts .",
  38. "format": "prettier --write '**/*'",
  39. "test": "jest --config=./test/unit/jest.config.js",
  40. "test:coverage:unit": "jest --config=./test/unit/jest.config.js --coverage=true --coverage-reporters=text",
  41. "test:coverage:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests --coverage=true --coverage-reporters=text",
  42. "test:ci": "jest --coverage=true --coverage-reporters=json --verbose",
  43. "test:watch": "npm test -- --watch",
  44. "test:unit": "jest --config=./test/unit/jest.config.js",
  45. "test:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests"
  46. },
  47. "dependencies": {
  48. "ethereum-cryptography": "^2.0.0",
  49. "is-my-json-valid": "^2.20.6",
  50. "util": "^0.12.5",
  51. "web3-errors": "^1.0.0",
  52. "web3-types": "^1.0.0"
  53. },
  54. "devDependencies": {
  55. "@types/jest": "^28.1.6",
  56. "@typescript-eslint/eslint-plugin": "^5.30.7",
  57. "@typescript-eslint/parser": "^5.30.7",
  58. "eslint": "^8.20.0",
  59. "eslint-config-prettier": "^8.5.0",
  60. "eslint-config-web3-base": "0.1.0",
  61. "eslint-plugin-import": "^2.26.0",
  62. "jest": "^28.1.3",
  63. "jest-extended": "^3.0.1",
  64. "prettier": "^2.7.1",
  65. "ts-jest": "^28.0.7",
  66. "typescript": "^4.7.4"
  67. },
  68. "gitHead": "5b5bf8765ab01946d8af215e5ecd343f321fbe2a"
  69. }