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

refactor(turborepo): Rename outputMode to outputLogs in turbo.json #8149

Merged
merged 4 commits into from
May 17, 2024

Conversation

NicholasLYang
Copy link
Contributor

@NicholasLYang NicholasLYang commented May 15, 2024

Description

Changed outputMode to outputLogs in turbo.json to match the flag name. Also wrote a code mod to migrate turbo.json config automatically.

Testing Instructions

Existing tests are migrated. Also wrote tests for code mod

Copy link

vercel bot commented May 15, 2024

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

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

Copy link
Contributor

github-actions bot commented May 15, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

@NicholasLYang NicholasLYang changed the title feat(turborepo): Rename outputMode to outputLogs in turbo.json refactor(turborepo): Rename outputMode to outputLogs in turbo.json May 15, 2024
@NicholasLYang NicholasLYang marked this pull request as ready for review May 15, 2024 17:40
@NicholasLYang NicholasLYang requested review from a team and anthonyshew as code owners May 15, 2024 17:40
Copy link
Contributor

github-actions bot commented May 15, 2024

🟢 CI successful 🟢

Thanks

Copy link
Contributor

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG

{
"$schema": "http://json-schema.org/draft-07/schema#",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor thing, but if we're going to format a codegen file we should do the formatting as part of the codegen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah this got accidentally formatted. Reverting

try {
packageJSON = readJsonSync(packageJsonPath) as PackageJson;
} catch (e) {
// readJSONSync probably failed because the file doesn't exist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would want to abort if we are missing/can't read the root package.json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this logic from the outputs codemod. I'm down to change it though

@NicholasLYang NicholasLYang merged commit e013eba into turborepo_2 May 17, 2024
56 checks passed
@NicholasLYang NicholasLYang deleted the feat/rename-output-logs branch May 17, 2024 14:43
chris-olszewski pushed a commit that referenced this pull request May 20, 2024
…on` (#8149)

### Description

Changed `outputMode` to `outputLogs` in `turbo.json` to match the flag
name. Also wrote a code mod to migrate `turbo.json` config
automatically.

### Testing Instructions

Existing tests are migrated. Also wrote tests for code mod
chris-olszewski pushed a commit that referenced this pull request May 22, 2024
…on` (#8149)

### Description

Changed `outputMode` to `outputLogs` in `turbo.json` to match the flag
name. Also wrote a code mod to migrate `turbo.json` config
automatically.

### Testing Instructions

Existing tests are migrated. Also wrote tests for code mod
chris-olszewski pushed a commit that referenced this pull request May 28, 2024
…on` (#8149)

### Description

Changed `outputMode` to `outputLogs` in `turbo.json` to match the flag
name. Also wrote a code mod to migrate `turbo.json` config
automatically.

### Testing Instructions

Existing tests are migrated. Also wrote tests for code mod
chris-olszewski pushed a commit that referenced this pull request May 29, 2024
…on` (#8149)

### Description

Changed `outputMode` to `outputLogs` in `turbo.json` to match the flag
name. Also wrote a code mod to migrate `turbo.json` config
automatically.

### Testing Instructions

Existing tests are migrated. Also wrote tests for code mod
chris-olszewski pushed a commit that referenced this pull request May 31, 2024
…on` (#8149)

### Description

Changed `outputMode` to `outputLogs` in `turbo.json` to match the flag
name. Also wrote a code mod to migrate `turbo.json` config
automatically.

### Testing Instructions

Existing tests are migrated. Also wrote tests for code mod
chris-olszewski pushed a commit that referenced this pull request Jun 4, 2024
…on` (#8149)

### Description

Changed `outputMode` to `outputLogs` in `turbo.json` to match the flag
name. Also wrote a code mod to migrate `turbo.json` config
automatically.

### Testing Instructions

Existing tests are migrated. Also wrote tests for code mod
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