Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const container = css`
const idsInTab: Record<PivotItemKey, string[]> = {
Basics: ['runtimeSettings'],
LuisQna: ['luisKey', 'qnaKey'],
Connections: ['connections'],
Connections: ['connections', 'addNewPublishProfile'],
SkillConfig: [],
Language: [],
};
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/lib/shared/src/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

export const QnABotTemplateId = 'QnASample';

export const emptyBotNpmTemplateName = '@microsoft/generator-microsoft-bot-empty';
export const emptyBotNpmTemplateName = '@microsoft/generator-bot-empty';

export const SensitiveProperties = [
'MicrosoftAppPassword',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ const installRemoteTemplate = async (
log('Installing generator', npmPackageName);
templateVersion = templateVersion ? templateVersion : '*';
await yeomanEnv.installLocalGenerators({ [npmPackageName]: templateVersion });

// log('Looking up local packages');
// await yeomanEnv.lookupLocalPackages();
return true;
} catch {
return false;
} catch (err) {
log('Template failed to install', npmPackageName, templateVersion, templateGeneratorPath);
throw err;
}
};

Expand Down Expand Up @@ -75,21 +72,11 @@ const yeomanWork = async (
log('Installing Yeoman template');
parentPort?.postMessage({ status: 'Installing Yeoman template' });

const remoteTemplateAvailable = await installRemoteTemplate(
yeomanEnv,
templateGeneratorPath,
npmPackageName,
templateVersion
);
if (remoteTemplateAvailable) {
log('Instantiating Yeoman template');
parentPort?.postMessage({ status: 'Instantiating Yeoman template' });
await installRemoteTemplate(yeomanEnv, templateGeneratorPath, npmPackageName, templateVersion);
log('Instantiating Yeoman template');
parentPort?.postMessage({ status: 'Instantiating Yeoman template' });

await instantiateRemoteTemplate(yeomanEnv, generatorName, dstDir, projectName, runtimeType, runtimeLanguage);
} else {
// handle error
throw new Error(`error hit when installing remote template`);
}
await instantiateRemoteTemplate(yeomanEnv, generatorName, dstDir, projectName, runtimeType, runtimeLanguage);
};

export type TemplateInstallationArgs = {
Expand Down