diff --git a/package.json b/package.json index 66c9030a6..59ca5db20 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,6 @@ "@babel/traverse": "7.16.7", "@types/async-retry": "^1.4.1", "@types/debug": "0.0.30", - "@types/get-stdin": "^5.0.1", "@types/ini": "^4.1.1", "@types/jest": "^28.0.0", "@types/json5": "^2.2.0", @@ -153,7 +152,6 @@ "core-js": "^3.8.2", "debug": "^4.1.1", "fast-json-patch": "^3.0.0-1", - "get-stdin": "^6.0.0", "http-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.1", "hyperlinker": "^1.0.0", diff --git a/source/commands/danger-runner.ts b/source/commands/danger-runner.ts index 336aa2b82..a6b17895f 100644 --- a/source/commands/danger-runner.ts +++ b/source/commands/danger-runner.ts @@ -5,7 +5,7 @@ import nodeCleanup from "node-cleanup" import program from "commander" import { debug } from "../debug" -import getSTDIN from "get-stdin" +import streamConsumers from "node:stream/consumers" import chalk from "chalk" import inline from "../runner/runners/inline" @@ -95,4 +95,4 @@ const missingDSLTimeout = setTimeout(() => { }, 10000) // Start waiting on STDIN for the DSL -getSTDIN().then(run(program as any)) +streamConsumers.text(process.stdin).then(run(program as any)) diff --git a/yarn.lock b/yarn.lock index 8f656e72c..1838df2e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1764,13 +1764,6 @@ dependencies: "@types/node" "*" -"@types/get-stdin@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@types/get-stdin/-/get-stdin-5.0.1.tgz#46afbcaf09e94fe025afa07ae994ac3168adbdf3" - integrity sha512-hkShVHsKPKK4OulBjeYi15m5RQRR2ZV7ItFEa3C+QEay81MenD5ZfcTxzlo3ZaUTkbCbpw5XIW/NWKQNWq+Q/A== - dependencies: - "@types/node" "*" - "@types/graceful-fs@^4.1.3": version "4.1.9" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.9.tgz#2a06bc0f68a20ab37b3e36aa238be6abdf49e8b4"