We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1075d2 commit f35885dCopy full SHA for f35885d
src/scaffold.js
@@ -152,6 +152,14 @@ const generateSchema = ({ abi, indexEvents }) => {
152
)
153
}
154
155
+const tsConfig = prettier.format(
156
+ JSON.stringify({
157
+ extends: '@graphprotocol/graph-ts/types/tsconfig.base.json',
158
+ include: ['src'],
159
+ }),
160
+ { parser: 'json' },
161
+)
162
+
163
// Mapping
164
165
const generateTupleFieldAssignments = ({ keyPath, index, component }) => {
@@ -310,6 +318,7 @@ const generateScaffold = async (
310
318
'package.json': packageJson,
311
319
'subgraph.yaml': manifest,
312
320
'schema.graphql': schema,
321
+ 'tsconfig.json': tsConfig,
313
322
src: { 'mapping.ts': mapping },
314
323
abis: {
315
324
[`${contractName}.json`]: prettier.format(JSON.stringify(abi.data), {
0 commit comments