Skip to content

Commit

Permalink
chore(subgraph): configure maci-subgraph to be a public npm package (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 authored Jul 30, 2024
1 parent 50274ff commit 03f7713
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
4 changes: 1 addition & 3 deletions coordinator/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,4 @@ SUBGRAPH_PROVIDER_URL=https://api.studio.thegraph.com/deploy/
SUBGRAPH_DEPLOY_KEY=

# Subgraph project folder
SUBGRAPH_FOLDER=../subgraph


SUBGRAPH_FOLDER=./node_modules/maci-subgraph
1 change: 1 addition & 0 deletions coordinator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"maci-cli": "2.0.0-alpha",
"maci-contracts": "2.0.0-alpha",
"maci-domainobjs": "2.0.0-alpha",
"maci-subgraph": "2.0.0-alpha",
"mustache": "^4.2.0",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
"name": "maci-subgraph",
"version": "2.0.0-alpha",
"description": "A subgraph to index data from MACI protocol to serve as data layer for frontend integration",
"private": true,
"private": false,
"files": [
"build",
"schemas",
"config",
"templates",
"README.md"
],
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions subgraph/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extend": "./node_modules/@graphprotocol/graph-ts/tsconfig.json",
"compilerOptions": {
"outDir": "./build",
"strictNullChecks": true,
"skipLibCheck": true,
"typeRoots": ["./src/@types/global.d.ts"]
},
"include": ["./src", "./generated"]
}

0 comments on commit 03f7713

Please sign in to comment.