You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the improvement or update you wish to see?
The current documentation seems to suggest that by creating the lint:root script in the root package.json file, and the //#lint:root: {} task in turbo.json alongside lint: {} task, running turbo run lint should execute the lint script in all packages in the repo, along with the lint:root script in the root package.json. At least that's how I understood it to mean.
Is there any context that might help us understand?
Runs lint:root in addition to lint scripts in all packages by removing :root suffix from the script in the root package.json, and making the script the calls turbo run lint be named something else (eg. lint-abcdef, lint-all)
### Description
@nickfujita in #8972 pointed
out that the docs were confusing about how to use a Root Task, so making
sure to clarify that here.
### Testing Instructions
👀
What is the improvement or update you wish to see?
The current documentation seems to suggest that by creating the
lint:root
script in the rootpackage.json
file, and the//#lint:root: {}
task inturbo.json
alongsidelint: {}
task, runningturbo run lint
should execute thelint
script in all packages in the repo, along with thelint:root
script in the rootpackage.json
. At least that's how I understood it to mean.Is there any context that might help us understand?
Registering Root Tasks
Existing
Running
pnpm lint
only runslint
scripts in packages, but not the root levellint:root
script.turbo.json
package.json
Correction - Option 1
Runs
lint:root
in addition tolint
scripts in all packages, by separately callinglint:root
in theturbo run
statementturbo.json
package.json
Correction - Option 2
Runs
lint:root
in addition tolint
scripts in all packages by removing:root
suffix from the script in the rootpackage.json
, and making the script the callsturbo run lint
be named something else (eg. lint-abcdef, lint-all)turbo.json
package.json
Does the docs page already exist? Please link to it.
https://turbo.build/repo/docs/crafting-your-repository/configuring-tasks#registering-root-tasks
The text was updated successfully, but these errors were encountered: