-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Updates for accuracy in Add to Existing Repository page.
- Loading branch information
1 parent
6d039f7
commit d211a97
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,13 +179,27 @@ Add `.turbo` to your `.gitignore` file. The `turbo` CLI uses these folders for p | |
|
||
</Step> | ||
<Step> | ||
### Run the `build` and `check-types` tasks with `turbo` | ||
### Add a `packageManager` field to root `package.json` | ||
|
||
Turborepo optimizes your repository using information from your package manager. To declare which package manager you're using, add a [`packageManager`](https://nodejs.org/api/packages.html#packagemanager) field to your root `package.json` if you don't have one already. | ||
|
||
```diff title="package.json" | ||
{ | ||
+ "packageManager": "[email protected]" | ||
} | ||
``` | ||
|
||
</Step> | ||
<Step> | ||
### Run tasks with `turbo` | ||
|
||
You can now run the tasks you added to `turbo.json` earlier using Turborepo. Using the example tasks from above: | ||
|
||
```bash title="Terminal" | ||
turbo build check-types | ||
``` | ||
|
||
This runs `build` and `check-types` at the same time. | ||
This runs the `build` and `check-types` tasks at the same time, respecting the dependency graph of your project. | ||
|
||
</Step> | ||
<Step> | ||
|