Skip to content

Commit

Permalink
docs: update Nx page on dependency recommendations (#10034)
Browse files Browse the repository at this point in the history
### Description

Pulling [this
suggestion](#10003 (comment))
over to a separate PR to make sure it gets in since [the original
PR](#10003) was closed.
@JamesHenry confirmed this is the case, so wanting to make sure we're
accurate!
  • Loading branch information
anthonyshew authored Feb 24, 2025
1 parent ddade2e commit 7c991a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/repo-docs/guides/migrating-from-nx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ We encourage incremental migration, meaning you will have both of Nx and Turbore

Turborepo recommends [installing packages where they're used](/repo/docs/crafting-your-repository/managing-dependencies#best-practices-for-dependency-installation) to improve cache hit ratios, help dependency pruning capability, and clarify for developers which dependencies are meant for which packages. This is different from the Nx strategy, where all dependencies are installed at the root of the repository, making all dependencies available to all packages in the workspace.

Once you have tasks running through Turborepo, we highly recommend that you move dependencies to the `package.json`'s for packages and applications that need them. [Visit our documentation on managing dependencies](/repo/docs/crafting-your-repository/managing-dependencies) to learn more.
Historically, Nx has recommended installing all dependencies in the root of the repository, making all dependencies available to all packages in the Workspace. If you followed this guidance, we highly recommend that you move dependencies to the `package.json`'s for packages and applications that need them. [Visit our documentation on managing dependencies](/repo/docs/crafting-your-repository/managing-dependencies) to learn more.

### Creating shared packages

Expand Down

0 comments on commit 7c991a0

Please sign in to comment.