Fix starters not using matching template

This commit is contained in:
Rémi de Juvigny 2021-11-24 17:14:59 +01:00
parent 8180ea013c
commit 2db43b331f

View File

@ -167,9 +167,9 @@ module.exports = async function buildStarter({ projectName, starter }, program)
run: false,
};
if (starterPackageInfo.version) {
starterPackageInfo.template = `${starterJson.template.name}@${starterJson.template.version}`;
generateStrapiAppOptions.template = `${starterJson.template.name}@${starterJson.template.version}`;
} else {
starterPackageInfo.template = starterJson.template.name;
generateStrapiAppOptions.template = starterJson.template.name;
}
// Create strapi app using the template