You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "zod",
  3. "version": "3.21.4",
  4. "author": "Colin McDonnell <colin@colinhacks.com>",
  5. "repository": {
  6. "type": "git",
  7. "url": "https://github.com/colinhacks/zod"
  8. },
  9. "main": "./lib/index.js",
  10. "module": "./lib/index.mjs",
  11. "devDependencies": {
  12. "@rollup/plugin-typescript": "^8.2.0",
  13. "@types/benchmark": "^2.1.0",
  14. "@types/jest": "^29.2.2",
  15. "@types/node": "14",
  16. "@typescript-eslint/eslint-plugin": "^5.15.0",
  17. "@typescript-eslint/parser": "^5.15.0",
  18. "benchmark": "^2.1.4",
  19. "dependency-cruiser": "^9.19.0",
  20. "eslint": "^8.11.0",
  21. "eslint-config-prettier": "^8.5.0",
  22. "eslint-plugin-ban": "^1.6.0",
  23. "eslint-plugin-import": "^2.25.4",
  24. "eslint-plugin-simple-import-sort": "^7.0.0",
  25. "eslint-plugin-unused-imports": "^2.0.0",
  26. "husky": "^7.0.4",
  27. "jest": "^29.3.1",
  28. "lint-staged": "^12.3.7",
  29. "nodemon": "^2.0.15",
  30. "prettier": "^2.6.0",
  31. "pretty-quick": "^3.1.3",
  32. "rollup": "^2.70.1",
  33. "ts-jest": "^29.0.3",
  34. "ts-morph": "^14.0.0",
  35. "ts-node": "^10.9.1",
  36. "tslib": "^2.3.1",
  37. "tsx": "^3.8.0",
  38. "typescript": "~4.5.0"
  39. },
  40. "exports": {
  41. ".": {
  42. "require": "./lib/index.js",
  43. "import": "./lib/index.mjs",
  44. "types": "./index.d.ts"
  45. },
  46. "./package.json": "./package.json",
  47. "./locales/*": "./lib/locales/*"
  48. },
  49. "bugs": {
  50. "url": "https://github.com/colinhacks/zod/issues"
  51. },
  52. "description": "TypeScript-first schema declaration and validation library with static type inference",
  53. "files": [
  54. "/lib",
  55. "/index.d.ts"
  56. ],
  57. "funding": "https://github.com/sponsors/colinhacks",
  58. "homepage": "https://zod.dev",
  59. "keywords": [
  60. "typescript",
  61. "schema",
  62. "validation",
  63. "type",
  64. "inference"
  65. ],
  66. "license": "MIT",
  67. "lint-staged": {
  68. "src/*.ts": [
  69. "eslint --cache --fix",
  70. "prettier --ignore-unknown --write"
  71. ]
  72. },
  73. "scripts": {
  74. "prettier:check": "prettier --check src/**/*.ts deno/lib/**/*.ts --no-error-on-unmatched-pattern",
  75. "prettier:fix": "prettier --write src/**/*.ts deno/lib/**/*.ts --ignore-unknown --no-error-on-unmatched-pattern",
  76. "lint:check": "eslint --cache --ext .ts ./src",
  77. "lint:fix": "eslint --cache --fix --ext .ts ./src",
  78. "check": "yarn lint:check && yarn prettier:check",
  79. "fix": "yarn lint:fix && yarn prettier:fix",
  80. "clean": "rm -rf lib/* deno/lib/*",
  81. "build": "yarn run clean && npm run build:cjs && npm run build:esm && npm run build:deno",
  82. "build:deno": "node ./deno/build.mjs && cp ./README.md ./deno/lib",
  83. "build:esm": "rollup --config rollup.config.js",
  84. "build:cjs": "tsc -p tsconfig.cjs.json",
  85. "build:types": "tsc -p tsconfig.types.json",
  86. "build:test": "tsc -p tsconfig.test.json",
  87. "rollup": "rollup --config rollup.config.js",
  88. "test:watch": "jest --watch",
  89. "test": "jest --coverage",
  90. "test:deno": "cd deno && deno test",
  91. "prepublishOnly": "npm run test && npm run build && npm run build:deno",
  92. "play": "nodemon -e ts -w . -x tsx playground.ts",
  93. "depcruise": "depcruise -c .dependency-cruiser.js src",
  94. "benchmark": "tsx src/benchmarks/index.ts",
  95. "prepare": "husky install"
  96. },
  97. "sideEffects": false,
  98. "support": {
  99. "backing": {
  100. "npm-funding": true
  101. }
  102. },
  103. "types": "./index.d.ts",
  104. "dependencies": {}
  105. }