UNPKG

graphql-codegen-typescript-validation-schema

Version:

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

105 lines 3.16 kB
{ "name": "graphql-codegen-typescript-validation-schema", "type": "module", "version": "0.17.1", "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}" ], "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.0", "@graphql-codegen/schema-ast": "4.1.0", "@graphql-codegen/visitor-plugin-common": "^5.0.0", "@graphql-tools/utils": "^10.0.0", "graphlib": "^2.1.8", "graphql": "^16.6.0" }, "devDependencies": { "@antfu/eslint-config": "^4.0.0", "@graphql-codegen/cli": "5.0.4", "@graphql-codegen/typescript": "^4.0.0", "@tsconfig/recommended": "1.0.8", "@types/graphlib": "^2.1.8", "@types/node": "^22.0.0", "eslint": "9.20.0", "jest": "29.7.0", "myzod": "1.12.0", "npm-run-all2": "7.0.2", "ts-dedent": "^2.2.0", "ts-jest": "29.2.5", "typescript": "5.7.3", "valibot": "0.42.1", "vitest": "^3.0.0", "yup": "1.6.1", "zod": "3.24.1" }, "scripts": { "type-check": "tsc --noEmit", "type-check:yup": "tsc --strict --skipLibCheck --noEmit example/yup/schemas.ts", "type-check:zod": "tsc --strict --skipLibCheck --noEmit example/zod/schemas.ts", "type-check:myzod": "tsc --strict --skipLibCheck --noEmit example/myzod/schemas.ts", "type-check:valibot": "tsc --strict --skipLibCheck --noEmit 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:*" } }