UNPKG

graphql-codegen-typescript-validation-schema

Version:

GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema

108 lines 3.38 kB
{ "name": "graphql-codegen-typescript-validation-schema", "type": "module", "version": "0.19.0", "description": "GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema", "respository": { "type": "git", "url": "https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema.git" }, "author": "codehex", "license": "MIT", "bugs": { "url": "https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/issues" }, "keywords": [ "gql", "generator", "yup", "zod", "code", "types", "graphql", "codegen", "apollo", "node", "types", "typings" ], "exports": { ".": { "import": { "types": "./dist/types/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/types/index.d.ts", "default": "./dist/cjs/index.js" }, "default": { "types": "./dist/types/index.d.ts", "default": "./dist/esm/index.js" } }, "./package.json": "./package.json" }, "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "typings": "dist/types/index.d.ts", "typescript": { "definition": "dist/types/index.d.ts" }, "files": [ "!dist/**/*.tsbuildinfo", "LICENSE", "README.md", "dist/**/*.{js,ts,json}", "docs/**/*" ], "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "zod": "^3.25.0 || ^4.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "^6.0.0", "@graphql-codegen/schema-ast": "5.0.2", "@graphql-codegen/visitor-plugin-common": "^6.0.0", "@graphql-tools/utils": "^11.0.0", "graphlib": "^2.1.8", "graphql": "^16.6.0" }, "devDependencies": { "@antfu/eslint-config": "^8.0.0", "@graphql-codegen/cli": "6.3.1", "@graphql-codegen/typescript": "^5.0.0", "@tsconfig/recommended": "1.0.13", "@types/graphlib": "^2.1.8", "@types/node": "^24.0.0", "eslint": "10.2.1", "jest": "30.3.0", "myzod": "1.12.1", "npm-run-all2": "8.0.4", "ts-dedent": "^2.2.0", "ts-jest": "29.4.9", "typescript": "6.0.3", "valibot": "1.3.1", "vitest": "^4.0.0", "yup": "1.7.1", "zod": "4.3.6" }, "scripts": { "type-check": "tsc --noEmit", "type-check:yup": "tsc --strict --skipLibCheck --noEmit --ignoreConfig example/yup/schemas.ts", "type-check:zod": "tsc --strict --skipLibCheck --noEmit --ignoreConfig example/zod/schemas.ts", "type-check:zodv4": "tsc --strict --skipLibCheck --noEmit --ignoreConfig example/zodv4/schemas.ts", "type-check:myzod": "tsc --strict --skipLibCheck --noEmit --ignoreConfig example/myzod/schemas.ts", "type-check:valibot": "tsc --strict --skipLibCheck --noEmit --ignoreConfig example/valibot/schemas.ts", "test": "vitest run", "build": "run-p build:*", "build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", "build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > dist/esm/package.json", "build:types": "tsc -p tsconfig.types.json", "lint": "eslint .", "lint-fix": "eslint . --fix", "generate": "run-p build:* && graphql-codegen", "generate:esm": "run-p build:* && graphql-codegen-esm", "prepublish": "run-p build:*" } }