Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve error handling for commands in singlePackage projects (#3243)
Currently in 'single package mode' the error message for missing turbo commands is a little misleading: ```bash turbo-single-test on main [?] is 📦 v1.0.0 via v19.4.0 ❯ ../turbo/target/debug/turbo ls ERROR run failed: task `ls` not found in turbo `pipeline` in "turbo.json". Are you sure you added it? Turbo error: task `ls` not found in turbo `pipeline` in "turbo ``` This PR makes a small change to the validation to respect the `singlePackage` option. ```bash turbo-single-test on main [?] is 📦 v1.0.0 via v19.4.0 ❯ ../turbo/target/debug/turbo ls ERROR run failed: task `ls` not found in `scripts` in "package.json" Turbo error: task `ls` not found in `scripts` in "package.json" ``` Co-authored-by: Thomas Knickman <tom.knickman@vercel.com>
- Loading branch information
91dda20
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.
You must have Developer access to commit code to Vercel on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes.
Learn more: https://vercel.com/docs/concepts/teams/roles-and-permissions#enterprise-team-account-roles