diff --git a/.github/actions/install-global-turbo/action.yml b/.github/actions/install-global-turbo/action.yml index 0002381aac3d6..43dd99a8324a9 100644 --- a/.github/actions/install-global-turbo/action.yml +++ b/.github/actions/install-global-turbo/action.yml @@ -6,8 +6,7 @@ runs: steps: - name: Install Turbo globally shell: bash - # Until we are migrate ourselves to 2.0 we pin to the latest 1.x release run: | - VERSION=$(npm view turbo --json | jq -r '.versions | last') + VERSION=$(npm view turbo --json | jq -r '.versions | map(select(test("2."))) | last') echo "Latest published version: $VERSION" - npm i -g turbo@1.13.4-canary.5 + npm i -g turbo@$VERSION diff --git a/.github/workflows/test-js-packages.yml b/.github/workflows/test-js-packages.yml index 86fd9c432aab8..a7aa794344292 100644 --- a/.github/workflows/test-js-packages.yml +++ b/.github/workflows/test-js-packages.yml @@ -103,4 +103,4 @@ jobs: # to run when turbo core changes. This job (`js_packages`) does not run on turborpeo core # changes, and we don't want to enable that beahvior for _all_ our JS packages. run: | - TURBO_API= turbo run check-types test --filter=docs --filter="!turborepo-repository" --filter={./packages/*}...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] --color --env-mode=strict + TURBO_API= turbo run check-types test --filter="!turborepo-repository" --filter={./packages/*}...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] --color --env-mode=strict diff --git a/cli/turbo.json b/cli/turbo.json index 7cf7189beb640..2d13abd706d82 100644 --- a/cli/turbo.json +++ b/cli/turbo.json @@ -1,7 +1,7 @@ { "$schema": "../docs/public/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { // A task that is used for detecting if any turborepo Rust sources change "rust-src": { "env": ["RUNNER_OS"], diff --git a/examples/turbo.json b/examples/turbo.json index ff19f8b6ee4c0..e6ca924fb4759 100644 --- a/examples/turbo.json +++ b/examples/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { // This needs to exist because upstream packages depend on it and // it's not defined at the root level. "topo": {}, diff --git a/packages/create-turbo/turbo.json b/packages/create-turbo/turbo.json index 6466b2d9e7ea9..22ccfa04e063e 100644 --- a/packages/create-turbo/turbo.json +++ b/packages/create-turbo/turbo.json @@ -1,7 +1,7 @@ { "$schema": "../../docs/public/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { "test": { "dependsOn": ["build"] }, diff --git a/packages/eslint-plugin-turbo/turbo.json b/packages/eslint-plugin-turbo/turbo.json index f86a4db574b2e..2938382974b71 100644 --- a/packages/eslint-plugin-turbo/turbo.json +++ b/packages/eslint-plugin-turbo/turbo.json @@ -1,7 +1,7 @@ { "$schema": "../../docs/public/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { "test": { "dependsOn": ["build"] } diff --git a/packages/turbo-benchmark/turbo.json b/packages/turbo-benchmark/turbo.json index d0248a708c01a..2f5df8e2aa9e5 100644 --- a/packages/turbo-benchmark/turbo.json +++ b/packages/turbo-benchmark/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "lint:prettier": { "inputs": ["src/**/*"] } diff --git a/packages/turbo-exe-stub/turbo.json b/packages/turbo-exe-stub/turbo.json index 5fbfcc84cacde..20b11c5938232 100644 --- a/packages/turbo-exe-stub/turbo.json +++ b/packages/turbo-exe-stub/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "build": { "cache": false } diff --git a/packages/turbo-gen/turbo.json b/packages/turbo-gen/turbo.json index 6466b2d9e7ea9..22ccfa04e063e 100644 --- a/packages/turbo-gen/turbo.json +++ b/packages/turbo-gen/turbo.json @@ -1,7 +1,7 @@ { "$schema": "../../docs/public/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { "test": { "dependsOn": ["build"] }, diff --git a/packages/turbo-repository/turbo.json b/packages/turbo-repository/turbo.json index db457aba7bbee..73d364c08f778 100644 --- a/packages/turbo-repository/turbo.json +++ b/packages/turbo-repository/turbo.json @@ -3,7 +3,7 @@ "extends": [ "//" ], - "pipeline": { + "tasks": { "build": { "dependsOn": [ "cli#rust-src" diff --git a/packages/turbo-types/turbo.json b/packages/turbo-types/turbo.json index 3a4da0f28fff3..7dbaa14d226a9 100644 --- a/packages/turbo-types/turbo.json +++ b/packages/turbo-types/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { // This task exists so the docs workspace // can watch this workspace for file changes. "topo": {} diff --git a/packages/turbo-workspaces/turbo.json b/packages/turbo-workspaces/turbo.json index fc0bd3b1503c2..786b47bc5d41d 100644 --- a/packages/turbo-workspaces/turbo.json +++ b/packages/turbo-workspaces/turbo.json @@ -1,7 +1,7 @@ { "$schema": "../../docs/public/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { "build": { "dependsOn": ["^build"] } diff --git a/turbo.json b/turbo.json index 53e5d7b9173e1..d548585bac2d0 100644 --- a/turbo.json +++ b/turbo.json @@ -23,7 +23,7 @@ // This is probably overkill, but we do things per-platform often enough that we should segment // everything by OS and RUNNER_OS. This will segment between GH actions and everything else for now. "globalEnv": ["OS", "RUNNER_OS"], - "pipeline": { + "tasks": { "test": { "outputs": ["coverage/**/*"], diff --git a/turborepo-tests/example-basic/turbo.json b/turborepo-tests/example-basic/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-basic/turbo.json +++ b/turborepo-tests/example-basic/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-design-system/turbo.json b/turborepo-tests/example-design-system/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-design-system/turbo.json +++ b/turborepo-tests/example-design-system/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-kitchen-sink/turbo.json b/turborepo-tests/example-kitchen-sink/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-kitchen-sink/turbo.json +++ b/turborepo-tests/example-kitchen-sink/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-non-monorepo/turbo.json b/turborepo-tests/example-non-monorepo/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-non-monorepo/turbo.json +++ b/turborepo-tests/example-non-monorepo/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-berry/turbo.json b/turborepo-tests/example-with-berry/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-berry/turbo.json +++ b/turborepo-tests/example-with-berry/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-changesets/turbo.json b/turborepo-tests/example-with-changesets/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-changesets/turbo.json +++ b/turborepo-tests/example-with-changesets/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-npm/turbo.json b/turborepo-tests/example-with-npm/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-npm/turbo.json +++ b/turborepo-tests/example-with-npm/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-react-native-web/turbo.json b/turborepo-tests/example-with-react-native-web/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-react-native-web/turbo.json +++ b/turborepo-tests/example-with-react-native-web/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-rollup/turbo.json b/turborepo-tests/example-with-rollup/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-rollup/turbo.json +++ b/turborepo-tests/example-with-rollup/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-svelte/turbo.json b/turborepo-tests/example-with-svelte/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-svelte/turbo.json +++ b/turborepo-tests/example-with-svelte/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-tailwind/turbo.json b/turborepo-tests/example-with-tailwind/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-tailwind/turbo.json +++ b/turborepo-tests/example-with-tailwind/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-vite/turbo.json b/turborepo-tests/example-with-vite/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-vite/turbo.json +++ b/turborepo-tests/example-with-vite/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/example-with-yarn/turbo.json b/turborepo-tests/example-with-yarn/turbo.json index 7c806113370e3..f6527d7b7dfca 100644 --- a/turborepo-tests/example-with-yarn/turbo.json +++ b/turborepo-tests/example-with-yarn/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { "test": { "outputs": [] } diff --git a/turborepo-tests/helpers/turbo.json b/turborepo-tests/helpers/turbo.json index 743e696bec9c7..8d0c92396cf83 100644 --- a/turborepo-tests/helpers/turbo.json +++ b/turborepo-tests/helpers/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { // This needs to exist because upstream packages depend on it and // it's not defined at the root level. "topo": {} diff --git a/turborepo-tests/integration/turbo.json b/turborepo-tests/integration/turbo.json index 1a559d31500ea..21b375ffc8e13 100644 --- a/turborepo-tests/integration/turbo.json +++ b/turborepo-tests/integration/turbo.json @@ -1,6 +1,6 @@ { "extends": ["//"], - "pipeline": { + "tasks": { // This is a synthetic tasks that lets us pull in other workspaces as dependencies // So changes in internal workspaces that we depend on, will trigger this task. "topo": {