Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
// Thin shim so the CLI is callable as `toolctrl-cli`.
|
||||
// The actual command tree lives in ../src/index.ts and is loaded via tsx in dev,
|
||||
// or via the compiled output once the build pipeline produces dist/index.js.
|
||||
import { fileURLToPath, pathToFileURL } from "node:url";
|
||||
import { existsSync } from "node:fs";
|
||||
import { dirname, resolve } from "node:path";
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const distEntry = resolve(__dirname, "../dist/index.js");
|
||||
const srcEntry = resolve(__dirname, "../src/index.ts");
|
||||
|
||||
const target = existsSync(distEntry) ? distEntry : srcEntry;
|
||||
const moduleUrl = pathToFileURL(target).href;
|
||||
|
||||
const { runMain } = await import(moduleUrl);
|
||||
await runMain();
|
||||
Reference in new issue
Block a user