Better practice npm Package Design in Monorepo with pnpm and turborepo, deploying into Vercel.
Preinstall
$ npm i -g pnpm
$ pnpm -v # should >= 6.20.0
# Install Rust and Cargo
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install dependencies
$ pnpm install
Preview:
# Start React App
$ pnpm --filter "react-app" start
$ pnpm start --filter "vite-app"
$ pnpm --filter "node-app" start
# using `...` will run `start` script of dumi-app and all of its dependencies:
$ pnpm --filter "dumi-app..." --parallel start
$ pnpm --filter "@infras/shared" dev
$ pnpm --filter "@infras/ui" dev
$ pnpm --filter "@infras/native" build