yarn link — Yarn CLI reference
Link another project into the current project
yarn link
Link another project into the current project
This command adds portal: resolutions to the current project’s top-level manifest, making packages from another local project resolve to their local files.
This is useful when developing packages that depend on each other: you can link them together to test your changes without having to publish them first.
If the --all flag is set, Yarn will link all workspaces from the target project to the current one. By default, private workspaces will be skipped, but this can be toggled using the --private flag.
If the --relative flag is set, the paths will be stored as relative paths rather than absolute paths.
Link all workspaces from the target project to the current one
Also link private workspaces
Use relative paths instead of absolute paths