INNER CODE UNIT · TypeScript
startNodeDevServer
lmstudio-ai/lms · src/subcommands/dev/index.ts:150
async function startNodeDevServer(
projectPath: string,
logger: SimpleLogger,
client: LMStudioClient,
{ noNotify }: { noNotify: boolean },
) {
const esbuild = new UtilBinary("esbuild");
const watcher = new NodePluginRunnerWatcher(esbuild, cwd(), logger);
const pluginProcess = new NodePluginProcess(projectPath, client, logger, { noNotify });
watcher.updatedEvent.subscribe(() => {
pluginProcess.run();
});
await watcher.start();
}
export const dev = devCommand;