Monorepo for all Devbook's webapps and packages.
This whole repo is a pnpm workspace that has multiple packages in the apps/
and packages/
subdirectories.
In the top directory run pnpm install
to install deps in all packages.
Run pnpm install <deps>
in any subdirectory to install the dependencies there.
Run pnpm install <deps> --filter <package-name-or-regex>
to install dependencies in specified packages.
https://turbo.build/repo/docs/core-concepts/monorepos/filtering
Run pnpm dev
to start watching and compiling all changes in this monorepo.
pnpm install
- Install dependencies for all packages and apppnpm build
- Build all packages and appspnpm dev
- Develop all packages and appspnpm lint
- Lint all packagespnpm changeset
- Generate a changeset (it will guide you)pnpm version-packages
- Create changelog from the changeset and increment packages' versions accordinglypnpm clean
- Clean up allnode_modules
anddist
folders (runs each package's clean script)
Run pnpm changeset
to mark packages you want to release then run pnpm version-packages
and commit the resulting changes. Marked packages will be published when you push to master
.
If the deployment fails don't run the previous commands again, just fix the error and push to master
.
Check how to handle internal packages https://github.com/formbricks/formbricks/blob/main/packages/react/package.json