feat: 破坏性更新 cjs to es

This commit is contained in:
手瓜一十雪 committed 2024-05-22 19:58:45 +08:00
1 parent f65b2be06f
commit 442342d106
17 files changed
+75 -13

No files matched your search

+6
View File
@@ -1,6 +1,12 @@
import path from 'node:path';
import fs from 'node:fs';
import { log, logDebug, logError } from '@/common/utils/log';
import { dirname } from "node:path"
import { fileURLToPath } from "node:url"
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const configDir = path.resolve(__dirname, 'config');
fs.mkdirSync(configDir, { recursive: true });