UNPKG

@nestjs/cli

Version:

Nest - modern, fast, powerful node.js web framework (@cli)

20 lines (19 loc) • 980 B
/** * Offers to link the project to NestJS Observe right away, by running the * SDK's own `observe link` - which prints a code to approve in the dashboard * and writes the key pair into `.env`. Resolves whether it linked. * * Only where someone is there to approve it, and only when the installed SDK * ships the command: an older one, or `--skip-install`, falls back to the * printed next steps. */ export declare const offerObserveLink: (dir: string) => Promise<boolean>; /** * The way to connect it later, for when the link didn't happen. `keysHint` * is the by-hand alternative, which depends on how the project was wired: * `nest new` puts placeholders in `ObserveModule.forRoot()`, while * `nest upgrade` reads the pair from the environment. */ export declare const printObservabilityNextSteps: (keysHint?: string) => void; /** Whether the project's package.json lists `@nestjs/observe`. */ export declare const hasObserveDependency: (dir?: string) => boolean;