UNPKG

@firebolt-js/openrpc

Version:
19 lines (15 loc) 336 B
import path from 'path' import { readJson } from './filesystem.mjs' let config = null export const loadConfig = async (language) => { if (!config) { config = await readJson(path.join(language, 'language.config.json')) } return config } export const getConfig = () => { if (!config) { return {}; } return config }