17 lines
No EOL
373 B
TypeScript
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"; |