|
6 | 6 | "type": "git", |
7 | 7 | "url": "https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema.git" |
8 | 8 | }, |
9 | | - "main": "dist/main/index.js", |
10 | | - "typings": "dist/main/index.d.ts", |
11 | | - "module": "dist/module/index.js", |
12 | | - "files": [ |
13 | | - "dist/**/*.{js,ts}", |
14 | | - "LICENSE", |
15 | | - "README.md" |
16 | | - ], |
17 | | - "scripts": { |
18 | | - "type-check": "tsc --noEmit", |
19 | | - "type-check:yup": "tsc --strict --noEmit example/yup/schemas.ts", |
20 | | - "type-check:zod": "tsc --strict --noEmit example/zod/schemas.ts", |
21 | | - "type-check:myzod": "tsc --strict --noEmit example/myzod/schemas.ts", |
22 | | - "test": "vitest run", |
23 | | - "build": "run-p build:*", |
24 | | - "build:main": "tsc -p tsconfig.main.json", |
25 | | - "build:module": "tsc -p tsconfig.module.json", |
26 | | - "lint": "eslint --ext .ts .", |
27 | | - "lint-fix": "eslint --fix --ext .ts .", |
28 | | - "prettier": "prettier --write --list-different \"**/*.{ts,graphql,yml}\"", |
29 | | - "prettier:check": "prettier --check \"**/*.{ts,graphql,yml}\"", |
30 | | - "generate": "run-p build:* && graphql-codegen", |
31 | | - "prepublish": "run-p build:*" |
| 9 | + "author": "codehex", |
| 10 | + "license": "MIT", |
| 11 | + "bugs": { |
| 12 | + "url": "https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/issues" |
32 | 13 | }, |
33 | 14 | "keywords": [ |
34 | 15 | "gql", |
|
44 | 25 | "types", |
45 | 26 | "typings" |
46 | 27 | ], |
47 | | - "author": "codehex", |
48 | | - "license": "MIT", |
| 28 | + "exports": { |
| 29 | + ".": { |
| 30 | + "types": "./dist/types/index.d.ts", |
| 31 | + "import": "./dist/module/index.js", |
| 32 | + "require": "./dist/main/index.js" |
| 33 | + } |
| 34 | + }, |
| 35 | + "main": "dist/main/index.js", |
| 36 | + "typings": "dist/types/index.d.ts", |
| 37 | + "module": "dist/module/index.js", |
| 38 | + "files": [ |
| 39 | + "!dist/**/*.tsbuildinfo", |
| 40 | + "LICENSE", |
| 41 | + "README.md", |
| 42 | + "dist/**/*.{js,ts}" |
| 43 | + ], |
| 44 | + "scripts": { |
| 45 | + "type-check": "tsc --noEmit", |
| 46 | + "type-check:yup": "tsc --strict --skipLibCheck --noEmit example/yup/schemas.ts", |
| 47 | + "type-check:zod": "tsc --strict --skipLibCheck --noEmit example/zod/schemas.ts", |
| 48 | + "type-check:myzod": "tsc --strict --skipLibCheck --noEmit example/myzod/schemas.ts", |
| 49 | + "test": "vitest run", |
| 50 | + "build": "run-p build:*", |
| 51 | + "build:main": "tsc -p tsconfig.main.json", |
| 52 | + "build:module": "tsc -p tsconfig.module.json", |
| 53 | + "build:types": "tsc -p tsconfig.types.json", |
| 54 | + "lint": "eslint .", |
| 55 | + "lint-fix": "eslint . --fix", |
| 56 | + "generate": "run-p build:* && graphql-codegen", |
| 57 | + "prepublish": "run-p build:*" |
| 58 | + }, |
| 59 | + "peerDependencies": { |
| 60 | + "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" |
| 61 | + }, |
| 62 | + "dependencies": { |
| 63 | + "@graphql-codegen/plugin-helpers": "^5.0.0", |
| 64 | + "@graphql-codegen/schema-ast": "4.0.2", |
| 65 | + "@graphql-codegen/visitor-plugin-common": "^5.0.0", |
| 66 | + "@graphql-tools/utils": "^10.0.0", |
| 67 | + "graphlib": "^2.1.8", |
| 68 | + "graphql": "^16.6.0" |
| 69 | + }, |
49 | 70 | "devDependencies": { |
| 71 | + "@antfu/eslint-config": "^2.12.2", |
50 | 72 | "@graphql-codegen/cli": "5.0.2", |
51 | 73 | "@graphql-codegen/typescript": "^4.0.0", |
52 | 74 | "@tsconfig/recommended": "1.0.6", |
53 | 75 | "@types/graphlib": "^2.1.8", |
54 | | - "@types/jest": "29.5.12", |
55 | 76 | "@types/node": "^20.0.0", |
56 | | - "@typescript-eslint/eslint-plugin": "7.5.0", |
57 | | - "@typescript-eslint/parser": "7.5.0", |
58 | 77 | "eslint": "9.0.0", |
59 | | - "eslint-plugin-import": "^2.27.5", |
60 | | - "eslint-plugin-simple-import-sort": "^12.0.0", |
61 | 78 | "jest": "29.7.0", |
62 | 79 | "myzod": "1.11.0", |
63 | 80 | "npm-run-all2": "6.1.2", |
64 | | - "prettier": "3.2.5", |
65 | 81 | "ts-dedent": "^2.2.0", |
66 | 82 | "ts-jest": "29.1.2", |
67 | 83 | "typescript": "5.4.4", |
68 | 84 | "vitest": "^1.0.0", |
69 | 85 | "yup": "1.4.0", |
70 | 86 | "zod": "3.22.4" |
71 | | - }, |
72 | | - "dependencies": { |
73 | | - "@graphql-codegen/plugin-helpers": "^5.0.0", |
74 | | - "@graphql-codegen/schema-ast": "4.0.2", |
75 | | - "@graphql-codegen/visitor-plugin-common": "^5.0.0", |
76 | | - "@graphql-tools/utils": "^10.0.0", |
77 | | - "graphlib": "^2.1.8", |
78 | | - "graphql": "^16.6.0" |
79 | | - }, |
80 | | - "peerDependencies": { |
81 | | - "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" |
82 | | - }, |
83 | | - "bugs": { |
84 | | - "url": "https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/issues" |
85 | 87 | } |
86 | 88 | } |
0 commit comments