Skip to content

Document link: dependency type (#793) #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lang/en/docs/cli/add.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <git remote url>` installs a package from a remote git repository.
5. `yarn add <git remote url>#<branch/commit/tag>` 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 <git remote url>` installs a package from a remote git repository.
6. `yarn add <git remote url>#<branch/commit/tag>` 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 <a class="toc" id="toc-caveats" href="#toc-caveats"></a>
Expand Down