Convert to ESM

This commit is contained in:
schroda
2024-12-24 03:32:55 +01:00
parent 89cab26f73
commit 9d74380e94
10 changed files with 20 additions and 27 deletions

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