0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/modules/manager/nvm/extract.ts
2024-01-29 14:29:22 +00:00

12 lines
382 B
TypeScript

import { NodeVersionDatasource } from '../../datasource/node-version';
import type { PackageDependency, PackageFileContent } from '../types';
export function extractPackageFile(content: string): PackageFileContent {
const dep: PackageDependency = {
depName: 'node',
currentValue: content.trim(),
datasource: NodeVersionDatasource.id,
};
return { deps: [dep] };
}