INNER CODE UNIT · TypeScript

handleDevServer

lmstudio-ai/lms · src/subcommands/dev/index.ts:105

async function handleDevServer(
  projectPath: string,
  manifest: PluginManifest,
  logger: SimpleLogger,
  client: LMStudioClient,
  { noNotify }: { noNotify: boolean },
) {
  if (manifest.type !== "plugin") {
    logger.error("The version of lms you are using only supports plugins.");
    process.exit(1);
  }

  const runner = manifest.runner;

  switch (runner) {
    case "ecmascript":
    case "node":
      await ensureNpmDependencies(projectPath, logger, client);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…