Skip to content

Commit 0da0b74

Browse files
committed
install gatsby-plugin-typegen
1 parent 0d9eb48 commit 0da0b74

File tree

4 files changed

+749
-98
lines changed

4 files changed

+749
-98
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ yarn-error.log
7171

7272
# Swap files
7373
*.swp
74+
75+
# Codegen stuff
76+
src/__generated__/

gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,11 @@ module.exports = {
115115
],
116116
},
117117
},
118+
{
119+
resolve: "gatsby-plugin-typegen",
120+
options: {
121+
outputPath: "src/__generated__/gatsby-types.d.ts",
122+
},
123+
},
118124
],
119125
}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"clean": "gatsby clean",
1212
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
1313
},
14+
"resolutions": {
15+
"graphql": "15.5.2"
16+
},
1417
"dependencies": {
1518
"@graphql-tools/schema": "8.2.0",
1619
"@weknow/gatsby-remark-twitter": "0.2.3",
@@ -23,6 +26,7 @@
2326
"gatsby-plugin-google-analytics": "3.13.0",
2427
"gatsby-plugin-less": "5.13.0",
2528
"gatsby-plugin-react-helmet": "4.13.0",
29+
"gatsby-plugin-typegen": "^2.2.4",
2630
"gatsby-plugin-webfonts": "2.1.1",
2731
"gatsby-source-filesystem": "3.13.0",
2832
"gatsby-transformer-remark": "4.10.0",

0 commit comments

Comments
 (0)