Skip to content

Commit

Permalink
Upgrade to Turborepo v2 (#443)
Browse files Browse the repository at this point in the history
- Use explicit version instead of "latest" as suggested by codemod
- Change workflows to use pnpm version specified under `packageManager`
- Replace `pipeline` key with `tasks` in `turbo.json` files
- Remove `globalDependencies` since we do not build with `.env` files
- Remove package-specific outputs from root configuration
  • Loading branch information
taesungh authored Dec 11, 2024
1 parent 00975fa commit 1d1ff19
Show file tree
Hide file tree
Showing 7 changed files with 7,534 additions and 6,038 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ jobs:
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
uses: pnpm/action-setup@v4
# pnpm version will be determined by `packageManager` in `package.json`

- name: Set up Node
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion apps/api/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"inputs": ["requirements.txt"],
"outputs": ["lib/**"]
Expand Down
12 changes: 6 additions & 6 deletions apps/sanity/turbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["dist/**"]
}
}
"extends": ["//"],
"tasks": {
"build": {
"outputs": ["dist/**"]
}
}
}
2 changes: 1 addition & 1 deletion apps/site/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"env": ["NEXT_PUBLIC_SANITY_*"],
"inputs": [
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"tsconfig": "workspace:*",
"turbo": "latest"
"turbo": "^2.3.3"
},
"packageManager": "pnpm@8.6.10",
"packageManager": "pnpm@9.15.0",
"name": "irvinehacks-site-2024"
}
Loading

0 comments on commit 1d1ff19

Please sign in to comment.