Skip to content

Commit

Permalink
chore: migrate to 2.0 (vercel#8232)
Browse files Browse the repository at this point in the history
### Description

Migrate our own configs to use turbo 2.

### Testing Instructions

CI
  • Loading branch information
chris-olszewski authored May 28, 2024
1 parent 04a1c3c commit 50ad7f3
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 30 deletions.
5 changes: 2 additions & 3 deletions .github/actions/install-global-turbo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/test-js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion cli/turbo.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion examples/turbo.json
Original file line number Diff line number Diff line change
@@ -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": {},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-turbo/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../docs/public/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"dependsOn": ["build"]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-turbo/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../docs/public/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"dependsOn": ["build"]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo-benchmark/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"lint:prettier": {
"inputs": ["src/**/*"]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo-exe-stub/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"cache": false
}
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo-gen/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../docs/public/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"dependsOn": ["build"]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo-repository/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": [
"//"
],
"pipeline": {
"tasks": {
"build": {
"dependsOn": [
"cli#rust-src"
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo-types/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
// This task exists so the docs workspace
// can watch this workspace for file changes.
"topo": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo-workspaces/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../docs/public/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"]
}
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*"],

Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-basic/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-design-system/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-kitchen-sink/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-non-monorepo/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-berry/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-changesets/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-npm/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-react-native-web/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-rollup/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-svelte/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-tailwind/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-vite/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/example-with-yarn/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test": {
"outputs": []
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/helpers/turbo.json
Original file line number Diff line number Diff line change
@@ -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": {}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/integration/turbo.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 50ad7f3

Please sign in to comment.