fix(cli): improve changelog release handling and TypeScript compatibility

This commit is contained in:
2026-06-03 09:53:36 +00:00
parent 5cba50b56e
commit 0b7cd9c635
20 changed files with 1068 additions and 3206 deletions
+5 -1
View File
@@ -15,7 +15,7 @@ export const isTemplate = async (templateNameArg: string) => {
};
export const getTemplate = async (templateNameArg: string) => {
if (isTemplate(templateNameArg)) {
if (await isTemplate(templateNameArg)) {
const localScafTemplate = new plugins.smartscaf.ScafTemplate(
getTemplatePath(templateNameArg),
);
@@ -50,6 +50,10 @@ export const run = async (argvArg: any) => {
}
const localScafTemplate = await getTemplate(chosenTemplate);
if (!localScafTemplate) {
logger.log('error', `Template ${chosenTemplate} not available`);
return;
}
await localScafTemplate.askCliForMissingVariables();
await localScafTemplate.writeToDisk(paths.cwd);
};