mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 07:20:39 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
import type { RangeStrategy } from '../../../types/index.ts';
|
|
import type { RangeConfig } from '../types.ts';
|
|
|
|
export function getRangeStrategy({
|
|
currentValue,
|
|
rangeStrategy,
|
|
}: RangeConfig): RangeStrategy {
|
|
if (rangeStrategy !== 'auto') {
|
|
return rangeStrategy!;
|
|
}
|
|
if (currentValue?.includes('<')) {
|
|
return 'widen';
|
|
}
|
|
return 'update-lockfile';
|
|
}
|