mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
refactor: remove namespace imports (#969)
* refactor: remove namespace imports * refactor: use named fs imports * refactor(app): replace path and fs namespace imports * format * format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { flag } from 'country-emoji';
|
||||
import getCountryISO2 from 'country-iso-3-to-2';
|
||||
import fs from 'fs';
|
||||
import { writeFileSync } from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
import { countryCodes } from '../constants/constants.js';
|
||||
@@ -16,7 +16,7 @@ try {
|
||||
}));
|
||||
|
||||
const outputPath = path.join(__dirname, './countryOptions.json');
|
||||
fs.writeFileSync(outputPath, JSON.stringify(countryOptions, null, 2));
|
||||
writeFileSync(outputPath, JSON.stringify(countryOptions, null, 2));
|
||||
|
||||
console.log(`Generated country options at ${outputPath}`);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user