Skip to content

Commit

Permalink
build: run codegen before dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed Feb 23, 2024
1 parent e2b4005 commit 5a2c10b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"scripts": {
"codegen": "checkpoint generate",
"lint": "eslint src/ test/ --ext .ts --fix",
"prebuild": "yarn codegen",
"build": "tsc",
"dev": "nodemon src/index.ts",
"start": "node dist/src/index.js",
Expand Down
1 change: 0 additions & 1 deletion apps/subgraph-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"version": "0.0.21",
"scripts": {
"codegen": "graph codegen",
"prebuild": "yarn codegen",
"build": "graph build",
"dev": "yarn deploy-local",
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ snapshot-labs/sx-subgraph",
Expand Down
10 changes: 4 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"]
"dependsOn": ["^build", "codegen"]
},
"lint": {},
"typecheck": {
Expand All @@ -14,11 +14,9 @@
},
"dev": {
"cache": false,
"persistent": true
"persistent": true,
"dependsOn": ["codegen"]
},
"dev:full": {
"cache": false,
"persistent": true
}
"codegen": {}
}
}

0 comments on commit 5a2c10b

Please sign in to comment.