Skip to content

Commit

Permalink
docs: provide reasoning on why Turborepo doesn't support nested works…
Browse files Browse the repository at this point in the history
…paces (#9586)
  • Loading branch information
anthonyshew authored Dec 9, 2024
1 parent f55f520 commit 88eeee7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ First, your package manager needs to describe the locations of your packages. We
Using this configuration, every directory **with a `package.json`** in the `apps` or `packages` directories will be considered a package.

<Callout type="error">
Turborepo does not support nested packages like `apps/**` or `packages/**`. Using a structure that would put a package at `apps/a` and another at `apps/a/b` will result in an error.
Turborepo does not support nested packages like `apps/**` or `packages/**` due to ambiguous behavior among package managers in the JavaScript ecosystem. Using a structure that would put a package at `apps/a` and another at `apps/a/b` will result in an error.

If you'd like to group packages by directory, you can do this using globs like `packages/*` and `packages/group/*` and **not** creating a `packages/group/package.json` file.

Expand Down

0 comments on commit 88eeee7

Please sign in to comment.