mix/lib.ts
2025-06-24 16:07:02 +01:00

17 lines
No EOL
373 B
TypeScript

export const environment: "prod" | "dev" = (() => {
const arg1 = process.argv[1] || "";
if (arg1.includes("bunx")) return "prod";
if (
arg1.includes(".bun\\install\\global") ||
arg1.includes(".bun/install/global")
) {
return "prod";
}
return "dev";
})();
export const isProd = environment === "prod";
export const isDev = environment === "dev";