mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
add dirname
This commit is contained in:
8
scripts/gh-pages/build.mjs
Normal file
8
scripts/gh-pages/build.mjs
Normal file
@ -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);
|
Reference in New Issue
Block a user