File tree Expand file tree Collapse file tree 6 files changed +446
-10
lines changed Expand file tree Collapse file tree 6 files changed +446
-10
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ generates:
66 - typescript
77 gen/schemas.ts :
88 plugins :
9- - ./dist/index.js :
9+ - ./dist/main/ index.js :
1010 schema : yup
1111 importFrom : ./types
Original file line number Diff line number Diff line change 66 "type" : " git" ,
77 "url" : " https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema.git"
88 },
9- "main" : " dist/index.js" ,
10- "typings" : " dist/index.d.ts" ,
9+ "main" : " dist/main/index.js" ,
10+ "typings" : " dist/main/index.d.ts" ,
11+ "module" : " dist/module/index.mjs" ,
1112 "files" : [
1213 " dist/*.{js,ts}"
1314 ],
1415 "scripts" : {
1516 "type-check" : " tsc --noEmit" ,
1617 "test" : " echo \" Error: no test specified\" && exit 1" ,
17- "build" : " tsc" ,
18+ "build" : " run-p build:*" ,
19+ "build:main" : " tsc -p tsconfig.main.json" ,
20+ "build:module" : " tsc -p tsconfig.module.json" ,
1821 "generate" : " tsc && graphql-codegen" ,
1922 "prepublish" : " tsc"
2023 },
3841 "@graphql-codegen/cli" : " ^2.3.1" ,
3942 "@graphql-codegen/typescript" : " ^2.4.2" ,
4043 "@tsconfig/recommended" : " ^1.0.1" ,
44+ "npm-run-all" : " ^4.1.5" ,
4145 "typescript" : " ^4.5.4" ,
4246 "yup" : " ^0.32.11"
4347 },
Original file line number Diff line number Diff line change 33 "compilerOptions" : {
44 "incremental" : true ,
55 "declaration" : true ,
6- "outDir" : " ./dist" ,
6+ "noEmit" : false ,
7+ "rootDir" : " src" ,
8+ "outDir" : " dist" ,
79 "baseUrl" : " ." ,
810 "paths" : {}
911 },
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig" ,
3+ "compilerOptions" : {
4+ "outDir" : " dist/main" ,
5+ "types" : [
6+ " node"
7+ ]
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig" ,
3+ "compilerOptions" : {
4+ "target" : " esnext" ,
5+ "module" : " esnext" ,
6+ "declaration" : false ,
7+ "moduleResolution" : " node" ,
8+ "resolveJsonModule" : true ,
9+ "outDir" : " dist/module" ,
10+ "types" : [
11+ " node"
12+ ]
13+ },
14+ "include" : [
15+ " src/**/*.ts"
16+ ],
17+ "exclude" : [
18+ " node_modules/**"
19+ ]
20+ }
You can’t perform that action at this time.
0 commit comments