joyent-portal/packages/cp-gql-schema/index.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

9 lines
265 B
JavaScript

const path = require('path');
const { readFile } = require('mz/fs');
const { readFileSync } = require('fs');
const file = path.join(__dirname, 'schema.gql');
module.exports = () => readFile(file, 'utf-8');
module.exports.sync = () => readFileSync(file, 'utf-8');