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:
6
6
- typescript
7
7
gen/schemas.ts :
8
8
plugins :
9
- - ./dist/index.js :
9
+ - ./dist/main/ index.js :
10
10
schema : yup
11
11
importFrom : ./types
Original file line number Diff line number Diff line change 6
6
"type" : " git" ,
7
7
"url" : " https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema.git"
8
8
},
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" ,
11
12
"files" : [
12
13
" dist/*.{js,ts}"
13
14
],
14
15
"scripts" : {
15
16
"type-check" : " tsc --noEmit" ,
16
17
"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" ,
18
21
"generate" : " tsc && graphql-codegen" ,
19
22
"prepublish" : " tsc"
20
23
},
38
41
"@graphql-codegen/cli" : " ^2.3.1" ,
39
42
"@graphql-codegen/typescript" : " ^2.4.2" ,
40
43
"@tsconfig/recommended" : " ^1.0.1" ,
44
+ "npm-run-all" : " ^4.1.5" ,
41
45
"typescript" : " ^4.5.4" ,
42
46
"yup" : " ^0.32.11"
43
47
},
Original file line number Diff line number Diff line change 3
3
"compilerOptions" : {
4
4
"incremental" : true ,
5
5
"declaration" : true ,
6
- "outDir" : " ./dist" ,
6
+ "noEmit" : false ,
7
+ "rootDir" : " src" ,
8
+ "outDir" : " dist" ,
7
9
"baseUrl" : " ." ,
8
10
"paths" : {}
9
11
},
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