el.xwx.moe/scripts/start.ts

14 lines
318 B
TypeScript
Raw Normal View History

2023-12-08 10:01:47 -06:00
import shell from "shelljs";
import urlHandler from "../lib/api/urlHandler";
const command = process.argv[2];
const args = process.argv.slice(3).join(" ");
if (!command) {
console.log("Please provide a command to run. (start, dev, etc.)");
process.exit(1);
}
shell.exec(`yarn ${command || ""} ${args || ""}`);