49a5a4c1ad
README.md edited online with Bitbucket Add esdoc Upgraded dependencies Fixed dependencies in readme Fix description Fixed readme 0.1.0 config.env deleted online with Bitbucket
16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
import supportedLangs from '../src/supportedLangs';
|
|
import fs from 'fs';
|
|
|
|
const obj = {
|
|
languages: {},
|
|
countries: {}
|
|
};
|
|
|
|
for (const lang of supportedLangs) {
|
|
obj.languages[lang] = require(`../res/languages/${lang}`);
|
|
obj.countries[lang] = require(`../res/countries/${lang}`);
|
|
}
|
|
|
|
fs.writeFileSync(`../src/packagedJson.json`,
|
|
JSON.stringify(obj));
|
|
|