schemas/index.js
Sebastian Kippe 56d4da5ab1 Support browserification of module
In order for browserify/babel to work with this module and ES6 imports,
we need a little helper package that enables readFileSync
transformation. This only works with static paths however, so we need
to change these, too.
2017-06-05 20:14:38 +02:00

8 lines
278 B
JavaScript

const fs = require('fs');
const path = require('path');
module.exports = {
"contribution": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contribution.json'))),
"contributor": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contributor.json')))
};