From 54fe5389e13c3ae62a27c414af03cc6d5a260837 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Tue, 17 Dec 2024 12:49:14 +0530 Subject: [PATCH] feat: add global constants --- src/globals.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/globals.ts diff --git a/src/globals.ts b/src/globals.ts new file mode 100644 index 0000000..0515128 --- /dev/null +++ b/src/globals.ts @@ -0,0 +1,5 @@ +import path from "path"; +import { fileURLToPath } from "url"; + +export const __filename = fileURLToPath(import.meta.url); +export const __dirname = path.dirname(__filename);