Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codemod): add logic for major version bump #8260

Conversation

chris-olszewski
Copy link
Member

Description

Add migration logic for the 1->2 move.

For the major bump we run all existing transforms that are safe to be run twice to ensure that turbo.json is in the desired state.

A few things to note:

  • We change the introduction version for the 2.0 codemods to the canary to allow for easier testing
  • I updated migrate-dot-env to work with either pipeline or tasks as there isn't a great way to order transforms that are introduced in the same version.
  • Add an idempotent flag to transformers that defaults to true. This is used to mark a transformation as one to avoid re-running.

Testing Instructions

Added unit test for major version migration.

Manual testing on repos via turbo build --filter='@turbo/codemod' and then using node ~/code/turbo/packages/turbo-codemod/dist/cli.js migrate --to 2.0.0-canary.0 (canary is necessary due to 2.0.0 not existing in npm yet).

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 0:31am
9 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am
rust-docs ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 0:31am

Copy link
Contributor

github-actions bot commented May 31, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented May 31, 2024

🟢 CI successful 🟢

Thanks

@chris-olszewski chris-olszewski merged commit 35a0708 into turborepo_2 May 31, 2024
58 checks passed
@chris-olszewski chris-olszewski deleted the chrisolszewski/turbo-3233-create-major-codemod-for-1-2 branch May 31, 2024 03:17
chris-olszewski added a commit that referenced this pull request Jun 4, 2024
### Description

Add migration logic for the 1->2 move.

For the major bump we run all existing transforms that are safe to be
run twice to ensure that `turbo.json` is in the desired state.

A few things to note:
- We change the introduction version for the 2.0 codemods to the canary
to allow for easier testing
- I updated `migrate-dot-env` to work with either `pipeline` or `tasks`
as there isn't a great way to order transforms that are introduced in
the same version.
- Add an idempotent flag to transformers that defaults to `true`. This
is used to mark a transformation as one to avoid re-running.

### Testing Instructions

Added unit test for major version migration.

