Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

chore: update turbo (#1503)

bautistaaa1c42cae5b6e0
diff --git a/apps/admin/turbo.json b/apps/admin/turbo.json
index 40214004..5e29f88f 100644
--- a/apps/admin/turbo.json
+++ b/apps/admin/turbo.json
@@ -1,6 +1,6 @@
{
"extends": ["//"],
- "pipeline": {
+ "tasks": {
"start": {
"cache": false
}
diff --git a/apps/web/turbo.json b/apps/web/turbo.json
index 13fdbf72..3b04be87 100644
--- a/apps/web/turbo.json
+++ b/apps/web/turbo.json
@@ -1,6 +1,6 @@
{
"extends": ["//"],
- "pipeline": {
+ "tasks": {
"start": {
"cache": false
},
diff --git a/package.json b/package.json
index 5dd3ef31..6e0b6708 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,7 @@
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.9",
"tsx": "^3.14.0",
- "turbo": "^1.13.0",
+ "turbo": "^2.0.12",
"type-testing": "0.2.0",
"typescript": "^5.3.3",
"vitest": "^0.34.6"
diff --git a/packages/db/turbo.json b/packages/db/turbo.json
index 79ef807c..0b2918b1 100644
--- a/packages/db/turbo.json
+++ b/packages/db/turbo.json
@@ -1,9 +1,9 @@
{
"extends": ["//"],
- "pipeline": {
+ "tasks": {
"db:generate": {
"outputs": ["../../node_modules/.prisma/**"],
- "outputMode": "new-only"
+ "outputLogs": "new-only"
},
"db:deploy": {
"cache": false
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 831b3cc3..aa2da67e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -48,8 +48,8 @@ importers:
specifier: ^3.14.0
version: 3.14.0
turbo:
- specifier: ^1.13.0
- version: 1.13.0
+ specifier: ^2.0.12
+ version: 2.0.12
type-testing:
specifier: 0.2.0
version: 0.2.0
@@ -853,7 +853,7 @@ importers:
dependencies:
'@next/eslint-plugin-next':
specifier: canary
- version: 15.0.0-canary.103
+ version: 15.0.0-canary.106
'@repo/tsconfig':
specifier: workspace:*
version: link:../config-typescript
@@ -865,13 +865,13 @@ importers:
'@vercel/style-guide':
specifier: ^4.0.2
eslint:
specifier: ^8.45.0
version: 8.45.0
eslint-config-turbo:
- specifier: ^1.10.12
- version: 1.10.12([email protected])
+ specifier: 2.0.12
+ version: 2.0.12([email protected])
typescript:
specifier: ^5.3.3
version: 5.3.3
@@ -1942,8 +1942,8 @@ packages:
resolution: {integrity: sha512-YJqyq6vk39JQfvaNtN83t/p5Jy45+bazRL+V4QI8FPd3FBqFYMEsULiwRLgSJMgFqkk4t4JbeZurz+gILEAFpA==}
- resolution: {integrity: sha512-0k+NTwLbjYEVrjCHZgbD0sypI2u0pnHOiPKKS5uOJmi43OLyVyqx8HlmBKHORmQue6lh9Aut749MO4+c9+B6WA==}
+ resolution: {integrity: sha512-0+uuuZVv3qL8lpVWpt9iq6805fqufHUw20FOHQiAZkWRw0ohnoc7HwniDv30NJ3wHaPmtbHheeVtMZb3T5toBg==}
resolution: {integrity: sha512-/9zVxJ+K9lrzSGli1///ujyRfon/ZneeZ+v4ptpiPoOU+GKZnm8Wj8ELWU1Pm7GHltYRBklmXMTUqM/DqQ99FQ==}
@@ -4683,8 +4683,8 @@ packages:
peerDependencies:
eslint: '>=7.0.0'
- resolution: {integrity: sha512-z3jfh+D7UGYlzMWGh+Kqz++hf8LOE96q3o5R8X4HTjmxaBWlLAWG+0Ounr38h+JLR2TJno0hU9zfzoPNkR9BdA==}
+ resolution: {integrity: sha512-3PUzoyeJi2SjsTSjfWgTUIHK7kOqsapDEaOT7sCjFnZXvuhYLKxW37lysjq7+55abGGm0yQTXxNFLjrQKUORag==}
peerDependencies:
eslint: '>6.6.0'
@@ -4796,8 +4796,8 @@ packages:
resolution: {integrity: sha512-xRmVi7Zx44lOBuYqG8vzTXuL6IdGOeF9nHX17bjJ8+VE6fsxpdGem0/SBTmAwgYMKYB1WBkqRJVQ+n8GK041pA==}
- resolution: {integrity: sha512-uNbdj+ohZaYo4tFJ6dStRXu2FZigwulR1b3URPXe0Q8YaE7thuekKNP+54CHtZPH9Zey9dmDx5btAQl9mfzGOw==}
+ resolution: {integrity: sha512-vXWKer7F0RPTcVy1B+hFTEK4mlEOpouB8MCAFD3WW4C6t98wvuDCsIPjxIldpxg7CnwmRxALpNWgNVkU2LVVEQ==}
peerDependencies:
eslint: '>6.6.0'
@@ -7574,38 +7574,38 @@ packages:
resolution: {integrity: sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==}
hasBin: true
- resolution: {integrity: sha512-ctHeJXtQgBcgxnCXwrJTGiq57HtwF7zWz5NTuSv//5yeU01BtQIt62ArKfjudOhRefWJbX3Z5srn88XTb9hfww==}
+ resolution: {integrity: sha512-NAgfgbXxX/JScWQmmQnGbPuFZq7LIswHfcMk5JwyBXQM/xmklNOxxac7MnGGIOf19Z2f6S3qHy17VIj0SeGfnA==}
cpu: [x64]
os: [darwin]
- resolution: {integrity: sha512-/Q9/pNFkF9w83tNxwMpgapwLYdQ12p8mpty2YQRoUiS9ClWkcqe136jR0mtuMqzlNlpREOFZaoyIthjt6Sdo0g==}
+ resolution: {integrity: sha512-cP02uer5KSJ+fXL+OfRRk5hnVjV0c60hxDgNcJxrZpfhun7HHoKDDR7w2xhQntiA45aC6ZZEXRqMKpj6GAmKbg==}
cpu: [arm64]
os: [darwin]
- resolution: {integrity: sha512-hgbT7o020BGV4L7Sd8hhFTd5zVKPKxbsr0dPfel/9NkdTmptz2aGZ0Vb2MAa18SY3XaCQpDxmdYuOzvvRpo5ZA==}
+ resolution: {integrity: sha512-+mQgGfg1eq5qF+wenK/FKJaNMNAo5DQLC4htQy+8osW+fx6U+8+6UlPQPaycAWDEqwOI7NwuqkeHfkEQLQUTyQ==}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-WK01i2wDZARrV+HEs495A3hNeGMwQR5suYk7G+ceqqW7b+dOTlQdvUjnI3sg7wAnZPgjafFs/hoBaZdJjVa/nw==}
+ resolution: {integrity: sha512-KFyEZDXfPU1DK4zimxdCcqAcK7IIttX4mfsgB7NsSEOmH0dhHOih/YFYiyEDC1lTRx0C2RlzQ0Kjjdz48AN5Eg==}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-hJgSZJZwlWHNwLEthaqJqJWGm4NqF5X/I7vE0sPE4i/jeDl8f0n1hcOkgJkJiNXVxhj+qy/9+4dzbPLKT9imaQ==}
+ resolution: {integrity: sha512-kJj4KCkZTkDTDCqsSw1m1dbO4WeoQq1mYUm/thXOH0OkeqYbSMt0EyoTcJOgKUDsrMnzZD2gPfYrlYHtV69lVA==}
cpu: [x64]
os: [win32]
- resolution: {integrity: sha512-L/ErxYoXeq8tmjU/AIGicC9VyBN1zdYw8JlM4yPmMI0pJdY8E4GaYK1IiIazqq7M72lmQhU/WW7fV9FqEktwrw==}
+ resolution: {integrity: sha512-TY3ROxguDilN2olCwcZMaePdW01Xhma0pZU7bNhsQEqca9RGAmsZBuzfGnTMcWPmv4tpnb/PlX1hrt1Hod/44Q==}
cpu: [arm64]
os: [win32]
- resolution: {integrity: sha512-r02GtNmkOPcQvUzVE6lg474QVLyU02r3yh3lUGqrFHf5h5ZEjgDGWILsAUqplVqjri1Y/oOkTssks4CObTAaiw==}
+ resolution: {integrity: sha512-8s2KwqjwQj7z8Z53SUZSKVkQOZ2/Sl4D2F440oaBY/k2lGju60dW6srEpnn8/RIDeICZmQn3pQHF79Jfnc5Skw==}
hasBin: true
@@ -9049,7 +9049,7 @@ snapshots:
dependencies:
glob: 7.1.7
dependencies:
fast-glob: 3.3.1
@@ -10899,7 +10899,7 @@ snapshots:
react: 18.2.0
dependencies:
'@babel/core': 7.22.10
'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])
@@ -10921,7 +10921,7 @@ snapshots:
eslint-plugin-unicorn: 43.0.2([email protected])
prettier-plugin-packagejson: 2.4.3([email protected])
optionalDependencies:
- '@next/eslint-plugin-next': 15.0.0-canary.103
+ '@next/eslint-plugin-next': 15.0.0-canary.106
eslint: 8.45.0
prettier: 3.1.1
typescript: 5.3.3
@@ -12212,10 +12212,10 @@ snapshots:
dependencies:
eslint: 8.45.0
dependencies:
eslint: 8.45.0
- eslint-plugin-turbo: 1.10.12([email protected])
+ eslint-plugin-turbo: 2.0.12([email protected])
dependencies:
@@ -12516,7 +12516,7 @@ snapshots:
'@microsoft/tsdoc': 0.14.2
'@microsoft/tsdoc-config': 0.16.2
dependencies:
dotenv: 16.0.3
eslint: 8.45.0
@@ -15895,32 +15895,32 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optionalDependencies:
- turbo-darwin-64: 1.13.0
- turbo-darwin-arm64: 1.13.0
- turbo-linux-64: 1.13.0
- turbo-linux-arm64: 1.13.0
- turbo-windows-64: 1.13.0
- turbo-windows-arm64: 1.13.0
+ turbo-darwin-64: 2.0.12
+ turbo-darwin-arm64: 2.0.12
+ turbo-linux-64: 2.0.12
+ turbo-linux-arm64: 2.0.12
+ turbo-windows-64: 2.0.12
+ turbo-windows-arm64: 2.0.12
dependencies:
diff --git a/tooling/config-eslint/package.json b/tooling/config-eslint/package.json
index 59329116..bb8ca2ad 100644
--- a/tooling/config-eslint/package.json
+++ b/tooling/config-eslint/package.json
@@ -16,7 +16,7 @@
"@typescript-eslint/parser": "^5.59.1",
"@vercel/style-guide": "^4.0.2",
"eslint": "^8.45.0",
- "eslint-config-turbo": "^1.10.12",
+ "eslint-config-turbo": "2.0.12",
"typescript": "^5.3.3"
},
"devDependencies": {
diff --git a/tooling/scripts/turbo.json b/tooling/scripts/turbo.json
index e40b36c6..b460aefa 100644
--- a/tooling/scripts/turbo.json
+++ b/tooling/scripts/turbo.json
@@ -1,7 +1,11 @@
{
- "extends": ["//"],
- "globalEnv": ["GITHUB_TOKEN"],
- "pipeline": {
+ "extends": [
+ "//"
+ ],
+ "globalEnv": [
+ "GITHUB_TOKEN"
+ ],
+ "tasks": {
"dl-monaco": {
"cache": false
},
diff --git a/turbo.json b/turbo.json
index bd338e4f..e2a4c257 100644
--- a/turbo.json
+++ b/turbo.json
@@ -1,6 +1,6 @@
{
"globalEnv": ["NEXT_PUBLIC_ALGOLIA_APP_ID", "NEXT_PUBLIC_ALGOLIA_API_KEY"],
- "pipeline": {
+ "tasks": {
"build": {
"dependsOn": ["^build", "@repo/db#db:generate"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
@@ -39,45 +39,45 @@
},
"//#format": {
"outputs": ["node_modules/.cache/prettiercache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"format": {
"dependsOn": ["@repo/db#db:generate", "^topo"],
"outputs": ["node_modules/.cache/prettiercache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"//#format:fix": {
"outputs": ["node_modules/.cache/prettiercache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"format:fix": {
"dependsOn": ["@repo/db#db:generate", "^topo"],
"outputs": ["node_modules/.cache/prettiercache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"//#lint": {
"outputs": ["node_modules/.cache/.eslintcache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"lint": {
"dependsOn": ["@repo/db#db:generate", "^topo"],
"outputs": ["node_modules/.cache/.eslintcache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"//#lint:fix": {
"dependsOn": ["@repo/db#db:generate", "^topo"],
"outputs": ["node_modules/.cache/.eslintcache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"lint:fix": {
"dependsOn": ["@repo/db#db:generate", "^topo"],
"outputs": ["node_modules/.cache/.eslintcache"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"typecheck": {
"dependsOn": ["@repo/db#db:generate", "^topo"],
"outputs": ["node_modules/.cache/tsbuildinfo.json"],
- "outputMode": "errors-only"
+ "outputLogs": "errors-only"
},
"clean": {
"cache": false
@@ -88,10 +88,12 @@
"cache": false
},
"test:e2e": {
- "outputs": ["playwright-report/**"]
+ "outputs": ["playwright-report/**"],
+ "env": ["GITHUB_ID", "GITHUB_SECRET", "DATABASE_URL"]
},
"test:e2e:ui": {
- "outputs": ["playwright-report/**"]
+ "outputs": ["playwright-report/**"],
+ "env": ["GITHUB_ID", "GITHUB_SECRET", "DATABASE_URL"]
},
"test:e2e:inspector": {
"outputs": ["playwright-report/**"]