- Add this repository as a project dependency
git submodule add 'https or git repository link' packages/@beda.software/fhir-questionnaire/
- Update your project
package.json
withyarn
workspaces configuration
{
...,
"private": true,
"workspaces": [
"packages/@beda.software/fhir-questionnaire"
],
"dependencies": {
...,
"@beda.software/fhir-questionnaire": "1.0.0",
...
}
}
Note that CRA-based applications do not allow ts or tsx to be transpilled outside of the src
folder, so the workspace package might need to be installed under src/packages/@beda.software/fhir-questionnaire
instead.
- Link workspace as a project dependency
yarn install
Please refer to the official yarn
documentation for additional details on yarn workspace usage.
Make sure global dependencies (like react
) are defined as peer-dependencies.
yarn workspace @beda.software/fhir-questionnaire cmd
can be used while in a root project to manage submodule dependecies (when needed).