add node aliases

This commit is contained in:
panticmilos 2022-04-19 14:08:54 +02:00
parent 146c4d84a5
commit b08c36311d
4 changed files with 5732 additions and 8521 deletions

View file

@ -373,6 +373,10 @@ async function queryDistForMatch(
let versions: string[] = [];
let nodeVersions = await getVersionsFromDist();
if (versionSpec === 'current' || versionSpec === 'latest' || versionSpec === 'node') {
return nodeVersions[0].version
}
nodeVersions.forEach((nodeVersion: INodeVersion) => {
// ensure this version supports your os and platform
if (nodeVersion.files.indexOf(dataFileName) >= 0) {