aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSoccera1 <[email protected]>2026-07-18 09:27:17 +1000
committerSoccera1 <[email protected]>2026-07-18 09:27:17 +1000
commit6f5241afb5bd1d6a1a8724bf06cc6f205c279402 (patch)
tree2aa852e968f6b89f2c8458333ce3e7c38b3c2450 /bin
parenta753f669c9bedfccb9f7f400da018bb487dca5d0 (diff)
downloadbnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.tar.gz
bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.zip
Refactor to single call
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bnu.js3
1 files changed, 2 insertions, 1 deletions
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._;