0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/packages/middleware/test/_helper.ts

9 lines
235 B
TypeScript
Raw Normal View History

import path from 'path';
import { parseConfigFile } from '@verdaccio/config';
export const getConf = (configName: string) => {
const configPath = path.join(__dirname, 'config', configName);
return parseConfigFile(configPath);
};