From 7a518522ba3aa6adda5ed4fc7a479f6fefc714de Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Thu, 18 May 2023 09:05:14 +0800 Subject: [PATCH] add dirname --- scripts/gh-pages/build.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/gh-pages/build.mjs diff --git a/scripts/gh-pages/build.mjs b/scripts/gh-pages/build.mjs new file mode 100644 index 0000000..b06b397 --- /dev/null +++ b/scripts/gh-pages/build.mjs @@ -0,0 +1,8 @@ +/* @ts-check */ +import path from 'path'; +import { fileURLToPath } from 'url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +console.log(__dirname); \ No newline at end of file