From 35504a9607932203c6d4c97690a838c7281b1738 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Wed, 14 Sep 2022 15:10:13 -0400 Subject: [PATCH 1/2] Revert "Only listen for stdin close on TTYs (#8523)" This reverts commit 14f6574318b66f7df4d8767c2c70ecb73c4ee26d. --- src/cli.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli.js b/src/cli.js index 52c3d08f6b8e..2851a79f1ec3 100644 --- a/src/cli.js +++ b/src/cli.js @@ -1016,10 +1016,8 @@ async function build() { if (shouldWatch) { /* Abort the watcher if stdin is closed to avoid zombie processes */ - if (process.stdin.isTTY) { - process.stdin.on('end', () => process.exit(0)) - process.stdin.resume() - } + process.stdin.on('end', () => process.exit(0)) + process.stdin.resume() startWatcher() } else { buildOnce() From cd78a4718fa2ef8a6ff07035217b450059ef52fa Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Wed, 14 Sep 2022 15:54:10 -0400 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95e21db552d9..5bc5953591a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Handle variants in utility selectors using `:where()` and `:has()` ([#9309](https://github.com/tailwindlabs/tailwindcss/pull/9309)) - Improve data type analyses for arbitrary values ([#9320](https://github.com/tailwindlabs/tailwindcss/pull/9320)) - Don't emit generated utilities with invalid uses of theme functions ([#9319](https://github.com/tailwindlabs/tailwindcss/pull/9319)) +- Revert change that only listened for stdin close on TTYs ([#9331](https://github.com/tailwindlabs/tailwindcss/pull/9331)) ## [3.1.8] - 2022-08-05