UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

15 lines (14 loc) 722 B
import type { Socket } from 'net'; import { PluginWorkerEmitLogNotification } from './messaging'; export declare function setPluginWorkerHostSocket(socket: Socket): void; /** * Emits a log line from the plugin worker up to its host. The host * decides where it ends up (direct stdout/stderr when running under the * CLI, forwarded to the active daemon client when running under the * daemon). * * When plugin isolation is turned off, or this is otherwise called * outside of a connected plugin worker, the message is written * directly to stdout/stderr so the log line isn't silently dropped. */ export declare function emitPluginWorkerLog(level: PluginWorkerEmitLogNotification['level'], message: string): void;