Shares code and dependencies amongst apps in the monorepo:
Add the workspace dependency to the consuming app or package.
yarn add examples:"workspace:^"
Add an alias in tsconfig.js to enable fast-refresh.
{
"compilerOptions": {
"paths": {
"examples/*": ["../examples/common/*"]
},
},
}