From d11632d44b740ab8b78ec27544afb480f406a9d5 Mon Sep 17 00:00:00 2001 From: Soccera1 <129828376+Soccera1@users.noreply.github.com> Date: Thu, 6 Aug 2026 01:58:10 +1000 Subject: Automatically publish to npm --- bin/bnu.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bin/bnu.js') diff --git a/bin/bnu.js b/bin/bnu.js index 9d1917e..0ea480b 100755 --- a/bin/bnu.js +++ b/bin/bnu.js @@ -1,12 +1,10 @@ #!/usr/bin/env bun import { realpathSync } from "node:fs"; -import { basename, dirname, join } from "node:path"; -import { pathToFileURL } from "node:url"; +import { basename } from "node:path"; +import { commandNames } from "../src/shared/catalog.js"; +import { main } from "../src/shared/runtime.js"; -const here = dirname(realpathSync(Bun.argv[1])); globalThis[Symbol.for("bnu.cli")] = true; -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