migrate config file to json; read them via fs.

This commit is contained in:
bossgeekgo
2024-02-11 23:43:10 +08:00
parent 4e2904721d
commit f9761a47bb
11 changed files with 154 additions and 126 deletions
+3
View File
@@ -0,0 +1,3 @@
import * as url from 'url';
export const get__filename = () => url.fileURLToPath(import.meta.url);
export const get__dirname = () => url.fileURLToPath(new URL('.', import.meta.url));