diff --git a/_webi/serve-installer.js b/_webi/serve-installer.js index 21939993c..02d1f8aa8 100644 --- a/_webi/serve-installer.js +++ b/_webi/serve-installer.js @@ -70,18 +70,20 @@ InstallerServer.helper = async function ({ console.log(`dbg: Get Project Installer Type for '${projectName}':`); let proj = await Builds.getProjectType(projectName); - console.log(proj); + if (proj.type === 'alias') { + console.log(`dbg: alias`, proj); + projectName = proj.detail; + proj = await Builds.getProjectType(projectName); // an alias should never resolve to an alias + } + console.log(`dbg: proj`, proj); - let validTypes = ['alias', 'selfhosted', 'valid']; + let validTypes = ['selfhosted', 'valid']; if (!validTypes.includes(proj.type)) { let msg = `'${projectName}' doesn't have an installer: '${proj.type}': '${proj.detail}'`; let err = new Error(msg); err.code = 'ENOENT'; throw err; } - if (proj.type === 'alias') { - projectName = proj.detail; - } let tmplParams = { pkg: projectName,