tailwindcss/packages/@tailwindcss-cli
Michael Glass 26fcae0e1a
Re-read the watcher swap while shutting down
Shutdown captured the swap promise once, so it waited for whichever swap was
current when stdin closed. A rebuild already in flight can start its own swap
after that point, and the queue was then closed while the later one was still
flushing — the same dropped changes, one interleaving further out.

Read the current swap each time round instead, until it stops changing.

The regression test drives that interleaving directly: it replaces the swap
while shutdown is already waiting, and asserts the queue stays open until the
later one has flushed. Against capture-by-value the queue is already closed
with only the first swap's work landed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lcj4iQ3fBxMwAu2rf4zLbC
2026-08-31 16:18:31 +02:00
..
src Re-read the watcher swap while shutting down 2026-08-31 16:18:31 +02:00
package.json Bump dependencies (#20381) 2026-08-04 13:55:03 +02:00
README.md docs: update package README CI badge to main (#19692) 2026-02-18 11:52:07 +01:00
tsconfig.json Move the CLI to its own package @tailwindcss/cli (#13095) 2024-03-06 05:41:12 -05:00
tsup.config.ts Resolve @import in core (#14446) 2024-09-23 17:05:55 +02:00

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License


Documentation

For full documentation, visit tailwindcss.com.

Community

For help, discussion about best practices, or feature ideas:

Discuss Tailwind CSS on GitHub

Contributing

If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.