mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-03 23:09:17 -05:00
e50d4d92a2
* chore: add signature module * feat: improved config and token signature feat: improved config and token signature Update package.json * chore: update deps * types * fix: logger missing options * chore: update deps * update dep * Update e2e-jest-workflow.yml * Update init.ts * Update config-path.ts * fix logger * Update init.ts
15 lines
415 B
JavaScript
15 lines
415 B
JavaScript
|
|
import _ from 'lodash';
|
|
import path from 'path';
|
|
|
|
import {parseConfigFile} from '@verdaccio/config';
|
|
|
|
/**
|
|
* Override the default.yaml configuration file with any new config provided.
|
|
*/
|
|
export default (options, url = 'default.yaml') => {
|
|
const locationFile = path.join(__dirname, `../config/yaml/${url}`);
|
|
const config = parseConfigFile(locationFile);
|
|
|
|
return _.assign({}, _.cloneDeep(config), options);
|
|
}
|