Manual testing on repos via `turbo build --filter='@turbo/codemod'` and
then using `node ~/code/turbo/packages/turbo-codemod/dist/cli.js migrate
--to 2.0.0-canary.0` (canary is necessary due to 2.0.0 not existing in
npm yet).
kodiakhq bot pushed a commit to weareinreach/InReach that referenced this pull request Jun 14, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [@turbo/gen](https://turbo.build/repo)
([source](https://togithub.com/vercel/turbo/tree/HEAD/packages/turbo-gen))
| devDependencies | major | [`1.13.4` ->
`2.0.3`](https://renovatebot.com/diffs/npm/@turbo%2fgen/1.13.4/2.0.3) |
[![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/turbo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/turbo)
|
| [eslint-plugin-turbo](https://togithub.com/vercel/turbo)
([source](https://togithub.com/vercel/turbo/tree/HEAD/packages/eslint-plugin-turbo))
| devDependencies | major | [`1.13.4` ->
`2.0.3`](https://renovatebot.com/diffs/npm/eslint-plugin-turbo/1.13.4/2.0.3)
| [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/turbo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/turbo)
|
| [turbo](https://turbo.build/repo)
([source](https://togithub.com/vercel/turbo)) | devDependencies | major
| [`1.13.4` ->
`2.0.3`](https://renovatebot.com/diffs/npm/turbo/1.13.4/2.0.3) |
[![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/turbo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/turbo)
|

---

### Release Notes

<details>
<summary>vercel/turbo (@&#8203;turbo/gen)</summary>

### [`v2.0.3`](https://togithub.com/vercel/turbo/releases/tag/v2.0.3):
Turborepo v2.0.3

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.2...v2.0.3)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.3 -->

#### What's Changed

##### turbo-ignore

- fix(turbo-ignore): infer correct version of turbo for project by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8363

##### Changelog

- feat: warn when no local turbo found by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8356

**Full Changelog**:
vercel/turbo@v2.0.2...v2.0.3

### [`v2.0.2`](https://togithub.com/vercel/turbo/releases/tag/v2.0.2):
Turborepo v2.0.2

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.1...v2.0.2)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.2 -->

#### What's Changed

##### [@&#8203;turbo/codemod](https://togithub.com/turbo/codemod)

- fix(turborepo): factor in negated globs for workspace detection in
codemods by [@&#8203;NicholasLYang](https://togithub.com/NicholasLYang)
in
[vercel/turbo#8331

##### Examples

- Bump examples to 2.0.0. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8284

##### Changelog

- feat(ui): respect CI and NO_COLOR as overrides for TUI by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8335
- fix(ui): no longer attempt to read from stdin if non-tty by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8333
- fix: correctly serialize ui values by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8338
- fix: add NODE_OPTIONS to default pass through env vars by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8353
- chore: add additional env vars to default pass through by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8359
- fix(ui): disable TUI if log order is specified by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8343

#### New Contributors

- [@&#8203;dvoytenko](https://togithub.com/dvoytenko) made their first
contribution in
[vercel/turbo#8334

**Full Changelog**:
vercel/turbo@v2.0.1...v2.0.2

### [`v2.0.1`](https://togithub.com/vercel/turbo/releases/tag/v2.0.1):
Turborepo v2.0.1

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.0...v2.0.1)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.1 -->

**Full Changelog**:
vercel/turbo@v2.0.0...v2.0.1

### [`v2.0.0`](https://togithub.com/vercel/turbo/releases/tag/v2.0.0):
Turborepo v2.0.0

[Compare
Source](https://togithub.com/vercel/turbo/compare/v1.13.4...v2.0.0)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.0 -->

#### What's Changed

Upgrade guide:
https://turbo.build/repo/docs/crafting-your-repository/upgrading

##### [@&#8203;turbo/codemod](https://togithub.com/turbo/codemod)

- feat(codemod): add logic for major version bump by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8260
- feat(codemod): place tasks last in turbo.json rewrites by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8268
- fix(codemod): support jsonc when parsing root turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8279
- fix(codemod): respect --dry flag by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8280
- feat: change values of "ui" in turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8289
- fix(codemod): support jsonc when parsing root turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8279
- feat(codemod): place tasks last in turbo.json rewrites by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8268
- feat(codemod): add logic for major version bump by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8260
- feat(codemod): add missing package names by
[@&#8203;tknickman](https://togithub.com/tknickman) in
[vercel/turbo#8186

##### Changelog

##### Breaking

- chore: remove legacy filter flags by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8294
- chore(turborepo): adjust error message for pipeline by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8264
- chore(turbo)!: remove check for legacy turbo config in package.json by
[@&#8203;mehulkar](https://togithub.com/mehulkar) in
[vercel/turbo#8023
- chore(turbo)! hard error on env vars in task and global dependencies
by [@&#8203;mehulkar](https://togithub.com/mehulkar) in
[#&#8203;8026](https://togithub.com/vercel/turbo/issues/8026)
- feat: require packageManager in package.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8017](https://togithub.com/vercel/turbo/issues/8017)
- feat(filter): no longer infer scope in filters by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8137](https://togithub.com/vercel/turbo/issues/8137)
- chore!(create-turbo): remove old pm arg by
[@&#8203;tknickman](https://togithub.com/tknickman) in
[#&#8203;8150](https://togithub.com/vercel/turbo/issues/8150)
- feat: error on empty package name by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski)
[#&#8203;8152](https://togithub.com/vercel/turbo/issues/8152)
- feat(filter): error on invalid filters by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski)
[#&#8203;8142](https://togithub.com/vercel/turbo/issues/8142)
- Move fs cache location. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[#&#8203;8126](https://togithub.com/vercel/turbo/issues/8126)
- refactor(turborepo): Rename outputMode to outputLogs in turbo.json by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[#&#8203;8149](https://togithub.com/vercel/turbo/issues/8149)
- feat: --only now applies to package dependencies by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8163](https://togithub.com/vercel/turbo/issues/8163)
- Rename pipeline to tasks. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[#&#8203;8157](https://togithub.com/vercel/turbo/issues/8157)
- feat: add doublestar to exact dir paths by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8180](https://togithub.com/vercel/turbo/issues/8180)
- chore: remove globalDotEnv and dotEnv fields by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8181](https://togithub.com/vercel/turbo/issues/8181)
- chore: make env mode strict by default by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8182](https://togithub.com/vercel/turbo/issues/8182)

##### Other

- feat: allow for negative globs in globalDeps by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8190](https://togithub.com/vercel/turbo/issues/8190)
- chore: change turborepo licenses to MIT by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8197](https://togithub.com/vercel/turbo/issues/8197)
- feat: all dependencies of root package contribute to global hash by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8202](https://togithub.com/vercel/turbo/issues/8202)
- fix(turborepo): non-determinism with root internal deps hash. by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8277
- fix: update integration test to expect correct output by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8285
- chore: remove cpuprofile flag by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8282
- fix(ui): disable UI on all dry runs by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8269
- fix(turborepo): stderr log by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8267
- chore(turborepo): adjust error message for pipeline by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8264
- fix(ui): ensure prelude gets printed before ui starts by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8265
-
chore([@&#8203;turbo/benchmark](https://togithub.com/turbo/benchmark)):
fix lint warnings by [@&#8203;mehulkar](https://togithub.com/mehulkar)
in
[vercel/turbo#8233
- chore(turborepo): Feature flagged off file hashing by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8229
- chore: downgrade curl to fix Windows rust tests by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8242
- fix(turborepo): Remove optional git locks by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8244
- fix(turborepo): Optional lock with env var by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8247
- add two retry strategies to allow requests to timeout gracefully by
[@&#8203;arlyon](https://togithub.com/arlyon) in
[vercel/turbo#8080
- add support for upload speed / remaining in the cache upload step by
[@&#8203;arlyon](https://togithub.com/arlyon) in
[vercel/turbo#8081
- chore: remove --ignore flag by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8201
- feat: factor engines into global cache key by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8173](https://togithub.com/vercel/turbo/issues/8173)

**Full Changelog**:
vercel/turbo@v1.13.4...v2.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/weareinreach/InReach).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbImF1dG9tZXJnZSIsImRlcGVuZGVuY2llcyIsImtvZGlhazogbWVyZ2UubWV0aG9kID0gJ3NxdWFzaCciXX0=-->

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Joe Karow <58997957+JoeKarow@users.noreply.github.com>
fwouts added a commit to fwouts/previewjs that referenced this pull request Jun 21, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [turbo](https://turbo.build/repo)
([source](https://togithub.com/vercel/turbo)) | [`^1.13.4` ->
`^2.0.4`](https://renovatebot.com/diffs/npm/turbo/1.13.4/2.0.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/turbo/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/turbo/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/turbo/1.13.4/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/turbo/1.13.4/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/turbo (turbo)</summary>

### [`v2.0.4`](https://togithub.com/vercel/turbo/releases/tag/v2.0.4):
Turborepo v2.0.4

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.3...v2.0.4)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.4 -->

#### What's Changed

##### create-turbo

- Update `create-turbo` to use carat versions. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8448

##### [@&#8203;turbo/codemod](https://togithub.com/turbo/codemod)

- chore: bump timeout for migration by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8463
- fix([@&#8203;turbo/codemode](https://togithub.com/turbo/codemode)):
no-op when turbo.json already contains tasks key by
[@&#8203;mehulkar](https://togithub.com/mehulkar) in
[vercel/turbo#8471

##### Examples

- Give examples carat versions. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8382
- Fix apk order in example. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8392
- Fix `eslint-config-turbo` configuration in examples. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8405
- Remove root eslintrc from basic example. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8423
- Consistent Node.js version in Changesets action. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8441
- Remove global dep from basic example. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8442

##### Changelog

- fix(filter): account for root internal dependencies in git based
filter by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8364
- Warn instead of print when no locally installed version. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8384
- Add CI to default passthroughs. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8393
- feat(shim): invoke local turbo version via npx if not installed by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8385
- docs: update links to logs in turbo types by
[@&#8203;boyum](https://togithub.com/boyum) in
[vercel/turbo#8403
- fix: added `LD_LIBRARY_PATH` to default forwarded env vars by
[@&#8203;GauBen](https://togithub.com/GauBen) in
[vercel/turbo#8412
- chore(turborepo): remove unused code by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8428
- fix: disable panic handler in ci by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8436
- fix: remove inferring turbo version from package.json or turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8437
- fix(turborepo): avoid starting ui on too small terminals by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8457
- chore(shim): make dynamic downloads opt in by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8458
- fix(shim): avoid panic if user has malformed lockfile by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8461
- fix(ui): pass through terminal env vars to appease chalk by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8468

#### New Contributors

- [@&#8203;boyum](https://togithub.com/boyum) made their first
contribution in
[vercel/turbo#8403
- [@&#8203;GauBen](https://togithub.com/GauBen) made their first
contribution in
[vercel/turbo#8412
- [@&#8203;sethidden](https://togithub.com/sethidden) made their first
contribution in
[vercel/turbo#8450

**Full Changelog**:
vercel/turbo@v2.0.3...v2.0.4

### [`v2.0.3`](https://togithub.com/vercel/turbo/releases/tag/v2.0.3):
Turborepo v2.0.3

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.2...v2.0.3)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.3 -->

#### What's Changed

##### turbo-ignore

- fix(turbo-ignore): infer correct version of turbo for project by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8363

##### Changelog

- feat: warn when no local turbo found by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8356

**Full Changelog**:
vercel/turbo@v2.0.2...v2.0.3

### [`v2.0.2`](https://togithub.com/vercel/turbo/releases/tag/v2.0.2):
Turborepo v2.0.2

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.1...v2.0.2)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.2 -->

#### What's Changed

##### [@&#8203;turbo/codemod](https://togithub.com/turbo/codemod)

- fix(turborepo): factor in negated globs for workspace detection in
codemods by [@&#8203;NicholasLYang](https://togithub.com/NicholasLYang)
in
[vercel/turbo#8331

##### Examples

- Bump examples to 2.0.0. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[vercel/turbo#8284

##### Changelog

- feat(ui): respect CI and NO_COLOR as overrides for TUI by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8335
- fix(ui): no longer attempt to read from stdin if non-tty by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8333
- fix: correctly serialize ui values by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8338
- fix: add NODE_OPTIONS to default pass through env vars by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8353
- chore: add additional env vars to default pass through by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8359
- fix(ui): disable TUI if log order is specified by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8343

#### New Contributors

- [@&#8203;dvoytenko](https://togithub.com/dvoytenko) made their first
contribution in
[vercel/turbo#8334

**Full Changelog**:
vercel/turbo@v2.0.1...v2.0.2

### [`v2.0.1`](https://togithub.com/vercel/turbo/releases/tag/v2.0.1):
Turborepo v2.0.1

[Compare
Source](https://togithub.com/vercel/turbo/compare/v2.0.0...v2.0.1)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.1 -->

**Full Changelog**:
vercel/turbo@v2.0.0...v2.0.1

### [`v2.0.0`](https://togithub.com/vercel/turbo/releases/tag/v2.0.0):
Turborepo v2.0.0

[Compare
Source](https://togithub.com/vercel/turbo/compare/v1.13.4...v2.0.0)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.0 -->

#### What's Changed

Upgrade guide:
https://turbo.build/repo/docs/crafting-your-repository/upgrading

##### [@&#8203;turbo/codemod](https://togithub.com/turbo/codemod)

- feat(codemod): add logic for major version bump by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8260
- feat(codemod): place tasks last in turbo.json rewrites by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8268
- fix(codemod): support jsonc when parsing root turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8279
- fix(codemod): respect --dry flag by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8280
- feat: change values of "ui" in turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8289
- fix(codemod): support jsonc when parsing root turbo.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8279
- feat(codemod): place tasks last in turbo.json rewrites by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8268
- feat(codemod): add logic for major version bump by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8260
- feat(codemod): add missing package names by
[@&#8203;tknickman](https://togithub.com/tknickman) in
[vercel/turbo#8186

##### Changelog

##### Breaking

- chore: remove legacy filter flags by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8294
- chore(turborepo): adjust error message for pipeline by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8264
- chore(turbo)!: remove check for legacy turbo config in package.json by
[@&#8203;mehulkar](https://togithub.com/mehulkar) in
[vercel/turbo#8023
- chore(turbo)! hard error on env vars in task and global dependencies
by [@&#8203;mehulkar](https://togithub.com/mehulkar) in
[#&#8203;8026](https://togithub.com/vercel/turbo/issues/8026)
- feat: require packageManager in package.json by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8017](https://togithub.com/vercel/turbo/issues/8017)
- feat(filter): no longer infer scope in filters by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8137](https://togithub.com/vercel/turbo/issues/8137)
- chore!(create-turbo): remove old pm arg by
[@&#8203;tknickman](https://togithub.com/tknickman) in
[#&#8203;8150](https://togithub.com/vercel/turbo/issues/8150)
- feat: error on empty package name by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski)
[#&#8203;8152](https://togithub.com/vercel/turbo/issues/8152)
- feat(filter): error on invalid filters by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski)
[#&#8203;8142](https://togithub.com/vercel/turbo/issues/8142)
- Move fs cache location. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[#&#8203;8126](https://togithub.com/vercel/turbo/issues/8126)
- refactor(turborepo): Rename outputMode to outputLogs in turbo.json by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[#&#8203;8149](https://togithub.com/vercel/turbo/issues/8149)
- feat: --only now applies to package dependencies by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8163](https://togithub.com/vercel/turbo/issues/8163)
- Rename pipeline to tasks. by
[@&#8203;anthonyshew](https://togithub.com/anthonyshew) in
[#&#8203;8157](https://togithub.com/vercel/turbo/issues/8157)
- feat: add doublestar to exact dir paths by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8180](https://togithub.com/vercel/turbo/issues/8180)
- chore: remove globalDotEnv and dotEnv fields by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8181](https://togithub.com/vercel/turbo/issues/8181)
- chore: make env mode strict by default by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8182](https://togithub.com/vercel/turbo/issues/8182)

##### Other

- feat: allow for negative globs in globalDeps by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8190](https://togithub.com/vercel/turbo/issues/8190)
- chore: change turborepo licenses to MIT by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8197](https://togithub.com/vercel/turbo/issues/8197)
- feat: all dependencies of root package contribute to global hash by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8202](https://togithub.com/vercel/turbo/issues/8202)
- fix(turborepo): non-determinism with root internal deps hash. by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8277
- fix: update integration test to expect correct output by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8285
- chore: remove cpuprofile flag by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8282
- fix(ui): disable UI on all dry runs by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8269
- fix(turborepo): stderr log by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8267
- chore(turborepo): adjust error message for pipeline by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8264
- fix(ui): ensure prelude gets printed before ui starts by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8265
-
chore([@&#8203;turbo/benchmark](https://togithub.com/turbo/benchmark)):
fix lint warnings by [@&#8203;mehulkar](https://togithub.com/mehulkar)
in
[vercel/turbo#8233
- chore(turborepo): Feature flagged off file hashing by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8229
- chore: downgrade curl to fix Windows rust tests by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8242
- fix(turborepo): Remove optional git locks by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8244
- fix(turborepo): Optional lock with env var by
[@&#8203;NicholasLYang](https://togithub.com/NicholasLYang) in
[vercel/turbo#8247
- add two retry strategies to allow requests to timeout gracefully by
[@&#8203;arlyon](https://togithub.com/arlyon) in
[vercel/turbo#8080
- add support for upload speed / remaining in the cache upload step by
[@&#8203;arlyon](https://togithub.com/arlyon) in
[vercel/turbo#8081
- chore: remove --ignore flag by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[vercel/turbo#8201
- feat: factor engines into global cache key by
[@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in
[#&#8203;8173](https://togithub.com/vercel/turbo/issues/8173)

**Full Changelog**:
vercel/turbo@v1.13.4...v2.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: François Wouts <f@zenc.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants