mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
45c03819e2
* refactor: render middleware * refactor: render middleware
9 lines
235 B
TypeScript
9 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);
|
|
};
|