mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 00:56:26 +00:00
9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
import { RangeConfig } from '../common';
|
|
import { RangeStrategy } from '../../versioning';
|
|
|
|
export function getRangeStrategy(config: RangeConfig): RangeStrategy {
|
|
if (config.rangeStrategy === 'auto') {
|
|
return 'pin';
|
|
}
|
|
return config.rangeStrategy;
|
|
}
|