Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

config: Added a tsconfig.base.json for subgraph's project#224

Merged
evaporei merged 3 commits intographprotocol:masterfrom
streamingfast:feature/subgraph-tsconfig-base
Oct 26, 2021
Merged

config: Added a tsconfig.base.json for subgraph's project#224
evaporei merged 3 commits intographprotocol:masterfrom
streamingfast:feature/subgraph-tsconfig-base

Conversation

@maoueh
Copy link
Copy Markdown
Contributor

@maoueh maoueh commented Oct 26, 2021

Subgraph projects can now reference this tsconfig.base.json to gain proper types detection within VSCode (any editor in fact with a properly configured TypeScript language server)

Subgraph gains propery types definition with by specifying tsconfig.json at the root of their project with the following content: (mono repo might need to tweak that a bit)

{
    "extends": "@graphprotocol/graph-ts/types/tsconfig.base.json",
    "include": ["src"],
}

See graphprotocol/example-subgraph#32

At the same time, fixed graph-ts project tsconfig referencing graph that is not present anymore.

Subgraph projects can now reference this `tsconfig.base.json` to gain proper types detection within VSCode (any editor in fact with a properly configured TypeScript language server)

Subgraph gains propery types definition with by specifying `tsconfig.json` at the root of their project with the following content: (mono repo might need to tweak that a bit)

```
{
    "extends": "@graphprotocol/graph-ts/types/tsconfig.base.json",
    "include": ["src"],
}
```

See graphprotocol/example-subgraph#32

At the same time, fixed `graph-ts` project tsconfig referencing `graph` that is not present anymore.
@evaporei evaporei merged commit 16c99be into graphprotocol:master Oct 26, 2021
@maoueh maoueh deleted the feature/subgraph-tsconfig-base branch October 26, 2021 20:40
@evaporei evaporei mentioned this pull request Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants