package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "name": "zod",
  3. "version": "3.25.30",
  4. "type": "module",
  5. "author": "Colin McDonnell <zod@colinhacks.com>",
  6. "description": "TypeScript-first schema declaration and validation library with static type inference",
  7. "files": ["dist", "v3", "v4", "v4-mini"],
  8. "funding": "https://github.com/sponsors/colinhacks",
  9. "homepage": "https://zod.dev",
  10. "keywords": ["typescript", "schema", "validation", "type", "inference"],
  11. "license": "MIT",
  12. "sideEffects": false,
  13. "main": "./dist/cjs/index.js",
  14. "types": "./dist/types/index.d.ts",
  15. "module": "./dist/esm/index.js",
  16. "exports": {
  17. ".": {
  18. "import": {
  19. "@zod/source": "./src/index.ts",
  20. "types": "./dist/types/index.d.ts",
  21. "default": "./dist/esm/index.js"
  22. },
  23. "require": {
  24. "@zod/source": "./src/index.ts",
  25. "types": "./dist/types/index.d.ts",
  26. "default": "./dist/cjs/index.js"
  27. }
  28. },
  29. "./v3": {
  30. "import": {
  31. "@zod/source": "./src/index.ts",
  32. "types": "./dist/types/index.d.ts",
  33. "default": "./dist/esm/index.js"
  34. },
  35. "require": {
  36. "@zod/source": "./src/index.ts",
  37. "types": "./dist/types/index.d.ts",
  38. "default": "./dist/cjs/index.js"
  39. }
  40. },
  41. "./v4": {
  42. "import": {
  43. "@zod/source": "./src/v4/index.ts",
  44. "types": "./dist/types/v4/index.d.ts",
  45. "default": "./dist/esm/v4/index.js"
  46. },
  47. "require": {
  48. "@zod/source": "./src/v4/index.ts",
  49. "types": "./dist/types/v4/index.d.ts",
  50. "default": "./dist/cjs/v4/index.js"
  51. }
  52. },
  53. "./v4-mini": {
  54. "@zod/source": "./src/v4/mini/index.ts",
  55. "types": "./dist/types/v4/mini/index.d.ts",
  56. "import": "./dist/esm/v4/mini/index.js",
  57. "require": "./dist/cjs/v4/mini/index.js"
  58. },
  59. "./v4/mini": {
  60. "@zod/source": "./src/v4/mini/index.ts",
  61. "types": "./dist/types/v4/mini/index.d.ts",
  62. "import": "./dist/esm/v4/mini/index.js",
  63. "require": "./dist/cjs/v4/mini/index.js"
  64. },
  65. "./v4/core": {
  66. "@zod/source": "./src/v4/core/index.ts",
  67. "types": "./dist/types/v4/core/index.d.ts",
  68. "import": "./dist/esm/v4/core/index.js",
  69. "require": "./dist/cjs/v4/core/index.js"
  70. },
  71. "./v4/locales": {
  72. "@zod/source": "./src/v4/locales/index.ts",
  73. "types": "./dist/types/v4/locales/index.d.ts",
  74. "import": "./dist/esm/v4/locales/index.js",
  75. "require": "./dist/cjs/v4/locales/index.js"
  76. },
  77. "./v4/locales/*": {
  78. "@zod/source": "./src/v4/locales/*",
  79. "types": "./dist/types/v4/locales/*",
  80. "import": "./dist/esm/v4/locales/*",
  81. "require": "./dist/cjs/v4/locales/*"
  82. },
  83. "./package.json": "./package.json"
  84. },
  85. "tshy": {
  86. "exports": {
  87. "./package.json": "./package.json",
  88. ".": "./src/index.ts",
  89. "./v3": "./src/v3/index.ts",
  90. "./v4": "./src/v4/index.ts",
  91. "./v4-mini": "./src/v4/mini/index.ts",
  92. "./v4/core": "./src/v4/core/index.ts",
  93. "./v4/locales": "./src/v4/locales/index.ts",
  94. "./v4/locales/*": "./src/v4/locales/*"
  95. },
  96. "sourceDialects": ["@zod/source"],
  97. "exclude": ["./src/**/*.test.ts"]
  98. },
  99. "repository": {
  100. "type": "git",
  101. "url": "git+https://github.com/colinhacks/zod.git"
  102. },
  103. "bugs": {
  104. "url": "https://github.com/colinhacks/zod/issues"
  105. },
  106. "support": {
  107. "backing": {
  108. "npm-funding": true
  109. }
  110. },
  111. "scripts": {
  112. "clean": "rm -rf dist",
  113. "build": "tsx ./build.mts",
  114. "postbuild": "pnpm biome check --write .",
  115. "test:watch": "pnpm vitest",
  116. "test": "pnpm vitest run",
  117. "bump:beta": "pnpm version \"v$(pnpm pkg get version | jq -r)-beta.$(date +%Y%m%dT%H%M%S)\"",
  118. "pub:beta": "pnpm bump:beta && pnpm publish --tag next --publish-branch v4 --no-git-checks --dry-run"
  119. }
  120. }