|
7 | 7 | "url": "https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema.git" |
8 | 8 | }, |
9 | 9 | "main": "dist/main/index.js", |
10 | | - "typings": "dist/main/index.d.ts", |
| 10 | + "typings": "dist/types/index.d.ts", |
11 | 11 | "module": "dist/module/index.js", |
| 12 | + "exports": { |
| 13 | + ".": { |
| 14 | + "types": "./dist/types/index.d.ts", |
| 15 | + "import": "./dist/module/index.js", |
| 16 | + "require": "./dist/main/index.js" |
| 17 | + } |
| 18 | + }, |
12 | 19 | "files": [ |
13 | 20 | "dist/**/*.{js,ts}", |
| 21 | + "!**/*.tsbuildinfo", |
14 | 22 | "LICENSE", |
15 | 23 | "README.md" |
16 | 24 | ], |
|
23 | 31 | "build": "run-p build:*", |
24 | 32 | "build:main": "tsc -p tsconfig.main.json", |
25 | 33 | "build:module": "tsc -p tsconfig.module.json", |
| 34 | + "build:types": "tsc -p tsconfig.types.json", |
26 | 35 | "lint": "eslint --ext .ts .", |
27 | 36 | "lint-fix": "eslint --fix --ext .ts .", |
28 | | - "prettier": "prettier --write --list-different \"**/*.{ts,graphql,yml}\"", |
29 | | - "prettier:check": "prettier --check \"**/*.{ts,graphql,yml}\"", |
30 | 37 | "generate": "run-p build:* && graphql-codegen", |
31 | 38 | "prepublish": "run-p build:*" |
32 | 39 | }, |
|
47 | 54 | "author": "codehex", |
48 | 55 | "license": "MIT", |
49 | 56 | "devDependencies": { |
| 57 | + "@antfu/eslint-config": "^2.12.2", |
50 | 58 | "@graphql-codegen/cli": "5.0.2", |
51 | 59 | "@graphql-codegen/typescript": "^4.0.0", |
52 | 60 | "@tsconfig/recommended": "1.0.6", |
53 | 61 | "@types/graphlib": "^2.1.8", |
54 | | - "@types/jest": "29.5.12", |
55 | 62 | "@types/node": "^20.0.0", |
56 | | - "@typescript-eslint/eslint-plugin": "7.5.0", |
57 | | - "@typescript-eslint/parser": "7.5.0", |
58 | 63 | "eslint": "9.0.0", |
59 | | - "eslint-plugin-import": "^2.27.5", |
60 | | - "eslint-plugin-simple-import-sort": "^12.0.0", |
61 | 64 | "jest": "29.7.0", |
62 | 65 | "myzod": "1.11.0", |
63 | 66 | "npm-run-all2": "6.1.2", |
64 | | - "prettier": "3.2.5", |
65 | 67 | "ts-dedent": "^2.2.0", |
66 | 68 | "ts-jest": "29.1.2", |
67 | 69 | "typescript": "5.4.4", |
|
0 commit comments