Transition to rollup to support exports (#106)

* Use .js for imports

* WIP

* WIP

* Finish transitioning to esm

* Disable experimental commands

* Bring back bootstrap
This commit is contained in:
ryan-the-crayon
2024-11-26 11:43:21 -05:00
committed by GitHub
parent efec76ac9e
commit bca35e0cce
19 changed files with 73 additions and 64 deletions

View File

@ -1,6 +1,7 @@
import { SimpleLogger, text, Validator } from "@lmstudio/lms-common";
import { EsPluginRunnerWatcher, UtilBinary } from "@lmstudio/lms-es-plugin-runner";
import { pluginManifestSchema } from "@lmstudio/lms-shared-types/dist/PluginManifest";
import { EsPluginRunnerWatcher } from "@lmstudio/lms-es-plugin-runner/runner-watcher";
import { UtilBinary } from "@lmstudio/lms-es-plugin-runner/util-binary";
import { pluginManifestSchema } from "@lmstudio/lms-shared-types";
import {
type LMStudioClient,
type PluginManifest,
@ -11,12 +12,12 @@ import { boolean, command, flag } from "cmd-ts";
import { cp, mkdir, readFile } from "fs/promises";
import { join } from "path";
import { cwd } from "process";
import { askQuestion } from "../confirm";
import { createClient, createClientArgs } from "../createClient";
import { exists } from "../exists";
import { findProjectFolderOrExit } from "../findProjectFolder";
import { pluginsFolderPath } from "../lmstudioPaths";
import { createLogger, logLevelArgs } from "../logLevel";
import { askQuestion } from "../confirm.js";
import { createClient, createClientArgs } from "../createClient.js";
import { exists } from "../exists.js";
import { findProjectFolderOrExit } from "../findProjectFolder.js";
import { pluginsFolderPath } from "../lmstudioPaths.js";
import { createLogger, logLevelArgs } from "../logLevel.js";
type PluginProcessStatus = "stopped" | "starting" | "running" | "restarting";