/** * Ensure a connector project's npm dependencies are installed before the CLI * compiles its connectors. esbuild bundles a connector's imports relative to * the connector file's directory, so the project's own `node_modules` (next to * `package.json`) must exist. We install when stale, preferring `bun` (faster, * if the user has it) and falling back to `npm` (always present with Node) so * the lobu CLI never forces a bun install on the user's machine. * `--ignore-scripts` keeps install-time supply-chain surface off the user's * machine — packages that need build scripts (native bindings) belong in * `runtime.nix.packages`, not bundled npm. */ /** * Run the project's dependency install in `root` with the picked installer * (bun if available, else npm; `--ignore-scripts` always). Throws when the * install fails or the installer binary is missing — callers decide whether * that's fatal (`lobu apply` compile path) or a warning (`lobu init`). */ export declare function installProjectDeps(root: string, opts?: { /** "inherit" streams installer output to the terminal; "pipe" keeps it quiet. */ stdio?: "inherit" | "pipe"; }): { installer: string; }; /** * Install the connector project's deps if missing/stale. No-op when the * connector has no `package.json` (no declared npm deps to bundle). */ export declare function ensureProjectDepsInstalled(connectorFilePath: string, log: (message: string) => void): void; //# sourceMappingURL=ensure-deps-installed.d.ts.map