Skip to content

Commit fa8cc0d

Browse files
authored
Upgrade to turbo v2 (#7076)
* Upgrade to turbo v2 * fix tests * rebase
1 parent eec2a70 commit fa8cc0d

File tree

24 files changed

+58
-59
lines changed

24 files changed

+58
-59
lines changed

fixtures/additional-modules/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

fixtures/nodejs-als-app/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

fixtures/nodejs-hybrid-app/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

fixtures/pages-plugin-example/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

fixtures/pages-proxy-app/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

fixtures/pages-ws-app/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

lint-turbo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for (const p of paths) {
2626
console.log("Failed to read turbo.json for", pkg.name);
2727
process.exit(1);
2828
}
29-
const buildOutputs = turboConfig.pipeline.build.outputs;
29+
const buildOutputs = turboConfig.tasks.build.outputs;
3030
assert(buildOutputs.length > 0);
3131
}
3232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"prettier-plugin-packagejson": "^2.2.18",
4949
"rimraf": "^5.0.1",
5050
"tree-kill": "^1.2.2",
51-
"turbo": "^1.13.4",
51+
"turbo": "^2.2.3",
5252
"typescript": "^5.5.2",
5353
"vite": "^5.0.12",
5454
"vitest": "catalog:default"

packages/cli/turbo.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
5-
"pipeline": {}
4+
"tasks": {}
65
}

packages/create-cloudflare/turbo.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"env": [
77
"TEST_PM",
@@ -23,7 +23,8 @@
2323
"E2E_PROJECT_PATH",
2424
"E2E_RETRIES",
2525
"E2E_NO_DEPLOY",
26-
"E2E_EXPERIMENTAL"
26+
"E2E_EXPERIMENTAL",
27+
"TEST_PM"
2728
],
2829
"dependsOn": ["build"]
2930
}

packages/format-errors/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

packages/kv-asset-handler/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

packages/miniflare/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"inputs": ["src/**", "scripts/**", "types/**", "*.mjs", "*.js", "*.json"],
77
"outputs": ["dist/**", "bootstrap.js", "worker-metafiles/**"],

packages/prerelease-registry/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

packages/turbo-r2-archive/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"],
77
"inputs": ["src/**"]

packages/vitest-pool-workers/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"]
77
}

packages/workers-editor-shared/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"],
77
"env": ["NODE_ENV"]

packages/workers-playground/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"outputs": ["dist/**"],
77
"env": ["NODE_ENV", "VITE_PLAYGROUND_PREVIEW", "VITE_PLAYGROUND_ROOT"]

packages/workers-shared/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"inputs": [
77
"asset-worker/**",

packages/workflows-shared/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"inputs": ["src/**", "*.js", "*.ts", "*.json"],
77
"outputs": ["dist/**"]

packages/wrangler/turbo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
"pipeline": {
4+
"tasks": {
55
"build": {
66
"inputs": [
7-
"!**/__tests__/**",
8-
"!**/.wrangler/**",
7+
"!*/**/__tests__/**",
8+
"!*/**/.wrangler/**",
99
"bin/**",
1010
"src/**",
1111
"scripts/**",
@@ -61,7 +61,7 @@
6161
]
6262
},
6363
"test:ci": {
64-
"inputs": ["!**/.wrangler/**", "**/__tests__/**"],
64+
"inputs": ["!*/**/.wrangler/**", "**/__tests__/**"],
6565
"dependsOn": ["build"]
6666
},
6767
"test:e2e": {

pnpm-lock.yaml

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/turbo.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"$schema": "http://turbo.build/schema.json",
33
"extends": ["//"],
4-
5-
"pipeline": {
4+
"tasks": {
65
"test:ci": {
76
"inputs": ["../packages/*/package.json"],
87
"dependsOn": ["build"]

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"signature": true
55
},
66
"globalEnv": ["CI_OS", "NODE_VERSION", "VITEST"],
7-
"pipeline": {
7+
"tasks": {
88
"dev": {
99
"persistent": true,
1010
"cache": false

0 commit comments

Comments
 (0)