Skip to content

Commit

Permalink
Add subfolder handling to feature generator
Browse files Browse the repository at this point in the history
  • Loading branch information
csimpi authored Jul 12, 2021
1 parent 813e8b9 commit 684b03e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/xplat/src/utils/xplat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,13 @@ export namespace XplatFeatureHelpers {
<PlatformTypes>platform,
framework
);

//Handle "/"
const folderParts = options.name.split('/');
if (folderParts.length > 1) {
options.name = general_1.stringUtils.capitalize(folderParts[folderParts.length - 1]);
}

return {
...(options as any),
...getDefaultTemplateOptions(),
Expand Down

0 comments on commit 684b03e

Please sign in to comment.