Skip to content

Commit 0182fe2

Browse files
authored
Remove read-all-stdin-sync dependency (#11433)
1 parent 38eb4cf commit 0182fe2

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

core/service-test-runner/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
// Relying on npm scripts is safer. Using "pre" makes it impossible to run
5555
// the second step without the first.
5656

57+
import fs from 'fs'
5758
import minimist from 'minimist'
5859
import envFlag from 'node-env-flag'
59-
import readAllStdinSync from 'read-all-stdin-sync'
6060
import { createTestServer } from '../server/in-process-server-test-helpers.js'
6161
import Runner from './runner.js'
6262

@@ -73,7 +73,7 @@ let onlyServices
7373
if (stdinOption && onlyOption) {
7474
console.error('Do not use --only with --stdin')
7575
} else if (stdinOption) {
76-
const allStdin = readAllStdinSync().trim()
76+
const allStdin = fs.readFileSync(0, 'utf-8').trim()
7777
onlyServices = allStdin ? allStdin.split('\n') : []
7878
} else if (onlyOption) {
7979
onlyServices = onlyOption.split(',')

package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
"prism-react-renderer": "^2.4.1",
203203
"react": "^18.3.0",
204204
"react-dom": "^18.3.1",
205-
"read-all-stdin-sync": "^1.0.5",
206205
"rimraf": "^6.0.1",
207206
"sazerac": "^2.0.0",
208207
"simple-git-hooks": "^2.13.1",

0 commit comments

Comments
 (0)