mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
45c03819e2
* refactor: render middleware * refactor: render middleware
8 lines
235 B
TypeScript
8 lines
235 B
TypeScript
import path from 'path';
|
|
|
|
import { parseConfigFile } from '@verdaccio/config';
|
|
|
|
export const getConf = (configName: string) => {
|
|
const configPath = path.join(__dirname, 'config', configName);
|
|
return parseConfigFile(configPath);
|
|
};
|