Skip to content

Commit

Permalink
fix(nest): provide calling generator
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Aug 18, 2023
1 parent 851bd6d commit 60d3d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ export async function normalizeOptions(
tree: Tree,
options: ApplicationGeneratorOptions
): Promise<NormalizedOptions> {
// TODO(leo): uncomment things below
const {
projectName: appProjectName,
projectRoot: appProjectRoot,
// projectNameAndRootFormat,
projectNameAndRootFormat,
} = await determineProjectNameAndRootOptions(tree, {
name: options.name,
projectType: 'application',
directory: options.directory,
projectNameAndRootFormat: options.projectNameAndRootFormat,
rootProject: options.rootProject,
callingGenerator: '@nx/nest:application',
});
options.rootProject = appProjectRoot === '.';
// options.projectNameAndRootFormat = projectNameAndRootFormat;
options.projectNameAndRootFormat = projectNameAndRootFormat;

return {
...options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export async function normalizeOptions(
directory: options.directory,
importPath: options.importPath,
projectNameAndRootFormat: options.projectNameAndRootFormat,
callingGenerator: '@nx/nest:library',
});

const fileName = options.simpleName
Expand Down

0 comments on commit 60d3d8b

Please sign in to comment.