Skip to content

Yarn v2 link specific packages as it works in Yarn v1 #2947

Answered by larixer
RuBAN-GT asked this question in Q&A
Discussion options

You must be logged in to vote

There is no CLI command to create symlink in Yarn 2, but this behaviour is still supported. You can use link: protocol to achieve this behaviour:
https://yarnpkg.com/features/protocols
package.json

{
  "dependencies": {
    "my-package": "link:../relative/path/to/my-package"
  }
}

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@r1y4h
Comment options

@merceyz
Comment options

@r1y4h
Comment options

@merceyz
Comment options

@r1y4h
Comment options

Answer selected by RuBAN-GT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants