mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
14 lines
506 B
TypeScript
14 lines
506 B
TypeScript
import { logger } from '../../../logger';
|
|
import { GithubReleasesDatasource } from '../../datasource/github-releases';
|
|
import type { PackageDependency, PackageFileContent } from '../types';
|
|
|
|
export function extractPackageFile(content: string): PackageFileContent {
|
|
logger.trace('terraform-version.extractPackageFile()');
|
|
const dep: PackageDependency = {
|
|
depName: 'hashicorp/terraform',
|
|
currentValue: content.trim(),
|
|
datasource: GithubReleasesDatasource.id,
|
|
};
|
|
return { deps: [dep] };
|
|
}
|