renovate/lib/modules/manager/bazelisk/extract.ts

13 lines
447 B
TypeScript

import { GithubReleasesDatasource } from '../../datasource/github-releases';
import type { PackageDependency, PackageFileContent } from '../types';
export function extractPackageFile(content: string): PackageFileContent {
const dep: PackageDependency = {
depName: 'bazel',
currentValue: content.split('\n', 2)[0].trim(),
datasource: GithubReleasesDatasource.id,
packageName: 'bazelbuild/bazel',
};
return { deps: [dep] };
}