Skip to content

Commit

Permalink
docs: fix link to the portal protocol (#5852)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 authored Oct 24, 2023
1 parent ffa193c commit dd90639
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ yarn add imgs@link:./static/imgs

Since the target referenced by `link:` may not exist until postinstall scripts have run, and since Yarn guarantees a predictable behavior regardless of the execution order, we need to disambiguate *packages* (which contain `package.json` files, and may list dependencies of their own) from *arbitrary folders* (which may not).

In practice, this means that `link:` dependencies can only point to arbitrary folders - in other words, whatever it references cannot have a `package.json` file, and thus can't have dependencies. If you need to symlink to a *package*, use [portals](/protocols/portal) instead.
In practice, this means that `link:` dependencies can only point to arbitrary folders - in other words, whatever it references cannot have a `package.json` file, and thus can't have dependencies. If you need to symlink to a *package*, use [portals](/protocol/portal) instead.

0 comments on commit dd90639

Please sign in to comment.