graphql-mandatory-validator
Version:
A GraphQL schema validator using AST-only parsing for mandatory fields with default values, array validation, and composite type validation
56 lines (55 loc) • 1.42 kB
JSON
{
"name": "graphql-mandatory-validator",
"version": "1.3.2",
"description": "A GraphQL schema validator using AST-only parsing for mandatory fields with default values, array validation, and composite type validation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"graphql-validator": "./bin/cli.js"
},
"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"dev": "tsc --watch",
"test": "jest",
"test:run": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"prepublishOnly": "npm run clean && npm run test:run && npm run build",
"prepack": "npm run build",
"release:patch": "npm version patch && npm publish && git push",
"release:minor": "npm version minor && npm publish && git push",
"release:major": "npm version major && npm publish && git push"
},
"keywords": [
"graphql",
"validator",
"schema",
"mandatory-fields",
"composite-types",
"pre-commit",
"default-values",
"git-hooks"
],
"author": "Sairam",
"license": "MIT",
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^20.19.10",
"jest": "^30.0.5",
"ts-jest": "^29.4.1",
"typescript": "^5.0.0"
},
"files": [
"dist/",
"bin/",
"CHANGELOG.md"
],
"engines": {
"node": ">=16.0.0"
},
"preferGlobal": true,
"dependencies": {
"graphql": "^16.11.0"
}
}