Non-vendor packages can be linked to packages within a local Yarn workspace.
You have 2 options:
-
Clone the workspace when other developers run
indonext. -
Treat the workspace as a local override.
- Clone the workspace (with
indo):
indo clone https://github.com/example/example.git ./vendor/example --branch next- Prepare the workspace:
cd ./vendor/example && yarn- Expose packages in the workspace to your non-vendor packages:
indo- Done!
- Clone the workspace (with
git):
git clone https://github.com/example/example.git ./vendor/example --branch next- Prepare the workspace
cd ./vendor/example && yarn- Expose packages in the workspace to your non-vendor packages:
indo- Make sure the workspace is ignored by git
echo '/vendor/' >> .gitignore- Done!