Nx library for shared React components for different websites in this repo.
pnpm nx run components:build
pnpm nx run components:test
pnpm nx run components:format
A TypeScript alias been created in tsconfig.base.json
in the root of the monorepo
{
// ...
"paths": {
"@ga/components": ["components/src/index.ts"]
} // ...
}
and then from TypeScript file in the monorepo you can import it
import { Footer } from '@ga/components';