Skip to content

Commit

Permalink
fix: Upgrade to Turborepo v2
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Jun 6, 2024
1 parent 159774a commit 944faaf
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 34 deletions.
2 changes: 1 addition & 1 deletion apps/backend/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat && npm install -g turbo

COPY . .

RUN turbo prune --scope=@vrite/api --docker
RUN turbo prune @vrite/api --docker


FROM base as installer
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat && npm install -g turbo

COPY . .

RUN turbo prune --scope=@vrite/app --docker
RUN turbo prune @vrite/app --docker


FROM base as installer
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat && npm install -g turbo

COPY . .

RUN turbo prune --scope=@vrite/assets --docker
RUN turbo prune @vrite/assets --docker


FROM base as installer
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/collaboration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat && npm install -g turbo

COPY . .

RUN turbo prune --scope=@vrite/collaboration --docker
RUN turbo prune @vrite/collaboration --docker


FROM base as installer
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/usage-reporting/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat && npm install -g turbo

COPY . .

RUN turbo prune --scope=@vrite/usage-reporting --docker
RUN turbo prune @vrite/usage-reporting --docker


FROM base as installer
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint-plugin-solid": "^0.12.1",
"prettier": "^3.0.2",
"prettier-plugin-astro": "^0.11.0",
"turbo": "^1.10.11",
"turbo": "^2.0.1",
"typescript": "^5.1.6"
},
"engines": {
Expand All @@ -33,5 +33,5 @@
"dependencies": {
"dotenv-cli": "^7.2.1"
},
"packageManager": "pnpm@8.8.0"
"packageManager": "pnpm@8.4.0"
}
45 changes: 22 additions & 23 deletions pnpm-lock.yaml

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

14 changes: 10 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"globalDependencies": [
"**/.env.*local"
],
"tasks": {
"build": {
"dependsOn": ["^build"],
"dependsOn": [
"^build"
],
"cache": false
},
"@vrite/app#build": {
"dependsOn": ["@vrite/web#build"]
"dependsOn": [
"@vrite/web#build"
]
},
"lint": {
"outputs": []
Expand Down

0 comments on commit 944faaf

Please sign in to comment.