这是indexloc提供的服务,不要输入任何密码
Skip to content

Remove default task outputs when outputs is not defined #2712

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

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

mehulkar
Copy link
Contributor

@mehulkar mehulkar commented Nov 15, 2022

This behavior is frameworks-specific and unintuitive to new users.
Specifically, this removes the confusion between omitting the outputs
key and setting to an empty array. Additionally, this will allow us to
more clearly define turbo.json composition, so locally-scoped turbo.json
configs can override outputs, without rationalizing what happens to this
implicit behavior.

Stacked PRs:

@vercel
Copy link

vercel bot commented Nov 15, 2022

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

Name Status Preview Comments Updated
examples-basic-web 🔄 Building (Inspect) Nov 16, 2022 at 7:57AM (UTC)
6 Ignored Deployments
Name Status Preview Comments Updated
examples-designsystem-docs ⬜️ Ignored (Inspect) Nov 16, 2022 at 7:57AM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Nov 16, 2022 at 7:57AM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Nov 16, 2022 at 7:57AM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Nov 16, 2022 at 7:57AM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Nov 16, 2022 at 7:57AM (UTC)
turbo-site ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2022 at 7:57AM (UTC)

This behavior is frameworks-specific and unintuitive to new users.
Specifically, this removes the confusion between omitting the outputs
key and setting to an empty array. Additionally, this will allow us to
more clearly define turbo.json composition, so locally-scoped turbo.json
configs can override outputs, without rationalizing what happens to this
implicit behavior.
@github-actions
Copy link
Contributor

github-actions bot commented Nov 15, 2022

🟢 CI successful 🟢

Thanks

@mehulkar mehulkar force-pushed the mehulkar/turbo-549-remove-default-outputs-behavior branch from a9ea366 to 6ea1478 Compare November 15, 2022 19:56
@mehulkar mehulkar marked this pull request as ready for review November 15, 2022 20:09
@mehulkar mehulkar requested a review from a team as a code owner November 15, 2022 20:09
@gaspar09
Copy link
Contributor

This will require a turbo codemod.

@mehulkar
Copy link
Contributor Author

This will require a turbo codemod.

yep, separate PR, but will land before 1.7 is released

@@ -21,8 +21,6 @@ const (
topologicalPipelineDelimiter = "^"
)

var defaultOutputs = TaskOutputs{Inclusions: []string{"dist/**/*", "build/**/*"}}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm like 99.999% confident that dist/**/* and dist/** are equivalent in doublestar, but I'd love to be 100% sure. Can you triple-check that for us?

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'll just fix the codemod to use the same glob as here :)

Copy link
Member

Choose a reason for hiding this comment

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

They are

@mehulkar mehulkar merged commit be0dcce into main Nov 16, 2022
@mehulkar mehulkar deleted the mehulkar/turbo-549-remove-default-outputs-behavior branch November 16, 2022 08:07
tknickman pushed a commit that referenced this pull request Jan 10, 2023
Stacked PRs:
- #2712 
- #2714
- Release `turbo@1.7`
- **(This one)** #2713
- #2738
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants