Skip to content

Commit 4e62334

Browse files
Revert "Only listen for stdin close on TTYs (#8523)" (#9331)
* Revert "Only listen for stdin close on TTYs (#8523)" This reverts commit 14f6574. * Update changelog
1 parent 8fe6f48 commit 4e62334

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3333
- Handle variants in utility selectors using `:where()` and `:has()` ([#9309](https://github.com/tailwindlabs/tailwindcss/pull/9309))
3434
- Improve data type analyses for arbitrary values ([#9320](https://github.com/tailwindlabs/tailwindcss/pull/9320))
3535
- Don't emit generated utilities with invalid uses of theme functions ([#9319](https://github.com/tailwindlabs/tailwindcss/pull/9319))
36+
- Revert change that only listened for stdin close on TTYs ([#9331](https://github.com/tailwindlabs/tailwindcss/pull/9331))
3637

3738
## [3.1.8] - 2022-08-05
3839

src/cli.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1016,10 +1016,8 @@ async function build() {
10161016

10171017
if (shouldWatch) {
10181018
/* Abort the watcher if stdin is closed to avoid zombie processes */
1019-
if (process.stdin.isTTY) {
1020-
process.stdin.on('end', () => process.exit(0))
1021-
process.stdin.resume()
1022-
}
1019+
process.stdin.on('end', () => process.exit(0))
1020+
process.stdin.resume()
10231021
startWatcher()
10241022
} else {
10251023
buildOnce()

0 commit comments

Comments
 (0)