Skip to content

Commit 67440ee

Browse files
authored
Merge pull request #773 from graphprotocol/otavio/release-0-23-1
0.23.1 - tsconfig.json for graph init's scaffold
2 parents 338aef8 + 76030e6 commit 67440ee

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

examples/basic-event-handlers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"deploy-test": "../../bin/graph deploy test/basic-event-handlers --version-label v0.0.1 --ipfs http://localhost:15001 --node http://127.0.0.1:18020"
1010
},
1111
"devDependencies": {
12-
"@graphprotocol/graph-ts": "0.22.1",
12+
"@graphprotocol/graph-ts": "0.23.1",
1313
"apollo-fetch": "^0.7.0"
1414
},
1515
"dependencies": {

examples/basic-event-handlers/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@graphprotocol/graph-ts@0.22.1":
6-
version "0.22.1"
7-
resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.22.1.tgz#3189b2495b33497280f617316cce68074d48e236"
8-
integrity sha512-T5xrHN0tHJwd7ZnSTLhk5hAL3rCIp6rJ40kBCrETnv1mfK9hVyoojJK6VtBQXTbLsYtKe4SYjjD0cdOsAR9QiA==
5+
"@graphprotocol/graph-ts@0.23.1":
6+
version "0.23.1"
7+
resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.23.1.tgz#76e595d26ec5672f3778b1d3830e4640a57aec1b"
8+
integrity sha512-pipofvN1LlwLOXrS7IWy8hSBFZzVyVHdLXDpQskl9nKqdbb3chelj4JoVEzCl7klvomDpP84ngLpW17fBh5vww==
99
dependencies:
1010
assemblyscript "0.19.10"
1111

examples/example-subgraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build-wast": "../../bin/graph build -t wast subgraph.yaml"
88
},
99
"devDependencies": {
10-
"@graphprotocol/graph-ts": "0.22.1"
10+
"@graphprotocol/graph-ts": "0.23.1"
1111
},
1212
"resolutions": {
1313
"assemblyscript": "0.19.10"

examples/example-subgraph/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@graphprotocol/graph-ts@0.22.1":
6-
version "0.22.1"
7-
resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.22.1.tgz#3189b2495b33497280f617316cce68074d48e236"
8-
integrity sha512-T5xrHN0tHJwd7ZnSTLhk5hAL3rCIp6rJ40kBCrETnv1mfK9hVyoojJK6VtBQXTbLsYtKe4SYjjD0cdOsAR9QiA==
5+
"@graphprotocol/graph-ts@0.23.1":
6+
version "0.23.1"
7+
resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.23.1.tgz#76e595d26ec5672f3778b1d3830e4640a57aec1b"
8+
integrity sha512-pipofvN1LlwLOXrS7IWy8hSBFZzVyVHdLXDpQskl9nKqdbb3chelj4JoVEzCl7klvomDpP84ngLpW17fBh5vww==
99
dependencies:
1010
assemblyscript "0.19.10"
1111

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/graph-cli",
3-
"version": "0.23.0",
3+
"version": "0.23.1",
44
"description": "CLI for building for and deploying to The Graph",
55
"dependencies": {
66
"assemblyscript": "0.19.10",

src/scaffold.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const generatePackageJson = ({ subgraphName, node }) =>
4949
},
5050
dependencies: {
5151
'@graphprotocol/graph-cli': graphCliVersion,
52-
'@graphprotocol/graph-ts': `0.22.1`,
52+
'@graphprotocol/graph-ts': `0.23.1`,
5353
},
5454
}),
5555
{ parser: 'json' },
@@ -152,6 +152,14 @@ const generateSchema = ({ abi, indexEvents }) => {
152152
)
153153
}
154154

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+
155163
// Mapping
156164

157165
const generateTupleFieldAssignments = ({ keyPath, index, component }) => {
@@ -310,6 +318,7 @@ const generateScaffold = async (
310318
'package.json': packageJson,
311319
'subgraph.yaml': manifest,
312320
'schema.graphql': schema,
321+
'tsconfig.json': tsConfig,
313322
src: { 'mapping.ts': mapping },
314323
abis: {
315324
[`${contractName}.json`]: prettier.format(JSON.stringify(abi.data), {

0 commit comments

Comments
 (0)