aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitor Dino <me@vitordino.com> 2023-09-08 15:19:29 -0300
committerGravatar GitHub <noreply@github.com> 2023-09-08 11:19:29 -0700
commit1b8c6f266ff8ae9722296fd8cc7fd752613e1cee (patch)
treec4fce40aa754caf402c60ff5db90c0723582303e
parent989dd92ea8bf249cf7e32962d587a35d7b0c1277 (diff)
downloadbun-1b8c6f266ff8ae9722296fd8cc7fd752613e1cee.tar.gz
bun-1b8c6f266ff8ae9722296fd8cc7fd752613e1cee.tar.zst
bun-1b8c6f266ff8ae9722296fd8cc7fd752613e1cee.zip
docs: fix `--backend` options list on cache.md (#4599)
`symlink` wasn’t an item, it appeared the same as `copyfile`
-rw-r--r--docs/install/cache.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/install/cache.md b/docs/install/cache.md
index bb22e545d..37cdc1a68 100644
--- a/docs/install/cache.md
+++ b/docs/install/cache.md
@@ -46,7 +46,7 @@ This behavior is configurable with the `--backend` flag, which is respected by a
- **`clonefile`** Default on macOS.
- **`clonefile_each_dir`**: Similar to `clonefile`, except it clones each file individually per directory. It is only available on macOS and tends to perform slower than `clonefile`.
- **`copyfile`**: The fallback used when any of the above fail. It is the slowest option. On macOS, it uses `fcopyfile()`; on Linux it uses `copy_file_range()`.
- **`symlink`**: Currently used only `file:` (and eventually `link:`) dependencies. To prevent infinite loops, it skips symlinking the `node_modules` folder.
+- **`symlink`**: Currently used only `file:` (and eventually `link:`) dependencies. To prevent infinite loops, it skips symlinking the `node_modules` folder.
If you install with `--backend=symlink`, Node.js won't resolve node_modules of dependencies unless each dependency has its own `node_modules` folder or you pass `--preserve-symlinks` to `node`. See [Node.js documentation on `--preserve-symlinks`](https://nodejs.org/api/cli.html#--preserve-symlinks).