add dirname

This commit is contained in:
DefectingCat
2023-05-18 09:05:14 +08:00
parent 138f003793
commit 7a518522ba

View 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);