mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: do not resolve packageFile content (#698)
This commit is contained in:
parent
26cdabe57e
commit
d72dccfbe1
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,7 @@ async function resolveConfigPresets(
|
||||||
);
|
);
|
||||||
let config = {};
|
let config = {};
|
||||||
// First, merge all the preset configs from left to right
|
// First, merge all the preset configs from left to right
|
||||||
if (inputConfig.extends) {
|
if (inputConfig.extends && inputConfig.extends.length) {
|
||||||
logger.debug('Found presets');
|
logger.debug('Found presets');
|
||||||
for (const preset of inputConfig.extends) {
|
for (const preset of inputConfig.extends) {
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
|
@ -44,7 +44,8 @@ async function resolveConfigPresets(
|
||||||
logger.trace({ config }, `Post-merge resolve config`);
|
logger.trace({ config }, `Post-merge resolve config`);
|
||||||
for (const key of Object.keys(config)) {
|
for (const key of Object.keys(config)) {
|
||||||
const val = config[key];
|
const val = config[key];
|
||||||
if (isObject(val) && key !== 'logger') {
|
const ignoredKeys = ['api', 'content', 'logger'];
|
||||||
|
if (isObject(val) && ignoredKeys.indexOf(key) === -1) {
|
||||||
// Resolve nested objects
|
// Resolve nested objects
|
||||||
logger.trace(`Resolving object "${key}"`);
|
logger.trace(`Resolving object "${key}"`);
|
||||||
config[key] = await resolveConfigPresets(val, logger, existingPresets);
|
config[key] = await resolveConfigPresets(val, logger, existingPresets);
|
||||||
|
|
Loading…
Reference in a new issue