MCPcopy Create free account
hub / github.com/angular/dev-infra / updateStdinGetter

Function updateStdinGetter

ng-dev/release/precheck/precheck.spec.ts:55–57  ·  view source on GitHub ↗

* Updates the `process.stdin` property. Direct assignments will not work * since NodeJS declares `stdin` using a property accessor.

(newStdin: NodeJS.ReadableStream)

Source from the content-addressed store, hash-verified

53 * since NodeJS declares `stdin` using a property accessor.
54 */
55 function updateStdinGetter(newStdin: NodeJS.ReadableStream) {
56 Object.defineProperty(process, 'stdin', {get: () => newStdin});
57 }
58
59 /** Invokes the build command handler. */
60 async function invokePrecheck(stdin: ReleasePrecheckJsonStdin) {

Callers 2

precheck.spec.tsFile · 0.85
invokePrecheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected