mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
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] };
|
|
}
|