Tailwindcss cli exits early when run in watch mode via turbo run.
Run yarn dev
/ npm run dev
in root. The process will exit straight away.
cd packages/tailwind && yarn dev
tailwind cli runs fine when called directly.
Tailwindcss cli listens to stdin for 'end' event to exit process. This looks to be in place to stop zombie processes. Turborepo doesn't connect to the tailwind stdin which causes an instant EOF event when process.stdin.resume() is called.
See ./packages/listener for a replication. Run from root and it will exit. Run directly from package and it works as expected.
- See potential solution from a tailwindcss cli perspective.
- Alternatively maybe it's Turborepo's responsibility to pipe std through to child processes, however I think this would cause issues with multiple child processes running.