chore(cli): emit bundle in ESM format (#3777)

This commit is contained in:
James George
2024-02-05 22:55:05 +05:30
committed by GitHub
parent 3d6adcc39d
commit 3482743782
11 changed files with 232 additions and 188 deletions

View File

@@ -1,5 +1,5 @@
import chalk from "chalk";
import { program } from "commander";
import { Command } from "commander";
import * as E from "fp-ts/Either";
import { version } from "../package.json";
import { test } from "./commands/test";
@@ -20,6 +20,8 @@ const CLI_AFTER_ALL_TXT = `\nFor more help, head on to ${accent(
"https://docs.hoppscotch.io/documentation/clients/cli"
)}`;
const program = new Command()
program
.name("hopp")
.version(version, "-v, --ver", "see the current version of hopp-cli")