package.json 3.8 KB

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