-
Notifications
You must be signed in to change notification settings - Fork 937
Add specific compile step, and require compile step to complete #13325
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,12 +1,15 @@ | ||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||
| "$schema": "https://turborepo.org/schema.json", | ||||||||||||||||||||||||||
| "tasks": { | ||||||||||||||||||||||||||
| "compile": { | ||||||||||||||||||||||||||
| "outputs": ["dist/**", ".svelte-kit/**", "src/generated/**"] | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| }, | |
| }, | |
| "@gitbutler/but-sdk#compile": { | |
| "inputs": [ | |
| "$TURBO_DEFAULT$", | |
| "$TURBO_ROOT$/Cargo.lock", | |
| "$TURBO_ROOT$/crates/but-napi/**", | |
| "$TURBO_ROOT$/crates/but-ts/**", | |
| "$TURBO_ROOT$/crates/but-api/**" | |
| ], | |
| "outputs": ["dist/**", ".svelte-kit/**", "src/generated/**"] | |
| }, |
Copilot
AI
Apr 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build.dependsOn includes "compile" without the ^ prefix, so Turbo will only try to run compile in the same package. Apps like @gitbutler/desktop don’t have a compile script, and this won’t force @gitbutler/but-sdk to compile before the app build even though it’s a dependency. Use ^compile here (and keep compile too only if the package itself needs it).
Copilot
AI
Apr 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dev.dependsOn includes "compile" without the ^ prefix, so Turbo won’t run dependency compiles (notably @gitbutler/but-sdk) before starting dev servers. Since desktop/lite import types/runtime from @gitbutler/but-sdk, consider switching this to ^compile (and optionally compile if the package has its own compile step).
| "dependsOn": ["package", "compile"], | |
| "dependsOn": ["package", "^compile", "compile"], |
Uh oh!
There was an error while loading. Please reload this page.