forge-sql-orm-cli
Version:
CLI tool for Forge SQL ORM
19 lines (18 loc) • 941 B
JavaScript
;
const child_process = require("child_process");
const path = require("path");
const url = require("url");
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
const __filename$1 = url.fileURLToPath(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("forgeSqlOrmCLI.js", document.baseURI).href);
const __dirname$1 = path.dirname(__filename$1);
const args = process.argv.slice(2).join(" ");
const cliPath = path.resolve(__dirname$1, "cli.mjs");
try {
child_process.execSync(`npx --yes tsm --no-warnings ${cliPath} ${args}`, { stdio: "inherit" });
process.exit(0);
} catch (e) {
console.error("⚠️ Command execution failed:", e.message);
process.exit(1);
}
//# sourceMappingURL=forgeSqlOrmCLI.js.map