1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/packages/cp-gql-schema/index.js

9 lines
265 B
JavaScript
Raw Normal View History

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