Skip to content

Commit

Permalink
Fix turborepo directory inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
hbriese committed Nov 28, 2023
1 parent ed4b2b1 commit 5b4196a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
- name: 🧪 Test
run: yarn contracts test

- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
limit-access-to-actor: true
limit-access-to-users: hbriese

api:
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions api/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"build": {
"dependsOn": ["prepare"],
"inputs": ["dbschema", "src"],
"inputs": ["dbschema/**", "src/**"],
"outputs": ["dist/**"]
},
"dev": {
Expand All @@ -23,7 +23,7 @@
},
"test": {
"dependsOn": ["prepare"],
"inputs": ["dbschema", "src", "jest.config.ts"]
"inputs": ["dbschema/**", "src/**", "jest.config.ts"]
}
}
}
12 changes: 6 additions & 6 deletions app/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"outputs": [".expo/types/**", "expo-env.d.ts"]
},
"generate:gql": {
"inputs": ["../api/schema.graphql", "codgen.ts", "src"],
"inputs": ["../api/schema.graphql", "codgen.ts", "src/**"],
"outputs": [
"src/gql/api/documents.generated.ts",
"src/gql/api/generated/**",
Expand All @@ -16,12 +16,12 @@
},
"build:web": {
"dependsOn": ["prepare"],
"inputs": ["assets", "public", "src"],
"inputs": ["assets/**", "public/**", "src/**"],
"outputs": ["dist/**"]
},
"deploy:update": {
"dependsOn": ["prepare"],
"inputs": ["assets", "public", "src"],
"inputs": ["assets/**", "public/**", "src/**"],
"outputs": ["dist/**"]
},
"dev": {
Expand All @@ -31,14 +31,14 @@
},
"test": {
"dependsOn": ["prepare", "typecheck", "lint"],
"inputs": ["assets", "src"]
"inputs": ["assets/**", "src/**"]
},
"typecheck": {
"dependsOn": ["prepare"],
"inputs": ["assets", "src"]
"inputs": ["assets/**", "src/**"]
},
"lint": {
"inputs": ["assets", "src"]
"inputs": ["assets/**", "src/**"]
}
}
}
4 changes: 2 additions & 2 deletions contracts/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pipeline": {
"build": {
"dependsOn": ["chains#build"],
"inputs": ["contracts", "config.ts", "hardhat.config.ts"],
"inputs": ["contracts/**", "config.ts", "hardhat.config.ts"],
"outputs": [
"abi/**",
"artifacts-zk/**",
Expand All @@ -18,7 +18,7 @@
},
"test": {
"dependsOn": ["build", "lib#build", "typecheck"],
"inputs": ["test/**/*.ts"]
"inputs": ["test/**"]
},
"deploy:account-implementation": {
"dependsOn": ["build"]
Expand Down
2 changes: 1 addition & 1 deletion packages/chains/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pipeline": {
"build": {
"dependsOn": ["^build"],
"inputs": ["src"],
"inputs": ["src/**"],
"outputs": ["dist/**"]
},
"dev": {
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pipeline": {
"build": {
"dependsOn": ["^build", "contracts#build"],
"inputs": ["src"],
"inputs": ["src/**"],
"outputs": ["dist/**"]
},
"dev": {
Expand All @@ -13,7 +13,7 @@
},
"test": {
"dependsOn": ["build"],
"inputs": ["src/**/*.ts"]
"inputs": ["src/**"]
}
}
}

0 comments on commit 5b4196a

Please sign in to comment.