UNPKG

4.45 kBJSONView Raw
1{
2 "name": "ajv",
3 "version": "8.11.2",
4 "description": "Another JSON Schema Validator",
5 "main": "dist/ajv.js",
6 "types": "dist/ajv.d.ts",
7 "files": [
8 "lib/",
9 "dist/",
10 ".runkit_example.js"
11 ],
12 "scripts": {
13 "eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" --ignore-pattern spec/JSON-Schema-Test-Suite",
14 "prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"",
15 "prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"",
16 "test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot",
17 "test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec",
18 "test-debug": "npm run test-spec -- --inspect-brk",
19 "test-cov": "nyc npm run test-spec",
20 "rollup": "rm -rf bundle && rollup -c",
21 "bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019 && node ./scripts/bundle.js 2020 ajv2020 ajv2020 && node ./scripts/bundle.js jtd ajvJTD ajvJTD",
22 "build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts",
23 "json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests",
24 "test-karma": "karma start",
25 "test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start",
26 "test-all": "npm run test-cov && if-node-version 12 npm run test-browser",
27 "test": "npm run json-tests && npm run prettier:check && npm run eslint && npm link && npm link --legacy-peer-deps ajv && npm run test-cov",
28 "test-ci": "AJV_FULL_TEST=true npm test",
29 "prepublish": "npm run build",
30 "benchmark": "npm i && npm run build && npm link && cd ./benchmark && npm link --legacy-peer-deps ajv && npm i && node ./jtd",
31 "docs:dev": "./scripts/prepare-site && vuepress dev docs",
32 "docs:build": "./scripts/prepare-site && vuepress build docs"
33 },
34 "nyc": {
35 "exclude": [
36 "**/spec/**",
37 "node_modules"
38 ],
39 "reporter": [
40 "lcov",
41 "text-summary"
42 ]
43 },
44 "repository": "ajv-validator/ajv",
45 "keywords": [
46 "JSON",
47 "schema",
48 "validator",
49 "validation",
50 "jsonschema",
51 "json-schema",
52 "json-schema-validator",
53 "json-schema-validation"
54 ],
55 "author": "Evgeny Poberezkin",
56 "license": "MIT",
57 "bugs": "https://github.com/ajv-validator/ajv/issues",
58 "homepage": "https://ajv.js.org",
59 "runkitExampleFilename": ".runkit_example.js",
60 "dependencies": {
61 "fast-deep-equal": "^3.1.1",
62 "json-schema-traverse": "^1.0.0",
63 "require-from-string": "^2.0.2",
64 "uri-js": "^4.2.2"
65 },
66 "devDependencies": {
67 "@ajv-validator/config": "^0.3.0",
68 "@rollup/plugin-commonjs": "^23.0.2",
69 "@rollup/plugin-json": "^4.1.0",
70 "@rollup/plugin-node-resolve": "^15.0.1",
71 "@rollup/plugin-typescript": "^8.2.1",
72 "@types/chai": "^4.2.12",
73 "@types/mocha": "^9.0.0",
74 "@types/node": "^18.11.9",
75 "@types/require-from-string": "^1.2.0",
76 "@typescript-eslint/eslint-plugin": "^3.8.0",
77 "@typescript-eslint/parser": "^3.8.0",
78 "ajv-formats": "^3.0.0-rc.0",
79 "browserify": "^17.0.0",
80 "chai": "^4.0.1",
81 "cross-env": "^7.0.2",
82 "dayjs": "^1.10.4",
83 "dayjs-plugin-utc": "^0.1.2",
84 "eslint": "^7.8.1",
85 "eslint-config-prettier": "^7.0.0",
86 "fast-uri": "^2.1.0",
87 "glob": "^8.0.2",
88 "husky": "^8.0.2",
89 "if-node-version": "^1.0.0",
90 "jimp": "^0.16.1",
91 "js-beautify": "^1.7.3",
92 "json-schema-test": "^2.0.0",
93 "karma": "^6.0.0",
94 "karma-chrome-launcher": "^3.0.0",
95 "karma-mocha": "^2.0.0",
96 "lint-staged": "^13.0.3",
97 "mocha": "^10.0.0",
98 "module-from-string": "^3.1.3",
99 "node-fetch": "^3.0.0",
100 "nyc": "^15.0.0",
101 "prettier": "^2.3.1",
102 "re2": "^1.16.0",
103 "rollup": "^2.44.0",
104 "rollup-plugin-terser": "^7.0.2",
105 "ts-node": "^10.0.0",
106 "tsify": "^5.0.2",
107 "typescript": "^4.8.0"
108 },
109 "collective": {
110 "type": "opencollective",
111 "url": "https://opencollective.com/ajv"
112 },
113 "funding": {
114 "type": "github",
115 "url": "https://github.com/sponsors/epoberezkin"
116 },
117 "prettier": "@ajv-validator/config/prettierrc.json",
118 "husky": {
119 "hooks": {
120 "pre-commit": "lint-staged && npm test"
121 }
122 },
123 "lint-staged": {
124 "*.{json,yaml,js,ts}": "prettier --write"
125 }
126}