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,15 +1,15 @@
import { run, subcommands } from "cmd-ts";
import { bootstrap } from "./subcommands/bootstrap";
import { create } from "./subcommands/create";
import { get } from "./subcommands/get";
import { importCmd } from "./subcommands/importCmd";
import { ls, ps } from "./subcommands/list";
import { load } from "./subcommands/load";
import { log } from "./subcommands/log";
import { server } from "./subcommands/server";
import { status } from "./subcommands/status";
import { unload } from "./subcommands/unload";
import { printVersion, version } from "./subcommands/version";
import { bootstrap } from "./subcommands/bootstrap.js";
import { create } from "./subcommands/create.js";
import { get } from "./subcommands/get.js";
import { importCmd } from "./subcommands/importCmd.js";
import { ls, ps } from "./subcommands/list.js";
import { load } from "./subcommands/load.js";
import { log } from "./subcommands/log.js";
import { server } from "./subcommands/server.js";
import { status } from "./subcommands/status.js";
import { unload } from "./subcommands/unload.js";
import { printVersion, version } from "./subcommands/version.js";
if (process.argv.length === 2) {
printVersion();
@ -32,8 +32,8 @@ const cli = subcommands({
// dev,
// push,
import: importCmd,
version,
bootstrap,
version,
},
});