mirror of https://github.com/renovatebot/renovate
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import type { RangeStrategy } from '../../../types';
|
|
import type { RangeConfig } from '../types';
|
|
|
|
export function getRangeStrategy({
|
|
currentValue,
|
|
rangeStrategy,
|
|
}: RangeConfig): RangeStrategy {
|
|
if (rangeStrategy !== 'auto') {
|
|
return rangeStrategy;
|
|
}
|
|
if (currentValue?.includes('<')) {
|
|
return 'widen';
|
|
}
|
|
return 'update-lockfile';
|
|
}
|