renovate/lib/modules/manager/nvm/extract.ts
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00

12 lines
397 B
TypeScript

import { GithubTagsDatasource } from '../../datasource/github-tags';
import type { PackageDependency, PackageFile } from '../types';
export function extractPackageFile(content: string): PackageFile {
const dep: PackageDependency = {
depName: 'node',
currentValue: content.trim(),
datasource: GithubTagsDatasource.id,
packageName: 'nodejs/node',
};
return { deps: [dep] };
}