chromatic-cli
chromatic-cli copied to clipboard
Support multiple storybooks in TypeScript monorepos
The suggested work around for multiple Storybooks in a monorepo (docs) does not work with Typescript as the storybooks need to be transpiled with WebPack. There is no easy way to merge multiple WebPack builds even if they are using the same configurations.
Example Repo
apps/
web-app-a/
.storybook/
package.json
src/
index.stories.tsx
storybook-static
web-app-b/
.storybook/
package.json
src/
index.stories.tsx
storybook-static
web-app-c/
.storybook/
package.json
src/
index.stories.tsx
storybook-static
Suggested Options:
- Chromatic to add full support for multiple Chromatic projects in a single GitHub repo with full working PR checks
- Chromatic to add support for multiple Storybooks in a single Chromatic project
Having same issue
+1
This is a must with Nx -> we have 2 apps: 1 nextjs app and one create react app with different setups and it is becoming a nightmare
This would be very useful for us, too.
My colleague shared an announcement with me, but it looks like monorepo is officially supported?
https://www.chromatic.com/blog/monorepo-support/
Hi @kenfdev you are correct. Monorepo support is now officially supported.