From c11e17573334dfb487a8e1cc25fa84fa9e138f5c Mon Sep 17 00:00:00 2001 From: Lily <129828376+Soccera1@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:12:21 +1000 Subject: Refactor coreutils into single-call command modules (#1) * Refactor to single call --- bin/bnu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/bnu.js') diff --git a/bin/bnu.js b/bin/bnu.js index b451084..9d1917e 100755 --- a/bin/bnu.js +++ b/bin/bnu.js @@ -5,7 +5,8 @@ import { pathToFileURL } from "node:url"; const here = dirname(realpathSync(Bun.argv[1])); globalThis[Symbol.for("bnu.cli")] = true; -const { commandNames, main } = await import(pathToFileURL(join(here, "../src/coreutils.js")).href); +const { commandNames } = await import(pathToFileURL(join(here, "../src/shared/catalog.js")).href); +const { main } = await import(pathToFileURL(join(here, "../src/shared/runtime.js")).href); let invokedPath = Bun.argv[1]; try { if (process.env._ && realpathSync(process.env._) === realpathSync(Bun.argv[1])) invokedPath = process.env._; -- cgit v1.3