typescript-monorepo-example
                                
                                 typescript-monorepo-example copied to clipboard
                                
                                    typescript-monorepo-example copied to clipboard
                            
                            
                            
                        Typescript monorepo example
Typescript Monorepo Example
This is a modern typescript monorepo example
The full write up on how this monorepo works is and how to set it up here
Package Breakdown
- interfacesTypescript only interface repo, no build step, no testing, no javascript support
- package-aPackage with build step, testing, dependance on- interfaces, and with publish support for javascript. Uses- esbuildfor building -> more configurable, better for complex packages
- package-bReact package with build step, dependance on- package A, and with publish support for javascript. Uses- vitefor building, perfect for frontend packages.
- package-cPackage with build step and publish support for javascript. Uses- tsupfor building -> zero config, better for simpler packages
Both tsup and vite are built upon esbuild so they are all insanely fast.
Technologies
- Pnpm - more space efficent package manager
- Esbuild - blazing fast build tool
- Vite - Support for frontend ui packages
- Eslint
- Prettier
- Jest
- Typescript Project Reference - Incremental and composite typescript builds