Skip to content

Commit 0b661fc

Browse files
committed
fix build
1 parent fc5b7b2 commit 0b661fc

File tree

6 files changed

+143
-293
lines changed

6 files changed

+143
-293
lines changed

bun.lock

Lines changed: 1 addition & 218 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ process.stdout.columns = 100;
77

88
import { program } from "commander";
99
import chalk from "chalk";
10-
import { createRequire } from "module";
11-
const require = createRequire(import.meta.url);
12-
const { version } = require("../package.json");
10+
import packageJson from "./package.json" with { type: "json" };
11+
const { version } = packageJson;
1312
import { commandDescriptions, cliConfig } from "./lib/parser.js";
1413
import { client } from "./lib/commands/generic.js";
1514
import { getLatestVersion, compareVersions } from "./lib/utils.js";
@@ -46,8 +45,9 @@ import { teams } from "./lib/commands/teams.js";
4645
import { tokens } from "./lib/commands/tokens.js";
4746
import { users } from "./lib/commands/users.js";
4847
import { vcs } from "./lib/commands/vcs.js";
48+
import searchList from "inquirer-search-list";
4949

50-
inquirer.registerPrompt("search-list", require("inquirer-search-list"));
50+
inquirer.registerPrompt("search-list", searchList);
5151

5252
/**
5353
* Check for updates and show version information

0 commit comments

Comments
 (0)