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

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] };
}