mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
1810ed0d81
* feat:Environment variables support in configuration file * add changeset * remove fixes typo Co-authored-by: amit <amit@enso.security>
8 lines
277 B
TypeScript
8 lines
277 B
TypeScript
import path from 'path';
|
|
|
|
export const parseConfigurationFile = (conf: string) => {
|
|
const { name, ext } = path.parse(conf);
|
|
const format = ext.startsWith('.') ? ext.substring(1) : 'yaml';
|
|
|
|
return path.join(__dirname, `../partials/config/${format}/${name}.${format}`);
|
|
};
|