Skip to content

Commit

Permalink
Fix module parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusGertdenken committed Nov 17, 2022
1 parent 57ffb17 commit a6bc7a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async function createChaynsApp({
}

// Main template
const templatePath = `../templates/api-v5/page${chooseTypescript === YesOrNo.Yes ? "-ts" : ""}${module ? "-module":""}${chooseRedux === YesOrNo.Yes ? "-redux" : ""}`;
const templatePath = `../templates/api-v5/page${chooseTypescript === YesOrNo.Yes ? "-ts" : ""}${moduleFederation ? "-module":""}${chooseRedux === YesOrNo.Yes ? "-redux" : ""}`;
await copyTemplate({
destination,
projectName,
Expand All @@ -222,7 +222,7 @@ async function createChaynsApp({
await copyFile(getTemplatePath(`../templates/api-v5/shared/ts/tsconfig.json`), path.join(destination, 'tsconfig.json'));
}

if(module) {
if(moduleFederation) {
const toolkitFileName = `toolkit.config-module.js`;
const fileDestination = path.join(destination, 'toolkit.config.js');

Expand Down

0 comments on commit a6bc7a3

Please sign in to comment.