15 lines
252 B
TypeScript
15 lines
252 B
TypeScript
import "../serve.tsx";
|
|
|
|
Deno.args.forEach(arg=>
|
|
{
|
|
if(arg.startsWith("--"))
|
|
{
|
|
const kvp = arg.substring(2).split("=");
|
|
Deno.env.set(kvp[0], kvp[1] || "true");
|
|
}
|
|
});
|
|
|
|
if(Deno.env.get("dev"))
|
|
{
|
|
await import("../local.tsx");
|
|
} |