mirror of https://github.com/renovatebot/renovate
13 lines
447 B
TypeScript
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] };
|
|
}
|