Skip to content

yarn link

connect the local project to another one

Terminal window
yarn link ...

Register one or more remote workspaces for use in the current project :

Terminal window
yarn link ~/ts-loader ~/jest

Register all workspaces from a remote project for use in the current project :

Terminal window
yarn link ~/jest --all

This command will set a new resolutions field in the project-level manifest and point it to the workspace at the specified location (even if part of another project).

DefinitionDescription

-A,—all

Link all workspaces belonging to the target projects to the current one

-p,—private

Also link private workspaces belonging to the target projects to the current one

-r,—relative

Link workspaces using relative paths instead of absolute paths