feat(turbo): add support for turbo 2 configuration#11680
Conversation
🦋 Changeset detectedLatest commit: 5133646 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
8373986 to
fece185
Compare
…upport-pipeline-and-tasks
We have that messaging available if someone attempts to use a turbo 1 config with turbo 2 so we'll display that info a little bit later in the build process. |
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## vercel@34.2.5 ### Patch Changes - Adds a route for the `.rsc` pathname as well when app has ppr enabled but not all routes. ([#11681](#11681)) - Updated dependencies \[[`7457767a7`](7457767), [`4337ea065`](4337ea0)]: - @vercel/next@4.2.15 ## @vercel/fs-detectors@5.2.4 ### Patch Changes - Add support for detecting Turborepo 2 ([#11680](#11680)) ## @vercel/next@4.2.15 ### Patch Changes - ensure unmatched action rewrites are routed to correct handler ([#11686](#11686)) - Adds a route for the `.rsc` pathname as well when app has ppr enabled but not all routes. ([#11681](#11681)) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
@chris-olszewski - I'm getting build errors currently when attempting to update to Turbo 2.0 myself, specifically with the turbo.json config. 00:36:46.478 |
00:36:46.478 | x failed to parse turbo json
00:36:46.478 |
00:36:46.479 | Error: turbo_json_parse_error
00:36:46.479 |
00:36:46.479 | x Found an unknown key `tasks`.
00:36:46.479 | ,-[3:1]
00:36:46.479 | 3 \| "globalDependencies": [".env"],
00:36:46.479 | 4 \| "tasks": {
00:36:46.479 | : ^^^^^^^
00:36:46.480 | 5 \| "build": {
00:36:46.480 | `----
00:36:46.480 |
00:36:46.496 | Error: Command "cd ../.. && turbo run build --filter={apps/cms}..." exited with 1
00:36:47.040Is there an issue that has been opened for this? |
|
seeing the same issue as well on vercel build. Error: turbo_json_parse_error no issue on local build |
With the release of Turborepo 2 we're renaming
pipelinetotasks.This PR updates the default settings logic to look in
tasksfor abuildtask definition in addition to looking atpipeline. It also updates the message to no longer mention Turbo configuration inpackage.jsonas this is fully ignored in Turborepo 2.Added a quick unit test to verify
buildtask definitions are found in thetaskssection ofturbo.json.Please let me know if there are other tests/places I should update.