Skip to content

Commit

Permalink
fix: generating projects does not properly consider the option to kee…
Browse files Browse the repository at this point in the history
…p project level wrapper files
  • Loading branch information
tinesoft committed Jul 19, 2024
1 parent 4020539 commit 74b38d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ export async function promptForMultiModuleSupport(
initial: `${options.projectName}-parent`,
}).then((a) => a['parentModuleName'])
).replace(/\//g, '-');

options.keepProjectLevelWrapper ??= true;
}
options.keepProjectLevelWrapper = !options.transformIntoMultiModule;
} else {
options.addToExistingParentModule = await prompt({
name: 'addToExistingParentModule',
Expand Down Expand Up @@ -92,6 +91,7 @@ export async function promptForMultiModuleSupport(
}).then((a) => a['parentModuleName']);
}
}
options.keepProjectLevelWrapper = !options.addToExistingParentModule;
}
}
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ export async function promptForMultiModuleSupport(
initial: `${options.projectName}-parent`,
}).then((a) => a['parentModuleName'])
).replace(/\//g, '-');

options.keepProjectLevelWrapper ??= true;
}
options.keepProjectLevelWrapper = !options.transformIntoMultiModule;
} else {
options.addToExistingParentModule = await prompt({
name: 'addToExistingParentModule',
Expand Down Expand Up @@ -91,6 +90,7 @@ export async function promptForMultiModuleSupport(
}).then((a) => a['parentModuleName']);
}
}
options.keepProjectLevelWrapper = !options.addToExistingParentModule;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ export async function promptForMultiModuleSupport(
initial: `${options.projectName}-parent`,
}).then((a) => a['parentModuleName'])
).replace(/\//g, '-');

options.keepProjectLevelWrapper ??= true;
}
options.keepProjectLevelWrapper = !options.transformIntoMultiModule;
} else {
options.addToExistingParentModule = await prompt({
name: 'addToExistingParentModule',
Expand Down Expand Up @@ -91,6 +90,7 @@ export async function promptForMultiModuleSupport(
}).then((a) => a['parentModuleName']);
}
}
options.keepProjectLevelWrapper = !options.addToExistingParentModule;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ export async function promptForMultiModuleSupport(
initial: `${options.projectName}-parent`,
}).then((a) => a['multiModuleName'])
).replace(/\//g, '-');

options.keepProjectLevelWrapper ??= true;
}
options.keepProjectLevelWrapper = !options.transformIntoMultiModule;
} else {
options.addToExistingParentModule = await prompt({
name: 'addToExistingParentModule',
Expand Down Expand Up @@ -92,6 +91,7 @@ export async function promptForMultiModuleSupport(
}).then((a) => a['parentModuleName']);
}
}
options.keepProjectLevelWrapper = !options.addToExistingParentModule;
}
}

Expand Down

0 comments on commit 74b38d5

Please sign in to comment.