iso-countries-languages/scripts/packageJson.js
pinturic 49a5a4c1ad First commit
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
2016-11-09 11:48:48 +01:00

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