mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
feat(composer): Default to 'widen' rangeStrategy for TYPO3 extensions (#14175)
This commit is contained in:
parent
d9caa4afb2
commit
32f7988493
2 changed files with 11 additions and 1 deletions
|
@ -41,4 +41,14 @@ describe('manager/composer/range', () => {
|
|||
const config: RangeConfig = { rangeStrategy: 'auto', depType: 'require' };
|
||||
expect(getRangeStrategy(config)).toBe('replace');
|
||||
});
|
||||
it('defaults to widen for TYPO3 extensions', () => {
|
||||
const config: RangeConfig = {
|
||||
managerData: {
|
||||
composerJsonType: 'typo3-cms-extension',
|
||||
},
|
||||
rangeStrategy: 'auto',
|
||||
depType: 'require',
|
||||
};
|
||||
expect(getRangeStrategy(config)).toBe('widen');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -42,7 +42,7 @@ export function getRangeStrategy(config: RangeConfig): RangeStrategy {
|
|||
logger.trace({ dependency: depName }, 'Pinning app require');
|
||||
return 'pin';
|
||||
}
|
||||
if (isComplexRange) {
|
||||
if (isComplexRange || ['typo3-cms-extension'].includes(composerJsonType)) {
|
||||
return 'widen';
|
||||
}
|
||||
return 'replace';
|
||||
|
|
Loading…
Reference in a new issue