Skip to content
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

docs: Updates for accuracy in Add to Existing Repository page. #9379

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions docs/repo-docs/getting-started/add-to-existing-repository.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved

```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.
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved

</Step>
<Step>
Expand Down
Loading