package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. "name": "ajv",
  3. "version": "7.0.3",
  4. "description": "Another JSON Schema Validator",
  5. "main": "dist/ajv.js",
  6. "types": "dist/ajv.d.ts",
  7. "files": [
  8. "lib/",
  9. "docs/",
  10. "dist/",
  11. "scripts/",
  12. ".tonic_example.js"
  13. ],
  14. "scripts": {
  15. "eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" scripts --ignore-pattern spec/JSON-Schema-Test-Suite",
  16. "prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"",
  17. "prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"",
  18. "test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot",
  19. "test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec",
  20. "test-debug": "npm run test-spec -- --inspect-brk",
  21. "test-cov": "nyc npm run test-spec",
  22. "bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019",
  23. "build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts",
  24. "json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests",
  25. "test-karma": "karma start",
  26. "test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start",
  27. "test-all": "npm run test-cov && if-node-version 12 npm run test-browser",
  28. "test": "npm link && npm link ajv && npm run json-tests && npm run eslint && npm run test-cov",
  29. "test-ci": "AJV_FULL_TEST=true npm test",
  30. "prepublish": "npm run build"
  31. },
  32. "nyc": {
  33. "exclude": [
  34. "**/spec/**",
  35. "node_modules"
  36. ],
  37. "reporter": [
  38. "lcov",
  39. "text-summary"
  40. ]
  41. },
  42. "repository": {
  43. "type": "git",
  44. "url": "https://github.com/ajv-validator/ajv.git"
  45. },
  46. "keywords": [
  47. "JSON",
  48. "schema",
  49. "validator",
  50. "validation",
  51. "jsonschema",
  52. "json-schema",
  53. "json-schema-validator",
  54. "json-schema-validation"
  55. ],
  56. "author": "Evgeny Poberezkin",
  57. "license": "MIT",
  58. "bugs": {
  59. "url": "https://github.com/ajv-validator/ajv/issues"
  60. },
  61. "homepage": "https://github.com/ajv-validator/ajv",
  62. "tonicExampleFilename": ".tonic_example.js",
  63. "dependencies": {
  64. "fast-deep-equal": "^3.1.1",
  65. "json-schema-traverse": "^1.0.0",
  66. "require-from-string": "^2.0.2",
  67. "uri-js": "^4.2.2"
  68. },
  69. "devDependencies": {
  70. "@ajv-validator/config": "^0.3.0",
  71. "@types/chai": "^4.2.12",
  72. "@types/mocha": "^8.0.3",
  73. "@types/node": "^14.0.27",
  74. "@types/require-from-string": "^1.2.0",
  75. "@typescript-eslint/eslint-plugin": "^3.8.0",
  76. "@typescript-eslint/parser": "^3.8.0",
  77. "ajv-formats": "^1.5.0",
  78. "browserify": "^17.0.0",
  79. "chai": "^4.0.1",
  80. "cross-env": "^7.0.2",
  81. "eslint": "^7.8.1",
  82. "eslint-config-prettier": "^7.0.0",
  83. "glob": "^7.0.0",
  84. "husky": "^4.2.5",
  85. "if-node-version": "^1.0.0",
  86. "js-beautify": "^1.7.3",
  87. "json-schema-test": "^2.0.0",
  88. "karma": "^5.0.0",
  89. "karma-chrome-launcher": "^3.0.0",
  90. "karma-mocha": "^2.0.0",
  91. "lint-staged": "^10.2.11",
  92. "mocha": "^8.0.1",
  93. "nyc": "^15.0.0",
  94. "prettier": "^2.0.5",
  95. "terser": "^5.2.1",
  96. "ts-node": "^9.0.0",
  97. "tsify": "^5.0.2",
  98. "typescript": "^4.0.0"
  99. },
  100. "collective": {
  101. "type": "opencollective",
  102. "url": "https://opencollective.com/ajv"
  103. },
  104. "funding": {
  105. "type": "github",
  106. "url": "https://github.com/sponsors/epoberezkin"
  107. },
  108. "prettier": "@ajv-validator/config/prettierrc.json",
  109. "husky": {
  110. "hooks": {
  111. "pre-commit": "lint-staged && npm test"
  112. }
  113. },
  114. "lint-staged": {
  115. "*.{md,json,yaml,js,ts}": "prettier --write"
  116. }
  117. }