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