Skip to content

Commit

Permalink
fix(core): print normalized generator name instead of aliases (#10574)
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Jun 3, 2022
1 parent 41882bf commit 2fb1059
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/nx/src/command-line/generate.ts
Expand Up @@ -164,8 +164,6 @@ async function convertToGenerateOptions(
throwInvalidInvocation(['@nrwl/workspace:library']);
}

logger.info(`NX Generating ${collectionName}:${generatorName}`);

const res = {
collectionName,
generatorName,
Expand Down Expand Up @@ -232,6 +230,10 @@ export async function newWorkspace(cwd: string, args: { [k: string]: any }) {
const { normalizedGeneratorName, schema, implementationFactory } =
ws.readGenerator(opts.collectionName, opts.generatorName);

logger.info(
`NX Generating ${opts.collectionName}:${normalizedGeneratorName}`
);

const combinedOpts = await combineOptionsForGenerator(
opts.generatorOptions,
opts.collectionName,
Expand Down Expand Up @@ -287,6 +289,10 @@ export async function generate(cwd: string, args: { [k: string]: any }) {
const { normalizedGeneratorName, schema, implementationFactory, aliases } =
ws.readGenerator(opts.collectionName, opts.generatorName);

logger.info(
`NX Generating ${opts.collectionName}:${normalizedGeneratorName}`
);

if (opts.help) {
printGenHelp(opts, schema, normalizedGeneratorName, aliases);
return 0;
Expand Down

1 comment on commit 2fb1059

@vercel
Copy link

@vercel vercel bot commented on 2fb1059 Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.