Skip to content

[chore] simplify turbo config #5446

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

Closed
wants to merge 3 commits into from
Closed

[chore] simplify turbo config #5446

wants to merge 3 commits into from

Conversation

benmccann
Copy link
Member

@benmccann benmccann commented Jul 9, 2022

It turns out that inputs was introduced in 1.3.0 and so all the inputs we declared were never being used. Also, they're completely optional. By default it will consider all non-gitignored files. So I've removed inputs as it's brittle and it seemed to we could just use the default

I also added a few more outputs that I think we may have been missing

@changeset-bot
Copy link

changeset-bot bot commented Jul 9, 2022

⚠️ No Changeset found

Latest commit: 6c2b244

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Conduitry
Copy link
Member

I don't have a lot to say about the Turbo config, but it looks like in the lockfile that we're on the same version of Turbo as we were before. The semver range has changed, but the lockfile has the same version in it as before, so there hasn't actually been an upgrade.

@Conduitry
Copy link
Member

Oh, it looks like the upgrade just happened in #5332. So until then, the inputs didn't do anything, maybe,

@benmccann benmccann changed the title [chore] upgrade turbo and improve config [chore] simplify turbo config Jul 9, 2022
@dominikg
Copy link
Member

omitting inputs would result in tests being rerun even for docs changes. Iirc that was one of the main reasons to introduce turbo. Avoiding redundant executions.

@benmccann
Copy link
Member Author

omitting inputs would result in tests being rerun even for docs changes

Would it? Each package under packages would still be cached I believe, so I'm not sure there's anything that would really be rerun if something in documentation changes

@Rich-Harris
Copy link
Member

Rich-Harris commented Jul 11, 2022

Without inputs, changing something in e.g. README.md would cause a package to be rebuilt unnecessarily. It's not redundant.

@Rich-Harris
Copy link
Member

Also, with this PR Turbo won't recognise that changes to the documentation directory necessitate a rebuild of kit.svelte.dev. Gonna close this

@benmccann benmccann deleted the turbo branch July 11, 2022 14:06
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