Convert to ESM

This commit is contained in:
schroda
2024-12-24 13:42:01 +01:00
parent 89cab26f73
commit 9d74380e94
10 changed files with 20 additions and 27 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
import path from 'path';
import fs from 'fs';
const outputFilePath = path.join(__dirname, '../../src/lib/dayjs/LocaleImporter.ts');
const resourcesDirPath = path.join(__dirname, '../../node_modules/dayjs/locale');
const outputFilePath = path.join(import.meta.dirname, '../../src/lib/dayjs/LocaleImporter.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../node_modules/dayjs/locale');
const dayjsLocaleFileNames = fs.readdirSync(resourcesDirPath);