From 8c967b576e1764d23776bc627900384474d678e1 Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Tue, 18 Jun 2019 23:42:01 +0300 Subject: [PATCH] Document `link:` dependency type (#793) --- lang/en/docs/cli/add.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lang/en/docs/cli/add.md b/lang/en/docs/cli/add.md index 19f118983..c17f54e48 100644 --- a/lang/en/docs/cli/add.md +++ b/lang/en/docs/cli/add.md @@ -44,10 +44,13 @@ You can also specify packages from different locations: haven't been published to the registry. 3. `yarn add file:/path/to/local/tarball.tgz` installs a package from a gzipped tarball which could be used to share a package before publishing it. -4. `yarn add ` installs a package from a remote git repository. -5. `yarn add #` installs a package from a remote +4. `yarn add link:/path/to/local/folder` installs a symlink to a package that is + on your local file system. This is useful to develop related packages in + monorepo environments. +5. `yarn add ` installs a package from a remote git repository. +6. `yarn add #` installs a package from a remote git repository at specific git branch, git commit or git tag. -6. `yarn add https://my-project.org/package.tgz` installs a package from a +7. `yarn add https://my-project.org/package.tgz` installs a package from a remote gzipped tarball. ### Caveats